forked from Sbiswas001/Student-Portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (125 loc) · 3.53 KB
/
index.html
File metadata and controls
145 lines (125 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="src/assets/css/styles.css" />
<title>Hacktoberfest Portfolio Showcase</title>
<style>
/* General body styling */
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(135deg, #000000, #2b2c2e);
color: #7bff00;
margin: 0;
padding: 0 20px;
}
h1 {
text-align: center;
margin-top: 30px;
font-size: 2.5rem;
color: #ff0048;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
/* Table styling */
.styled-table {
width: 100%;
border-collapse: collapse;
margin: 50px auto;
font-size: 1rem;
box-shadow: 0 5px 15px rgba(17, 0, 0, 0.1);
border-radius: 10px;
overflow: hidden;
}
.styled-table thead {
background-color: #00e1ff;
color: #f0f0f0;
text-align: left;
}
.styled-table th,
.styled-table td {
padding: 15px 20px;
}
.styled-table tbody tr {
background-color: #1a1b17;
border-bottom: 1px solid #000000;
transition: transform 0.2s, background-color 0.2s;
}
.styled-table tbody tr:hover {
transform: scale(1.02);
background-color: #ffffff;
}
/* Links styling */
a {
color: #ff5722;
text-decoration: none;
font-weight: 500;
}
a:hover {
text-decoration: underline;
}
/* Responsive table */
@media (max-width: 768px) {
.styled-table thead {
display: none;
}
.styled-table, .styled-table tbody, .styled-table tr, .styled-table td {
display: block;
width: 100%;
}
.styled-table tr {
margin-bottom: 15px;
}
.styled-table td {
text-align: right;
padding-left: 50%;
position: relative;
}
.styled-table td::before {
content: attr(data-label);
position: absolute;
left: 0;
width: 50%;
padding-left: 20px;
font-weight: bold;
text-align: left;
}
}
</style>
</head>
<body>
<h1>🎉 Hacktoberfest Portfolio Showcase</h1>
<table class="styled-table">
<thead>
<tr>
<th>Name</th>
<th>Portfolio</th>
<th>GitHub</th>
<th>LinkedIn</th>
</tr>
</thead>
<tbody id="table-body">
<!-- Populated dynamically by contributors.js -->
</tbody>
</table>
<script src="src/assets/js/contributors.js"></script>
<script>
// Dynamic population enhancement
const contributors = [
{name: 'Sucheta Mondal', portfolio: 'https://portfolio.com', github: 'https://github.com/Suchetamon27', linkedin: 'http://www.linkedin.com/in/sucheta-mondal-a31821383'},
{name: 'John Doe', portfolio: 'https://johndoe.com', github: 'https://github.com/johndoe', linkedin: 'https://linkedin.com/in/johndoe'}
];
const tableBody = document.getElementById('table-body');
contributors.forEach(c => {
const row = document.createElement('tr');
row.innerHTML = `
<td data-label="Name">${c.name}</td>
<td data-label="Portfolio"><a href="${c.portfolio}" target="_blank">Visit</a></td>
<td data-label="GitHub"><a href="${c.github}" target="_blank">GitHub</a></td>
<td data-label="LinkedIn"><a href="${c.linkedin}" target="_blank">LinkedIn</a></td>
`;
tableBody.appendChild(row);
});
</script>
</body>
</html>