From c476ed0761d6618e92ed9eb6fe20615f6c860a63 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 22 Apr 2026 15:39:37 +0200 Subject: [PATCH] white-paper : cover responsive positioning - refs #69 Co-Authored-By: Claude Sonnet 4.6 --- src/views/WhitePaper.svelte | 59 ++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/src/views/WhitePaper.svelte b/src/views/WhitePaper.svelte index b02d939..7d430ad 100644 --- a/src/views/WhitePaper.svelte +++ b/src/views/WhitePaper.svelte @@ -53,30 +53,31 @@
- -

{t('white_paper_label')}

+
+ +

{t('white_paper_label')}

- -
-

{data.title}

- {#if data.intro} -

{data.intro}

- {/if} - + +
+

{data.title}

+ {#if data.intro} +

{data.intro}

+ {/if} + +
+ + {#if data.cover} + {data.title} + {/if}
- - {#if data.cover} - {data.title} - {/if} -
{#if status === 'success'} @@ -124,11 +125,17 @@ .white-paper { color: var(--color-text); padding: 8rem 5rem; + padding-bottom: 0; display: flex; justify-content: space-between; + height: 100vh; + overflow: hidden; } .catch-area { + display: flex; + flex-direction: column; + justify-content: space-between; width: 45vw; } @@ -174,9 +181,10 @@ } .cover { - position: absolute; - bottom: 0; - width: 90vh; + height: 23rem; + object-fit: cover; + object-position: top; + transform: scale(1.2); z-index: -1; } @@ -185,6 +193,9 @@ background: #000; margin-top: 2rem; width: 30vw; + height: 40rem; + max-height: 65vh; + overflow: auto; align-self: stretch; display: flex; align-items: flex-start; @@ -277,7 +288,7 @@ .submit:disabled { opacity: 0.5; - cursor: default; + cursor: none; } .status {