File tree 3 files changed +17
-5
lines changed
3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
import Image from "next/image" ;
2
2
import Link from "next/link" ;
3
+ import { useEffect , useState } from 'react' ;
3
4
4
5
const 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
+
5
13
return (
6
14
< nav className = "flex justify-between items-center relative z-10" >
7
15
< Link href = "/" >
8
16
< 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 >
10
18
</ Link >
11
19
< div >
12
20
< 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 " >
14
22
< p className = "text-[0.6rem] text-[#C4C5C8]" > 01</ p >
15
23
< div > { "//" } about us</ div >
16
24
</ Link >
17
- < Link href = "# events" >
25
+ < Link href = "events" >
18
26
< p className = "text-[0.6rem] text-[#C4C5C8]" > 02</ p >
19
27
< div > { "//" } events</ div >
20
28
</ Link >
21
- < Link href = "# resources" >
29
+ < Link href = "resources" >
22
30
< p className = "text-[0.6rem] text-[#C4C5C8]" > 03</ p >
23
31
< div > { "//" } resources</ div >
24
32
</ Link >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const Sponsors = () => {
18
18
< div className = "max-w-[15rem]" >
19
19
< h2 className = "text-4xl font-black" > Our sponsors</ h2 >
20
20
< 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 >
22
22
</ div >
23
23
</ div >
24
24
< 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
+
1
5
export const diamondLinks : Record < string , string > [ ] = [
2
6
{
3
7
href : 'https://www.janestreet.com/' ,
You can’t perform that action at this time.
0 commit comments