118 lines
4.3 KiB
HTML
118 lines
4.3 KiB
HTML
<!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>
|