-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,203 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"use client"; | ||
|
||
import React, {useEffect, useRef } from "react"; | ||
import React, { useEffect, useRef } from "react"; | ||
import styles from "./contact.module.scss"; | ||
|
||
import Grid from "@/components/Landing/Grid/Grid"; | ||
|
@@ -29,23 +29,25 @@ import RegBtn from "@/components/Landing/Navbar/RegBtn/RegBtn"; | |
import CursorEffect from "@/components/CursorEffect/CursorEffect"; | ||
|
||
export default function ContactUs() { | ||
|
||
const contactCardRef = useRef<HTMLDivElement>(null); | ||
const contactCard1Ref = useRef<HTMLDivElement>(null); | ||
|
||
useEffect(() => { | ||
|
||
if (!localStorage.getItem('hasReloaded')) { | ||
localStorage.setItem('hasReloaded', 'true'); | ||
if (!localStorage.getItem("hasReloaded")) { | ||
localStorage.setItem("hasReloaded", "true"); | ||
window.location.reload(); | ||
} | ||
|
||
const container = contactCardRef.current; | ||
const container1 = contactCard1Ref.current; | ||
|
||
if (container && container1) { | ||
const cards = Array.from(container.querySelectorAll(".card")) as HTMLElement[]; | ||
const cards1 = Array.from(container1.querySelectorAll(".card")) as HTMLElement[]; | ||
const cards = Array.from( | ||
container.querySelectorAll(".card") | ||
) as HTMLElement[]; | ||
const cards1 = Array.from( | ||
container1.querySelectorAll(".card") | ||
) as HTMLElement[]; | ||
|
||
if (cards.length > 0) { | ||
const cardCount = cards.length; | ||
|
@@ -191,9 +193,9 @@ export default function ContactUs() { | |
}, []); | ||
|
||
const handleBackButtonClick = () => { | ||
localStorage.removeItem('hasReloaded'); | ||
localStorage.removeItem("hasReloaded"); | ||
}; | ||
|
||
return ( | ||
<> | ||
<PrePreloader /> | ||
|
@@ -278,17 +280,19 @@ export default function ContactUs() { | |
</svg> | ||
</div> | ||
|
||
<div className={styles.cardContainer} id="contactCard" ref={contactCardRef}> | ||
<div | ||
className={styles.cardContainer} | ||
id="contactCard" | ||
ref={contactCardRef} | ||
> | ||
<div className={`${styles.first} card`}> | ||
<ContactCard | ||
name="Jaiditya Singh" | ||
img={jaiditya} | ||
dept1="Logistics and" | ||
dept2="Operations" | ||
// contact="tel:+919168421199" | ||
contact={null} | ||
// mail="mailto:[email protected]" | ||
mail={null} | ||
contact="tel:+919168421199" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
|
||
|
@@ -331,25 +335,25 @@ export default function ContactUs() { | |
img={rijul} | ||
dept1="Reception and" | ||
dept2="Accommodation" | ||
// contact="tel:+919811529877" | ||
contact={null} | ||
// mail="mailto:[email protected]" | ||
mail={null} | ||
contact="tel:+919811529877" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className={styles.cardContainer1} id="contactCard1" ref={contactCard1Ref}> | ||
<div | ||
className={styles.cardContainer1} | ||
id="contactCard1" | ||
ref={contactCard1Ref} | ||
> | ||
<div className={`${styles.first} card`}> | ||
<ContactCard | ||
name="Shreyansh Vanjani" | ||
img={shreyansh} | ||
dept1="Publicity and" | ||
dept2="Collaborations" | ||
//contact="tel:+918000695988" | ||
contact={null} | ||
// mail="mailto:[email protected]" | ||
mail={null} | ||
contact="tel:+918000695988" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
|
||
|
@@ -359,10 +363,8 @@ export default function ContactUs() { | |
img={ahan} | ||
dept1="President," | ||
dept2="Students' Union" | ||
// contact="tel:+9180050 00213" | ||
contact={null} | ||
// mail="mailto:[email protected]" | ||
mail={null} | ||
contact="tel:+9180050 00213" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
|
||
|
@@ -372,10 +374,8 @@ export default function ContactUs() { | |
img={aryankhorana} | ||
dept1="General Secretary," | ||
dept2="Students' Union" | ||
// contact="tel:+917078879443" | ||
contact={null} | ||
// mail="mailto:[email protected]" | ||
mail={null} | ||
contact="tel:+917078879443" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -416,44 +416,44 @@ export default function ContactUs() { | |
img={jaiditya} | ||
dept1="Logistics and" | ||
dept2="Operations" | ||
contact={null} | ||
mail={null} | ||
contact="tel:+919168421199" | ||
mail="mailto:[email protected]" | ||
/> | ||
|
||
<ContactCard | ||
name="Rijul Bassamboo" | ||
img={rijul} | ||
dept1="Reception and" | ||
dept2="Accommodation" | ||
contact={null} | ||
mail={null} | ||
contact="tel:+919811529877" | ||
mail="mailto:[email protected]" | ||
/> | ||
|
||
<ContactCard | ||
name="Shreyansh Vanjani" | ||
img={shreyansh} | ||
dept1="Publicity and" | ||
dept2="Collaborations" | ||
contact={null} | ||
mail={null} | ||
contact="tel:+918000695988" | ||
mail="mailto:[email protected]" | ||
/> | ||
|
||
<ContactCard | ||
name="Ahan Bansal" | ||
img={ahan} | ||
dept1="President," | ||
dept2="Students' Union" | ||
contact={null} | ||
mail={null} | ||
contact="tel:+9180050 00213" | ||
mail="mailto:[email protected]" | ||
/> | ||
|
||
<ContactCard | ||
name="Aryan Khorana" | ||
img={aryankhorana} | ||
dept1="General Secretary," | ||
dept2="Students' Union" | ||
contact={null} | ||
mail={null} | ||
contact="tel:+917078879443" | ||
mail="mailto:[email protected]" | ||
/> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.