diff options
author | 2025-07-23 16:00:59 +0000 | |
---|---|---|
committer | 2025-07-23 16:00:59 +0000 | |
commit | b8a814f98aba9840da35799e173e18f8ecb0e36a (patch) | |
tree | b1af8f8f16b0fd0c7ad95a3de3a0b71fd9fe5139 /src | |
parent | d6ec938a555f220994920259cf862a7cfcbcf535 (diff) | |
download | fahrplan-b8a814f98aba9840da35799e173e18f8ecb0e36a.tar.gz fahrplan-b8a814f98aba9840da35799e173e18f8ecb0e36a.tar.bz2 fahrplan-b8a814f98aba9840da35799e173e18f8ecb0e36a.tar.lz fahrplan-b8a814f98aba9840da35799e173e18f8ecb0e36a.zip |
fix: some misc changes, fonts
Diffstat (limited to 'src')
-rw-r--r-- | src/app.css | 71 | ||||
-rw-r--r-- | src/lib/Timetable.svelte | 4 | ||||
-rw-r--r-- | src/routes/(app)/+server.ts | 5 |
3 files changed, 73 insertions, 7 deletions
diff --git a/src/app.css b/src/app.css index fbcaa23..b80e46d 100644 --- a/src/app.css +++ b/src/app.css @@ -22,3 +22,74 @@ left: 100%; } } + +html { + font-family: var(--font-sbb-typo); +} + +@font-face { + font-family: 'SBB Condensed'; + font-display: swap; + font-weight: 700; + font-style: normal; + src: url('/fonts/SBB-Condensed-Heavy.woff2') format(woff2), + url('/fonts/SBB-Condensed-Heavy.ttf') format(opentype), + local('SBB Condensed'); +} +@font-face { + font-family: 'SBB Condensed'; + font-display: swap; + font-weight: 600; + font-style: normal; + src: url('/fonts/SBB-Condensed-Bold.woff2') format(woff2), + url('/fonts/SBB-Condensed-Bold.ttf') format(opentype), + local('SBB Condensed'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 600; + font-style: normal; + src: url('/fonts/SBB-Bold.woff2') format(woff2), + url('/fonts/SBB-Bold.ttf') format(opentype), local('SBB'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 400; + font-style: normal; + src: url('/fonts/SBB-Roman.woff2') format(woff2), + url('/fonts/SBB-Roman.ttf') format(opentype), local('SBB'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 400; + font-style: italic; + src: url('/fonts/SBB-Italic.woff2') format(woff2), + url('/fonts/SBB-Italic.ttf') format(opentype), local('SBB'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 300; + font-style: normal; + src: url('/fonts/SBB-Light.woff2') format(woff2), + url('/fonts/SBB-Light.ttf') format(opentype), local('SBB'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 200; + font-style: normal; + src: url('/fonts/SBB-Thin.woff2') format(woff2), + url('/fonts/SBB-Thin.ttf') format(opentype), local('SBB'); +} +@font-face { + font-family: SBB; + font-display: swap; + font-weight: 100; + font-style: normal; + src: url('/fonts/SBB-UltraLight.woff2') format(woff2), + url('/fonts/SBB-UltraLight.ttf') format(opentype), local('SBB'); +} diff --git a/src/lib/Timetable.svelte b/src/lib/Timetable.svelte index 9a99ca9..7707bcb 100644 --- a/src/lib/Timetable.svelte +++ b/src/lib/Timetable.svelte @@ -240,9 +240,9 @@ ]); } else if (delayMinutes >= 1) { notices.push([ - delayMinutes >= 5 + delayMinutes >= 3 ? ['Delay', 'Attention'] - : delayMinutes >= 3 + : delayMinutes >= 2 ? ['Delay', 'Hint'] : ['Hint'], m.next_long_lark_bask({ diff --git a/src/routes/(app)/+server.ts b/src/routes/(app)/+server.ts deleted file mode 100644 index 904739f..0000000 --- a/src/routes/(app)/+server.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { redirect } from '@sveltejs/kit'; - -export const GET = () => { - throw redirect(307, '/fahrplan/'); -}; |