From 30b979817aff9ef3c5d7f45813fb9104627e30f8 Mon Sep 17 00:00:00 2001 From: apt-get Date: Sat, 20 Jan 2024 04:31:17 +0100 Subject: [PATCH] add links bar --- src/routes/+layout.svelte | 8 ++++ src/routes/streams/+layout.svelte | 24 +++++++++- src/routes/streams/+page.svelte | 7 +++ src/routes/streams/Footer.svelte | 44 +++++++++++++++++++ src/routes/streams/WelcomePage.svelte | 19 ++++++++ .../streams/[stream_id]/StreamPage.svelte | 2 - 6 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 src/routes/streams/Footer.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4ef93cd..7a24117 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -49,6 +49,14 @@ border-radius: 10px; color: white; } + + .panel-alt { + background-color: white; + overflow: auto; + border: 3px double; + border-radius: 5px; + color: rgba(0, 0, 0, 0.6); + } diff --git a/src/routes/streams/+layout.svelte b/src/routes/streams/+layout.svelte index 0e3735f..afc99bf 100644 --- a/src/routes/streams/+layout.svelte +++ b/src/routes/streams/+layout.svelte @@ -1,10 +1,12 @@
+
@@ -12,13 +14,22 @@ #mainContainer { display: grid; grid-template-columns: 25% 1fr; + grid-template-rows: minmax(0, 1fr) auto; height: calc(100vh - 1em); /* fallback */ height: calc(100dvh - 1em); gap: 0.5em; margin: 0.5em; } + #footer { + grid-row: 2; + grid-column: 1; + height: 100%; + scrollbar-width: thin; + } + #sidebar { + grid-row: 1; grid-column: 1; overflow-wrap: break-word; scrollbar-gutter: stable; @@ -27,6 +38,7 @@ } #content { + grid-row: 1 / 2; grid-column: 2; height: calc(100vh - 1em); height: calc(100dvh - 1em); @@ -35,15 +47,25 @@ @media (max-width: 575px) { #mainContainer { grid-template-columns: 100%; - grid-template-rows: 70% 1fr; + grid-template-rows: 65% 1fr auto; + } + + #footer { + order: 2; + order: 2; + grid-row: 3; + height: 100%; } #sidebar { order: 1; + grid-row: 2; height: 100%; } #content { + order: 0; + grid-row: 1; grid-column: 1; height: 100%; } diff --git a/src/routes/streams/+page.svelte b/src/routes/streams/+page.svelte index 915c24d..1bad30c 100644 --- a/src/routes/streams/+page.svelte +++ b/src/routes/streams/+page.svelte @@ -14,4 +14,11 @@ background: local url('/assets/result.png') top right / 50% no-repeat, rgba(0, 0, 0, 0.8); scrollbar-gutter: stable; } + + @media (max-width: 575px) { + #welcome-page { + background: local url('/assets/result.png') top right / 80% no-repeat, + rgba(0, 0, 0, 0.8); + } + } diff --git a/src/routes/streams/Footer.svelte b/src/routes/streams/Footer.svelte new file mode 100644 index 0000000..9a15b80 --- /dev/null +++ b/src/routes/streams/Footer.svelte @@ -0,0 +1,44 @@ + + + diff --git a/src/routes/streams/WelcomePage.svelte b/src/routes/streams/WelcomePage.svelte index 8dbac31..b3e322a 100644 --- a/src/routes/streams/WelcomePage.svelte +++ b/src/routes/streams/WelcomePage.svelte @@ -1,3 +1,9 @@ + +

Auditorium of Babel

@@ -85,4 +91,17 @@ width: 0; height: 0; } + + @media (max-width: 575px) { + .stream-information { + width: initial; + } + .description-bubble { + max-width: initial; + } + + .description-bubble::after { + visibility: hidden; + } + } diff --git a/src/routes/streams/[stream_id]/StreamPage.svelte b/src/routes/streams/[stream_id]/StreamPage.svelte index a5cf3bd..f8138d1 100644 --- a/src/routes/streams/[stream_id]/StreamPage.svelte +++ b/src/routes/streams/[stream_id]/StreamPage.svelte @@ -3,7 +3,6 @@ import { shorthandCode, formatTrackTime, formatDate } from '$lib/utils.js'; import { jumpToTrack } from './Player.svelte'; import { Carta } from 'carta-md'; - import { goto } from '$app/navigation'; import DOMPurify from 'isomorphic-dompurify'; const carta = new Carta({ @@ -18,7 +17,6 @@
-

ID: {shorthandCode($currentStream.id)}

{formattedStreamDate}