diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts
index d3c44b7..17a3ae9 100644
--- a/frontend/src/app/app-routing.module.ts
+++ b/frontend/src/app/app-routing.module.ts
@@ -5,7 +5,6 @@ import { SearchComponent } from './features/discover/search/search.component';
import { TrendingComponent } from './features/discover/trending/trending.component';
import { PopularComponent } from './features/discover/popular/popular.component';
import { LibraryComponent } from './features/library/library.component';
-import { EntryPageComponent } from './features/entry/entry-page/entry-page.component';
const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full' },
@@ -15,7 +14,21 @@ const routes: Routes = [
{ path: 'trending', component: TrendingComponent },
{ path: 'library', component: LibraryComponent },
- { path: 'entry', component: EntryPageComponent },
+ { path: 'entry', component: LibraryComponent },
+ // {
+ // path: 'entry/:id',
+ // component: EntryPageComponent,
+ // resolve: {
+ // entry: EntryResolverService,
+ // },
+ // },
+ {
+ path: 'entry',
+ loadChildren: () =>
+ import('./features/entry/entries.module').then(
+ (m) => m.EntriesModule
+ ),
+ },
{
path: 'user-collections',
loadChildren: () =>
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
index e0580ab..12fe7f3 100644
--- a/frontend/src/app/app.module.ts
+++ b/frontend/src/app/app.module.ts
@@ -5,62 +5,58 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { DragDropModule } from '@angular/cdk/drag-drop';
+
import { CoreModule } from './core/core.module';
-import { SharedModule } from './shared/shared.module';
+import { CommonModule, DatePipe } from '@angular/common';
+
+import { ModalModule } from 'ngx-bootstrap/modal';
+import { AccordionModule } from 'ngx-bootstrap/accordion';
-import { MatDialogModule } from '@angular/material/dialog';
-import { MatInputModule } from '@angular/material/input';
-import { MatButtonModule } from '@angular/material/button';
-import { MatCheckboxModule } from '@angular/material/checkbox';
-import { MatListModule } from '@angular/material/list';
-import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { DatePipe } from '@angular/common';
-import { DragDropModule } from '@angular/cdk/drag-drop';
import { HomeComponent } from './features/home/home.component';
import { PopularComponent } from './features/discover/popular/popular.component';
import { TrendingComponent } from './features/discover/trending/trending.component';
import { SearchComponent } from './features/discover/search/search.component';
import { LibraryComponent } from './features/library/library.component';
+
import { DynamicEntryListComponent } from './shared/components/lists/dynamic-entry-list/dynamic-entry-list.component';
import { NotificationPopupComponent } from './shared/components/notification-popup/notification-popup.component';
import { MainCardComponent } from './shared/components/cards/main-card/main-card.component';
import { UserCollectionsModalComponent } from './shared/components/modals/list-selection-modal/user-collections-modal.component';
-import { EntryPageComponent } from './features/entry/entry-page/entry-page.component';
@NgModule({
declarations: [
AppComponent,
+
+ // pages
HomeComponent,
PopularComponent,
TrendingComponent,
SearchComponent,
LibraryComponent,
+ // EntryPageComponent,
- // ? components
- NotificationPopupComponent,
+ // ? temp shared components
MainCardComponent,
DynamicEntryListComponent,
NotificationPopupComponent,
UserCollectionsModalComponent,
- EntryPageComponent,
],
imports: [
CoreModule,
+ CommonModule,
+
+ AppRoutingModule,
BrowserModule,
- AppRoutingModule,
+ BrowserAnimationsModule,
HttpClientModule,
ReactiveFormsModule,
FormsModule,
- // MatDialogModule,
- // MatInputModule,
- // MatButtonModule,
- // MatCheckboxModule,
- // MatListModule,
- BrowserAnimationsModule,
DragDropModule,
],
diff --git a/frontend/src/app/core/core.module.ts b/frontend/src/app/core/core.module.ts
index 7a6d765..4d0d0a6 100644
--- a/frontend/src/app/core/core.module.ts
+++ b/frontend/src/app/core/core.module.ts
@@ -9,6 +9,7 @@ import { ToggleService } from './services/toggle.service';
import { SidebarComponent } from './components/sidebar/sidebar.component';
import { NavbarComponent } from './components/navbar/navbar.component';
import { RouterModule } from '@angular/router';
+import { EntrySeenService } from './services/entry-seen.service';
@NgModule({
declarations: [SidebarComponent, NavbarComponent],
@@ -17,6 +18,7 @@ import { RouterModule } from '@angular/router';
TmdbService,
LibraryService,
EntryService,
+ EntrySeenService,
UserCollectionService,
ToggleService,
],
diff --git a/frontend/src/app/features/entry/entries-routing.module.ts b/frontend/src/app/features/entry/entries-routing.module.ts
new file mode 100644
index 0000000..fbc9de5
--- /dev/null
+++ b/frontend/src/app/features/entry/entries-routing.module.ts
@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+import { EntryPageComponent } from './entry-page/entry-page.component';
+import { EntryResolverService } from '../../core/resolvers/entry-resolver.service';
+
+const routes: Routes = [
+ {
+ path: ':id',
+ component: EntryPageComponent,
+ resolve: {
+ entry: EntryResolverService,
+ },
+ },
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule],
+})
+export class EntriesRoutingModule {}
diff --git a/frontend/src/app/features/entry/entries.module.ts b/frontend/src/app/features/entry/entries.module.ts
new file mode 100644
index 0000000..4fedc00
--- /dev/null
+++ b/frontend/src/app/features/entry/entries.module.ts
@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+import { SharedModule } from '../../shared/shared.module';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { EntryPageComponent } from './entry-page/entry-page.component';
+import { EntriesRoutingModule } from './entries-routing.module';
+import { CommonModule } from '@angular/common';
+
+@NgModule({
+ declarations: [EntryPageComponent],
+ imports: [
+ CommonModule,
+ SharedModule,
+
+ FormsModule,
+ ReactiveFormsModule,
+ EntriesRoutingModule,
+ ],
+ exports: [],
+})
+export class EntriesModule {}
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 b2bc21b..ed3c96e 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,40 +1,66 @@
-.background-image {
- position: fixed; /* Keep the background fixed */
+.background-wrapper {
+ position: absolute;
top: 0;
left: 0;
- width: 100%; /* Cover the full view width */
- height: 100%; /* Cover the full view height */
- z-index: -1; /* Place it behind the content */
+ width: 100%;
+ height: 80vh;
+ /* Use 100vh to ensure it covers the viewport height */
+ z-index: -1;
+ overflow: hidden;
+}
+
+.background-wrapper img {
+ width: 100%;
+ height: 100%;
+ object-fit: fill;
+}
+
+.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-color: rgba(
- 255,
- 255,
- 255,
- 0.461
- ); /* Light semi-transparent background */
- backdrop-filter: blur(10px); /* Blur effect */
- padding: 20px; /* Padding for content */
- border-radius: 8px; /* Rounded corners */
- border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: subtle border */
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.461) 10%, #eff1f3 100%);
+
+ backdrop-filter: blur(10px);
+ /* Blur effect */
+ padding: 20px;
+ /* Padding for content */
+ border-radius: 8px;
+ /* Rounded corners */
+ border: 1px solid #eff1f3;
+ /* Optional: subtle border */
+ /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}
-.content-wrapper-dark {
+[data-bs-theme=dark] .content-wrapper {
color: #a7acb1;
- background-color: rgba(
- 33,
- 37,
- 41,
- 0.7
- ); /* Dark semi-transparent background */
- backdrop-filter: blur(10px); /* Blur effect */
- padding: 20px; /* Padding for content */
- border-radius: 8px; /* Rounded corners */
- border: 1px solid #212529; /* Subtle light border for contrast */
- box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1); /* Lighter shadow for a glow effect */
+ background: linear-gradient(to bottom, rgba(33,
+ 37,
+ 41,
+ 0.7) 50%, #181c1f 100%);
+
+ background-color: rgba(33,
+ 37,
+ 41,
+ 0.7);
+ /* Dark semi-transparent background */
+ border: 1px solid #181c1f;
+ /* Subtle light border for contrast */
+ /* box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1); */
+ /* Lighter shadow for a glow effect */
}
.main-container {
@@ -42,14 +68,24 @@
}
.poster {
- padding: 10px 10px 0 10px;
+ padding: px 10px 0 10px;
}
.poster img {
border-radius: 5px;
+ margin-bottom: 0 !important;
}
-.side-info {
+
+.rating {
+ color: var(--shz-gold-1);
+ font-size: 25px;
+ margin: 10px 0;
+}
+
+
+.side-info .list-group-item {
background-color: rgba(255, 255, 255, 0.461) !important;
+ background-color: transparent !important;
}
/* ! DESCRIPTION */
@@ -58,3 +94,43 @@
font-weight: bolder;
font-size: 2.9rem !important;
}
+
+
+[data-bs-theme=dark] .title {
+ color: white;
+}
+
+
+.side-info strong {
+ color: #008cff;
+
+}
+
+.btn-icon-only {
+ background-color: transparent;
+ border: none;
+ color: inherit;
+ margin: 0 5px 3px 0;
+}
+
+.btn-icon-only:hover {
+ color: #fc185a;
+}
+
+.btn-icon-only-success:hover {
+ color: #008cff;
+}
+
+.interaction-btns {
+ position: absolute;
+ top: 10px;
+ right: 15px;
+ background-color: aquamarine;
+}
+
+.interaction-btns button {
+ display: block;
+ padding-top: 0;
+ padding-bottom: 0;
+ width: 50px;
+}
\ 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 a23a4f4..9ea0cb7 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,33 +1,123 @@
-
-
+
-
+ Release Date: January 1, 2024
+{{year}} • {{genres}}
+ -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique senectus et - netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit - amet, ante.
+{{this.entry.tagline}}
+{{this.entry.storyline}}
+ + +initialCount" + (click)="toggleShowAllSeasons()" style="cursor: pointer;"> + {{ showAll ? 'Show Less' : 'Show All' }} +
+