Skip to content

Commit

Permalink
Merge pull request #72 from imperial/feat-favicon
Browse files Browse the repository at this point in the history
feat: favicon & other metadata
  • Loading branch information
matalex412 authored Aug 27, 2024
2 parents 7b9a1a7 + 9fbe09a commit efe4f0b
Show file tree
Hide file tree
Showing 17 changed files with 1,634 additions and 1 deletion.
Binary file modified app/favicon.ico
Binary file not shown.
61 changes: 60 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,71 @@ import { Box, Flex } from "@radix-ui/themes"
import "@radix-ui/themes/components.css"
import "@radix-ui/themes/tokens/base.css"
import "@radix-ui/themes/utilities.css"
import { Metadata } from "next"
import { Metadata, Viewport } from "next"
import { ThemeProvider } from "next-themes"
import { Inter } from "next/font/google"
import Head from "next/head"
import { ReactNode } from "react"

// Next object for information in the HTML head
export const metadata: Metadata = {
title: "CPP Connect",
description: "Connecting quality Imperial students with quality employers",
applicationName: "CPP Connect",
appleWebApp: {
title: "CPP Connect",
},
manifest: "/site.webmanifest",

// icons for all devices & platforms
icons: {
apple: [
{
url: "/apple-touch-icon.png",
sizes: "180x180",
type: "image/png",
},
],
icon: [
{
url: "/favicon-32x32.png",
sizes: "32x32",
type: "image/png",
},
{
url: "/favicon-16x16.png",
sizes: "16x16",
type: "image/png",
},
],
},

// rich previews
openGraph: {
title: "CPP Connect",
description: "Connecting quality Imperial students with quality employers",
url: "https://cpp.doc.ic.ac.uk/",
siteName: "CPP Connect",
locale: "en_GB",
type: "website",
},

twitter: {
card: "summary",
title: "CPP Connect",
description: "Connecting quality Imperial students with quality employers",
site: "@ICComputing",
creator: "@ICComputing",
},

// other stuff
other: {
"msapplication-TileColor": "#0000cd",
},
}

export const viewport: Viewport = {
themeColor: "#ffffff",
}

const inter = Inter({ subsets: ["latin"] })
Expand All @@ -29,6 +85,9 @@ const RootLayout = ({
}>) => {
return (
<html lang="en">
<Head>
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0000cd" />
</Head>
<body className={inter.className}>
<ThemeProvider attribute="class">
<Theme accentColor="blue" grayColor="gray">
Expand Down
1,472 changes: 1,472 additions & 0 deletions assets/favicon.ai

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions assets/favicon.svg
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-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.
9 changes: 9 additions & 0 deletions public/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#0000cd</TileColor>
</tile>
</msapplication>
</browserconfig>
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/mstile-144x144.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/mstile-150x150.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/mstile-310x150.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/mstile-310x310.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/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions public/safari-pinned-tab.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/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "CPP Connect",
"short_name": "CPP Connect",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#0000cd",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit efe4f0b

Please sign in to comment.