Init photobooth - borne photo evenementielle RPi4
Backend FastAPI complet : camera gphoto2, filtres/overlays Pillow, chroma key OpenCV, multi-shot/collage, GIF, impression CUPS, email SMTP, QR code. Frontend web vanilla (HTML/CSS/JS) pour Chromium kiosk. Menu admin cache (appui long coin ecran). Toutes les fonctionnalites activables/desactivables. Scripts install + systemd pour RPi4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
602
frontend/css/style.css
Normal file
602
frontend/css/style.css
Normal file
@@ -0,0 +1,602 @@
|
||||
/* === Variables et Reset === */
|
||||
:root {
|
||||
--primaire: #e91e63;
|
||||
--secondaire: #ffffff;
|
||||
--fond: #1a1a2e;
|
||||
--fond-carte: #16213e;
|
||||
--texte: #ffffff;
|
||||
--texte-secondaire: #a0a0b0;
|
||||
--danger: #f44336;
|
||||
--succes: #4caf50;
|
||||
--rayon: 16px;
|
||||
--ombre: 0 8px 32px rgba(0,0,0,0.3);
|
||||
--transition: 0.3s ease;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
||||
background: var(--fond);
|
||||
color: var(--texte);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* === Ecrans === */
|
||||
.ecran {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.4s ease;
|
||||
}
|
||||
|
||||
.ecran.actif {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
/* === Ecran d'accueil === */
|
||||
.accueil-contenu {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.accueil-contenu h1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--primaire);
|
||||
}
|
||||
|
||||
.accueil-instruction {
|
||||
font-size: 1.4rem;
|
||||
color: var(--texte-secondaire);
|
||||
animation: pulse-texte 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-texte {
|
||||
0%, 100% { opacity: 0.5; }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
|
||||
.accueil-animation {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.cercle-pulse {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
background: var(--primaire);
|
||||
margin: 0 auto;
|
||||
animation: pulse-cercle 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-cercle {
|
||||
0% { transform: scale(1); opacity: 0.7; }
|
||||
50% { transform: scale(1.2); opacity: 1; }
|
||||
100% { transform: scale(1); opacity: 0.7; }
|
||||
}
|
||||
|
||||
/* Zone admin invisible */
|
||||
.zone-admin {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
/* === Choix du mode === */
|
||||
.grille-modes {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
.btn-mode {
|
||||
background: var(--fond-carte);
|
||||
border: 2px solid transparent;
|
||||
border-radius: var(--rayon);
|
||||
padding: 2rem 3rem;
|
||||
color: var(--texte);
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.btn-mode:active {
|
||||
transform: scale(0.95);
|
||||
border-color: var(--primaire);
|
||||
}
|
||||
|
||||
.btn-mode .mode-icone {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
/* === Capture / Preview live === */
|
||||
.preview-live {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.preview-live img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.compte-a-rebours {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.compte-a-rebours span {
|
||||
font-size: 12rem;
|
||||
font-weight: 700;
|
||||
color: var(--primaire);
|
||||
animation: pop 0.5s ease;
|
||||
}
|
||||
|
||||
@keyframes pop {
|
||||
0% { transform: scale(0.3); opacity: 0; }
|
||||
60% { transform: scale(1.2); }
|
||||
100% { transform: scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
.flash-blanc {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
background: #fff;
|
||||
z-index: 20;
|
||||
animation: flash 0.3s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes flash {
|
||||
0% { opacity: 1; }
|
||||
100% { opacity: 0; }
|
||||
}
|
||||
|
||||
.capture-info {
|
||||
position: absolute;
|
||||
bottom: 2rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(0,0,0,0.5);
|
||||
padding: 0.5rem 1.5rem;
|
||||
border-radius: 2rem;
|
||||
font-size: 1rem;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
/* === Preview photo + Filtres === */
|
||||
.preview-photo-container {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
max-height: 65vh;
|
||||
}
|
||||
|
||||
.preview-photo-container img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border-radius: var(--rayon);
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.barre-filtres, .barre-overlays {
|
||||
display: flex;
|
||||
gap: 0.8rem;
|
||||
padding: 1rem;
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.btn-filtre, .btn-overlay {
|
||||
background: var(--fond-carte);
|
||||
border: 2px solid transparent;
|
||||
border-radius: 12px;
|
||||
padding: 0.6rem 1.2rem;
|
||||
color: var(--texte);
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn-filtre.actif, .btn-overlay.actif {
|
||||
border-color: var(--primaire);
|
||||
background: rgba(233, 30, 99, 0.2);
|
||||
}
|
||||
|
||||
.btn-filtre:active, .btn-overlay:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.preview-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
/* === Partage === */
|
||||
#ecran-partage h2 {
|
||||
margin-top: 2rem;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.photo-miniature {
|
||||
margin: 1rem 0;
|
||||
max-height: 30vh;
|
||||
}
|
||||
|
||||
.photo-miniature img {
|
||||
max-height: 30vh;
|
||||
border-radius: var(--rayon);
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.grille-partage {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.btn-partage {
|
||||
background: var(--fond-carte);
|
||||
border: 2px solid transparent;
|
||||
border-radius: var(--rayon);
|
||||
padding: 1.5rem 2rem;
|
||||
color: var(--texte);
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
box-shadow: var(--ombre);
|
||||
}
|
||||
|
||||
.btn-partage:active {
|
||||
transform: scale(0.95);
|
||||
border-color: var(--primaire);
|
||||
}
|
||||
|
||||
.partage-icone {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.form-email {
|
||||
display: flex;
|
||||
gap: 0.8rem;
|
||||
align-items: center;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.form-email input {
|
||||
background: var(--fond-carte);
|
||||
border: 2px solid var(--texte-secondaire);
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 1.2rem;
|
||||
color: var(--texte);
|
||||
font-size: 1.1rem;
|
||||
width: 300px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-email input:focus {
|
||||
border-color: var(--primaire);
|
||||
}
|
||||
|
||||
.zone-qr {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.zone-qr img {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.statut-partage {
|
||||
padding: 0.8rem 1.5rem;
|
||||
border-radius: 12px;
|
||||
font-size: 1rem;
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
||||
.statut-partage.succes { background: rgba(76, 175, 80, 0.2); color: var(--succes); }
|
||||
.statut-partage.erreur { background: rgba(244, 67, 54, 0.2); color: var(--danger); }
|
||||
|
||||
.partage-bas {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
/* === Galerie === */
|
||||
.grille-galerie {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
width: 100%;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.grille-galerie img {
|
||||
width: 100%;
|
||||
aspect-ratio: 4/3;
|
||||
object-fit: cover;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.grille-galerie img:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* === Boutons communs === */
|
||||
.btn-action {
|
||||
background: var(--primaire);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 2rem;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
|
||||
}
|
||||
|
||||
.btn-action:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.btn-secondaire {
|
||||
background: transparent;
|
||||
color: var(--texte-secondaire);
|
||||
border: 2px solid var(--texte-secondaire);
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 2rem;
|
||||
font-size: 1.1rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.btn-secondaire:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.btn-retour {
|
||||
position: absolute;
|
||||
bottom: 2rem;
|
||||
background: transparent;
|
||||
color: var(--texte-secondaire);
|
||||
border: 2px solid var(--texte-secondaire);
|
||||
border-radius: 12px;
|
||||
padding: 0.6rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-fermer {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--texte);
|
||||
font-size: 2rem;
|
||||
cursor: pointer;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background: var(--danger);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 2rem;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.btn-danger:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* === Admin === */
|
||||
.admin-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
|
||||
.admin-contenu {
|
||||
width: 100%;
|
||||
height: calc(100% - 60px);
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.admin-onglets {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
padding: 1rem;
|
||||
min-width: 160px;
|
||||
background: var(--fond-carte);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.onglet {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--texte-secondaire);
|
||||
padding: 0.8rem 1rem;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
border-radius: 8px;
|
||||
font-size: 0.95rem;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.onglet.actif {
|
||||
background: var(--primaire);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.admin-panneau {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
padding: 2rem;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.admin-panneau.actif {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Toggles */
|
||||
.toggle-groupe {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.toggle input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toggle-slider {
|
||||
width: 50px;
|
||||
height: 28px;
|
||||
background: #555;
|
||||
border-radius: 14px;
|
||||
position: relative;
|
||||
transition: var(--transition);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toggle-slider::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 3px; left: 3px;
|
||||
width: 22px; height: 22px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.toggle input:checked + .toggle-slider {
|
||||
background: var(--primaire);
|
||||
}
|
||||
|
||||
.toggle input:checked + .toggle-slider::after {
|
||||
left: 25px;
|
||||
}
|
||||
|
||||
/* Champs admin */
|
||||
.champ {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.champ label {
|
||||
color: var(--texte-secondaire);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.champ input, .champ select {
|
||||
background: var(--fond);
|
||||
border: 2px solid #333;
|
||||
border-radius: 8px;
|
||||
padding: 0.6rem 1rem;
|
||||
color: var(--texte);
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.champ input:focus, .champ select:focus {
|
||||
border-color: var(--primaire);
|
||||
}
|
||||
|
||||
/* === Utilitaires === */
|
||||
.cache {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Scrollbar tactile */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #444;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* Responsive tactile */
|
||||
@media (max-width: 800px) {
|
||||
.accueil-contenu h1 { font-size: 2.5rem; }
|
||||
.grille-modes { flex-direction: column; gap: 1rem; }
|
||||
.btn-mode { padding: 1.5rem 2rem; }
|
||||
.grille-partage { flex-direction: column; gap: 1rem; }
|
||||
.admin-contenu { flex-direction: column; }
|
||||
.admin-onglets { flex-direction: row; min-width: unset; overflow-x: auto; }
|
||||
}
|
||||
Reference in New Issue
Block a user