From cd4b73a1c822200615c694654d0e24a338030782 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sat, 10 Dec 2022 00:02:47 +0100 Subject: [PATCH] add banner as image to art list --- src/lib/components/artList.svelte | 22 +++++++++++++++++++--- src/routes/[manga]/+page.svelte | 24 ++++++++++++++++++++---- 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/lib/components/artList.svelte b/src/lib/components/artList.svelte index 760adca..f2f150d 100644 --- a/src/lib/components/artList.svelte +++ b/src/lib/components/artList.svelte @@ -1,9 +1,16 @@ - @@ -442,7 +455,7 @@
- +
@@ -528,8 +541,9 @@ .hidden { display: none; } - .infoflex { + .infoflex.flex { margin: 15px; + justify-content: start; } .flex-wrapped { display: flex; @@ -555,8 +569,10 @@ } .banner { width: 100%; - max-height: 100%; + max-height: 40vh; object-fit: cover; + object-position: center top; + overflow: hidden; } .banner-container .fader { position: absolute; @@ -565,7 +581,7 @@ width: 100%; height: 100%; z-index: 1; - background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); + background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,1) 100%); } .genre { border-radius: 5px;