-
Notifications
You must be signed in to change notification settings - Fork 6
/
panalist.js
158 lines (142 loc) · 3.84 KB
/
panalist.js
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
document.write(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Panelist</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Grandstander:wght@100&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script>
// render only the body background and nothing else for 2 seconds
document.body.style.visibility = "hidden";
// sleep 2 seconds
setTimeout(() => {
document.body.style.visibility = "visible";
}, 2000);
// then get class one and two with query and make visible
document.querySelector(".one").style.visibility = "visible";
document.querySelector(".two").style.visibility = "visible";
</script>
<style>
/* Add styles for background image */
.header-section {
background: linear-gradient(to right, #00FFF0, #03C60B);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
padding: 40px;
margin-bottom: 20px;
text-align: center;
font-size: 80px;
font-family: 'DM Sans';
}
@media (max-width: 768px) {
.header-section {
padding: 50px 0;
}
}
/* Add styles for image and text */
.panelist-image {
max-width: 60%;
height: auto;
display: block;
margin: 0 auto;
margin-bottom: 15px;
border-radius: 8px;
}
.panelist-name {
text-align: center;
font-size: 30px;
color: #fff;
font-family: 'Grandstander';
}
.one {
height: 80vh;
width: 15vw;
position: absolute;
top: 10vh;
background-color: #70262688;
filter: blur(80px);
border-radius: 500px;
transform: translateX(-150px);
/* animation to fade it in from the left */
animation: fadein-left 2s;
}
.two {
height: 80vh;
width: 15vw;
position: absolute;
right: 0;
top: 10vh;
/* transform: translateX(750%); */
background-color: #70262688;
filter: blur(80px);
border-radius: 500px;
transform: translateX(150px);
animation: fadein-right 2s;
/* transform: rotate(180deg); */
}
/* fadein animation keyframes */
@keyframes fadein-left {
from {
opacity: 0;
transform: translateX(-250px);
}
to {
opacity: 1;
transform: translateX(-150px);
}
}
@keyframes fadein-right {
from {
opacity: 0;
transform: translateX(250px);
}
to {
opacity: 1;
transform: translateX(150px);
}
}
</style>
</head>
<body>
<header class="header-section">
<div class="panel-heading">Panelists</div>
</header>
<div class="container">
<div class="row" id="panelist-row">
<div class="col-md-6">
<img src="placeholder.png" alt="Image 1" class="panelist-image" hidden>
<h2 class="panelist-name" hidden>Panelist 1</h2>
</div>
<div class="col-md-6">
<img src="placeholder.png" alt="Image 2" class="panelist-image" hidden>
<h2 class="panelist-name" hidden>Panelist 2</h2>
</div>
</div>
</div>
<div class="one"></div>
<div class="two"></div>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
setTimeout(function() {
document.querySelectorAll('.panelist-image').forEach(function(element) {
element.removeAttribute('hidden');
});
setTimeout(function() {
document.querySelectorAll('.panelist-name').forEach(function(element) {
element.removeAttribute('hidden');
});
}, 2700);
}, 2500);
</script>
</body>
</html>
`)