forked from esargen/helloworld2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
253 lines (224 loc) · 9.63 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
<!DOCTYPE html>
<html>
<head>
<title>HelloWorld 2020</title>
<meta name="viewport" content="width=device-width, initial-scale=.5">
<link href="helloworld.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://use.typekit.net/ugm7mjs.css">
<link rel="stylesheet" href="https://use.typekit.net/rkb0jcu.css">
<link rel="stylesheet" href="https://use.typekit.net/rkb0jcu.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script src="https://kit.fontawesome.com/1bcdd38cc2.js" crossorigin="anonymous"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-177900891-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-177900891-1');
</script>
</head>
<body>
<div class="wrapper">
<div id="flash2" class="grad2"></div>
<div id="footer">
<a href="#landingcontainer"><div></div></a>
</div>
<script>
function openNav() {
if (window.matchMedia("(max-device-width: 480px)").matches) {
document.getElementById("navbar").style.opacity="1";
document.getElementById("navoverlay").style.opacity=".75";
document.getElementById("navbar").style.pointerEvents="auto";
document.getElementById("navoverlay").style.pointerEvents="auto";
} else {
document.getElementById("navbar").style.opacity="1";
document.getElementById("navoverlay").style.display="none";
}
}
function closeNav() {
if (window.matchMedia("(max-device-width: 480px)").matches) {
document.getElementById("navbar").style.opacity="0";
document.getElementById("navoverlay").style.opacity="0";
document.getElementById("navbar").style.pointerEvents="none";
document.getElementById("navoverlay").style.pointerEvents="none";
} else {
document.getElementById("navbar").style.opacity="1";
document.getElementById("navoverlay").style.display="none";
}
}
</script>
<img style="width:8%;position:absolute;right:40px;" src="mlh.png">
<div class="bar">
<i class="fas fa-bars" onclick="openNav()"></i>
<div id="navbar">
<div class="navbutton" onclick="closeNav()">
<div class="nametag" style="flex:50%;"><a href="#about">About</a></div>
</div>
<div class="navbutton" onclick="closeNav()" style="width:9em;">
<div class="nametag" style="flex:50%;"><a href="#partners">Partners</a></div>
</div>
<div class="navbutton" onclick="closeNav()" style="width:8.5em;">
<div class="nametag" style="flex:50%;"><a href="#contact">Contact</a></div>
</div>
<div class="navbutton" onclick="closeNav()">
<div class="nametag" style="flex:50%;"><a href="faq/faq.html">FAQ</a></div>
</div>
<div onclick="closeNav()" class="navbutton" id="closebutton">
<div style="flex:50%;padding-left:1.5em;"><p>close</p></div>
</div>
</div>
</div>
<div id="navoverlay" onclick="closeNav()"></div>
<div id="flash" class="grad"></div>
<div id="landingcontainer">
<div id="firsttrees">
<div class="firsttree">
<img src="foretree.png">
</div>
<div class="firsttree">
<img src="backtree2.png">
</div>
<div class="firsttree">
<img src="midtree.png">
</div>
</div>
<div id="landing">
<div class="futureimage">
<img style="width: 100%" src="sun.svg" alt="sun">
</div>
<div id="titlegroup">
<img src="title.png" alt="Hello World">
<div class="mobilestack">
<h3>Clemson's premier freshman hackathon</h3>
<h3 style="margin-top: 1vh">Hosted virtually on Saturday, October 17th</h3>
<div class="buttons">
<a style="flex:40%;" href="https://cucheckin.herokuapp.com/" class="applybutton">
<div>
<div id="startButton" class="nametag">Apply</div>
</div>
</a>
<a style="flex:40%;" href="https://docs.google.com/forms/d/e/1FAIpQLSef2uS1PtPQOVyJXscMm1IqIJsJMMI0_rFV0-hp_c1H4dCpQg/viewform" class="applybutton partnerbutton">
<div>
<div id="startButton" class="nametag">Mentor</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div id="parallax-group">
<div id="hill" class="parallax"></div>
</div>
<div id="about" class="parallax">
<div id="hill2"><img src="trees.png"></div>
<div class="block">
<div class="text">
<h2>a little about us</h2>
<p>We're CUhackit, the student organization that plans Clemson's annual hackathon! Join us for awesome events where you design, build and code with friends, while we handle the food, coffee, and prizes. Fill out your resume, make new friends, and build awesome projects!</p>
<p>If you're a freshman, check out Hello World! No matter your level of experience, our freshman-only 12-hour hackathon is for you! Sign up by October 7th. </p>
<!-- <div class="navbutton">
<button style='display:flex; z-index:100; position: relative;' class="nametag" onclick="location.href='http://www.google.com'"><p>FAQ</p></button>
</div> -->
<div style="width:100vw; height: 20vh"></div>
</div>
</div>
</div>
<div id="trees2" class="parallax">
<img src="trees2.png">
</div>
<div id="rest" style="">
<div id="partners">
<h2>Our partners</h2>
<div id="partnercloud">
<a href="https://www.clemson.edu/cecas/departments/computing/" target="_blank"><img src="SoCLogo.png"></a>
</div>
<a id="partnerbutton" href="https://docs.google.com/forms/d/e/1FAIpQLSd0UOteotSUGSfWT5eRlxTAZfT_Ee0x1nfwlNuMWn1vJawIdQ/viewform?usp=sf_link">Become a partner!</a>
</div>
<div id="contact">
<div>
<h2>Stay in touch!</h2>
<div class="block">
<div>
<div class="container">
<form action="mailto:[email protected]" method="GET">
<input type="text" id="item" name="item" placeholder=" Your email here">
<input class="butto" type="submit" value="">
</form>
</div>
</div>
</div>
<div class="image">
<img src="telescope.png" />
</div>
</div>
</div>
<div class="decorativelines">
<div style="width: 100%;height:7px;"></div>
<div style="width: 30%;height:3px;"></div>
</div>
<div id="bottom">
<div id="socials">
<div class="socialcontainer">
<div class="social">
<a href="https://twitter.com/cuhackit?lang=en"><i class="fa fa-twitter" aria-hidden="true"></i></a>
</div>
</div>
<div class="socialcontainer">
<div class="social">
<a href="https://www.instagram.com/cuhackit/?hl=en"><i class="fa fa-instagram" aria-hidden="true"></i></a>
</div>
</div>
<div class="socialcontainer">
<div class="social">
<a href="https://www.facebook.com/CUhackers/"><i class="fa fa-facebook" aria-hidden="true"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<script>
var wrapper = document.querySelector('.wrapper');
var nav = document.querySelector('.bar');
var landing = document.querySelector('#landing');
var about = document.querySelector('#about');
var hill = document.querySelector('#hill');
var partners = document.querySelector('#partners');
var contact = document.querySelector('#contact');
var footer = document.querySelector('#footer');
var big = (nav.scrollHeight + landing.scrollHeight + hill.scrollHeight + about.scrollHeight + partners.scrollHeight + contact.scrollHeight + footer.scrollHeight);
var hei = big;
document.addEventListener("DOMContentLoaded", () => {
wrapper.style.maxHeight = hei + 'px';
console.log(wrapper.style.maxHeight);
console.log(hei);
});
</script>-->
<script>
window.addEventListener('scroll', function(e) {
var hill = document.querySelectorAll(".parallax");
var container = document.querySelector("#parallax-group");
var trees = document.querySelectorAll(".firsttree");
var scrolled = Math.ceil(window.pageYOffset / 15) * 15;
var rate = scrolled * .15;
var rate4 = scrolled * .25;
var rate2 = scrolled * -.15;
var rate3 = scrolled * -.75;
if (window.matchMedia('(max-device-width: 480px)').matches) {
container.style.transform = 'translate3D(0px, '+rate4+'px, 0px)';
} else {
hill[0].style.transform = 'translate3D(0px, '+rate+'px, 0px)';
hill[1].style.transform = 'translate3D(0px, '+rate2+'px, 0px)';
hill[2].style.transform = 'translate3D(0px, '+rate3+'px, 0px)';
container.style.transform = 'translate3D(0px, '+rate+'px, 0px)';
trees[1].style.transform = 'translate3D(0px, '+rate4+'px, 0px)';
trees[2].style.transform = 'translate3D(0px, '+rate+'px, 0px)';
};
});
let vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', `${vh}px`);
</script>
</body>
</html>