File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 11import Image from "next/image" ;
22import Link from "next/link" ;
3+ import { useEffect , useState } from 'react' ;
34
45const Navbar = ( ) => {
6+ const [ path , setPath ] = useState < String > ( '' ) ;
7+ useEffect ( ( ) => {
8+ let item :string = window . location . href . split ( "/" ) . pop ( ) ! ;
9+ if ( item == '' || item == undefined ) setPath ( 'HOME' ) ;
10+ else setPath ( item . toUpperCase ( ) ) ;
11+ } )
12+
513 return (
614 < nav className = "flex justify-between items-center relative z-10" >
715 < Link href = "/" >
816 < Image src = "/assets/csesoc_logo.svg" alt = "CSESoc Logo" width = { 200 } height = { 200 } draggable = { false } />
9- < p className = "mt-3 text-xs" > C:\INTERNAL STRUCTURE\HOME </ p >
17+ < p className = "mt-3 text-xs" > C:\INTERNAL STRUCTURE\{ path } </ p >
1018 </ Link >
1119 < div >
1220 < div className = "md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden" >
13- < Link href = "# about" >
21+ < Link href = "about us " >
1422 < p className = "text-[0.6rem] text-[#C4C5C8]" > 01</ p >
1523 < div > { "//" } about us</ div >
1624 </ Link >
17- < Link href = "# events" >
25+ < Link href = "events" >
1826 < p className = "text-[0.6rem] text-[#C4C5C8]" > 02</ p >
1927 < div > { "//" } events</ div >
2028 </ Link >
21- < Link href = "# resources" >
29+ < Link href = "resources" >
2230 < p className = "text-[0.6rem] text-[#C4C5C8]" > 03</ p >
2331 < div > { "//" } resources</ div >
2432 </ Link >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const Sponsors = () => {
1818 < div className = "max-w-[15rem]" >
1919 < h2 className = "text-4xl font-black" > Our sponsors</ h2 >
2020 < p className = "xl:my-10 my-3 text-lg" > Check out our very cool sponsors.</ p >
21- < button className = "bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10" > View our sponsors</ button >
21+ < a href = "sponsors" > < button className = "bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10" > View our sponsors</ button > </ a >
2222 </ div >
2323 </ div >
2424 < div className = { `${ firstRowBoxesStyling } bg-[rgba(0, 71, 255, 0.33)]` } >
Original file line number Diff line number Diff line change 1+ export const sponsorInfo : Record < string , string > [ ] = [
2+ { }
3+ ] ;
4+
15export const diamondLinks : Record < string , string > [ ] = [
26 {
37 href : 'https://www.janestreet.com/' ,
You can’t perform that action at this time.
0 commit comments