Skip to content

Commit e987209

Browse files
committed
fixes error on home page pop up
fixed errors of home and members page pop up menu, fixed the recruiting section.
1 parent fc8ef9e commit e987209

6 files changed

Lines changed: 338 additions & 132 deletions

File tree

Members.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
<script src="https://cdn.tailwindcss.com"></script>
1010
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
1111

12+
<!-- Critical Helper: Defined in Head so inline 'onerror' can find it immediately -->
13+
<script>
14+
window.getImg = function(path) {
15+
if (!path) return '';
16+
// Cleans leading slashes to ensure paths work relative to the root in VS Code
17+
return path.startsWith('/') ? path.substring(1) : path;
18+
};
19+
</script>
20+
1221
<!-- Custom Shared Resources -->
1322
<link rel="stylesheet" href="css/style.css">
1423
<script src="js/common.js"></script>
@@ -100,8 +109,10 @@ <h5 class="member-header">Alumni</h5>
100109
</div>
101110
</div>
102111

103-
<!-- RECRUITMENT MODAL -->
104-
<div id="join-modal">
112+
<!-- RECRUITMENT MODAL
113+
Class 'member-popup' matches Section 13 in style.css to prevent collisions with index.html
114+
-->
115+
<div id="join-modal" class="member-popup">
105116
<div class="modal-content relative overflow-hidden">
106117
<button id="close-modal" class="absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors">
107118
<i class="fas fa-times text-xl"></i>

_site/Members.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
<script src="https://cdn.tailwindcss.com"></script>
1010
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
1111

12+
<!-- Critical Helper: Defined in Head so inline 'onerror' can find it immediately -->
13+
<script>
14+
window.getImg = function(path) {
15+
if (!path) return '';
16+
// Cleans leading slashes to ensure paths work relative to the root in VS Code
17+
return path.startsWith('/') ? path.substring(1) : path;
18+
};
19+
</script>
20+
1221
<!-- Custom Shared Resources -->
1322
<link rel="stylesheet" href="css/style.css">
1423
<script src="js/common.js"></script>
@@ -100,8 +109,10 @@ <h5 class="member-header">Alumni</h5>
100109
</div>
101110
</div>
102111

103-
<!-- RECRUITMENT MODAL -->
104-
<div id="join-modal">
112+
<!-- RECRUITMENT MODAL
113+
Class 'member-popup' matches Section 13 in style.css to prevent collisions with index.html
114+
-->
115+
<div id="join-modal" class="member-popup">
105116
<div class="modal-content relative overflow-hidden">
106117
<button id="close-modal" class="absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors">
107118
<i class="fas fa-times text-xl"></i>

_site/css/style.css

Lines changed: 70 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -248,26 +248,68 @@ img, video {
248248

249249

250250
/* ==========================================================================
251-
4. HOME PAGE SPECIFIC
251+
4. HOME PAGE MODAL (Triggered by .home-popup class)
252252
========================================================================== */
253-
#join-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 9999; }
254-
.modal-content { background: white; padding: 2.5rem; border-radius: 16px; max-width: 500px; width: 90%; position: relative; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.3); animation: popIn 0.3s ease-out; }
255-
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
256-
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: #777; cursor: pointer; transition: color 0.2s; }
253+
#join-modal {
254+
position: fixed;
255+
inset: 0;
256+
display: none;
257+
justify-content: center;
258+
align-items: center;
259+
z-index: 10000;
260+
padding: 20px;
261+
}
262+
263+
#join-modal.active {
264+
display: flex;
265+
}
266+
267+
/* Scoped specifically for Home Page version */
268+
#join-modal.home-popup {
269+
background-color: rgba(0, 0, 0, 0.5);
270+
}
271+
272+
#join-modal.home-popup .modal-content {
273+
background: white;
274+
padding: 2.5rem;
275+
border-radius: 16px;
276+
max-width: 500px;
277+
width: 90%;
278+
position: relative;
279+
text-align: center;
280+
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
281+
transform: scale(0.8);
282+
opacity: 0;
283+
transition: all 0.3s ease-out;
284+
}
285+
286+
#join-modal.home-popup.active .modal-content {
287+
transform: scale(1);
288+
opacity: 1;
289+
}
290+
291+
.close-modal {
292+
position: absolute;
293+
top: 15px;
294+
right: 20px;
295+
font-size: 1.8rem;
296+
color: #777;
297+
cursor: pointer;
298+
transition: color 0.2s;
299+
}
257300
.close-modal:hover { color: #333; }
258301

302+
/* Home Feature Boxes */
259303
.feature-box {
260304
background: white; padding: 2rem; text-align: center; border-radius: 8px;
261305
transition: all 0.3s ease; border: 1px solid #e5e7eb; height: 100%;
262306
display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
263307
text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
264308
}
265309

266-
/* Glowing Animation */
267310
@keyframes glowing {
268-
0% { box-shadow: 0 0 5px rgba(165, 180, 252, 0.4), 0 0 10px rgba(165, 180, 252, 0.2); border-color: #a5b4fc; }
269-
50% { box-shadow: 0 0 10px rgba(165, 180, 252, 0.8), 0 0 20px rgba(165, 180, 252, 0.4); border-color: #a5b4fc; }
270-
100% { box-shadow: 0 0 5px rgba(165, 180, 252, 0.4), 0 0 10px rgba(165, 180, 252, 0.2); border-color: #a5b4fc; }
311+
0% { box-shadow: 0 0 5px rgba(165, 180, 252, 0.4); border-color: #a5b4fc; }
312+
100% { box-shadow: 0 0 15px rgba(165, 180, 252, 0.7); border-color: #6366f1; }
271313
}
272314

273315
.feature-box:hover { transform: translateY(-5px); animation: glowing 1.5s infinite alternate ease-in-out; border-color: #a5b4fc; }
@@ -782,37 +824,41 @@ input:checked + .slider:before { transform: translateX(26px); }
782824
}
783825

784826
/* ==========================================================================
785-
13. MODAL & RECRUITMENT UI -- undergraduate Members
827+
13. MEMBERS PAGE MODAL (Triggered by .member-popup class)
786828
========================================================================== */
787829

788-
#join-modal {
789-
position: fixed;
790-
inset: 0;
830+
/* Scoped specifically for Members Page version */
831+
#join-modal.member-popup {
791832
background-color: rgba(0, 30, 60, 0.8);
792833
backdrop-filter: blur(8px);
793-
display: none;
794-
justify-content: center;
795-
align-items: center;
796-
z-index: 10000;
797-
padding: 20px;
798834
}
799835

800-
#join-modal.active { display: flex; }
801-
802-
.modal-content {
836+
#join-modal.member-popup .modal-content {
803837
background: white;
804838
padding: 2.5rem;
805839
border-radius: 24px;
806840
max-width: 500px;
807841
width: 100%;
808842
position: relative;
809843
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
844+
/* Different scale behavior for member page */
810845
transform: scale(0.9);
811846
opacity: 0;
812-
transition: all 0.3s ease;
847+
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
813848
}
814849

815-
#join-modal.active .modal-content {
850+
#join-modal.member-popup.active .modal-content {
816851
transform: scale(1);
817852
opacity: 1;
818-
}
853+
}
854+
855+
/* Modal Internal Elements */
856+
.close-modal-icon {
857+
position: absolute;
858+
top: 1.5rem;
859+
right: 1.5rem;
860+
cursor: pointer;
861+
color: #94a3b8;
862+
transition: color 0.2s;
863+
}
864+
.close-modal-icon:hover { color: #1e293b; }

0 commit comments

Comments
 (0)