Skip to content

Commit

Permalink
Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
benscobie committed Aug 5, 2024
1 parent 7915bb8 commit 3e10944
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 9 deletions.
33 changes: 28 additions & 5 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode } from "react";
import Footer from "./ui/organisms/Footer";
import Header from "./ui/organisms/Header";
import Head from "next/head";

interface LayoutProps {
children?: ReactNode | undefined;
Expand All @@ -9,11 +10,33 @@ interface LayoutProps {

function Layout({ children, className }: LayoutProps) {
return (
<div className={className}>
<Header />
<main className="container mx-auto max-w-7xl my-8">{children}</main>
<Footer />
</div>
<>
<Head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
</Head>
<div className={className}>
<Header />
<main className="container mx-auto max-w-7xl my-8">{children}</main>
<Footer />
</div>
</>
);
}

Expand Down
Binary file added public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "UK Student Loan Repayment Calculator",
"short_name": "UK SLRC",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#FFFFFF",
"background_color": "#FFFFFF",
"display": "standalone"
}
4 changes: 0 additions & 4 deletions public/vercel.svg

This file was deleted.

0 comments on commit 3e10944

Please sign in to comment.