Skip to content

Commit 5deae87

Browse files
committed
Metadata adjustments
- Fixed favicon not showing up - Added title and description to all pages - Vertically-centered the theme button
1 parent a69214e commit 5deae87

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
lines changed

src/app/(frontend)/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function Navbar() {
207207
style={{
208208
padding: "0.5rem",
209209
marginLeft: "0.5rem",
210-
marginTop: "7px",
210+
marginTop: "0px",
211211
borderRadius: "12px",
212212
// Button background: dark mode = #7E57C2 (button), light = #5f249f (purple)
213213
background: isDark ? "#7E57C2" : "#5f249f",

src/app/(frontend)/events/page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import { getPayload } from "payload";
22
import config from "@/payload.config";
33
import Banner from "../components/Banner";
44
import EventDropdown from "../components/EventDropdown";
5-
import type { Event, Media } from '../../../payload-types'; // adjust path to your generated types
5+
import type { Event, Media } from '../../../payload-types';
6+
import { Metadata } from "next";
7+
8+
export const metadata: Metadata = {
9+
title: "Events | Rainbow Engineering",
10+
description: "Events at Rainbow Engineering - Stay updated with our latest events and activities.",
11+
};
612

713
function formatDate(dateString: string) {
814
const date = new Date(dateString);

src/app/(frontend)/initiatives/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import { getPayload } from "payload";
33
import config from "@/payload.config";
44
import type { Initiative } from "../../../payload-types"; // adjust if needed
55
import EventDropdown from "../components/EventDropdown";
6+
import { Metadata } from "next";
7+
8+
export const metadata: Metadata = {
9+
title: "Community & Initiatives | Rainbow Engineering",
10+
description: "Community & Initiatives at Rainbow Engineering - Explore our initiatives and get involved.",
11+
};
612

713
export default async function Initiatives() {
814
// initialize Payload

src/app/(frontend)/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { getPayload } from "payload";
22
import React from "react";
3+
import { Metadata } from "next";
34
import type { Media } from '../../payload-types';
45

56
import HomePageBanner from "./components/HomePageBanner";
@@ -14,6 +15,11 @@ import ExecsHeader from "./components/ExecsHeader";
1415

1516
import config from "@/payload.config";
1617

18+
export const metadata: Metadata = {
19+
title: "Home | Rainbow Engineering",
20+
description: "Rainbow Engineering - Advocacy, Opportunity, Community.",
21+
};
22+
1723
type AboutUsType = {
1824
Title: string;
1925
Image: { url: string; alt?: string };

src/app/(frontend)/signup/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
import { Metadata } from "next";
12
import Banner from "../components/Banner"
23
import Image from 'next/image'
34

5+
export const metadata: Metadata = {
6+
title: "Sign Up | Rainbow Engineering",
7+
description: "Sign up to join Rainbow Engineering and stay updated with our latest news and events.",
8+
};
9+
410
export default function SignUp() {
511
return (
612
<div className="overflow-x-hidden">

src/app/(frontend)/sponsors/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ import { getPayload } from "payload";
55
import type { SponsorsAmethyst, SponsorsSilver, SponsorsGold } from '../../../payload-types'; // adjust path to your generated types
66
import config from "@/payload.config";
77
import DarkThemeBoxes from "../components/DarkThemeBoxes";
8+
import { Metadata } from "next";
9+
10+
export const metadata: Metadata = {
11+
title: "Sponsors | Rainbow Engineering",
12+
description: "Sponsors of Rainbow Engineering - Learn about our valued sponsors and partners.",
13+
};
814

915
export default async function Sponsors() {
1016

0 commit comments

Comments
 (0)