Version stable : Synthèse 3 cinémas avec affiches et horaires
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<title>Ciné Toulouse</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<style>
|
||||
body { background-color: #0a0a0a; color: #fff; font-family: 'Segoe UI', system-ui, sans-serif; }
|
||||
|
||||
.main-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
|
||||
|
||||
.movie-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 15px;
|
||||
justify-content: center;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.movie-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
||||
}
|
||||
@media (min-width: 1100px) {
|
||||
.movie-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
|
||||
}
|
||||
|
||||
.movie-card {
|
||||
background: #161616;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #252525;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
.movie-card:hover { transform: translateY(-5px); border-color: #ffc107; }
|
||||
|
||||
/* Ratio portrait 2:3 */
|
||||
.poster-box {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 150%;
|
||||
background: #222;
|
||||
}
|
||||
.poster-img {
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.cinema-label {
|
||||
position: absolute;
|
||||
top: 10px; left: 10px;
|
||||
padding: 4px 10px;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.movie-info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
|
||||
.movie-title {
|
||||
font-size: 0.95rem; font-weight: 700; color: #fff;
|
||||
margin-bottom: 12px; min-height: 2.4rem;
|
||||
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.time-wrap { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: auto; }
|
||||
.time-pill {
|
||||
background: #ffc107; color: #000;
|
||||
font-weight: 800; font-size: 0.85rem;
|
||||
padding: 3px 10px; border-radius: 4px;
|
||||
}
|
||||
|
||||
.footer-note { text-align: center; color: #444; font-size: 0.7rem; margin-top: 50px; padding-bottom: 30px; }
|
||||
h1 { font-weight: 900; letter-spacing: -1px; text-align: center; color: #ffc107; margin-bottom: 30px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<h1><i class="fas fa-film me-3"></i>CINÉ TOULOUSE</h1>
|
||||
|
||||
<div class="movie-grid">
|
||||
{% for film in films %}
|
||||
<div class="movie-card">
|
||||
<div class="poster-box">
|
||||
{% if film.img %}
|
||||
<img src="{{ film.img }}" class="poster-img" loading="lazy">
|
||||
{% else %}
|
||||
<div class="poster-img d-flex align-items-center justify-content-center bg-dark text-muted small">IMAGE NON DISPONIBLE</div>
|
||||
{% endif %}
|
||||
<span class="cinema-label" style="background-color: {{ film.color }}; color: {{ '#000' if film.cinema != 'Le Cratère' else '#fff' }};">
|
||||
{{ film.cinema }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="movie-info">
|
||||
<div class="movie-title">{{ film.title }}</div>
|
||||
<div class="time-wrap">
|
||||
{% for t in film.times %}
|
||||
<span class="time-pill">{{ t }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="footer-note">
|
||||
Auto-sync à 00:05 | Mise à jour : {{ updated }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<title>Ciné Toulouse</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<style>
|
||||
body { background-color: #0a0a0a; color: #ffffff; font-family: 'Segoe UI', system-ui, sans-serif; }
|
||||
|
||||
/* Conteneur principal plus étroit sur Desktop pour centrer */
|
||||
.main-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
|
||||
|
||||
/* Grille : 2 par ligne sur mobile, 5 sur Desktop */
|
||||
.movie-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 15px;
|
||||
}
|
||||
@media (min-width: 992px) {
|
||||
.movie-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; }
|
||||
}
|
||||
@media (min-width: 1400px) {
|
||||
.movie-grid { grid-template-columns: repeat(5, 1fr); }
|
||||
}
|
||||
|
||||
.movie-card {
|
||||
background: #161616;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #252525;
|
||||
transition: transform 0.2s, border-color 0.2s;
|
||||
}
|
||||
.movie-card:hover {
|
||||
transform: translateY(-5px);
|
||||
border-color: #ffc107;
|
||||
}
|
||||
|
||||
/* Format Portrait Rectangulaire (Ratio 2/3) */
|
||||
.poster-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 150%; /* Ratio 2:3 */
|
||||
background: #222;
|
||||
}
|
||||
.poster-img {
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.cinema-label {
|
||||
position: absolute;
|
||||
top: 10px; left: 10px;
|
||||
padding: 3px 8px;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.movie-info {
|
||||
padding: 12px;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.movie-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 10px;
|
||||
min-height: 2.2rem;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.time-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
justify-content: center;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.time-pill {
|
||||
background: #ffc107;
|
||||
color: #000;
|
||||
font-weight: 800;
|
||||
font-size: 0.8rem;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.footer-status {
|
||||
text-align: center;
|
||||
color: #444;
|
||||
font-size: 0.75rem;
|
||||
margin-top: 50px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
h1 { font-weight: 900; letter-spacing: -1px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<h1 class="text-center my-4 text-warning"><i class="fas fa-film me-2"></i>CINÉ TOULOUSE</h1>
|
||||
|
||||
<div class="movie-grid">
|
||||
{% for film in films %}
|
||||
<div class="movie-item">
|
||||
<div class="movie-card">
|
||||
<div class="poster-wrapper">
|
||||
{% if film.img %}
|
||||
<img src="{{ film.img }}" class="poster-img" loading="lazy">
|
||||
{% else %}
|
||||
<div class="poster-img d-flex align-items-center justify-content-center bg-dark text-muted small">
|
||||
<i class="fas fa-image fa-2x"></i>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<span class="cinema-label" style="background-color: {{ film.color }}; color: {{ '#000' if film.cinema != 'Le Cratère' else '#fff' }};">
|
||||
{{ film.cinema }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="movie-info">
|
||||
<div class="movie-title">{{ film.title }}</div>
|
||||
<div class="time-group">
|
||||
{% for t in film.times %}
|
||||
<span class="time-pill">{{ t }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="footer-status">
|
||||
Synchronisation quotidienne à 00:05<br>
|
||||
Dernier relevé : {{ updated }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user