159 lines
5.1 KiB
Plaintext
159 lines
5.1 KiB
Plaintext
<!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>
|