Skip to content

Commit 926342a

Browse files
committed
add links
1 parent d0d306c commit 926342a

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

components/About/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Image from "next/image";
22

33
const About = () => {
44
return (
5-
<section className="py-8 xl:px-24 px-10">
5+
<section className="py-8 xl:px-24 px-10" id="about">
66
<div className="text-center my-10">
77
<p className="text-[#3977F8] font-game text-xl">01</p>
88
<h1 className="font-bold text-6xl">ABOUT</h1>

components/Landing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Navbar from "../Navbar";
22

33
const Landing = () => {
44
return (
5-
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5">
5+
<section className="flex flex-col min-h-screen justify-between py-8 xl:px-24 md:px-10 px-5" id="landing">
66
<Navbar />
77
<div className="flex justify-between items-end">
88
<div>

components/Navbar.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
import Image from "next/image";
2+
import Link from "next/link";
23

34
const Navbar = () => {
45
return (
56
<nav className="flex justify-between items-center">
6-
<div>
7+
<Link href="#landing">
78
<Image src="/assets/csesoc_logo.svg" alt="CSESoc Logo" width={200} height={200} draggable={false} />
89
<p className="mt-3 text-xs">C:\INTERNAL STRUCTURE\HOME</p>
9-
</div>
10+
</Link>
1011
<div>
1112
<div className="md:flex xl:gap-36 lg:gap-20 md:gap-10 text-right font-bold hidden">
12-
<div>
13+
<Link href="#about">
1314
<p className="text-[0.6rem] text-[#C4C5C8]">01</p>
1415
<div>{"//"} about us</div>
15-
</div>
16-
<div>
16+
</Link>
17+
<Link href="#events">
1718
<p className="text-[0.6rem] text-[#C4C5C8]">02</p>
1819
<div>{"//"} events</div>
19-
</div>
20-
<div>
20+
</Link>
21+
<Link href="#resources">
2122
<p className="text-[0.6rem] text-[#C4C5C8]">03</p>
2223
<div>{"//"} resources</div>
23-
</div>
24-
<div>
24+
</Link>
25+
<Link href="#sponsors">
2526
<p className="text-[0.6rem] text-[#C4C5C8]">04</p>
2627
<div>{"//"} sponsors</div>
27-
</div>
28+
</Link>
2829
</div>
2930
</div>
3031
</nav>

styles/globals.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
html, body {
6+
scroll-behavior: smooth;
7+
}
58

69
body {
710
color: white;

0 commit comments

Comments
 (0)