Make header icon & name changeable

pull/116/head
m1ckyb 2025-06-02 23:50:10 +10:00 committed by GitHub
parent 790f79d966
commit e604b83965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export default function Header() {
<div> <div>
<a href="https://github.com/lyc8503/UptimeFlare" target="_blank"> <a href="https://github.com/lyc8503/UptimeFlare" target="_blank">
<Text size="xl" span> <Text size="xl" span>
🕒 {pageConfig.header-icon}
</Text> </Text>
<Text <Text
size="xl" size="xl"
@ -33,7 +33,7 @@ export default function Header() {
variant="gradient" variant="gradient"
gradient={{ from: 'blue', to: 'cyan', deg: 90 }} gradient={{ from: 'blue', to: 'cyan', deg: 90 }}
> >
UptimeFlare {pageConfig.header}
</Text> </Text>
</a> </a>
</div> </div>

View File

@ -3,6 +3,8 @@ import { MaintenanceConfig, PageConfig, WorkerConfig } from './types/config'
const pageConfig: PageConfig = { const pageConfig: PageConfig = {
// Title for your status page // Title for your status page
title: "lyc8503's Status Page", title: "lyc8503's Status Page",
header-icon: "🕒",
header: "UptimeFlare",
// Links shown at the header of your status page, could set `highlight` to `true` // Links shown at the header of your status page, could set `highlight` to `true`
links: [ links: [
{ link: 'https://github.com/lyc8503', label: 'GitHub' }, { link: 'https://github.com/lyc8503', label: 'GitHub' },