Skip to content

Commit d74270f

Browse files
Merge pull request #86 from DevLoversTeam/feature/favicon
Add system theme-based favicon (light/dark)
2 parents e5d74b4 + 634976a commit d74270f

5 files changed

Lines changed: 28 additions & 13 deletions

File tree

frontend/app/favicon.ico

-6.39 KB
Binary file not shown.

frontend/app/layout.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
import type { Metadata } from 'next';
12
import { Geist, Geist_Mono } from 'next/font/google';
23
import './globals.css';
34

5+
export const metadata: Metadata = {
6+
icons: {
7+
icon: [
8+
{
9+
media: '(prefers-color-scheme: light)',
10+
url: '/favicon-light.svg',
11+
},
12+
{
13+
media: '(prefers-color-scheme: dark)',
14+
url: '/favicon-dark.svg',
15+
},
16+
],
17+
},
18+
};
19+
420
const geistSans = Geist({
521
variable: '--font-geist-sans',
622
subsets: ['latin'],

frontend/public/favicon-dark.svg

Lines changed: 6 additions & 0 deletions
Loading

frontend/public/favicon-light.svg

Lines changed: 6 additions & 0 deletions
Loading

frontend/public/github-logo.svg

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)