Skip to content

Commit 84552c3

Browse files
virajbhartiyaamandeeep02RahilKothari9Shreyaa-Mishraatkshsbcue
authored
add faq (#121)
* update: update gun rotation (#117) * fix: footer svg path * update: update hack8 with master (#111) * feat: add gun rotation * feat: add built files * fix: gun rotation logic --------- Co-authored-by: Rahil Kothari <kotharirahil9@gmail.com> * Page faq (#120) * feat: add FAQ page * Added Hyperlink and Updated FAQs * Added FAQs in the navbar * style: update FAQ styles for improved layout and readability; add divider image * style: enhance navigation and FAQ styles; adjust font sizes and add animation delays * style: improve FAQ layout and navigation spacing; enhance readability and visual appeal * fix: changes to faq.css for better view * style: enhance hero section parallax effect and improve FAQ styles for better readability --------- Co-authored-by: tkshsbcue <kumar.tanay@somaiya.edu> Co-authored-by: Viraj Bhartiya <vlbhartiya@gmail.com> --------- Co-authored-by: Amandeep Singh <145058235+amandeeep02@users.noreply.github.com> Co-authored-by: Rahil Kothari <kotharirahil9@gmail.com> Co-authored-by: Shreyaa-Mishraa <143896824+Shreyaa-Mishraa@users.noreply.github.com> Co-authored-by: tkshsbcue <kumar.tanay@somaiya.edu>
1 parent 592276e commit 84552c3

19 files changed

Lines changed: 893 additions & 415 deletions
1.27 MB
Loading
364 KB
Loading

2025/src/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import FlashBack from "./sections/flashback"
66
import Prizes from "./sections/prizes"
77
import Sponsor from "./sections/sponsor/sponsor"
88
import StatsPage from "./sections/stats/stats.jsx"
9+
import FAQ from "./sections/faq.jsx" // Change to uppercase
910
import { clarity } from 'react-microsoft-clarity'
1011

1112
function App() {
@@ -16,13 +17,12 @@ function App() {
1617
<About />
1718
<StatsPage/>
1819
<FlashBack />
20+
<FAQ/>
1921
<Prizes />
2022
<Sponsor />
2123
<Footer />
2224
</div>
2325
)
2426
}
2527

26-
export default App
27-
28-
28+
export default App

2025/src/components/Navigation.css

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ a:active, a:focus {
250250
.nav-links li {
251251
transform: skewY(12deg) translateX(50px);
252252
width: 100%;
253-
margin-bottom: 0.5rem;
253+
margin-bottom: 1.5rem; /* Increased from 0.5rem to add more vertical spacing */
254254
opacity: 0;
255255
/* No transitions */
256256
transition: none;
@@ -270,6 +270,7 @@ a:active, a:focus {
270270
.nav-links.active li:nth-child(4) { animation-delay: 0.45s; }
271271
.nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
272272
.nav-links.active li:nth-child(6) { animation-delay: 0.55s; }
273+
.nav-links.active li:nth-child(7) { animation-delay: 0.6s; } /* Added delay for Flashbacks item */
273274

274275
@keyframes menuItemAppear {
275276
0% {
@@ -300,6 +301,7 @@ a:active, a:focus {
300301
will-change: opacity, backdrop-filter;
301302
/* Force hidden initially */
302303
display: none;
304+
margin-top: 10px; /* Added vertical spacing */
303305
}
304306

305307
.menu-overlay.active {
@@ -311,6 +313,7 @@ a:active, a:focus {
311313
/* Show when active */
312314
display: block;
313315
animation-delay: 0s; /* Ensure overlay starts immediately */
316+
padding-top: 15px; /* Added vertical padding for more spacing */
314317
}
315318

316319
/* Non-active overlay gets hidden animation */
@@ -376,29 +379,21 @@ a:active, a:focus {
376379
width: 100%;
377380
transform: skewX(-5deg);
378381
text-align: center;
379-
transition: color 0.2s ease;
382+
transition: all 0.3s ease;
380383
}
381384

382385
.hero__nav a:active {
383386
color: #fff !important;
384387
}
385388

386-
.hero__nav li.hovered::before {
387-
transform: scaleY(0);
389+
.hero__nav li.hovered a {
390+
color: #fff;
391+
transform: translateY(-2px) skewX(-5deg);
392+
text-shadow: 0 0 8px #ffff00, 0 0 12px #ffff00, 0 0 16px #ffff00;
393+
transition: all 0.3s ease, text-shadow 0.5s ease;
394+
will-change: transform, text-shadow;
388395
}
389396

390-
.hero__nav li.hovered::after {
391-
opacity: 0;
392-
}
393-
394-
.hero__nav li a:hover {
395-
color: #000;
396-
}
397-
398-
.nav-logo img:hover {
399-
transform: none;
400-
}
401-
402397
.hero__nav li::before,
403398
.hero__nav li::after {
404399
display: none;
@@ -464,9 +459,10 @@ a:active, a:focus {
464459
transform: translateY(0);
465460
}
466461
100% {
467-
transform: translateY(-5px);
462+
transform: translateY(-10px); /* Increased from -5px to -10px for more vertical movement */
468463
}
469464
}
465+
470466
/* Black and white overlay effect */
471467
.menu-overlay {
472468
position: fixed;
@@ -481,13 +477,15 @@ a:active, a:focus {
481477
transition: opacity 0.4s ease, visibility 0.4s ease;
482478
backdrop-filter: grayscale(0%);
483479
pointer-events: none;
480+
margin-top: 10px; /* Added vertical spacing */
484481
}
485482

486483
.menu-overlay.active {
487484
opacity: 1;
488485
visibility: visible;
489486
pointer-events: auto;
490487
animation: fadeToBlackAndWhite 0.5s forwards;
488+
padding-top: 15px; /* Added vertical padding for more spacing */
491489
}
492490

493491
@keyframes fadeToBlackAndWhite {

2025/src/components/Navigation.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ const Navigation = ({ style }) => {
162162
className={hoveredItem === 5 ? 'hovered' : ''}
163163
onMouseEnter={() => handleMouseEnter(5)}
164164
onMouseLeave={handleMouseLeave}
165+
>
166+
<a href="#faq" onClick={(e) => handleNavClick(e, '#faq')}>FAQ</a>
167+
</li>
168+
<li
169+
className={hoveredItem === 6 ? 'hovered' : ''}
170+
onMouseEnter={() => handleMouseEnter(6)}
171+
onMouseLeave={handleMouseLeave}
165172
>
166173
<a href="#flashbacks" onClick={(e) => handleNavClick(e, '#flashbacks')}>Flashbacks</a>
167174
</li>

0 commit comments

Comments
 (0)