From b8a814f98aba9840da35799e173e18f8ecb0e36a Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 23 Jul 2025 16:00:59 +0000 Subject: fix: some misc changes, fonts --- src/app.css | 71 +++++++++++++++++++++++++++++++++++++++++++++ src/lib/Timetable.svelte | 4 +-- src/routes/(app)/+server.ts | 5 ---- 3 files changed, 73 insertions(+), 7 deletions(-) delete mode 100644 src/routes/(app)/+server.ts (limited to 'src') 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/'); -}; -- cgit v1.2.3