forked from P2PHackClub/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
501 lines (439 loc) · 13.1 KB
/
index.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>P2P Hack Club</title>
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet"/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"/>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #f4f1de;
}
h1 {
color: #81b29a;
font-size: 62px;
font-family: "Rubik", sans-serif;
text-align: center;
padding: 10px;
}
h2 {
color: #f4f1de;
font-family: "Rubik", sans-serif;
text-align: center;
font-size: 200%;
padding: 25px;
}
hr {
/*border-color: white;*/
color: white;
background-color: white;
border: 3px solid #f2cc8f;
}
#hf-desc {
color: #f4f1de;
font-family: "Rubik", sans-serif;
text-align: left;
padding-top: -7%;
margin: 2% 9% 2% 10%;
font-size: 20px;
}
/*a.main {*/
/* background-color: #E07A5F;*/
/* color: #3D405B;*/
/* font-family: 'Times New Roman', Times, serif;*/
/* border-radius: 10pt 10pt 10pt 10pt;*/
/* padding: 10pt;*/
/* font-size: 3vw;*/
/* text-decoration: none;*/
/* transition: padding 1s;*/
/* overflow: hidden;*/
/* box-shadow: 2px 2px #3D405B;*/
/*}*/
/* Setting Navbar a background for a better UI and adjusting font-size and color */
.navbar::before {
content: "";
position: absolute;
top: 2px;
width: 100%;
height: 94%;
background-image: url("./img/bg.png");
opacity: 1;
z-index: -1;
}
.navbar,
.container-fluid {
background-color: #0a05057a;
}
.navbar-dark .navbar-brand {
color: #bcf3bb;
text-shadow: 1px 2px 2px #873bc8;
cursor: pointer;
}
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, .95);
text-shadow: 2px 2px #37547a;
font-size: 1.2rem;
}
.navbar-brand img {
position: relative;
width: 50px;
height: 50px;
left: -4px;
top: -10px;
margin-right: 8px;
}
/* ***adjustments done */
a.hyperlink {
color: #e07a5f;
font-weight: bold;
text-decoration: none;
}
a.hyperlink:hover {
color: orangered;
background-color: rgba(76, 0, 130, 0.082);
}
/* div.gridcontainer {
display: grid;
grid-column-gap: 1px;
grid-template-columns: auto auto auto;
padding: 5px;
text-align: center;
}
div.grid-item {
text-align: center;
padding: 10px;
display: block;
grid-column-gap: 1px;
margin: 5px;
line-height: 60px;
} */
.fade:not(.show) {
opacity: 1;
}
.navbar-brand {
font-family: "Rubik", sans-serif;
font-size: 2.5rem;
font-weight: 700;
color: white;
}
.nav-link {
font-family: "Rubik", sans-serif;
font-size: 1.5rem;
font-weight: 200;
}
.nav-item {
padding: 0 18px 0 0;
}
/*a.main:hover {*/
/* text-decoration: underline;*/
/* padding: 15pt;*/
/* transition: padding 1s;*/
/* box-shadow: none;*/
/*}*/
.slideshow {
padding-top: 30px;
max-width: 1000px;
position: relative;
margin: auto;
}
.SlideShow {
display: none;
}
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
background-color: #000000;
}
.slide-text {
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #a29a9a;
border-radius: 50%;
display: inline-block;
transition: background-color 1.3s ease;
}
.active,
.dot:hover {
background-color: #5b5555;
}
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 2.5s;
animation-name: fade;
animation-duration: 2.5s;
}
@-webkit-keyframes fade {
from {opacity: 0.4;}
to {opacity: 1;}
}
@keyframes fade {
from {opacity: 0.4;}
to {opacity: 1;}
}
iframe {
margin-left: auto;
margin-right: auto;
display: block;
transition: width 1s, height 1s;
transition-delay: 2s;
}
iframe:hover {
width: 100vw;
height: 100vh;
transition: width 1s, height 1s;
transition-delay: 2s;
}
div.events {
background-color: #81b29a;
border-radius: 20px 20px 20px 20px;
width: 80vw;
margin-left: auto;
margin-right: auto;
display: block;
padding: 13px;
}
footer {
margin-top: 50px;
background-color: #0a4275;
color: #fff;
}
.footer-container {
font-family: "Rubik", sans-serif;
display: flex;
justify-content: space-between;
padding: 12px 8.33%;
}
.footer-top {
display: flex;
align-items: center;
}
.footer-text {
margin: 0 20px 0 0;
letter-spacing: 0.5px;
font-size: 20px;
font-family: "Rubik", sans-serif;
}
.footer-link {
background-color: #936639;
color: inherit;
padding: 10px;
text-decoration: none;
border-radius: 10px;
letter-spacing: 1px;
font-weight: bolder;
font-size: 12px;
box-shadow: 0 2px 2px white;
transition: all 0.1s ease-in;
font-family: "Rubik", sans-serif;
}
.footer-link:hover {
background-color: white;
color: #936639;
box-shadow: 0 2px 2px #936639;
}
.marq {
background: rgba(0, 0, 0, 0.2);
height: 30px;
display: flex;
align-items: center;
font-family: "Rubik", sans-serif;
}
.copyright {
margin: 5px 0;
font-size: 1em;
font-family: "Rubik", sans-serif;
}
.badge {
text-align: left;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="logo.png" alt="P2P logo" title="logo" />P2P Hack Club</a>
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="under.html">About Hack Club</a>
</li>
<li class="nav-item">
<a class="nav-link" href="under.html">Meeting Schedule</a>
</li>
<li class="nav-item">
<a class="nav-link" href="under.html">Ongoing Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="under.html">Contact Us</a>
</li>
</ul>
</div>
</nav>
<!-- <img src="logo.png" alt="P2P logo" title="logo" style="width:60px;height:60px;"> -->
<!-- <hr>
<div class="gridcontainer">
<div class="grid-item"><a class="main" href="under.html">About Hack Club</a></div>
<div class="grid-item"><a class="main" href="under.html">Meeting Schedule</a></div>
<div class="grid-item"><a class="main" href="under.html">Ongoing Projects</a></div>
</div> -->
<!--Start of Slide Show Div Tags-->
<div class="slideshow" data-interval="false">
<div class="SlideShow fade">
<div class="numbertext">1 / 3</div>
<img src="./img/space1.jpg" alt="Picture of Space #1" style="width: 100%"/>
<div class="slide-text">Beautiful Space #1</div>
</div>
<div class="SlideShow fade">
<div class="numbertext">2 / 3</div>
<img src="./img/space2.jpg" alt="Picture of Space #2" style="width: 100%"/>
<div class="slide-text">Beautiful Space #2</div>
</div>
<div class="SlideShow fade">
<div class="numbertext">3 / 3</div>
<img src="./img/space3.jpg" alt="Picture of Space #3" style="width: 100%"/>
<div class="slide-text">Beautiful Space #3</div>
</div>
<!--Arrow keys to manually move on to the next slide-->
<a class="prev" onclick="changeSlideNeg(-1)">❮</a>
<a class="next" onclick="changeSlidePos(1)">❯</a>
</div>
<!--End of Slide Show Div Tags-->
<!--Div for the dots that indicate what slide is currently active-->
<div style="text-align: center">
<span class="dot" onclick="currentSlide(0)"></span>
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
</div>
<h1 style="font-size: 30px; text-align: left">Introduction to GitHub:</h1>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/w3jLJU7DT5E"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
<br />
<h1 style="font-size: 30px; text-align: left">Events:</h1>
<div class="events">
<h2>Hacktoberfest</h2>
<div class="badge">
<img src=" https://img.shields.io/github/hacktoberfest/2021/P2PHackClub/website" alt="Hacktoberfest badge"/>
</div>
<hr />
<p id="hf-desc">Hacktoberfest is an annual event that takes place every October in the
spirit of open source and collaboration. For more information, Click
<a class="hyperlink" href="https://hacktoberfest.digitalocean.com">Here!</a>
</p>
</div>
<br />
<footer>
<div class="footer-container">
<div class="footer-top">
<p class="footer-text">This site is an open source project.</p>
<a class="footer-link" target="_blank" href="https://github.com/P2PHackClub/website/">Improve this page!</a>
<p class="footer-text">If interested in contributing,
<a class="hyperlink" href="https://community.p2phack.club/CONDUCT.html"
target="_blank">please first read the Code of Conduct</a>
</p>
<a class="footer-link" target="_blank"
href="https://bank.hackclub.com/donations/start/p2phackclub">Donation!</a>
<p class="footer-text"><small>Hack Club is fiscally sponsored by Hack Club, a 501(c)(3)
nonprofit. Our registered EIN is 81-2908499.</small>
</p>
</div>
<div class="footer-bottom">
<p class="copyright">© P2P Hack Club</p>
</div>
</div>
<div class="marq">
<marquee behavior="smooth" direction="">© P2P Hack Club</marquee>
</div>
</footer>
</body>
<script>
// Start of JS to handle the carousel Animations
let slideIndex = 1;
showSlides(slideIndex);
// Arrow controls and reset for the image rotation
function changeSlidePos(n) {
clearTimeout(timeoutHandle);
showSlides((slideIndex += n));
}
// Arrow controls and reset for the image rotation
function changeSlideNeg(n) {
clearTimeout(timeoutHandle);
showSlides((slideIndex -= n));
}
// Dot controls and reset for the image rotation
function currentSlide(n) {
clearTimeout(timeoutHandle);
showSlides((slideIndex = n));
}
// Handles the color/image/text changing for the appropriate image and dot item.
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("SlideShow");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1;}
if (n < 1) {slideIndex = slides.length;}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1;}
slides[slideIndex - 1].style.display = "block";
dots[slideIndex - 1].className += " active";
timeoutHandle = setTimeout(showSlides, 30000); // 30 second timer
}
</script>
</html>