From 8b3dee10647659c12ade20033f18bec87179f2fe Mon Sep 17 00:00:00 2001 From: Mateus Souza Date: Sat, 10 Feb 2024 12:08:34 -0300 Subject: [PATCH 1/6] Feat: refactor series headers with improved design --- src/styles/content.scss | 38 ++++++++++++++++++++++ src/templates/serie.html | 68 +++++++++++++++++++++------------------- 2 files changed, 74 insertions(+), 32 deletions(-) diff --git a/src/styles/content.scss b/src/styles/content.scss index 1b6ea98..2c8c171 100644 --- a/src/styles/content.scss +++ b/src/styles/content.scss @@ -33,6 +33,44 @@ } } +#content .list-header { + align-items: flex-start; + display: flex; + flex: 1 1 100%; + flex-flow: row; + flex-wrap: wrap; + justify-content: space-between; + margin: 0 0 0.83rem; + + h1 { + flex: 1; + margin-right: 1rem; + } + + .add-to-watchlist, + .remove-from-watchlist { + flex: 0 1 10rem; + height: auto; + padding: 0.5rem 0.83rem; + + span { + display: inline-block; + vertical-align: middle; + } + span.icon { + background-image: url(../icons/watchlist.svg); + background-position: center; + background-size: contain; + background-repeat: no-repeat; + content: ''; + display: inline-block; + height: 28px; + vertical-align: middle; + width: 28px; + } + } +} + #content .list-info { margin-bottom: 1rem; } diff --git a/src/templates/serie.html b/src/templates/serie.html index 4bd776a..e65042b 100644 --- a/src/templates/serie.html +++ b/src/templates/serie.html @@ -1,6 +1,21 @@ -

- {{ serieName }} -

+
+

+ {{ serieName }} +

+ + + +
{{ if seasonsCount || episodesCount }}
@@ -17,38 +32,27 @@

{{ end }}
-
- - -