-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(frontend): make page name configurable
- Loading branch information
1 parent
958bee4
commit dace937
Showing
2 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts"> | ||
import { env } from '$env/dynamic/public'; | ||
const title = env.PUBLIC_PAGE_TITLE ? env.PUBLIC_PAGE_TITLE : 'Simple Status Page'; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>{title}</title> | ||
</svelte:head> | ||
|
||
<h1>{title}</h1> | ||
|
||
<style lang="scss"> | ||
h1 { | ||
display: inline-block; | ||
background: var(--c-black); | ||
color: var(--c-white); | ||
padding: 8px 16px 8px 8px; | ||
font-family: monospace; | ||
&:after { | ||
content: '_'; | ||
animation: blink 2s infinite; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters