Files
LoreMind/web/src/app/campaigns/campaigns.component.scss
T
ietm64 67ac4cc68f Front utilisable sur téléphone et tablette + suite e2e réparée
- Sous 1024 px : barre haute (menu, arborescence titrée par la campagne ou
  le lore, recherche), menu principal et arborescence en tiroirs (fermeture
  au changement de page, au tap extérieur et avec Échap ; focus gardé dans le
  tiroir puis rendu au bouton). Desktop inchangé, le repli de l'arborescence
  à 44 px fonctionne toujours.
- Règles globales (styles/_responsive.scss) : formulaires sur une colonne
  sous 600 px, boutons d'en-tête qui passent à la ligne, marges de page
  réduites sur téléphone, cibles tactiles agrandies, actions révélées au
  survol visibles en permanence sur écran tactile.
- Écrans corrigés : hub campagne, Lore, dossiers et séance (titres lisibles,
  horloges en 2 colonnes), assistant IA plein écran sur téléphone, listes de
  campagnes et de lores sur une colonne.
- e2e : projet Playwright « mobile » (375 px, tactile) avec 3 tests de
  navigation ; 3 tests desktop périmés corrigés (suite complète 80/80).

Vérifié : aucun scroll horizontal sur 18 écrans à 375/768/1024 px, build web,
vitest, lint sans nouvelle erreur.
À redéployer : web.
2026-10-17 14:00:19 +02:00

104 lines
2.2 KiB
SCSS

.campaigns-page {
display: flex;
flex-direction: column;
align-items: center;
padding: 3rem 2rem;
min-height: 100%;
}
.campaigns-hero {
text-align: center;
margin-bottom: 3rem;
@media (max-width: 767.98px) { margin-bottom: 1.5rem; }
.hero-icon { display: block; margin-bottom: 1rem; color: #6c63ff; }
h1 { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.hero-subtitle { color: #6b7280; font-size: 0.95rem; }
}
.campaigns-grid {
display: grid;
// 3 colonnes sur desktop (max-width 900px), moins dès que la carte passerait
// sous 240 px : 2 sur tablette portrait, 1 sur téléphone.
grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
gap: 1.5rem;
width: 100%;
max-width: 900px;
}
.campaign-card {
background: #111827;
border: 1px solid #1f2937;
border-radius: 12px;
padding: 1.5rem;
cursor: pointer;
transition: border-color 0.2s, transform 0.2s;
&:hover {
border-color: #6c63ff;
transform: translateY(-3px);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.status-badge {
font-size: 0.7rem;
padding: 0.2rem 0.6rem;
border-radius: 999px;
font-weight: 600;
&.en-cours { background: #1e3a5f; color: #60a5fa; }
&.terminée { background: #1a3a2a; color: #4ade80; }
&.en-pause { background: #3a2a1a; color: #fb923c; }
}
.card-date { font-size: 0.75rem; color: #6b7280; }
h2 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-description { color: #6b7280; font-size: 0.875rem; line-height: 1.5; margin-bottom: 1rem; }
.card-stats {
display: flex;
gap: 1rem;
font-size: 0.8rem;
color: #4b5563;
}
}
.card-new {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-style: dashed;
border-color: #374151;
text-align: center;
.new-icon {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: #1f2937;
color: #6c63ff;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75rem;
}
}
.tip {
margin-top: 3rem;
font-size: 0.8rem;
color: #4b5563;
}