forked from NicholasPiscioneri/unswrocketry.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact.html
148 lines (135 loc) · 4.16 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UNSW Rocketry - Contact</title>
<link rel="stylesheet" href="contact.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="contact/images/1.jpg" />
</div>
<div class="content active">
<h1><br /><span>Contact Us</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>
If you have any questions or want to learn more – or if you are
interested in starting a relationship with us, please get in touch.
<br />
<br />
</h2>
<div class="cards">
<div class="text-card">
<a href="mailto:[email protected]">EMAIL</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>