diff --git a/frontend/src/app/features/entry/entries.module.ts b/frontend/src/app/features/entry/entries.module.ts index 971cee6..3d4f027 100644 --- a/frontend/src/app/features/entry/entries.module.ts +++ b/frontend/src/app/features/entry/entries.module.ts @@ -10,6 +10,7 @@ import { MediaUploadModalComponent } from './media-upload-modal/media-upload-mod import { EntrySettingsModalComponent } from './entry-settings-modal/entry-settings-modal.component'; import { AlternateEntryPageComponent } from './alternate-entry-page/alternate-entry-page.component'; import { SeasonPageComponent } from './season-page/season-page.component'; +import { EpisodeDialogComponent } from './episode-dialog/episode-dialog.component'; @NgModule({ declarations: [ @@ -20,6 +21,7 @@ import { SeasonPageComponent } from './season-page/season-page.component'; MediaUploadModalComponent, EntrySettingsModalComponent, SeasonPageComponent, + EpisodeDialogComponent, ], imports: [ CommonModule, diff --git a/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.css b/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.css new file mode 100644 index 0000000..6fc1bac --- /dev/null +++ b/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.css @@ -0,0 +1,196 @@ +:host { + --dialog-bg-opacity: 0.7; + --dialog-bg: rgba(255, 255, 255, var(--dialog-bg-opacity)); + --dialog-text: #333; + --dialog-border: rgba(255, 255, 255, 0.2); + --dialog-shadow: rgba(0, 0, 0, 0.2); +} + +[data-bs-theme="dark"] :host { + --dialog-bg: rgba(33, 37, 41, var(--dialog-bg-opacity)); + --dialog-text: #fff; + --dialog-border: rgba(0, 0, 0, 0.2); + --dialog-shadow: rgba(0, 0, 0, 0.4); +} + +.dialog-backdrop { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + backdrop-filter: blur(5px); + -webkit-backdrop-filter: blur(5px); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; + padding: 2rem; +} + +.dialog-container { + position: relative; + width: 100%; + max-width: 900px; + max-height: 90vh; + background: var(--dialog-bg); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border-radius: 15px; + box-shadow: 0 8px 32px var(--dialog-shadow); + border: 1px solid var(--dialog-border); + overflow: hidden; + color: var(--dialog-text); +} + +.close-button { + position: absolute; + top: 1rem; + right: 1rem; + background: transparent; + border: none; + color: var(--dialog-text); + width: 40px; + height: 40px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + z-index: 1; + transition: background-color 0.2s; +} + +.close-button:hover { + background: rgba(0, 0, 0, 0.1); +} + +.dialog-content { + max-height: 90vh; + overflow-y: auto; +} + +/* Episode Header */ +.episode-header { + position: relative; +} + +.episode-still { + width: 100%; + height: 300px; + overflow: hidden; +} + +.episode-still img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.episode-title-section { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 2rem; + background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); + color: white; +} + +.episode-title-section h1 { + margin: 0.5rem 0; + font-size: 2rem; + font-weight: 600; +} + +.episode-title-section h2 { + margin: 0; + font-size: 1rem; + font-weight: 400; + opacity: 0.8; +} + +.episode-meta { + display: flex; + gap: 1rem; + margin-top: 0.5rem; + opacity: 0.8; +} + +.episode-meta span { + display: flex; + align-items: center; + gap: 0.5rem; +} + +/* Episode Overview */ +.episode-overview { + padding: 2rem; +} + +.episode-overview h3 { + margin-bottom: 1rem; + font-size: 1.5rem; + font-weight: 600; +} + +/* Watch History */ +.watch-history { + padding: 0 2rem 2rem; +} + +.watch-history h3 { + margin-bottom: 1rem; + font-size: 1.5rem; + font-weight: 600; +} + +.history-timeline { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.history-entry { + display: flex; + align-items: center; + gap: 2rem; + padding: 1rem; + background: rgba(0, 0, 0, 0.1); + border-radius: 8px; +} + +.history-date, +.history-rating { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.material-symbols-outlined { + font-size: 20px; +} + +@media (max-width: 768px) { + .dialog-backdrop { + padding: 1rem; + } + + .episode-still { + height: 200px; + } + + .episode-title-section { + padding: 1rem; + } + + .episode-title-section h1 { + font-size: 1.5rem; + } + + .episode-overview, + .watch-history { + padding: 1rem; + } +} \ No newline at end of file diff --git a/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.html b/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.html new file mode 100644 index 0000000..183659c --- /dev/null +++ b/frontend/src/app/features/entry/episode-dialog/episode-dialog.component.html @@ -0,0 +1,53 @@ +
{{episode.overview}}
+