From 30ad2fbf034560ba2890082e027e9f147e7cccca Mon Sep 17 00:00:00 2001 From: X4Lo Date: Tue, 18 Feb 2025 17:55:18 +0100 Subject: [PATCH] F: Reworked the entry page UI --- .../entry/entry-page/entry-page.component.css | 262 ++++++++---------- .../entry-page/entry-page.component.html | 186 ++++--------- .../entry/entry-page/entry-page.component.ts | 1 - 3 files changed, 174 insertions(+), 275 deletions(-) diff --git a/frontend/src/app/features/entry/entry-page/entry-page.component.css b/frontend/src/app/features/entry/entry-page/entry-page.component.css index 00d428f..61b9c15 100644 --- a/frontend/src/app/features/entry/entry-page/entry-page.component.css +++ b/frontend/src/app/features/entry/entry-page/entry-page.component.css @@ -1,185 +1,132 @@ -.background-wrapper { - position: absolute; +:host { + --bg-opacity: 0.3; + --bg-opacity-secondary: 0.5; + --bg-color: rgba(255, 255, 255, var(--bg-opacity)); + --text-color: #050505; + --text-muted: #666; + --border-color: #dee2e6; + --card-bg: rgba(131, 131, 131, var(--bg-opacity-secondary)); + --hover-bg: #e9ecef; + --shadow-color: rgba(0, 0, 0, 0.1); +} + +[data-bs-theme="dark"] :host { + --bg-opacity: 0.3; + --bg-opacity-secondary: 0.5; + --bg-color: rgba(33, 37, 41, var(--bg-opacity)); + --text-color: #fff; + --text-muted: #adb5bd; + --border-color: #495057; + --card-bg: rgba(33, 37, 41, var(--bg-opacity-secondary)); + --hover-bg: #495057; + --shadow-color: rgba(0, 0, 0, 0.3); +} + +.fixed-image { + position: fixed; top: 0; left: 0; width: 100%; height: 100vh; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + filter: brightness(0.5); z-index: -1; - overflow: hidden; } -.background-wrapper img { - width: 100%; - height: 100%; - object-fit: cover; -} +h3 { + color: var(--text-color); -.background-wrapper::after { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, #eff1f3 100%); - z-index: 2; } - -[data-bs-theme="dark"] .background-wrapper::after { - background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, #181c1f 100%); -} - .content-wrapper { - color: #212529; - background: linear-gradient(to bottom, - rgba(255, 255, 255, 0.461) 10%, - #eff1f3 100%); - + position: relative; + margin-top: 2rem; + margin-bottom: 2rem; + background: var(--bg-color); backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-radius: 15px; + box-shadow: 0 0 20px var(--shadow-color); padding: 20px; - border-radius: 8px; - border: 1px solid #eff1f3; - /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */ -} - -[data-bs-theme="dark"] .content-wrapper { - color: #a7acb1; - background: linear-gradient(to bottom, - rgba(33, 37, 41, 0.7) 50%, - #181c1f 100%); - - background-color: rgba(33, 37, 41, 0.7); - border: 1px solid #181c1f; -} - -.main-container { - margin-top: 200px !important; -} - -/* ! LEFT PART - SIDE INFO */ -.left-col { - min-width: 240px; -} - -.poster { - padding: px 10px 0 10px; - cursor: pointer; + color: var(--text-color); } .poster img { - border-radius: 5px; - margin-bottom: 0 !important; + border-radius: 10px; + box-shadow: 0 4px 8px var(--shadow-color); + width: 100%; } -.rating { - color: var(--shz-gold-1); - font-size: 25px; - margin: 10px 0; +.info-card { + margin-bottom: 20px; + border-radius: 10px; + box-shadow: 0 2px 4px var(--shadow-color); + background: var(--card-bg); + backdrop-filter: blur(5px); + -webkit-backdrop-filter: blur(5px); + color: var(--text-color); } -.side-info .list-group-item { - background-color: rgba(255, 255, 255, 0.461) !important; - background-color: transparent !important; +.info-card .card-title { + color: var(--text-color); + font-weight: 600; } -.side-info strong { - color: var(--shz-blue-default); -} - -/* ! RIGHT PART - DESCRIPTION */ -.title { - color: rgba(0, 0, 0, 0.868); - font-weight: bolder; - font-size: 2.9rem !important; -} - -[data-bs-theme="dark"] .title { - color: white; -} - -.right-col .entry-actions span { - color: black; - font-size: 2rem; -} - -[data-bs-theme="dark"] .right-col .entry-actions span { - color: white; -} - -.right-col .entry-actions span:hover { - color: var(--shz-blue-default); -} - -.btn-icon-only { - background-color: transparent; +.list-group-item { border: none; - color: inherit; - margin: 0 5px 3px 0; + padding: 8px 0; + background: transparent; + color: var(--text-color); } -.btn-icon-only:hover { - color: #fc185a; +.info-item { + color: var(--text-muted); + margin-right: 8px; } -.btn-icon-only-success:hover { - color: #008cff; +.title { + color: var(--text-color); + margin-bottom: 0; } -/* .interaction-btns { - position: absolute; - top: 10px; - right: 15px; - background-color: aquamarine; +.entry-actions .btn-icon-only-success { + width: 40px; + height: 40px; + padding: 0; + border-radius: 50%; + display: inline-flex; + align-items: center; + justify-content: center; + margin-left: 8px; + background: var(--card-bg); + border: none; + color: var(--text-color); + backdrop-filter: blur(5px); + -webkit-backdrop-filter: blur(5px); } -.interaction-btns button { - display: block; - padding-top: 0; - padding-bottom: 0; - width: 50px; -} */ +.entry-actions .btn-icon-only-success:hover { + background: var(--hover-bg); + color: #007bff; +} -/* * favorit button */ .btn-icon-only-favorite { border: none; background: none; cursor: pointer; } -.right-col .entry-actions .favorite:hover span { - color: var(--shz-red-danger); -} - -.right-col .entry-actions .favorite span { - color: var(--shz-gold-1); -} - .faved { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; } -.info-item { - color: var(--shz-blue-default); +.collection-card, +.collection-card img { + aspect-ratio: 16/9; + height: 100%; } -.info-card { - background-color: transparent; - margin-bottom: 0; -} - -.info-card hr { - margin-top: 5px; -} - -.info-card .accordion .accordion-item, -.info-card .accordion .accordion-header, -.info-card .accordion .accordion-header .accordion-button { - background-color: transparent; - border-radius: 0; -} - - -/* ! collection banner */ .card-img-overlay:hover h5 { color: var(--shz-blue-default) !important; } @@ -188,8 +135,37 @@ cursor: pointer; } -.collection-card, -.collection-card img { - aspect-ratio: 16/9; - height: 100%; +.table { + margin-bottom: 0; + border-radius: 5px; + margin-bottom: 10px; +} + +.table thead { + border-radius: 5px; +} + +.table th { + border-top: none; + border-color: var(--border-color); + background: var(--card-bg); + color: var(--text-color); +} + +.table td { + border-color: var(--border-color); + background: var(--card-bg); + color: var(--text-color); +} + +.pagination-container .page-item.active .page-link { + background-color: #007bff; + border-color: #007bff; +} + +@media (max-width: 768px) { + .content-wrapper { + margin-top: 1rem; + padding: 15px; + } } \ No newline at end of file diff --git a/frontend/src/app/features/entry/entry-page/entry-page.component.html b/frontend/src/app/features/entry/entry-page/entry-page.component.html index c3d6d58..d2974bb 100644 --- a/frontend/src/app/features/entry/entry-page/entry-page.component.html +++ b/frontend/src/app/features/entry/entry-page/entry-page.component.html @@ -1,38 +1,22 @@ -
- Banner Image -
-
+
+ +
+
Movie Poster
+ +
- - + +
Info
@@ -49,9 +33,7 @@ Status: {{status}} -
-
  • First Seen: {{entry.date_first_seen | dateFormat:'MMM dd, yyyy'}} @@ -63,6 +45,7 @@
  • +
    Rating
    @@ -76,22 +59,20 @@ {{entry.entryRating.imdb_rating | floatFormat:1}}/10
  • - Rotten Romatoes: + Rotten Tomatoes: {{entry.entryRating.rotten_tomatoes_rating | floatFormat:1}}/10
  • - +
    Watch History
    -
    -

    -

    - -
    -
    -
    - -
    + +
    + +

    {{this.entry.title}}

    - -
    - - - - - - -
    -
    - +
    -

    {{this.entry.original_title}} • {{this.entry.release_date | dateFormat:'yyyy'}} • {{genres}}

    -

    {{this.entry.tagline}}

    {{this.entry.storyline}}

    +
    -

    Seasons

    +

    Seasons

    @@ -205,42 +155,48 @@ (episodeWatchedDeletedEvent)="triggerEpisodeWatchedDeletedEvent()">
    -

    + (click)="toggleShowAllSeasons()"> {{ showAll ? 'Show Less' : 'Show All' }}

    - + +
    +
    +

    Belong to Collection(s)

    + +
    +
    +
    +
    +
    +
    +
    {{ collection.name }}
    +
    + {{ collection.name }} +
    +
    +
    +
    +
    - +

    Watch History

    -
    -
    @@ -264,23 +220,20 @@ data-bs-toggle="dropdown" aria-expanded="false"> -
    -
    -
    -
    -

    Belong to Collection(s)

    - -
    - -
    - -
    -
    -
    -
    -
    {{ collection.name }}
    -
    - {{ collection.name }} -
    -
    -
    -
    -
    -
    - -
    \ No newline at end of file diff --git a/frontend/src/app/features/entry/entry-page/entry-page.component.ts b/frontend/src/app/features/entry/entry-page/entry-page.component.ts index 3e92b77..26c57f2 100644 --- a/frontend/src/app/features/entry/entry-page/entry-page.component.ts +++ b/frontend/src/app/features/entry/entry-page/entry-page.component.ts @@ -28,7 +28,6 @@ import { ConfigService } from '../../../core/services/config.service'; selector: 'app-entry-page', templateUrl: './entry-page.component.html', styleUrls: ['./entry-page.component.css'], - encapsulation: ViewEncapsulation.None, animations: [ trigger('fadeInOut', [ transition(':enter', [