Skip to content

Commit ecf866e

Browse files
committed
CW2-5 Request Changes
1 parent 22aa9dc commit ecf866e

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
import Image from "next/image";
22
import Link from "next/link";
3+
import { useEffect, useState } from 'react';
34

45
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+
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>

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
<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)]`}>

public/data/data.ts

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

0 commit comments

Comments
 (0)