Skip to content

Commit bd09da9

Browse files
committed
giving day changes + small changes
1. made popup on the home page, with corresponding css changes 2. added a photo for the popup 3. fixed what_is_fsae page to properly showcase background photo 4. added kendrick as drivetrain lead onto leadership
1 parent 6f5e0e3 commit bd09da9

File tree

5 files changed

+157
-28
lines changed

5 files changed

+157
-28
lines changed

Leadership.html

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ <h3 class ="member_title">Mechanical Technical Project Manager</h3>
263263
<!--list of names here-->
264264

265265
<p class ="lead_name"> <b>Aly Chang</b> <em>Manufacturing Lead</em></p>
266-
266+
<p class ="lead_name"><b>Aidan Lee</b> <em>Chassis Lead</em></p>
267267

268268

269269
</div>
@@ -272,46 +272,24 @@ <h3 class ="member_title">Mechanical Technical Project Manager</h3>
272272

273273

274274
<p class ="lead_name"> <b>Christian Reyes-Moreno</b> <em>Welding Lead</em></p>
275-
276-
277-
</div>
278-
279-
<div class = "item">
280-
<!--list of names here-->
281-
282-
<p class ="lead_name"><b>Aidan Lee</b> <em>Chassis Lead</em></p>
283-
284-
285-
286-
287-
</div>
288-
<div class = "item">
289-
<!--list of names here-->
290-
291275
<p class ="lead_name"><b>Colton Rogalski </b> <em>Vehicle Dynamics & Suspension Lead</em></p>
292276

293277

294-
295-
296278
</div>
279+
297280
<div class = "item">
298281
<!--list of names here-->
299282

300283

301284
<p class ="lead_name"> <b>Justin Judge </b> <em>Ergonomics Lead</em></p>
285+
<p class ="lead_name"> <b>Kendrick Ng </b> <em>Drivetrain Lead</em></p>
302286

303287

304288

305289
</div>
306290

307291

308292
</div>
309-
310-
311-
312-
313-
314-
315293

316294

317295
<script>

fs_team_cornucopia.jpg

6.22 MB
Loading

home_page.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,95 @@ h2 {
262262
z-index: 2;
263263
}
264264

265+
/* START OF GIVING DAY ADDITIONS -Sritha*/
266+
267+
268+
/* Hidden class to hide the popup */
269+
.hidden {
270+
display: none;
271+
visibility: hidden;
272+
273+
}
274+
275+
/* Popup styles */
276+
.popup {
277+
position: fixed;
278+
top: 0;
279+
left: 0;
280+
width: 100%;
281+
height: 100%;
282+
background: rgba(0, 0, 0, 0.5);
283+
display: flex;
284+
justify-content: center;
285+
align-items: center;
286+
z-index: 1000;
287+
text-align: center;
288+
}
289+
290+
/* Popup content */
291+
.popup-content {
292+
background: #1B263B;
293+
padding: 20px;
294+
border-radius: 10px;
295+
display: flex;
296+
flex-direction: column;
297+
justify-content: center;
298+
align-items: center;
299+
text-align: center;
300+
width: 70%;
301+
margin: 2% 2% 2% 2%;
302+
position: relative;
303+
}
304+
305+
.popup-content a:link {
306+
color: #f2e505;
307+
}
308+
309+
.popup-content a:hover {
310+
opacity: 0.5;
311+
transition: opacity 0.5s ease;
312+
}
313+
314+
315+
.popup-content a:visited {
316+
text-decoration: none;
317+
color: #f2e505;
318+
}
319+
320+
321+
322+
.giving_title {
323+
font-family: scandia-web;
324+
color: #e6e6e6;
325+
font-size: 2.5em; /* Adjust the font size as needed */
326+
text-align: center; /* Centers the title */
327+
width: 100%; /* Ensures full width */
328+
margin: 0 auto 10px auto; /* Centered with space below */
329+
}
330+
331+
.giving_desc {
332+
font-family: titillium-web;
333+
font-size: 1.25em; /* Adjust the font size as needed */
334+
text-align: center; /* Ensures description is centered */
335+
line-height: 1.5;
336+
color: #e6e6e6;
337+
338+
opacity: 0.9; /* Optional for softer text */
339+
}
340+
341+
342+
/* Close button */
343+
.close {
344+
position: absolute;
345+
top: 10px;
346+
right: 10px;
347+
font-size: 20px;
348+
cursor: pointer;
349+
color: #e6e6e6;
350+
351+
}
352+
/* END OF GIVING DAY ADDITIONS -SRITHA*/
353+
265354
.team_pic {
266355
flex: 0 0 40%;
267356
overflow: hidden;

home_page.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,27 @@ <h3 class="never_has_there">Never Has There Been a Faster Slug</h3>
8181
</div>
8282
</div>
8383

84+
<!--GIVING DAY ADDITIONS START HERE -->
85+
<button id="openPopup">Open Popup</button>
86+
87+
<!-- The Popup -->
88+
<div id="popup" class="popup hidden">
89+
<div class="popup-content">
90+
<span id="closePopup" class="close">&times;</span>
91+
<h3 class="giving_title">Giving Day is Here!</h3>
92+
<img src="fs_team_cornucopia.jpg" width="40%">
93+
<p class="giving_desc"> Giving Day is a 24-hour fundraising event for organizations at UC Santa Cruz, and we’re excited to be a part of it! <br>
94+
This event is extremely important to the future of our club. Giving Day has historically been our largest source of funding, and it is this support that makes our project possible. Our fundraising goal for this year is 20 thousand dollars, between community donations and event challenges.
95+
96+
The money raised during Giving Day is the difference between having a basic, rules-passing car, or one that we’re able to take to the next level and incrementally improve on a year-by-year basis.<br>
97+
<b>Even a small donation, starting at $5, can make a huge difference for our team! </b>
98+
<br> If you’d like to help, here’s the link to donate: <a href="https://give.ucsc.edu/giving-day-2024/?a=8831002" target="_blank">Formula Slug Giving Day</a> Thank you so much for considering!
99+
</p>
100+
</div>
101+
</div>
102+
103+
<!--END OF GIVING DAY ADDITIONS -->
104+
84105
<div class="main-section">
85106
<h2>What is Formula Slug?</h2>
86107
<p class = "p1">In Formula Slug, we pride ourselves on inclusivity, learning, and teamwork. We work together, designing and building a formula-style racing car. As a team, we maintain a high standard for engineering excellence and innovation. Our dedication to continuous learning, inclusive processes, and embracing challenges as opportunities for growth provides an environment where students can practice hands-on electrical and mechanical engineering, as well as manufacturing and business-related skills. Through collaboration and teamwork, we utilize our collective strengths to achieve our yearly design goals and drive towards a cleaner transportation future through hands-on engineering practice. Together, we strive to push the boundaries of automotive engineering and prepare the next generation of leaders in industry and research.</p>
@@ -117,6 +138,47 @@ <h2>Brief History</h2>
117138

118139
</script>
119140

141+
<!--START OF GIVING DAY SCRIPT-->
142+
<script>
143+
document.addEventListener("DOMContentLoaded", () => {
144+
145+
146+
// Get the elements
147+
const openPopup = document.getElementById('openPopup');
148+
const closePopup = document.getElementById('closePopup');
149+
const popup = document.getElementById('popup');
150+
151+
if (!openPopup || !closePopup || !popup) {
152+
console.error("Some elements could not be found!");
153+
return;
154+
}
155+
156+
popup.classList.remove('hidden');
157+
158+
if (!sessionStorage.getItem('popupShown')) {
159+
// If not, show the popup
160+
popup.classList.remove('hidden');
161+
sessionStorage.setItem('popupShown', 'true'); // Mark it as shown
162+
}
163+
164+
// Event listener for closing the popup
165+
closePopup.addEventListener('click', (e) => {
166+
console.log("Closing popup..."); // Debugging log
167+
popup.classList.add('hidden'); // Hide the popup
168+
e.stopPropagation(); // Prevent event from bubbling up
169+
});
170+
171+
// Close popup if clicked outside
172+
window.addEventListener('click', (e) => {
173+
if (e.target === popup) {
174+
console.log("Closing popup due to background click..."); // Debugging log
175+
popup.classList.add('hidden'); // Hide the popup
176+
}
177+
});
178+
});
179+
</script>
180+
<!--END OF GIVING DAY SCRIPT-->
181+
120182

121183
</body>
122184

what_is_FSAE.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ nav {
109109
}
110110

111111
.nav li .logo {
112-
display: none; /* Optionally hide the logo on mobile */
112+
display: none;
113113
}
114114
}
115115

@@ -136,7 +136,7 @@ p {
136136
.fsae_electric_pic {
137137
top: 10%;
138138
width: 100%;
139-
height: 700px;
139+
height: 100vh;
140140
background-image: url(what_is_fsae.jpg);
141141
background-repeat: no-repeat;
142142
background-size: cover;
@@ -165,7 +165,7 @@ p {
165165
.fsae_comp {
166166
position: relative;
167167
z-index: 50;
168-
margin-top: 50vh;
168+
margin-top: 80vh;
169169
background-color: #141624;
170170
color: #e6e6e6;
171171
}

0 commit comments

Comments
 (0)