-
Notifications
You must be signed in to change notification settings - Fork 0
/
Slides-ATH-Template-02.html
258 lines (218 loc) · 6.24 KB
/
Slides-ATH-Template-02.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html>
<head>
<title>SWARM ATH</title>
<link href="https://fonts.googleapis.com/css2?family=Corben&display=swap" rel="stylesheet">
<style>
/* CSS styles for the slides */
body {
margin: 0;
padding: 0;
}
.slide {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: Corben, Cooper Black, Arial, sans-serif;
font-size: 24px;
color: white;
position: relative;
}
/* Slide 1 and 2 */
.slide-1 {
background: linear-gradient(to bottom, #2BABDE, white);
display: flex;
align-items: center;
}
.slide-logo {
width: 33%;
opacity: 0.65;
}
.slide-text {
width: 67%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.slide-title {
font-family: 'Cooper Black', sans-serif;
font-size: 48px;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
margin-bottom: 10px;
}
.slide-subtitle {
font-family: 'Lobster', cursive;
font-size: 24px;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.slide-2 {
background: linear-gradient(to bottom, #2BABDE, white);
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.card {
background-color: #FDD44C;
border-radius: 10px;
padding: 20px;
margin: 10px;
width: 150px;
/* Updated size */
text-align: center;
color: white;
font-family: 'Corben', sans-serif;
font-size: 16px;
/* Updated size */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
transition: transform 0.3s;
cursor: pointer;
}
.card:hover {
transform: scale(1.05);
}
.card-title {
font-weight: bold;
font-size: 20px;
/* Updated size */
margin-bottom: 10px;
}
.card p {
margin: 5px 0;
}
/* Slide 3 to 7 */
.slide-3,
.slide-4,
.slide-5,
.slide-6,
.slide-7 {
background: linear-gradient(to bottom, #FDD44C, #BD930A);
}
/* Slide 8 to 10 */
.slide-8,
.slide-9,
.slide-10 {
background: linear-gradient(to bottom, #2BABDE, white);
}
/* Logo */
.slide-logo {
position: absolute;
top: calc(50% - 16.5vh);
opacity: 0;
transition: opacity 0.5s;
}
/* Animations */
.fade-in {
opacity: 1;
}
.slide-in {
transform: translateX(0);
}
</style>
</head>
<body>
<div class="slide slide-1">
<img class="slide-logo fade-in" src="your-logo.png" alt="Logo">
<div class="slide-text fade-in">
<h1 class="slide-title">Welcome to SWARM ATH!</h1>
<p class="slide-subtitle">Discover the Power of Teamwork</p>
</div>
</div>
<div class="slide slide-2">
<div class="card">
<h2 class="card-title">Card 1</h2>
<p>Content for Card 1</p>
</div>
<div class="card">
<h2 class="card-title">Card 2</h2>
<p>Content for Card 2</p>
</div>
<div class="card">
<h2 class="card-title">Card 3</h2>
<p>Content for Card 3</p>
</div>
</div>
<div class="slide slide-3">
<!-- Content for Slide 3 -->
</div>
<div class="slide slide-4">
<!-- Content for Slide 4 -->
</div>
<div class="slide slide-5">
<!-- Content for Slide 5 -->
</div>
<div class="slide slide-6">
<!-- Content for Slide 6 -->
</div>
<div class="slide slide-7">
<!-- Content for Slide 7 -->
</div>
<div class="slide slide-8">
<!-- Content for Slide 8 -->
</div>
<div class="slide slide-9">
<!-- Content for Slide 9 -->
</div>
<div class="slide slide-10">
<!-- Content for Slide 10 -->
</div>
<script>
// Slideshow functionality
const slides = document.querySelectorAll('.slide');
const logo = document.querySelector('.slide-logo');
let currentSlide = 0;
function showSlide(index) {
slides.forEach((slide) => {
slide.classList.remove('fade-in');
slide.classList.remove('slide-in');
});
slides[index].classList.add('fade-in');
if (index === 0) {
logo.classList.add('fade-in');
} else {
logo.classList.remove('fade-in');
}
if (index > 0 && index < 10) {
slides[index].classList.add('slide-in');
}
currentSlide = index;
}
function nextSlide() {
const nextIndex = currentSlide + 1;
if (nextIndex < slides.length) {
showSlide(nextIndex);
}
}
function previousSlide() {
const prevIndex = currentSlide - 1;
if (prevIndex >= 0) {
showSlide(prevIndex);
}
}
// Keyboard navigation
document.addEventListener('keydown', (event) => {
if (event.key === 'ArrowRight') {
nextSlide();
} else if (event.key === 'ArrowLeft') {
previousSlide();
}
});
// Mouse navigation
document.addEventListener('wheel', (event) => {
const delta = event.deltaY;
if (delta > 0) {
nextSlide();
} else if (delta < 0) {
previousSlide();
}
});
// Initial setup
showSlide(0);
</script>
</body>
</html>