feat: option to change logo, update docs pic
parent
8aceb68ccc
commit
1e0f68721b
|
|
@ -28,7 +28,13 @@ export default function Header({ style }: { style?: React.CSSProperties }) {
|
||||||
href={location.pathname == '/' ? 'https://github.com/lyc8503/UptimeFlare' : '/'}
|
href={location.pathname == '/' ? 'https://github.com/lyc8503/UptimeFlare' : '/'}
|
||||||
target={location.pathname == '/' ? '_blank' : undefined}
|
target={location.pathname == '/' ? '_blank' : undefined}
|
||||||
>
|
>
|
||||||
<Image src="/logo.svg" h={56} w={{ base: 140, sm: 190 }} fit="contain" alt="logo" />
|
<Image
|
||||||
|
src={pageConfig.logo ?? '/logo.svg'}
|
||||||
|
h={56}
|
||||||
|
w={{ base: 140, sm: 190 }}
|
||||||
|
fit="contain"
|
||||||
|
alt="logo"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
BIN
docs/desktop.png
BIN
docs/desktop.png
Binary file not shown.
|
Before Width: | Height: | Size: 678 KiB After Width: | Height: | Size: 441 KiB |
|
|
@ -5,6 +5,7 @@ export type PageConfig = {
|
||||||
links?: PageConfigLink[]
|
links?: PageConfigLink[]
|
||||||
group?: PageConfigGroup
|
group?: PageConfigGroup
|
||||||
favicon?: string
|
favicon?: string
|
||||||
|
logo?: string
|
||||||
maintenances?: {
|
maintenances?: {
|
||||||
upcomingColor?: string
|
upcomingColor?: string
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,9 @@ const pageConfig: PageConfig = {
|
||||||
'🔐 Private': ['test_tcp_monitor'],
|
'🔐 Private': ['test_tcp_monitor'],
|
||||||
},
|
},
|
||||||
// [OPTIONAL] Set the path to your favicon, default to '/favicon.png' if not specified
|
// [OPTIONAL] Set the path to your favicon, default to '/favicon.png' if not specified
|
||||||
favicon: 'https://example.com/favicon.ico',
|
// favicon: 'https://example.com/favicon.ico',
|
||||||
|
// [OPTIONAL] Set the path to your logo, default to '/logo.svg' if not specified
|
||||||
|
// logo: 'https://example.com/logo.svg',
|
||||||
// [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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue