misc: new favicon~

pull/161/head
lyc8503 2025-11-05 02:20:37 +08:00
parent 78f9f1ee34
commit 8e4fa94886
5 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ export default function IncidentsPage() {
<> <>
<Head> <Head>
<title>{pageConfig.title}</title> <title>{pageConfig.title}</title>
<link rel="icon" href={pageConfig.favicon ?? '/favicon.ico'} /> <link rel="icon" href={pageConfig.favicon ?? '/favicon.png'} />
</Head> </Head>
<main className={inter.className}> <main className={inter.className}>

View File

@ -46,7 +46,7 @@ export default function Home({
<> <>
<Head> <Head>
<title>{pageConfig.title}</title> <title>{pageConfig.title}</title>
<link rel="icon" href={pageConfig.favicon ?? '/favicon.ico'} /> <link rel="icon" href={pageConfig.favicon ?? '/favicon.png'} />
</Head> </Head>
<main className={inter.className}> <main className={inter.className}>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

BIN
public/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -16,8 +16,8 @@ const pageConfig: PageConfig = {
'🌐 Public (example group name)': ['foo_monitor', 'bar_monitor', 'more monitor ids...'], '🌐 Public (example group name)': ['foo_monitor', 'bar_monitor', 'more monitor ids...'],
'🔐 Private': ['test_tcp_monitor'], '🔐 Private': ['test_tcp_monitor'],
}, },
// [OPTIONAL] Set the path to your favicon, default to '/favicon.ico' if not specified // [OPTIONAL] Set the path to your favicon, default to '/favicon.png' if not specified
favicon: '/favicon.ico', favicon: 'https://example.com/favicon.ico',
// [OPTIONAL] Maintenance related settings // [OPTIONAL] Maintenance related settings
maintenances: { maintenances: {
// [OPTIONAL] The color of upcoming maintenance alerts, default to 'gray' // [OPTIONAL] The color of upcoming maintenance alerts, default to 'gray'