-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (137 loc) · 4.65 KB
/
Copy pathindex.html
File metadata and controls
145 lines (137 loc) · 4.65 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">
<title>WICSE CODE-A-THON WEBSITES</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background-color: #f7f1e3;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
h1 {
text-align: center;
color: #333;
}
h3 {
text-align: center;
}
.group {
margin-bottom: 40px;
}
.group h2 {
color: #386842;
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.student-card {
background-color: #6c997d;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: box-shadow 0.3s ease;
}
.student-card:hover {
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.student-card h2 {
margin-top: 0;
color: #E6E1d3;
}
.student-card a {
color: #E6E1d3;
text-decoration: none;
}
.student-card a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<h1>Student Websites</h1>
<h3>Portfolios made during the WiCSE Annual Code-a-thon on 3/28/2026</h3>
<div id="portfolioGrid">
</div>
</div>
<script>
const studentGroups = [
{
group: "Group 1",
students: [
{ name: "Gayathri", portfolioUrl: "group1/KPop\ (Gayathri)\ -\ group1.html" },
{ name: "Maya", portfolioUrl: "group1/maya-group1.html" },
{ name: "Teddy", portfolioUrl: "group1/teddy_group1.html" }
]
},
{
group: "Group 3",
students: [
{ name: "Isabella", portfolioUrl: "group3/isabellab.html" },
{ name: "Jayden", portfolioUrl: "group3/Jayden.html" },
]
},
{
group: "Group 4",
students: [
{ name: "Coralie", portfolioUrl: "group4/coralie.html" },
{ name: "Maeve", portfolioUrl: "group4/maeve.html" },
{ name: "Natalie", portfolioUrl: "group4/natalie.html" },
{ name: "Vihaan", portfolioUrl: "group4/vihaan_g4.html" }
]
},
{
group: "Group 5",
students: [
{ name: "Lydia", portfolioUrl: "group5/lydia.html" },
{ name: "Nikila", portfolioUrl: "group5/Nikila.html" },
{ name: "Evelyn", portfolioUrl: "group5/Evelyn.html" }
]
},
{
group: "Demos",
students: [
{ name: "Template", portfolioUrl: "demos/template.html" },
{ name: "Group 1 Demo", portfolioUrl: "demos/group1.html" },
{ name: "Group 3 Demo", portfolioUrl: "demos/group3.html" }
]
},
];
function createStudentCards() {
const grid = document.getElementById('portfolioGrid');
studentGroups.forEach(group => {
const groupSection = document.createElement('div');
groupSection.className = 'group';
const groupTitle = document.createElement('h2');
groupTitle.innerText = group.group;
groupSection.appendChild(groupTitle);
const portfolioGrid = document.createElement('div');
portfolioGrid.className = 'portfolio-grid';
group.students.forEach(student => {
const card = document.createElement('div');
card.className = 'student-card';
card.innerHTML = `
<a href="${student.portfolioUrl}" target="_blank">
<h2>${student.name}</h2>
</a>
`;
portfolioGrid.appendChild(card);
});
groupSection.appendChild(portfolioGrid);
grid.appendChild(groupSection);
});
}
window.onload = createStudentCards;
</script>
</body>
</html>