Skip to content

Commit 78d29e0

Browse files
committed
refactor: restructure navigation and add resources page
1 parent c85d705 commit 78d29e0

File tree

5 files changed

+58
-23
lines changed

5 files changed

+58
-23
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Metadata } from "next";
22
import { ComingSoon } from "@/components/sections/coming-soon";
33
import { siteConfig } from "@/lib/config";
44

5-
const title = "Contact Us";
6-
const description = "Get in touch with the ALPHA Chapter at the University of Hong Kong.";
5+
const title = "Our Work";
6+
const description =
7+
"Discover the projects and initiatives by the ALPHA Chapter at the University of Hong Kong.";
78

89
export const metadata: Metadata = {
910
title,
@@ -28,7 +29,7 @@ export const metadata: Metadata = {
2829
},
2930
};
3031

31-
export default function ContactUs() {
32+
export default function OurWork() {
3233
return (
3334
<>
3435
<ComingSoon />

src/app/resources/page.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { Metadata } from "next";
2+
import { ComingSoon } from "@/components/sections/coming-soon";
3+
import { siteConfig } from "@/lib/config";
4+
5+
const title = "Resources";
6+
const description =
7+
"Find useful resources and materials from the ALPHA Chapter at the University of Hong Kong.";
8+
9+
export const metadata: Metadata = {
10+
title,
11+
description,
12+
openGraph: {
13+
title,
14+
description,
15+
images: [
16+
{
17+
url: siteConfig.seoImage,
18+
width: 882,
19+
height: 802,
20+
alt: title,
21+
},
22+
],
23+
},
24+
twitter: {
25+
card: "summary_large_image",
26+
title,
27+
description,
28+
images: [siteConfig.seoImage],
29+
},
30+
};
31+
32+
export default function Resources() {
33+
return (
34+
<>
35+
<ComingSoon />
36+
</>
37+
);
38+
}

src/app/sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { MetadataRoute } from "next";
22

33
export default function sitemap(): MetadataRoute.Sitemap {
4-
const staticRoutes = ["", "/about-us", "/blog", "/event", "/join-us"];
4+
const staticRoutes = ["", "/about-us", "/blog", "/upcoming-event", "/join-us", "/our-work", "/resources"];
55

66
const siteUrl = process.env.SITE_URL;
77

src/components/layout/header.tsx

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
NavigationMenuList,
99
} from "@/components/ui/navigation-menu";
1010
import { ModeToggle } from "@/components/features/theme/mode-toggle";
11-
import { Menu } from "lucide-react";
11+
import { Menu, Mail } from "lucide-react";
1212
import { FaLinkedin } from "react-icons/fa";
1313
import { SiGithub, SiInstagram } from "@icons-pack/react-simple-icons";
1414
import Link from "next/link";
@@ -21,8 +21,10 @@ import { useState } from "react";
2121
const navLinks = [
2222
{ href: "/", label: "Home" },
2323
{ href: "/about-us", label: "About Us" },
24-
{ href: "/event", label: "Event" },
24+
{ href: "/upcoming-event", label: "Upcoming Event" },
2525
{ href: "/blog", label: "Blog" },
26+
{ href: "/our-work", label: "Our Work" },
27+
{ href: "/resources", label: "Resources" },
2628
];
2729

2830
export function Header() {
@@ -35,7 +37,7 @@ export function Header() {
3537
>
3638
<div className="sticky top-0 z-[var(--z-header)]">
3739
<header className="w-full border-b border-border/40 bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/60">
38-
<div className="container flex h-16 max-w-full items-center justify-between px-4 md:px-6">
40+
<div className="container flex h-16 max-w-full items-center justify-between px-4 lg:px-6">
3941
<div className="flex items-center gap-6">
4042
<Link
4143
href="/"
@@ -50,7 +52,7 @@ export function Header() {
5052
/>
5153
<span className="font-semibold">ALPHA HKU</span>
5254
</Link>
53-
<nav className="hidden md:flex items-center gap-6 text-sm">
55+
<nav className="hidden lg:flex items-center gap-6 text-sm">
5456
<NavigationMenu>
5557
<NavigationMenuList>
5658
{navLinks.map((link) => (
@@ -78,13 +80,7 @@ export function Header() {
7880
>
7981
Join Us
8082
</a>
81-
<a
82-
href={`mailto:${siteConfig.email}`}
83-
className="hidden sm:block"
84-
>
85-
Contact Us
86-
</a>
87-
<div className="hidden md:flex items-center gap-4">
83+
<div className="hidden lg:flex items-center gap-4">
8884
<a
8985
href={siteConfig.github}
9086
target="_blank"
@@ -109,13 +105,19 @@ export function Header() {
109105
>
110106
<FaLinkedin size={18} />
111107
</a>
108+
<a
109+
href={`mailto:${siteConfig.email}`}
110+
aria-label="Email"
111+
>
112+
<Mail size={18} />
113+
</a>
112114
</div>
113115
<ModeToggle />
114116
<CollapsibleTrigger asChild>
115117
<Button
116118
variant="ghost"
117119
size="icon"
118-
className="md:hidden"
120+
className="lg:hidden"
119121
>
120122
<Menu className="h-5 w-5" />
121123
<span className="sr-only">Toggle menu</span>
@@ -138,7 +140,7 @@ export function Header() {
138140
className="overflow-hidden"
139141
>
140142
<div className="border-b border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80">
141-
<div className="container px-4 md:px-6 py-4">
143+
<div className="container px-4 lg:px-6 py-4">
142144
<nav className="grid gap-4 text-sm">
143145
{navLinks.map((link) => (
144146
<Link
@@ -161,12 +163,6 @@ export function Header() {
161163
>
162164
Join Us
163165
</Link>
164-
<a
165-
href={`mailto:${siteConfig.email}`}
166-
className="hover:text-foreground/80"
167-
>
168-
Contact Us
169-
</a>
170166
</nav>
171167
</div>
172168
</div>

0 commit comments

Comments
 (0)