forked from NicholasPiscioneri/unswrocketry.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththesis.html
205 lines (191 loc) · 5.54 KB
/
thesis.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UNSW Rocketry - Thesis</title>
<link rel="stylesheet" href="thesis.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
/>
</head>
</html>
<body>
<!-- Header that appears when scrolling up, hides when scrolling down -->
<header id="navbar" class="navbar">
<a href="/" class="brand">UNSW Rocketry</a>
<div class="menu-btn"></div>
<div class="navigation">
<div class="navigation-items">
<a href="/">Home</a>
<a href="team">Team</a>
<a href="projects">Projects</a>
<a href="gallery">Gallery</a>
<a href="thesis">Thesis</a>
<a href="contact">Contact</a>
</div>
</div>
</header>
<script>
// JavaScript for hiding nav bar when scrolling down, and showing nav bar when scrolling up
var lastScrollTop = 0;
var isScrollingUp = false;
navbar = document.getElementById("navbar");
window.addEventListener("scroll", function () {
var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop <= 0) {
// At the top of the page
navbar.style.top = "0";
isScrollingUp = true;
} else if (scrollTop < lastScrollTop && !isScrollingUp) {
// Scrolling up
navbar.style.top = "0";
isScrollingUp = true;
} else if (scrollTop > lastScrollTop && isScrollingUp) {
// Scrolling down
navbar.style.top = "-80px";
isScrollingUp = false;
}
lastScrollTop = scrollTop;
});
// Javascript for changing background color of nav bar from transparent to black after scrolling past the first section
const nav = document.querySelector(".navbar");
const section1 = document.querySelector(".section1");
window.onscroll = function () {
if (document.documentElement.scrollTop >= 300) {
nav.classList.add("nav-colored");
nav.classList.remove("nav-transparent");
} else {
nav.classList.add("nav-transparent");
nav.classList.remove("nav-colored");
}
};
</script>
<!-- Main Banner Section -->
<section class="section1">
<div class="image1">
<img src="thesis/images/1.jpg" />
</div>
<div class="content active">
<h1><br /><span>Thesis</span></h1>
<p></p>
</div>
<div class="media-icons">
<a href="https://www.facebook.com/UNSWRocketry"
><i class="fab fa-facebook-f"></i
></a>
<a href="https://www.instagram.com/unswrocketry/"
><i class="fab fa-instagram"></i
></a>
<a href="https://www.linkedin.com/company/unsw-rocketry"
><i class="fab fa-linkedin"></i
></a>
</div>
<script type="text/javascript">
//Resposnsive navigation menu script
const menuBtn = document.querySelector(".menu-btn");
const navigation = document.querySelector(".navigation");
menuBtn.addEventListener("click", () => {
menuBtn.classList.toggle("active");
navigation.classList.toggle("active");
});
</script>
</section>
<!-- Contact us Section -->
<section class="section2">
<div class="container reveal">
<h2>Thesis Title</h2>
<div class="cards">
<div class="text-card">
<h3>Engineering Excellence</h3>
<p>
<br />
<img src="thesis/images/2.jpg" class="image1" />
<br />
<br />
Thesis Info 1_1
<br />
<br />
Thesis Info 1_2
<br />
<br />
</p>
</div>
<div class="text-card">
<h3>Ignite Your Education Journey</h3>
<p>
<br />
<img src="thesis/images/3.jpg" class="image2" />
<br />
<br />
Thesis Info 2_1
<br />
<br />
Thesis Info 2_2
<br />
<br />
</p>
</div>
<div class="text-card">
<h3>Safety First, Always</h3>
<p>
<br />
<img src="thesis/images/4.jpg" class="image3" />
<br />
<br />
Thesis Info 3_1
<br />
<br />
Thesis Info 3_2
<br />
<br />
</p>
</div>
</div>
</div>
</section>
<!-- Section 3 Fading in on scroll, 3 text cards in a container, adjusts to window size -->
<section class="section3">
<div class="container reveal">
<h2>
Interested in UNSW Rocketry Thesis projects?
<br />
<br />
</h2>
<div class="cards">
<div class="text-card">
<a
href="https://www.unsw.edu.au/engineering/our-schools/mechanical-and-manufacturing-engineering/student-life/thesis"
class="read-more-button"
>Read More</a
>
</div>
</div>
</div>
</section>
<!-- Footer -->
<section
class="footer"
style="
background-color: #050505;
display: flex;
align-items: center;
justify-content: center;
"
>
<div
style="
text-align: center;
height: 50px;
color: #232323;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8em;
"
>
© Nicholas Piscioneri - UNSW Rocketry - 2023 - All Rights Reserved
</div>
</section>
</body>