Skip to content

Commit

Permalink
feat: add icon and favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Sep 3, 2024
1 parent 9d4bd28 commit d1943a9
Show file tree
Hide file tree
Showing 13 changed files with 3,729 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/components/navigation-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Image from 'next/image'
import {
Navbar,
NavbarBrand,
Expand All @@ -15,7 +16,15 @@ export async function NavigationBar() {

return (
<Navbar>
<NavbarBrand className="font-bold text-primary">TaskLeafy</NavbarBrand>
<NavbarBrand className="flex gap-2 font-bold text-primary">
<Image
src="/task-leafy-icon.png"
width={32}
height={32}
alt="TaskLeafy"
/>
TaskLeafy
</NavbarBrand>
<NavbarContent justify="end">
<NavbarItem>
{session?.user ? (
Expand Down
37 changes: 37 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Inter } from 'next/font/google'

import './globals.css'
import type { Metadata, Viewport } from 'next'

import { RootProviders } from './providers'
import { NavigationBar } from './components/navigation-bar'

Expand All @@ -9,6 +11,41 @@ const inter = Inter({
display: 'swap',
})

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

export const metadata: Metadata = {
title: 'TaskLeafy',
description: 'Simple to do app with drag and drop functionality.',
applicationName: 'TaskLeafy',
creator: 'Mnigos',
icons: [
{
rel: 'icon',
url: '/favicon-32x32.png',
sizes: '32x32',
type: 'image/png',
},
{
rel: 'icon',
url: '/favicon-16x16.png',
sizes: '16x16',
type: 'image/png',
},
{
rel: 'apple-touch-icon',
url: '/apple-touch-icon.png',
},
{
rel: 'mask-icon',
url: '/safari-pinned-tab.svg',
color: '#00ff10',
},
],
manifest: '/site.webmanifest',
}

export default function RootLayout({
children,
}: Readonly<{
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.
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>#ffffff</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/favicon.ico
Binary file not shown.
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.
3,654 changes: 3,654 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": "TaskLeafy",
"short_name": "TaskLeafy",
"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"
}
Binary file added public/task-leafy-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1943a9

Please sign in to comment.