Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e5962d

Browse files
committed
CW2-5 Request Changes
1 parentda4b156 commit6e5962d

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

‎components/Navbar.tsx‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
importImagefrom"next/image";
22
importLinkfrom"next/link";
3+
import{useEffect,useState}from'react';
34

45
constNavbar=()=>{
6+
const[path,setPath]=useState<String>('');
7+
useEffect(()=>{
8+
letitem:string=window.location.href.split("/").pop()!;
9+
if(item==''||item==undefined)setPath('HOME');
10+
elsesetPath(item.toUpperCase());
11+
})
12+
513
return(
614
<navclassName="flex justify-between items-center relative z-10">
715
<Linkhref="/">
816
<Imagesrc="/assets/csesoc_logo.svg"alt="CSESoc Logo"width={200}height={200}draggable={false}/>
9-
<pclassName="mt-3 text-xs">C:\INTERNAL STRUCTURE\HOME</p>
17+
<pclassName="mt-3 text-xs">C:\INTERNAL STRUCTURE\{path}</p>
1018
</Link>
1119
<div>
1220
<divclassName="md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden">
13-
<Linkhref="#about">
21+
<Linkhref="about us">
1422
<pclassName="text-[0.6rem] text-[#C4C5C8]">01</p>
1523
<div>{"//"} about us</div>
1624
</Link>
17-
<Linkhref="#events">
25+
<Linkhref="events">
1826
<pclassName="text-[0.6rem] text-[#C4C5C8]">02</p>
1927
<div>{"//"} events</div>
2028
</Link>
21-
<Linkhref="#resources">
29+
<Linkhref="resources">
2230
<pclassName="text-[0.6rem] text-[#C4C5C8]">03</p>
2331
<div>{"//"} resources</div>
2432
</Link>

‎components/Sponsors/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Sponsors = () => {
1818
<divclassName="max-w-[15rem]">
1919
<h2className="text-4xl font-black">Our sponsors</h2>
2020
<pclassName="xl:my-10 my-3 text-lg">Check out our very cool sponsors.</p>
21-
<buttonclassName="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10">View our sponsors</button>
21+
<ahref="sponsors"><buttonclassName="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
<divclassName={`${firstRowBoxesStyling} bg-[rgba(0, 71, 255, 0.33)]`}>

‎public/data/data.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
exportconstsponsorInfo:Record<string,string>[]=[
2+
{}
3+
];
4+
15
exportconstdiamondLinks:Record<string,string>[]=[
26
{
37
href:'https://www.janestreet.com/',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp