F: Reworked the entry page UI
This commit is contained in:
1 parent
387686ad0f
commit
30ad2fbf03
3 files changed
+174
-275
No files matched your search
@@ -1,185 +1,132 @@
|
|||||||
.background-wrapper {
|
:host {
|
||||||
position: absolute;
|
--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;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: brightness(0.5);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-wrapper img {
|
h3 {
|
||||||
width: 100%;
|
color: var(--text-color);
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.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 {
|
.content-wrapper {
|
||||||
color: #212529;
|
position: relative;
|
||||||
background: linear-gradient(to bottom,
|
margin-top: 2rem;
|
||||||
rgba(255, 255, 255, 0.461) 10%,
|
margin-bottom: 2rem;
|
||||||
#eff1f3 100%);
|
background: var(--bg-color);
|
||||||
|
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
border-radius: 15px;
|
||||||
|
box-shadow: 0 0 20px var(--shadow-color);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border-radius: 8px;
|
color: var(--text-color);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.poster img {
|
.poster img {
|
||||||
border-radius: 5px;
|
border-radius: 10px;
|
||||||
margin-bottom: 0 !important;
|
box-shadow: 0 4px 8px var(--shadow-color);
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rating {
|
.info-card {
|
||||||
color: var(--shz-gold-1);
|
margin-bottom: 20px;
|
||||||
font-size: 25px;
|
border-radius: 10px;
|
||||||
margin: 10px 0;
|
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 {
|
.info-card .card-title {
|
||||||
background-color: rgba(255, 255, 255, 0.461) !important;
|
color: var(--text-color);
|
||||||
background-color: transparent !important;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-info strong {
|
.list-group-item {
|
||||||
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;
|
|
||||||
border: none;
|
border: none;
|
||||||
color: inherit;
|
padding: 8px 0;
|
||||||
margin: 0 5px 3px 0;
|
background: transparent;
|
||||||
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-icon-only:hover {
|
.info-item {
|
||||||
color: #fc185a;
|
color: var(--text-muted);
|
||||||
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-icon-only-success:hover {
|
.title {
|
||||||
color: #008cff;
|
color: var(--text-color);
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .interaction-btns {
|
.entry-actions .btn-icon-only-success {
|
||||||
position: absolute;
|
width: 40px;
|
||||||
top: 10px;
|
height: 40px;
|
||||||
right: 15px;
|
padding: 0;
|
||||||
background-color: aquamarine;
|
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 {
|
.entry-actions .btn-icon-only-success:hover {
|
||||||
display: block;
|
background: var(--hover-bg);
|
||||||
padding-top: 0;
|
color: #007bff;
|
||||||
padding-bottom: 0;
|
}
|
||||||
width: 50px;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/* * favorit button */
|
|
||||||
.btn-icon-only-favorite {
|
.btn-icon-only-favorite {
|
||||||
border: none;
|
border: none;
|
||||||
background: none;
|
background: none;
|
||||||
cursor: pointer;
|
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 {
|
.faved {
|
||||||
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
|
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-item {
|
.collection-card,
|
||||||
color: var(--shz-blue-default);
|
.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 {
|
.card-img-overlay:hover h5 {
|
||||||
color: var(--shz-blue-default) !important;
|
color: var(--shz-blue-default) !important;
|
||||||
}
|
}
|
||||||
@@ -188,8 +135,37 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-card,
|
.table {
|
||||||
.collection-card img {
|
margin-bottom: 0;
|
||||||
aspect-ratio: 16/9;
|
border-radius: 5px;
|
||||||
height: 100%;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,38 +1,22 @@
|
|||||||
<div class="background-wrapper">
|
<div class="fixed-image" [ngStyle]="{'background-image': 'url(' + banner + ')'}"></div>
|
||||||
<img [src]="banner" alt="Banner Image">
|
|
||||||
</div>
|
<div class="container content-wrapper">
|
||||||
<div class="container mt-5 content-wrapper main-container">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<!-- Left Column -->
|
||||||
<div class="col-md-3 left-col">
|
<div class="col-md-3 left-col">
|
||||||
<!-- Movie Poster -->
|
<!-- Movie Poster -->
|
||||||
<div class="poster">
|
<div class="poster">
|
||||||
<img [src]="poster" alt="Movie Poster" class="img-fluid mb-3" (click)="enlargePoster()">
|
<img [src]="poster" alt="Movie Poster" class="img-fluid mb-3" (click)="enlargePoster()">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Rating -->
|
||||||
<div class="d-flex justify-content-center rating">
|
<div class="d-flex justify-content-center rating">
|
||||||
<rating [(ngModel)]="entry.entryRating.user_rating" [max]="10" [readonly]="false"
|
<rating [(ngModel)]="entry.entryRating.user_rating" [max]="10" [readonly]="false"
|
||||||
(click)="onRatingChange($event)">
|
(click)="onRatingChange($event)">
|
||||||
</rating>
|
</rating>
|
||||||
</div>
|
</div>
|
||||||
<!-- Movie Side Info -->
|
|
||||||
<!-- <ul class="list-group side-info">
|
<!-- Info Card -->
|
||||||
<li class="list-group-item" *ngIf="entry.entryRating.tmdb_rating"><strong>TMDB Rating:</strong>
|
|
||||||
{{entry.entryRating.tmdb_rating | floatFormat:1}}/10</li>
|
|
||||||
<li class="list-group-item" *ngIf="entry.entryRating.imdb_rating"><strong>IMDB Rating:</strong>
|
|
||||||
{{entry.entryRating.imdb_rating | floatFormat:1}}/10</li>
|
|
||||||
<li class="list-group-item" *ngIf="entry.entryRating.rotten_tomatoes_rating"><strong>Rotten Romatoes:</strong>
|
|
||||||
{{entry.entryRating.rotten_tomatoes_rating | floatFormat:1}}/10</li>
|
|
||||||
<li class="list-group-item"><strong>Premiere:</strong> {{this.entry.release_date | dateFormat:'MMM dd, yyyy'}}
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item" *ngIf="entry.is_tvseries"><strong>Next Episode:</strong> {{nextEpisode}}</li>
|
|
||||||
<li class="list-group-item"><strong>Status:</strong> {{status}}</li>
|
|
||||||
<li class="list-group-item"><strong>Genre:</strong> {{genres}}</li>
|
|
||||||
<li class="list-group-item" *ngIf="entry.date_first_seen"><strong>First Seen:</strong> {{entry.date_first_seen |
|
|
||||||
dateFormat:'MMM dd, yyyy'}}
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item" *ngIf="entry.date_last_seen"><strong>Last Seen:</strong> {{entry.date_last_seen |
|
|
||||||
dateFormat:'MMM dd, yyyy'}}
|
|
||||||
</li>
|
|
||||||
</ul> -->
|
|
||||||
<div class="card info-card">
|
<div class="card info-card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h6 class="card-title">Info</h6>
|
<h6 class="card-title">Info</h6>
|
||||||
@@ -49,9 +33,7 @@
|
|||||||
<strong class="info-item">Status:</strong>
|
<strong class="info-item">Status:</strong>
|
||||||
{{status}}
|
{{status}}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<li class="list-group-item" *ngIf="entry.date_first_seen">
|
<li class="list-group-item" *ngIf="entry.date_first_seen">
|
||||||
<strong class="info-item">First Seen:</strong>
|
<strong class="info-item">First Seen:</strong>
|
||||||
{{entry.date_first_seen | dateFormat:'MMM dd, yyyy'}}
|
{{entry.date_first_seen | dateFormat:'MMM dd, yyyy'}}
|
||||||
@@ -63,6 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Rating Card -->
|
||||||
<div class="card info-card">
|
<div class="card info-card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h6 class="card-title">Rating</h6>
|
<h6 class="card-title">Rating</h6>
|
||||||
@@ -76,22 +59,20 @@
|
|||||||
{{entry.entryRating.imdb_rating | floatFormat:1}}/10
|
{{entry.entryRating.imdb_rating | floatFormat:1}}/10
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item" *ngIf="entry.entryRating.rotten_tomatoes_rating">
|
<li class="list-group-item" *ngIf="entry.entryRating.rotten_tomatoes_rating">
|
||||||
<strong class="info-item">Rotten Romatoes:</strong>
|
<strong class="info-item">Rotten Tomatoes:</strong>
|
||||||
{{entry.entryRating.rotten_tomatoes_rating | floatFormat:1}}/10
|
{{entry.entryRating.rotten_tomatoes_rating | floatFormat:1}}/10
|
||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- watch history -->
|
<!-- Watch History Card -->
|
||||||
<div class="card info-card" *ngIf="entry.entrySeen.length > 0">
|
<div class="card info-card" *ngIf="entry.entrySeen.length > 0">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h6 class="card-title">Watch History</h6>
|
<h6 class="card-title">Watch History</h6>
|
||||||
<!-- <hr> -->
|
|
||||||
<div class="accordion" id="accordionWatchHistory">
|
<div class="accordion" id="accordionWatchHistory">
|
||||||
<!-- start watch history - item -->
|
|
||||||
<div class="accordion-item" *ngFor="let seen of entry.entrySeen">
|
<div class="accordion-item" *ngFor="let seen of entry.entrySeen">
|
||||||
<h2 class="accordion-header" id="heading{{seen.id}}">
|
<h2 class="accordion-header" id="heading{{seen.id}}">
|
||||||
<button class="accordion-button collapsed" type=" button" data-bs-toggle="collapse"
|
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
|
||||||
[attr.data-bs-target]="'#collapse'+seen.id" aria-expanded="false"
|
[attr.data-bs-target]="'#collapse'+seen.id" aria-expanded="false"
|
||||||
[attr.aria-controls]="'collapse' + seen.id">
|
[attr.aria-controls]="'collapse' + seen.id">
|
||||||
{{seen.date_seen | dateFormat:"yyyy-MM-dd"}}
|
{{seen.date_seen | dateFormat:"yyyy-MM-dd"}}
|
||||||
@@ -105,97 +86,66 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="d-flex justify-content-end">
|
<div class="d-flex justify-content-end">
|
||||||
<button type="button" class="btn btn-icon-only">
|
<button type="button" class="btn btn-icon-only">
|
||||||
<span class="material-symbols-outlined" (click)="removeEntrySeen(seen.id)">
|
<span class="material-symbols-outlined" (click)="removeEntrySeen(seen.id)">delete_forever</span>
|
||||||
delete_forever
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-icon-only">
|
<button type="button" class="btn btn-icon-only">
|
||||||
<span class="material-symbols-outlined" (click)="editEntrySeen(seen)">
|
<span class="material-symbols-outlined" (click)="editEntrySeen(seen)">edit</span>
|
||||||
edit
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end watch history - item -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end watch history -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-8 right-col">
|
<!-- Right Column -->
|
||||||
<!-- Movie Title -->
|
<div class="col-md-9 right-col">
|
||||||
<div class="d-flex justify-content-between align-items-center ">
|
<!-- Movie Title and Actions -->
|
||||||
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||||
<h2 class="title" (click)="redirectToTmdb()">{{this.entry.title}}</h2>
|
<h2 class="title" (click)="redirectToTmdb()">{{this.entry.title}}</h2>
|
||||||
|
|
||||||
<!-- Interraction buttons -->
|
|
||||||
<div class="row entry-actions">
|
<div class="row entry-actions">
|
||||||
<button class="btn btn-icon-only-favorite wh-48" (click)="toggleFavorite()"
|
<button class="btn btn-icon-only-favorite wh-48" (click)="toggleFavorite()"
|
||||||
[ngClass]="{ 'faved': entry.favorit }">
|
[ngClass]="{ 'faved': entry.favorit }">
|
||||||
<span class="material-symbols-outlined">grade</span>
|
<span class="material-symbols-outlined">grade</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="toggleHidden()">
|
<button class="btn btn-icon-only-success wh-48" (click)="toggleHidden()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">{{ entry.hidden ? 'visibility_off' : 'visibility' }}</span>
|
||||||
{{ entry.hidden ? 'visibility_off' : 'visibility' }}
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" *ngIf="!entry.is_tvseries" (click)="openEntrySeenModal()">
|
<button class="btn btn-icon-only-success wh-48" *ngIf="!entry.is_tvseries" (click)="openEntrySeenModal()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">event_available</span>
|
||||||
event_available
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="addToCollectionModal()">
|
<button class="btn btn-icon-only-success wh-48" (click)="addToCollectionModal()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">playlist_add</span>
|
||||||
playlist_add
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="refrechEntry()">
|
<button class="btn btn-icon-only-success wh-48" (click)="refrechEntry()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">update</span>
|
||||||
update
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="fetchEntryCollection()">
|
<button class="btn btn-icon-only-success wh-48" (click)="fetchEntryCollection()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">published_with_changes</span>
|
||||||
published_with_changes
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="mediaModal()">
|
<button class="btn btn-icon-only-success wh-48" (click)="mediaModal()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">image</span>
|
||||||
image
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-icon-only-success wh-48" (click)="settingsModal()">
|
<button class="btn btn-icon-only-success wh-48" (click)="settingsModal()">
|
||||||
<span class="material-symbols-outlined">
|
<span class="material-symbols-outlined">settings</span>
|
||||||
settings
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- End Interraction buttons -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Movie Details -->
|
||||||
<div class="row p-3 pt-0">
|
<div class="row p-3 pt-0">
|
||||||
<!-- Movie Release Date -->
|
|
||||||
<p class="p-0 m-0">
|
<p class="p-0 m-0">
|
||||||
<span *ngIf="this.entry.title != this.entry.original_title">{{this.entry.original_title}} • </span>
|
<span *ngIf="this.entry.title != this.entry.original_title">{{this.entry.original_title}} • </span>
|
||||||
{{this.entry.release_date | dateFormat:'yyyy'}} • {{genres}}
|
{{this.entry.release_date | dateFormat:'yyyy'}} • {{genres}}
|
||||||
</p>
|
</p>
|
||||||
<!-- Movie Overview -->
|
|
||||||
<p class="p-0"><strong>{{this.entry.tagline}}</strong></p>
|
<p class="p-0"><strong>{{this.entry.tagline}}</strong></p>
|
||||||
<p class="p-0">{{this.entry.storyline}}</p>
|
<p class="p-0">{{this.entry.storyline}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Series Seasons -->
|
<!-- Series Seasons -->
|
||||||
<div class="row" *ngIf="entry.is_tvseries">
|
<div class="row" *ngIf="entry.is_tvseries">
|
||||||
<h3 class="opacity-100">Seasons</h3>
|
<h3>Seasons</h3>
|
||||||
<div class="card-body p-0">
|
<div class="card-body p-0">
|
||||||
<div class="p-3 ps ps--active-y">
|
<div class="p-3 ps ps--active-y">
|
||||||
<div class="d-flex flex-column gap-3">
|
<div class="d-flex flex-column gap-3">
|
||||||
@@ -205,42 +155,48 @@
|
|||||||
(episodeWatchedDeletedEvent)="triggerEpisodeWatchedDeletedEvent()">
|
(episodeWatchedDeletedEvent)="triggerEpisodeWatchedDeletedEvent()">
|
||||||
</app-season-main-card>
|
</app-season-main-card>
|
||||||
</div>
|
</div>
|
||||||
<!-- show all/less when entry has more that 2 seasons -->
|
|
||||||
<p class="text-center clickable" *ngIf="entry.seasons.length > initialCount"
|
<p class="text-center clickable" *ngIf="entry.seasons.length > initialCount"
|
||||||
(click)="toggleShowAllSeasons()" style="cursor: pointer;">
|
(click)="toggleShowAllSeasons()">
|
||||||
{{ showAll ? 'Show Less' : 'Show All' }}
|
{{ showAll ? 'Show Less' : 'Show All' }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="row">
|
<!-- Collections -->
|
||||||
<h3>Cast</h3>
|
<div class="row mb-5" *ngIf="this.entry.collections.length != 0">
|
||||||
</div> -->
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||||
|
<h3>Belong to Collection(s)</h3>
|
||||||
|
<div class="dropdown">
|
||||||
|
<button class="btn btn-sm btn-filter bg-transparent" type="button" (click)="addToCollectionModal()">
|
||||||
|
<i class="bi bi-collection"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body p-3 pb-0">
|
||||||
|
<div class="row g-3">
|
||||||
|
<div class="col-md-4" *ngFor="let collection of entry.collections">
|
||||||
|
<div class="card h-100 mb-0 collection-card" [routerLink]="['/collections', collection.id]">
|
||||||
|
<div class="card-img-overlay d-flex align-items-start justify-content-center">
|
||||||
|
<h5>{{ collection.name }}</h5>
|
||||||
|
</div>
|
||||||
|
<img [src]="collection.selectedBackdrop" alt="{{ collection.name }}" class="card-img">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <div class="row">
|
<!-- Watch History -->
|
||||||
<h3>Collections</h3>
|
|
||||||
</div> -->
|
|
||||||
<div class="row" *ngIf="this.entry.is_tvseries && this.seenHistory.length != 0">
|
<div class="row" *ngIf="this.entry.is_tvseries && this.seenHistory.length != 0">
|
||||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||||
<h3>Watch History</h3>
|
<h3>Watch History</h3>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn btn-sm btn-filter bg-transparent" type="button" style="cursor: pointer;"
|
<button class="btn btn-sm btn-filter bg-transparent" type="button" (click)="addEpisodeSeen()">
|
||||||
(click)="addEpisodeSeen()">
|
|
||||||
<i class="bi bi-check2"></i>
|
<i class="bi bi-check2"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="dropdown">
|
|
||||||
<button class="btn btn-sm btn-filter dropdown-toggle dropdown-toggle-nocaret bg-transparent" type="button"
|
|
||||||
data-bs-toggle="dropdown" aria-expanded="false">
|
|
||||||
<i class="bi bi-three-dots"></i>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" style="cursor: pointer;">
|
|
||||||
<li (click)="addEpisodeSeen()"><a class="dropdown-item">Add a watch date</a></li>
|
|
||||||
</ul>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body p-3">
|
<div class="card-body p-3">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -264,23 +220,20 @@
|
|||||||
data-bs-toggle="dropdown" aria-expanded="false">
|
data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="bi bi-three-dots"></i>
|
<i class="bi bi-three-dots"></i>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" style="cursor: pointer;">
|
<ul class="dropdown-menu">
|
||||||
<li (click)="editEpisodeSeen(item)"><a class="dropdown-item">Edit</a></li>
|
<li (click)="editEpisodeSeen(item)"><a class="dropdown-item">Edit</a></li>
|
||||||
<li (click)="deleteEpisodeSeen(item)"><a class="dropdown-item">Delete</a></li>
|
<li (click)="deleteEpisodeSeen(item)"><a class="dropdown-item">Delete</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="pagination-container d-flex justify-content-end" *ngIf="maxPage > 1">
|
<div class="pagination-container d-flex justify-content-end" *ngIf="maxPage > 1">
|
||||||
<ul class="pagination pagination-sm">
|
<ul class="pagination pagination-sm">
|
||||||
<li class="page-item" [class.disabled]="currentPage === 1">
|
<li class="page-item" [class.disabled]="currentPage === 1">
|
||||||
<a class="page-link" href="javascript:;" (click)="goToPage(currentPage - 1)">Previous</a>
|
<a class="page-link" href="javascript:;" (click)="goToPage(currentPage - 1)">Previous</a>
|
||||||
</li>
|
</li>
|
||||||
<!-- Dynamically generate page numbers -->
|
|
||||||
<li class="page-item" *ngFor="let page of pageNumbers" [class.active]="currentPage === page">
|
<li class="page-item" *ngFor="let page of pageNumbers" [class.active]="currentPage === page">
|
||||||
<a class="page-link" href="javascript:;" (click)="goToPage(page)">{{ page }}</a>
|
<a class="page-link" href="javascript:;" (click)="goToPage(page)">{{ page }}</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -292,35 +245,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" *ngIf="this.entry.collections.length != 0">
|
|
||||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
|
||||||
<h3>Belong to Collection(s)</h3>
|
|
||||||
<div class="dropdown">
|
|
||||||
<button class="btn btn-sm btn-filter bg-transparent" type="button" style="cursor: pointer;"
|
|
||||||
(click)="addToCollectionModal()">
|
|
||||||
<i class="bi bi-collection"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-body p-3 pb-0">
|
|
||||||
<!-- Iterate through each collection in the entry.collections array -->
|
|
||||||
<div class="row g-3">
|
|
||||||
<div class="col-md-4" *ngFor="let collection of entry.collections">
|
|
||||||
<div class="card h-100 mb-0 collection-card" [routerLink]="['/collections', collection.id]">
|
|
||||||
<div class="card-img-overlay d-flex align-items-start justify-content-center"
|
|
||||||
style="background-color: rgba(0, 0, 0, 0.5);">
|
|
||||||
<h5 class="text-white">{{ collection.name }}</h5>
|
|
||||||
</div>
|
|
||||||
<img [src]="collection.selectedBackdrop" alt="{{ collection.name }}" class="card-img">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -28,7 +28,6 @@ import { ConfigService } from '../../../core/services/config.service';
|
|||||||
selector: 'app-entry-page',
|
selector: 'app-entry-page',
|
||||||
templateUrl: './entry-page.component.html',
|
templateUrl: './entry-page.component.html',
|
||||||
styleUrls: ['./entry-page.component.css'],
|
styleUrls: ['./entry-page.component.css'],
|
||||||
encapsulation: ViewEncapsulation.None,
|
|
||||||
animations: [
|
animations: [
|
||||||
trigger('fadeInOut', [
|
trigger('fadeInOut', [
|
||||||
transition(':enter', [
|
transition(':enter', [
|
||||||
|
|||||||
Reference in new issue
Block a user