-
Notifications
You must be signed in to change notification settings - Fork 0
/
media.html
203 lines (185 loc) · 6.66 KB
/
media.html
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media</title>
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="footer.css">
<!-- Hacker icon attribution <a href="https://www.flaticon.com/free-icons/scammer" title="scammer icons">Scammer icons created by Andrean Prabowo - Flaticon</a> -->
<style>
.tubeLight {
font-family: "Neonblitz", sans-serif;
color: #fff;
text-shadow:
0 0 7px #fff,
0 0 10px #fff,
0 0 21px #fff,
0 0 42px #0fa,
0 0 82px #0fa,
0 0 92px #0fa,
0 0 102px #0fa,
0 0 151px #0fa;
font-size: 3rem;
border: 0.2rem solid #fff;
border-radius: 2rem;
padding: 0.4em;
box-shadow: 0 0 .2rem #fff,
0 0 .2rem #fff,
0 0 2rem #0fa,
0 0 0.8rem #0fa,
0 0 2.8rem #0fa,
inset 0 0 1.3rem #0fa;
}
.main {
position: absolute;
top: 51px;
min-height: calc(100vh - 51px);
width: 100%;
height: fit-content;
display: grid;
grid-template-rows: 12.5rem 1fr;
align-items: center;
justify-items: center;
gap: 50px;
}
.main a {
text-decoration: none;
color: #ccc;
}
@media only screen and (max-width:880px) {
.tubeLight {
font-size: 2rem;
text-shadow:
0 0 7px #fff,
0 0 5px #fff,
0 0 16px #fff,
0 0 37px #0fa,
0 0 77px #0fa,
0 0 87px #0fa;
box-shadow: 0 0 .1rem #fff,
0 0 .1rem #fff,
0 0 1.5rem #0fa,
0 0 0.5rem #0fa,
0 0 2.2rem #0fa,
inset 0 0 1rem #0fa;
}
}
@media only screen and (max-width:600px) {
.tubeLight {
font-size: max(calc(100vw * 0.05 + 0rem), 1.6rem);
padding: 0.4rem;
}
}
@media only screen and (max-width:260px) {
.tubeLight {
font-size: 0.8rem;
padding: 0.4rem;
}
}
</style>
</head>
<body>
<div class="header">
<a class='navbar-brand' href='https://lugvitc.github.io'>LINUX CLUB VITC</a>
<div class="nav-options">
<a class="nav-link" href="index.html">Home</a>
<a class="nav-link" href="technical.html">Technical</a>
<a class="nav-link" href="management.html">Management</a>
<a class="nav-link" href="operations.html">Operations</a>
<a class="nav-link" href="media.html">Media</a>
<a class="nav-link" href="content.html">Content</a>
</div>
<svg id=three-bars xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-list" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z" />
</svg>
</div>
<div class="main">
<div class="tubeLight">Media Team</div>
<div id="cards-grid"></div>
</div>
<script src="confetti.js"></script>
<script>
startConfetti();
</script>
</body>
<script>
let bars = document.querySelector("#three-bars");
var bars_opened = false;
bars.addEventListener("click", () => {
document.querySelector(".nav-options").style.height = !bars_opened ? "240px" : "0px";
bars_opened = !bars_opened;
})
window.addEventListener("resize", () => {
if (document.body.offsetWidth >= 990) {
document.querySelector(".nav-options").style.height = "fit-content";
}
else {
if (document.querySelector(".nav-options").style.height == "fit-content") {
document.querySelector(".nav-options").style.height = "0px";
}
}
})
// Details of the participants
var content = {
"21BEE1266": {
"name": "Akhil Biju",
"photo": "path/to/image",
"department": "Media"
},
"21BLC1308": {
"name": "Nikesh kumar",
"photo": "path/to/image",
"department": "Media"
}
,
"21BRS1232": {
"name": "Yogeshwaran TP",
"photo": "path/to/image",
"department": "Media"
}
,
"21BRS1325": {
"name": "Pratyush Barik",
"photo": "path/to/image",
"department": "Media"
},
}
// Generating cards
for (const participant_reg_no in content) {
if (Object.hasOwnProperty.call(content, participant_reg_no)) {
const participant = content[participant_reg_no];
let div = document.createElement("div");
let div_front = document.createElement("div");
let div_back = document.createElement("div");
let div_signal = document.createElement("div");
div.setAttribute("class", "card");
div_signal.setAttribute("class", "card_signal")
div_front.setAttribute("class", "card_front");
div_back.setAttribute("class", "card_back");
div.onclick = (e) => {
console.log(participant);
}
div_front.innerHTML = `
<img class="hacker" src="res/hacker_black.png">
<span class="real-name">${participant.name}</span>
<span class="real-reg">${participant_reg_no}</span>
<span class="real-depart">${participant.department}</span>
`
div_back.innerHTML = `
<img class="real-pic" src="${participant.photo}">
<span class="real-name">${participant.name}</span>
<span class="real-reg">${participant_reg_no}</span>
<span class="real-depart">${participant.department}</span>
`
div_signal.appendChild(div_front);
div_signal.appendChild(div_back);
div.appendChild(div_signal);
document.getElementById("cards-grid").appendChild(div);
}
}
</script>
</html>