diff --git a/public/css/app.css b/public/css/app.css index fe3a6fa..47e7f27 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -164,4 +164,21 @@ footer { .app-version-list .list-group-item:last-child { border-bottom: 0; + } + + /* Movies page helpers (Bootstrap-first, minimal custom) */ + .movie-poster { + width: 100%; + max-height: 360px; + object-fit: contain; + } + + .imdb-icon { + width: 18px; + height: 18px; + vertical-align: text-bottom; + } + + .watched-badge { + z-index: 2; } \ No newline at end of file diff --git a/public/js/app_movies.js b/public/js/app_movies.js index 029bc32..1a3d890 100644 --- a/public/js/app_movies.js +++ b/public/js/app_movies.js @@ -359,22 +359,31 @@ window.addEventListener('DOMContentLoaded', async function () { : (hasLegacy ? movie.vod_link : (movie && movie._id ? `/player.html?id=${encodeURIComponent(movie._id)}` : '#')); const movieDiv = document.createElement('div'); - movieDiv.classList.add('col-md-4', 'mb-4', 'movie-card'); + movieDiv.classList.add('col-12', 'col-sm-6', 'col-lg-4', 'movie-card'); movieDiv.setAttribute('data-imdb-id', movie.imdb_id); movieDiv.innerHTML = ` -
- ${isChecked ? '
VISIONNÉ
' : ''} - - ${movie.title} +
+ ${isChecked ? 'VISIONNÉ' : ''} + +
+ ${movie.title} +
-
-
- ${movie.title} - ⭐ ${movie.rating} -
-

${movie.category}

-

${movie.description}

- ${isChecked ? `

Regardé le: ${watchedDate}

` : ''} +
+
+
+ ${movie.title} +
+
+ ⭐ ${movie.rating} + + IMDb + +
+
+
${movie.category}
+

${movie.description}

+ ${isChecked ? `
Regardé le: ${watchedDate}
` : ''}
`; moviesList.appendChild(movieDiv); diff --git a/public/movies.html b/public/movies.html index dd556a2..b0ce59d 100644 --- a/public/movies.html +++ b/public/movies.html @@ -21,42 +21,9 @@ color: #ddd; } - /* Style for the 'WATCHED' banner */ - .watched-banner { - background-color: green; - color: white; - text-align: center; - padding: 5px; - font-weight: bold; - position: absolute; - top: 10px; - width: 100%; - z-index: 1; - } - - /* Centering checkbox and making card look better */ - .movie-card { - position: relative; - margin-bottom: 20px; - } - .card-body { - position: relative; - } - #movies-list { margin-top: 10px; } - - /* Style for the filter button */ - #filter-button { - margin-left: 15px; - } - - /* Style for the ratio display */ - .ratio { - font-weight: bold; - margin-top: 10px; - } .navbar-toggler { border-color: white; /* Make the border white */ } @@ -104,31 +71,35 @@
-
-

Films

+

Films

+ + +
+
+
+
+ Dernière mise à jour des films: — +
+
—
+
+ Temps avant les Oscars (— —) — — +
+
+ +
+
+ + +
+
Clique sur l’affiche ou le titre pour ouvrir le lecteur.
+
+
- - - - -
- -
- -

Temps avant les Oscars (— —) -

-

- -

-
-
- - -
-
- +
+
+
Chargement…
+