Skip to content

Commit

Permalink
Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
dyzhuu committed May 27, 2024
1 parent 5ca6c17 commit 5f35fad
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 4 deletions.
19 changes: 19 additions & 0 deletions public/svgs/icon-darkmode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions public/svgs/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
21 changes: 18 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,27 @@ import { Providers } from "@/components/Providers";

import "./globals.css";

import type { Viewport } from "next";
import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";

export const metadata = {
export const metadata: Metadata = {
title: "UABC Booking Portal",
description: "",
description:
"Book your badminton sessions with the University of Auckland Badminton Club.",
icons: {
icon: [
{
media: "(prefers-color-scheme: light)",
url: "/images/icon.svg",
href: "/svgs/icon.svg",
},
{
media: "(prefers-color-scheme: dark)",
url: "/svgs/icon-darkmode.svg",
href: "/svgs/icon-darkmode.svg",
},
],
},
};

const ProximaNova = localFont({
Expand Down
2 changes: 1 addition & 1 deletion src/components/UabcLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Image from "next/image";
export const UabcLogo = ({ className }: { className?: string }) => (
<div className={className}>
<Image
src="/svgs/logoDM.svg"
src="/svgs/logo-darkmode.svg"
alt="uabc logo"
className="dark:block hidden"
width={250}
Expand Down

0 comments on commit 5f35fad

Please sign in to comment.