generated from bisco/codex-bootstrap
Compare commits
6 Commits
fb7ced584b
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e843d0810 | |||
| 0c465b53cd | |||
| 329935dcdd | |||
| bb1f59c0b3 | |||
| fd1ce63f7a | |||
| 3f008b7096 |
@@ -13,17 +13,10 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
],
|
||||
template: `
|
||||
<div class="app-shell">
|
||||
<div class="topline">
|
||||
<div class="topline-inner">
|
||||
<span>Laboratori teatrali & produzioni audio/visive</span>
|
||||
<span>Direzione artistica a cura di Ernesto Estatico</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="header-inner">
|
||||
<a class="brand" routerLink="/" aria-label="AzioneLab">
|
||||
<img class="brand-logo" src="assets/azione-lab.jpg" alt="AzioneLab" />
|
||||
<img class="brand-logo" src="assets/azionelab-logo.png" alt="AzioneLab" />
|
||||
</a>
|
||||
|
||||
<nav class="main-nav" aria-label="Primary navigation">
|
||||
@@ -31,10 +24,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
<a mat-button routerLink="/shows" routerLinkActive="active">Spettacoli</a>
|
||||
<a mat-button routerLink="/check-in" routerLinkActive="active">Accoglienza</a>
|
||||
</nav>
|
||||
|
||||
<div class="header-actions">
|
||||
<a mat-stroked-button routerLink="/shows">Prenota uno spettacolo</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -44,9 +33,10 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="footer-inner">
|
||||
<div>
|
||||
<div class="footer-copy-block">
|
||||
<p class="footer-title">AzioneLab</p>
|
||||
<p class="footer-copy">Un luogo dove ricerca, scena e relazione si incontrano per accogliere il pubblico con cura, prima ancora che si alzi il sipario.</p>
|
||||
<p class="footer-copy">Laboratori teatrali & produzioni audio/visive</p>
|
||||
<p class="footer-meta">Direzione artistica: Ernesto Estatico</p>
|
||||
</div>
|
||||
<nav class="footer-nav" aria-label="Footer navigation">
|
||||
<a routerLink="/">Inizio</a>
|
||||
@@ -64,12 +54,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.topline {
|
||||
background: var(--azionelab-surface-dark);
|
||||
color: rgba(255, 247, 239, 0.84);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.topline-inner,
|
||||
.header-inner,
|
||||
.footer-inner {
|
||||
@@ -77,30 +61,21 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.topline-inner {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 10px 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
backdrop-filter: blur(16px);
|
||||
background: rgba(250, 245, 238, 0.9);
|
||||
background: var(--azionelab-surface);
|
||||
border-bottom: 1px solid var(--azionelab-border);
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
min-height: 104px;
|
||||
padding: 0 20px;
|
||||
gap: 20px;
|
||||
min-height: 72px;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
@@ -108,73 +83,87 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex: 0 0 auto;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
mix-blend-mode: normal;
|
||||
backdrop-filter: none;
|
||||
-webkit-backdrop-filter: none;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 178px;
|
||||
width: 164px;
|
||||
height: auto;
|
||||
max-height: 76px;
|
||||
max-height: 44px;
|
||||
display: block;
|
||||
box-shadow: 0 16px 32px rgba(111, 40, 33, 0.12);
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
mix-blend-mode: normal;
|
||||
mask: none;
|
||||
-webkit-mask: none;
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
justify-content: flex-end;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.main-nav .active {
|
||||
background: rgba(143, 51, 45, 0.1);
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
color: var(--azionelab-accent-strong);
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
flex: 1;
|
||||
padding: 40px 20px 72px;
|
||||
padding: 40px 0 88px;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
border-top: 1px solid var(--azionelab-border);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 251, 246, 0.86), rgba(244, 235, 223, 0.92));
|
||||
background: var(--azionelab-bg-strong);
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.5fr) auto;
|
||||
gap: 24px;
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
padding: 28px 20px 34px;
|
||||
padding: 32px 24px 36px;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
margin: 0 0 8px;
|
||||
font-family: var(--azionelab-serif);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: var(--azionelab-ink);
|
||||
}
|
||||
|
||||
.footer-copy {
|
||||
margin: 0;
|
||||
margin: 0 0 6px;
|
||||
max-width: 52ch;
|
||||
color: var(--azionelab-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.footer-meta {
|
||||
margin: 0;
|
||||
color: var(--azionelab-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.footer-nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.footer-nav a {
|
||||
@@ -184,39 +173,34 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.header-inner {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
min-height: auto;
|
||||
padding: 14px 16px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.brand {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 148px;
|
||||
max-height: 64px;
|
||||
width: 150px;
|
||||
max-height: 40px;
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 24px 16px 28px;
|
||||
padding: 28px 16px 32px;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
padding: 28px 16px 52px;
|
||||
.footer-nav {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
`],
|
||||
|
||||
@@ -28,26 +28,14 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
],
|
||||
template: `
|
||||
<section class="page">
|
||||
<header class="page-header">
|
||||
<p class="eyebrow">Prenotazione</p>
|
||||
<h1>Richiedi i tuoi posti con calma</h1>
|
||||
<p class="supporting">
|
||||
Replica {{ performanceId }}. Compila il modulo con i dati essenziali: ti invieremo un'email per confermare la richiesta prima che i posti vengano assegnati in modo definitivo.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<div class="booking-grid">
|
||||
<mat-card class="summary-card">
|
||||
<mat-card-content>
|
||||
<p class="summary-label">Come funziona</p>
|
||||
<h2>Ti chiediamo pochi dati e ti accompagniamo fino alla conferma.</h2>
|
||||
<ul class="summary-list">
|
||||
<li>Riceverai un link di conferma all'indirizzo email che inserisci.</li>
|
||||
<li>La disponibilita' viene controllata prima della conferma finale.</li>
|
||||
<li>Dopo la conferma avrai il tuo QR code per l'ingresso.</li>
|
||||
</ul>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<div class="booking-shell">
|
||||
<header class="page-header">
|
||||
<p class="eyebrow">Prenotazione</p>
|
||||
<h1>Prenota il tuo posto</h1>
|
||||
<p class="supporting">
|
||||
Compila il modulo con i dati essenziali. Ti invieremo un'email per confermare la richiesta e completare la prenotazione con serenita'.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<mat-card class="content-card">
|
||||
<mat-card-content>
|
||||
@@ -57,8 +45,8 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
<mat-icon fontSet="material-symbols-outlined">mark_email_read</mat-icon>
|
||||
</div>
|
||||
<div>
|
||||
<h2>La tua richiesta e' partita</h2>
|
||||
<p>Controlla la tua email: con un ultimo passaggio potrai confermare la prenotazione e ricevere il QR code per l'ingresso.</p>
|
||||
<h2>Controlla la tua email</h2>
|
||||
<p>Ti abbiamo appena inviato il link per confermare la prenotazione. Apri il messaggio, completa l'ultimo passaggio e tieni pronto il QR code che riceverai dopo la conferma.</p>
|
||||
<div class="status-steps">
|
||||
<span><mat-icon fontSet="material-symbols-outlined">mail</mat-icon> Apri l'email che ti abbiamo inviato</span>
|
||||
<span><mat-icon fontSet="material-symbols-outlined">verified</mat-icon> Conferma i posti con un tocco</span>
|
||||
@@ -136,7 +124,7 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
} @else {
|
||||
<ng-container>
|
||||
<mat-icon fontSet="material-symbols-outlined">confirmation_number</mat-icon>
|
||||
<span>Prenota</span>
|
||||
<span>Conferma prenotazione</span>
|
||||
</ng-container>
|
||||
}
|
||||
</button>
|
||||
@@ -150,61 +138,36 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
</section>
|
||||
`,
|
||||
styles: [`
|
||||
.booking-shell {
|
||||
width: min(100%, 480px);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 26px;
|
||||
margin: 0 0 28px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
max-width: 56ch;
|
||||
margin: 14px 0 0;
|
||||
margin: 16px auto 0;
|
||||
max-width: 42ch;
|
||||
}
|
||||
|
||||
.booking-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.summary-card,
|
||||
.content-card {
|
||||
border-radius: var(--azionelab-radius-lg);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
background: var(--azionelab-surface-strong);
|
||||
background: var(--azionelab-surface);
|
||||
box-shadow: var(--azionelab-shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.summary-card {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 238, 227, 0.94));
|
||||
}
|
||||
|
||||
mat-card-content {
|
||||
padding: 28px !important;
|
||||
}
|
||||
|
||||
.summary-label {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--azionelab-accent);
|
||||
}
|
||||
|
||||
.summary-card h2 {
|
||||
margin: 0;
|
||||
max-width: 14ch;
|
||||
}
|
||||
|
||||
.summary-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 18px 0 0;
|
||||
padding-left: 18px;
|
||||
color: var(--azionelab-ink-soft);
|
||||
line-height: 1.6;
|
||||
padding: 32px !important;
|
||||
}
|
||||
|
||||
.intro-note {
|
||||
@@ -271,14 +234,15 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-top: 18px;
|
||||
margin-top: 22px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.actions button[mat-flat-button] {
|
||||
min-width: 130px;
|
||||
min-width: 220px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -287,9 +251,11 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
|
||||
.status-panel {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 4px 0;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: 18px;
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
.status-panel h2 {
|
||||
@@ -303,7 +269,7 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
}
|
||||
|
||||
.status-panel.success {
|
||||
padding: 22px;
|
||||
padding: 26px 22px;
|
||||
border-radius: 18px;
|
||||
background: var(--azionelab-success-bg);
|
||||
border: 1px solid var(--azionelab-success-border);
|
||||
@@ -324,6 +290,7 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
|
||||
.status-steps {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
@@ -347,8 +314,8 @@ type ApiValidationErrors = Record<string, string[]>;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.booking-grid {
|
||||
grid-template-columns: 1fr;
|
||||
h1 {
|
||||
font-size: 2.3rem;
|
||||
}
|
||||
|
||||
mat-card-content {
|
||||
|
||||
@@ -1,33 +1,29 @@
|
||||
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
|
||||
import { API_BASE_URL } from '../services/api-config.token';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [RouterLink, MatButtonModule, MatCardModule],
|
||||
template: `
|
||||
<section class="hero page">
|
||||
<div class="hero-copy">
|
||||
<p class="eyebrow">AzioneLab</p>
|
||||
<h1>Un luogo dove il teatro prende forma, voce e relazione.</h1>
|
||||
<p class="supporting">
|
||||
AzioneLab intreccia laboratori teatrali, produzioni audio/visive e momenti scenici costruiti con cura. Qui il pubblico trova una casa aperta: puo' scoprire gli spettacoli, prenotare con semplicita' e arrivare in sala con la leggerezza di chi sa gia' dove andare.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a mat-flat-button color="primary" routerLink="/shows">Entra nella programmazione</a>
|
||||
<a mat-stroked-button routerLink="/check-in">Vai all'accoglienza</a>
|
||||
<section class="hero">
|
||||
<div class="hero-inner page">
|
||||
<div class="hero-copy">
|
||||
<p class="hero-kicker">AZIONELAB</p>
|
||||
<h1>Laboratori teatrali & produzioni audio/visive</h1>
|
||||
<p class="hero-direction">Direzione artistica a cura di Ernesto Estatico</p>
|
||||
<p class="supporting">
|
||||
Un luogo di ricerca, presenza e relazione, dove il teatro incontra la formazione e la scena si apre al pubblico con un ritmo piu' umano, piu' vicino, piu' vivo.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a mat-flat-button color="primary" routerLink="/shows">Scopri gli spettacoli</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero-stage" aria-hidden="true">
|
||||
<div class="curtain"></div>
|
||||
<div class="stage-glow"></div>
|
||||
<div class="stage-copy">
|
||||
<span>Questa sera in scena</span>
|
||||
<strong>Ti aspettiamo in sala con il tempo giusto per entrare nell'atmosfera</strong>
|
||||
<div class="hero-aside" aria-hidden="true">
|
||||
<p>Programmazioni, laboratori e attraversamenti scenici pensati per spazi raccolti e sguardi attenti.</p>
|
||||
<span>AzioneLab abita il tempo dell'incontro prima ancora di quello della prenotazione.</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -35,273 +31,201 @@ import { API_BASE_URL } from '../services/api-config.token';
|
||||
<section class="overview page">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Perche' AzioneLab</p>
|
||||
<h2>Non solo prenotazioni: un invito a entrare nel lavoro, nell'ascolto e nella scena</h2>
|
||||
<p class="eyebrow">Uno spazio da attraversare</p>
|
||||
<h2>Il sito accompagna il pubblico verso gli spettacoli senza perdere il tono di una compagnia teatrale</h2>
|
||||
</div>
|
||||
<p class="supporting">Ogni passaggio e' pensato per restare umano: guardi cosa c'e', scegli la data, ricevi conferma e arrivi in teatro senza attriti.</p>
|
||||
<p class="supporting">Ogni passaggio resta leggibile e misurato: si guarda, si sceglie, si prenota, si arriva in sala con la sensazione di essere attesi.</p>
|
||||
</div>
|
||||
|
||||
<div class="feature-grid">
|
||||
<mat-card class="feature-card">
|
||||
<mat-card-title>Trova la serata che fa per te</mat-card-title>
|
||||
<mat-card-title>Una programmazione da leggere con calma</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p>Le schede tengono vicini i dettagli che contano davvero: luogo, orario, disponibilita' e respiro dello spettacolo.</p>
|
||||
<p>Le schede mettono in evidenza i dettagli utili senza appesantire la scena: titolo, sintesi, immagini e accesso alla prenotazione.</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card class="feature-card">
|
||||
<mat-card-title>Una conferma semplice, senza fretta</mat-card-title>
|
||||
<mat-card-title>Una prenotazione semplice e rassicurante</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p>Ricevi un'email, confermi quando vuoi e la tua prenotazione prende forma in modo chiaro e affidabile.</p>
|
||||
<p>La conferma via email mantiene il percorso leggero per chi prenota e affidabile per chi organizza la capienza.</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card class="feature-card">
|
||||
<mat-card-title>Accoglienza attenta all'ingresso</mat-card-title>
|
||||
<mat-card-title>Un'accoglienza pensata per il lavoro in sala</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p>Lo staff puo' accompagnare l'arrivo del pubblico con uno strumento rapido, discreto e pensato per il lavoro in sala.</p>
|
||||
<p>Dall'ingresso alla verifica del QR code, tutto resta discreto, chiaro e adatto a un contesto teatrale.</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="journey-grid page">
|
||||
<section class="journey page">
|
||||
<div class="journey-copy">
|
||||
<p class="eyebrow">Il percorso del pubblico</p>
|
||||
<h2>Dalla curiosita' al posto in sala, con naturalezza</h2>
|
||||
<ol>
|
||||
<li>Scopri la programmazione e lasciati guidare dalla scheda di ogni spettacolo.</li>
|
||||
<li>Richiedi i posti per la replica che preferisci e conferma dall'email ricevuta.</li>
|
||||
<li>Conserva il QR code sul telefono oppure stampalo e portalo con te all'ingresso.</li>
|
||||
</ol>
|
||||
<h2>Dalla scoperta dello spettacolo all'ingresso, in pochi passaggi essenziali</h2>
|
||||
</div>
|
||||
|
||||
<mat-card class="meta-card">
|
||||
<mat-card-title>Dietro le quinte</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p class="meta-label">Collegamento API</p>
|
||||
<code>{{ apiBaseUrl }}</code>
|
||||
<p class="meta-note">La parte pubblica del sito dialoga con le API Django esistenti senza cambiare il comportamento del backend.</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<ol class="journey-steps">
|
||||
<li>Esplora gli spettacoli in programma e apri la scheda che ti incuriosisce.</li>
|
||||
<li>Invia la richiesta di prenotazione e confermala dall'email ricevuta.</li>
|
||||
<li>Porta con te il QR code sul telefono o su carta e raggiungi la sala con semplicita'.</li>
|
||||
</ol>
|
||||
</section>
|
||||
`,
|
||||
styles: [`
|
||||
.hero {
|
||||
width: 100%;
|
||||
margin: 0 0 72px;
|
||||
padding: 56px 0 72px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(47, 125, 87, 0.05), rgba(47, 125, 87, 0) 42%),
|
||||
linear-gradient(180deg, #fcfbf8 0%, #f8f6f0 100%);
|
||||
border-bottom: 1px solid var(--azionelab-border);
|
||||
}
|
||||
|
||||
.hero-inner {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
|
||||
gap: 28px;
|
||||
align-items: stretch;
|
||||
padding: 12px 0 24px;
|
||||
grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
|
||||
gap: 36px;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
padding: 34px 0 20px;
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.hero-kicker {
|
||||
margin: 0 0 18px;
|
||||
color: var(--azionelab-accent);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
max-width: 10.5ch;
|
||||
font-size: 3.6rem;
|
||||
max-width: 11ch;
|
||||
font-size: 4.3rem;
|
||||
line-height: 0.96;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
.hero-direction {
|
||||
margin: 20px 0 0;
|
||||
font-size: 1.06rem;
|
||||
color: var(--azionelab-ink-soft);
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 28px;
|
||||
margin-top: 34px;
|
||||
}
|
||||
|
||||
.hero-stage {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 420px;
|
||||
border-radius: var(--azionelab-radius-lg);
|
||||
border: 1px solid rgba(255, 250, 245, 0.16);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(31, 18, 18, 0.1), rgba(27, 18, 14, 0.62)),
|
||||
linear-gradient(135deg, #b04b40 0%, #7f251f 24%, #43261f 56%, #211b1a 100%);
|
||||
box-shadow: var(--azionelab-shadow-strong);
|
||||
}
|
||||
|
||||
.curtain {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.08) 100%),
|
||||
repeating-linear-gradient(90deg, rgba(75, 18, 14, 0.2) 0 18px, rgba(160, 60, 52, 0.08) 18px 36px);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.stage-glow {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: -80px;
|
||||
width: 340px;
|
||||
height: 340px;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(245, 214, 150, 0.9) 0, rgba(245, 214, 150, 0.22) 44%, rgba(245, 214, 150, 0) 72%);
|
||||
}
|
||||
|
||||
.stage-copy {
|
||||
position: absolute;
|
||||
left: 24px;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
.hero-aside {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 18px 20px;
|
||||
border-radius: 18px;
|
||||
background: rgba(24, 17, 15, 0.52);
|
||||
backdrop-filter: blur(8px);
|
||||
color: rgba(255, 247, 239, 0.94);
|
||||
border: 1px solid rgba(255, 247, 239, 0.12);
|
||||
gap: 16px;
|
||||
padding: 0 0 10px;
|
||||
color: var(--azionelab-muted);
|
||||
}
|
||||
|
||||
.stage-copy span {
|
||||
text-transform: uppercase;
|
||||
font-size: 0.76rem;
|
||||
letter-spacing: 0.08em;
|
||||
color: rgba(255, 227, 192, 0.84);
|
||||
.hero-aside p,
|
||||
.hero-aside span {
|
||||
margin: 0;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.stage-copy strong {
|
||||
font-family: var(--azionelab-serif);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
.hero-aside span {
|
||||
max-width: 24ch;
|
||||
}
|
||||
|
||||
.overview,
|
||||
.journey-grid {
|
||||
margin-top: 34px;
|
||||
.journey {
|
||||
margin-top: 0;
|
||||
margin-bottom: 72px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
|
||||
gap: 24px;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
|
||||
gap: 28px;
|
||||
align-items: end;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
.journey-copy h2 {
|
||||
margin: 0;
|
||||
max-width: 18ch;
|
||||
max-width: 16ch;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.feature-card,
|
||||
.meta-card {
|
||||
.feature-card {
|
||||
border-radius: var(--azionelab-radius-md);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(251, 245, 236, 0.94));
|
||||
background: var(--azionelab-surface);
|
||||
box-shadow: var(--azionelab-shadow);
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
min-height: 210px;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.feature-card mat-card-title,
|
||||
.meta-card mat-card-title {
|
||||
.feature-card mat-card-title {
|
||||
margin-bottom: 12px;
|
||||
font-family: var(--azionelab-serif);
|
||||
font-size: 1.18rem;
|
||||
font-weight: 700;
|
||||
font-size: 1.28rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.feature-card p,
|
||||
.meta-card p {
|
||||
.feature-card p {
|
||||
margin: 0;
|
||||
color: var(--azionelab-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.journey-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
|
||||
gap: 24px;
|
||||
align-items: start;
|
||||
line-height: 1.72;
|
||||
}
|
||||
|
||||
.journey-copy {
|
||||
padding: 10px 0;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ol {
|
||||
.journey-steps {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 20px 0 0;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding-left: 22px;
|
||||
color: var(--azionelab-ink-soft);
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.meta-label {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
color: var(--azionelab-muted);
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
code {
|
||||
display: inline-block;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 28, 24, 0.06);
|
||||
color: var(--azionelab-ink-soft);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.meta-note {
|
||||
margin: 18px 0 0;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.hero,
|
||||
.hero-inner,
|
||||
.section-heading,
|
||||
.journey-grid,
|
||||
.journey-steps,
|
||||
.feature-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.8rem;
|
||||
font-size: 3.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero {
|
||||
margin-bottom: 56px;
|
||||
padding: 40px 0 56px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.hero-stage {
|
||||
min-height: 320px;
|
||||
}
|
||||
|
||||
.stage-copy {
|
||||
left: 16px;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
padding: 16px;
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
}
|
||||
`],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class HomePageComponent {
|
||||
protected readonly apiBaseUrl = inject(API_BASE_URL);
|
||||
}
|
||||
|
||||
@@ -22,10 +22,11 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
],
|
||||
template: `
|
||||
<section class="page">
|
||||
<div class="confirmation-shell">
|
||||
<header class="page-header">
|
||||
<p class="eyebrow">Conferma prenotazione</p>
|
||||
<h1>Ci siamo quasi</h1>
|
||||
<p class="supporting">Stai completando l'ultimo passaggio: appena la conferma va a buon fine, il tuo QR code sara' pronto per accompagnarti all'ingresso.</p>
|
||||
<h1>Prenotazione confermata</h1>
|
||||
<p class="supporting">Quando la conferma va a buon fine, il tuo QR code e' pronto per accompagnarti all'ingresso in sala.</p>
|
||||
</header>
|
||||
|
||||
<mat-card class="status-card">
|
||||
@@ -71,12 +72,12 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
|
||||
<div class="next-steps">
|
||||
<div>
|
||||
<p class="step-label">Cosa fare adesso</p>
|
||||
<p class="step-label">Portalo con te</p>
|
||||
<p>Conserva il QR code sul telefono oppure stampalo. All'ingresso bastera' mostrarlo allo staff.</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="step-label">Ti serve di nuovo il link?</p>
|
||||
<p>Tieni l'email di conferma: potrai riaprire questa pagina in qualsiasi momento se vorrai recuperare il QR.</p>
|
||||
<p class="step-label">Tieni l'email a portata di mano</p>
|
||||
<p>Se ne avrai bisogno, potrai riaprire questa pagina in qualsiasi momento dal messaggio di conferma.</p>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -119,20 +120,31 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions>
|
||||
<a mat-button routerLink="/">Inizio</a>
|
||||
<a mat-button routerLink="/shows">Spettacoli</a>
|
||||
<a mat-button routerLink="/shows">Torna agli spettacoli</a>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
</div>
|
||||
</section>
|
||||
`,
|
||||
styles: [`
|
||||
.confirmation-shell {
|
||||
width: min(100%, 700px);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-bottom: 24px;
|
||||
margin-bottom: 28px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
max-width: 58ch;
|
||||
margin: 14px 0 0;
|
||||
max-width: 40ch;
|
||||
margin: 16px auto 0;
|
||||
}
|
||||
|
||||
.status-card {
|
||||
@@ -148,15 +160,17 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
}
|
||||
|
||||
mat-card-actions {
|
||||
padding: 0 28px 24px !important;
|
||||
gap: 8px;
|
||||
padding: 0 28px 28px !important;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.status-panel {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 20px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: 18px;
|
||||
padding: 24px;
|
||||
border-radius: 18px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
@@ -227,6 +241,7 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
|
||||
.success-points {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
@@ -250,12 +265,14 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
}
|
||||
|
||||
.qr-panel {
|
||||
margin-top: 18px;
|
||||
padding: 16px;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
margin: 22px auto 0;
|
||||
padding: 22px;
|
||||
border-radius: var(--azionelab-radius-md);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
display: inline-block;
|
||||
background: white;
|
||||
background: #ffffff;
|
||||
width: min(100%, 360px);
|
||||
}
|
||||
|
||||
.panel-label {
|
||||
@@ -277,10 +294,10 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
margin-top: 18px;
|
||||
padding: 14px 16px;
|
||||
border-radius: var(--azionelab-radius-md);
|
||||
background: rgba(159, 47, 40, 0.05);
|
||||
background: var(--azionelab-bg-strong);
|
||||
color: var(--azionelab-muted);
|
||||
}
|
||||
|
||||
@@ -296,8 +313,8 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
.next-steps {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
margin-top: 18px;
|
||||
gap: 16px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.next-steps > div {
|
||||
@@ -323,6 +340,10 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
h1 {
|
||||
font-size: 2.3rem;
|
||||
}
|
||||
|
||||
mat-card-content {
|
||||
padding: 22px !important;
|
||||
}
|
||||
|
||||
@@ -44,28 +44,27 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
} @else if (show()) {
|
||||
<header class="page-header">
|
||||
<div class="hero-copy">
|
||||
<p class="eyebrow">Scheda spettacolo</p>
|
||||
<h1>{{ show()!.title }}</h1>
|
||||
<p class="supporting">{{ show()!.description || show()!.summary }}</p>
|
||||
<div class="hero-note">
|
||||
<span>Programmazione pubblica</span>
|
||||
<span>Scegli una data per continuare</span>
|
||||
</div>
|
||||
</div>
|
||||
@if (show()!.image_url) {
|
||||
<section class="show-hero">
|
||||
@if (show()!.image_url || show()!.poster_image; as heroImage) {
|
||||
<div class="hero-image-wrap">
|
||||
<img class="hero-image" [src]="show()!.image_url" [alt]="show()!.title" />
|
||||
<img class="hero-image" [src]="heroImage" [alt]="show()!.title" />
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<header class="page-header">
|
||||
<div class="hero-copy">
|
||||
<p class="eyebrow">Scheda spettacolo</p>
|
||||
<h1>{{ show()!.title }}</h1>
|
||||
<p class="hero-description">{{ show()!.description || show()!.summary }}</p>
|
||||
</div>
|
||||
</header>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Prossime repliche</h2>
|
||||
<p>Scegli una data per proseguire verso la prenotazione.</p>
|
||||
<p>Scegli la replica che preferisci e prosegui verso la prenotazione.</p>
|
||||
</div>
|
||||
<a mat-button routerLink="/shows">Torna all'elenco</a>
|
||||
</div>
|
||||
@@ -86,27 +85,29 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
<div class="performance-grid">
|
||||
@for (performance of performances(); track performance.id) {
|
||||
<mat-card class="performance-card">
|
||||
<mat-card-title>{{ performance.starts_at | date: 'EEEE d MMMM, HH:mm' }}</mat-card-title>
|
||||
<mat-card-subtitle>{{ performance.venue.name }}, {{ performance.venue.city }}</mat-card-subtitle>
|
||||
<div class="performance-kicker">Replica disponibile</div>
|
||||
<mat-card-title>{{ performance.starts_at | date: 'EEEE d MMMM' }}</mat-card-title>
|
||||
<mat-card-content>
|
||||
<dl class="performance-meta">
|
||||
<div>
|
||||
<dt>Spazio</dt>
|
||||
<dt>Luogo</dt>
|
||||
<dd>{{ performance.venue.name }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Citta'</dt>
|
||||
<dd>{{ performance.venue.city }}</dd>
|
||||
<dt>Data / orario</dt>
|
||||
<dd>{{ performance.starts_at | date: 'EEEE d MMMM, HH:mm' }}</dd>
|
||||
</div>
|
||||
@if (performance.available_seats !== null && performance.available_seats !== undefined) {
|
||||
<div>
|
||||
<dt>Posti disponibili</dt>
|
||||
<dd>{{ performance.available_seats }}</dd>
|
||||
</div>
|
||||
}
|
||||
</dl>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
@if (performance.booking_enabled) {
|
||||
<a mat-flat-button [routerLink]="['/performances', performance.id, 'book']">Prenota questa data</a>
|
||||
<a mat-flat-button [routerLink]="['/performances', performance.id, 'book']">Prenota il tuo posto</a>
|
||||
} @else {
|
||||
<button mat-stroked-button type="button" disabled>Prenotazione non disponibile</button>
|
||||
}
|
||||
@@ -120,51 +121,43 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
</section>
|
||||
`,
|
||||
styles: [`
|
||||
.page-header {
|
||||
.show-hero {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
|
||||
gap: 28px;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
align-items: start;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
min-width: 0;
|
||||
padding: 8px 0;
|
||||
max-width: 860px;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
margin: 14px 0 0;
|
||||
h1 {
|
||||
margin: 0;
|
||||
max-width: 12ch;
|
||||
font-size: 4rem;
|
||||
line-height: 0.98;
|
||||
}
|
||||
|
||||
.hero-note {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.hero-note span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 32px;
|
||||
padding: 0 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(143, 51, 45, 0.08);
|
||||
color: var(--azionelab-accent-strong);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
.hero-description {
|
||||
margin: 18px 0 0;
|
||||
max-width: 62ch;
|
||||
color: var(--azionelab-muted);
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.82;
|
||||
}
|
||||
|
||||
.hero-image-wrap {
|
||||
overflow: hidden;
|
||||
border-radius: var(--azionelab-radius-lg);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(207, 71, 51, 0.16), rgba(15, 22, 36, 0.08)),
|
||||
#f8f1ea;
|
||||
background: var(--azionelab-bg-strong);
|
||||
box-shadow: var(--azionelab-shadow-strong);
|
||||
aspect-ratio: 4 / 4.8;
|
||||
aspect-ratio: 16 / 8;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
@@ -176,7 +169,7 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
|
||||
.section {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
@@ -193,39 +186,48 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
.performance-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 22px;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.performance-card,
|
||||
.status-card {
|
||||
border-radius: var(--azionelab-radius-md);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 243, 233, 0.94));
|
||||
background: var(--azionelab-surface);
|
||||
box-shadow: var(--azionelab-shadow);
|
||||
}
|
||||
|
||||
.performance-card {
|
||||
min-height: 280px;
|
||||
min-height: 320px;
|
||||
}
|
||||
|
||||
.performance-card mat-card-title,
|
||||
.performance-card mat-card-subtitle,
|
||||
.performance-card mat-card-content,
|
||||
.performance-card mat-card-actions {
|
||||
padding-left: 18px;
|
||||
padding-right: 18px;
|
||||
padding-left: 22px;
|
||||
padding-right: 22px;
|
||||
}
|
||||
|
||||
.performance-kicker {
|
||||
padding: 22px 22px 0;
|
||||
color: var(--azionelab-accent);
|
||||
font-size: 0.76rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.performance-card mat-card-title {
|
||||
margin-top: 14px;
|
||||
margin-top: 10px;
|
||||
font-family: var(--azionelab-serif);
|
||||
font-size: 1.28rem;
|
||||
line-height: 1.15;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.06;
|
||||
}
|
||||
|
||||
.performance-meta {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
gap: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -243,7 +245,8 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
|
||||
.performance-meta dd {
|
||||
margin: 0;
|
||||
font-size: 0.98rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.status-panel,
|
||||
@@ -276,14 +279,18 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.page-header {
|
||||
grid-template-columns: 1fr;
|
||||
h1 {
|
||||
font-size: 2.6rem;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hero-image-wrap {
|
||||
aspect-ratio: 4 / 5;
|
||||
}
|
||||
}
|
||||
`],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -16,10 +16,10 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
<header class="page-header">
|
||||
<div>
|
||||
<p class="eyebrow">Programmazione</p>
|
||||
<h1>Spettacoli</h1>
|
||||
<h1>Spettacoli in programma</h1>
|
||||
</div>
|
||||
<p class="supporting">
|
||||
Scopri le produzioni di AzioneLab, apri la scheda di ogni spettacolo e avvicinati alla prenotazione con semplicità.
|
||||
Una selezione di lavori, attraversamenti scenici e appuntamenti da leggere con calma, immagine dopo immagine, scheda dopo scheda.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
@@ -59,21 +59,24 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
<div class="show-grid">
|
||||
@for (show of shows(); track show.slug) {
|
||||
<mat-card class="show-card">
|
||||
@if (show.image_url) {
|
||||
@if (getShowImage(show); as showImage) {
|
||||
<div class="show-image-wrap">
|
||||
<img class="show-image" [src]="show.image_url" [alt]="show.title" />
|
||||
<img class="show-image" [src]="showImage" [alt]="show.title" />
|
||||
</div>
|
||||
}
|
||||
<div class="card-topline">
|
||||
<span class="card-label">Spettacolo in evidenza</span>
|
||||
<div class="card-body">
|
||||
<div class="card-topline">
|
||||
<span class="card-label">In programma</span>
|
||||
</div>
|
||||
<mat-card-title>{{ show.title }}</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p>{{ show.summary }}</p>
|
||||
<p class="show-note">Apri la scheda per vedere le prossime date e i dettagli di prenotazione.</p>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<a mat-button [routerLink]="['/shows', show.slug]">{{ getShowCta(show) }}</a>
|
||||
</mat-card-actions>
|
||||
</div>
|
||||
<mat-card-title>{{ show.title }}</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p>{{ show.summary }}</p>
|
||||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<a mat-button [routerLink]="['/shows', show.slug]">Apri scheda</a>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
}
|
||||
</div>
|
||||
@@ -83,21 +86,21 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
styles: [`
|
||||
.page-header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
|
||||
gap: 24px;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
|
||||
gap: 28px;
|
||||
align-items: end;
|
||||
margin-bottom: 28px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
margin: 0;
|
||||
max-width: 34ch;
|
||||
max-width: 36ch;
|
||||
}
|
||||
|
||||
.show-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 22px;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.status-panel,
|
||||
@@ -139,21 +142,19 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
.show-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 360px;
|
||||
min-height: 520px;
|
||||
overflow: hidden;
|
||||
border-radius: var(--azionelab-radius-md);
|
||||
border: 1px solid var(--azionelab-border);
|
||||
background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 243, 233, 0.94));
|
||||
background: var(--azionelab-surface);
|
||||
box-shadow: var(--azionelab-shadow);
|
||||
}
|
||||
|
||||
.show-image-wrap {
|
||||
aspect-ratio: 15 / 10;
|
||||
aspect-ratio: 4 / 5;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--azionelab-border);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(207, 71, 51, 0.14), rgba(15, 22, 36, 0.06)),
|
||||
#f8f1ea;
|
||||
background: var(--azionelab-bg-strong);
|
||||
}
|
||||
|
||||
.show-image {
|
||||
@@ -165,23 +166,29 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
}
|
||||
|
||||
.show-card:hover .show-image {
|
||||
transform: scale(1.03);
|
||||
transform: scale(1.015);
|
||||
}
|
||||
|
||||
.card-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 22px 22px 20px;
|
||||
}
|
||||
|
||||
.card-topline {
|
||||
padding: 18px 18px 0;
|
||||
padding: 0 0 12px;
|
||||
}
|
||||
|
||||
.card-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 28px;
|
||||
padding: 0 12px;
|
||||
border-radius: 999px;
|
||||
background: rgba(143, 51, 45, 0.08);
|
||||
color: var(--azionelab-accent-strong);
|
||||
font-size: 0.78rem;
|
||||
min-height: 24px;
|
||||
color: var(--azionelab-accent);
|
||||
font-size: 0.76rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.show-card mat-card-content {
|
||||
@@ -191,28 +198,43 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
|
||||
.show-card mat-card-title,
|
||||
.show-card mat-card-content,
|
||||
.show-card mat-card-actions {
|
||||
padding-left: 18px;
|
||||
padding-right: 18px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.show-card mat-card-title {
|
||||
margin-top: 10px;
|
||||
margin-top: 0;
|
||||
font-family: var(--azionelab-serif);
|
||||
font-size: 1.45rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.12;
|
||||
font-size: 1.85rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.04;
|
||||
}
|
||||
|
||||
.show-card p {
|
||||
color: var(--azionelab-muted);
|
||||
line-height: 1.6;
|
||||
line-height: 1.74;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.show-note {
|
||||
margin-top: 18px !important;
|
||||
padding-top: 18px;
|
||||
border-top: 1px solid var(--azionelab-border);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.show-card mat-card-actions {
|
||||
padding-top: 22px;
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.page-header {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.show-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
`],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
@@ -233,6 +255,14 @@ export class ShowListPageComponent {
|
||||
this.loadShows();
|
||||
}
|
||||
|
||||
protected getShowImage(show: ShowListItem): string {
|
||||
return show.image_url || show.poster_image || '';
|
||||
}
|
||||
|
||||
protected getShowCta(_show: ShowListItem): string {
|
||||
return 'Scopri lo spettacolo';
|
||||
}
|
||||
|
||||
private loadShows(): void {
|
||||
this.isLoading.set(true);
|
||||
this.errorMessage.set('');
|
||||
|
||||
+45
-38
@@ -1,26 +1,26 @@
|
||||
:root {
|
||||
--azionelab-bg: #f5efe6;
|
||||
--azionelab-bg-strong: #efe4d4;
|
||||
--azionelab-surface: rgba(255, 251, 246, 0.84);
|
||||
--azionelab-surface-strong: rgba(255, 252, 248, 0.96);
|
||||
--azionelab-surface-dark: #342924;
|
||||
--azionelab-ink: #221c18;
|
||||
--azionelab-ink-soft: #3a302a;
|
||||
--azionelab-muted: #6f6258;
|
||||
--azionelab-accent: #8f332d;
|
||||
--azionelab-accent-strong: #6e251f;
|
||||
--azionelab-accent-soft: #c88f64;
|
||||
--azionelab-highlight: #c6a768;
|
||||
--azionelab-border: rgba(34, 28, 24, 0.11);
|
||||
--azionelab-border-strong: rgba(34, 28, 24, 0.18);
|
||||
--azionelab-shadow: 0 18px 48px rgba(46, 28, 18, 0.10);
|
||||
--azionelab-shadow-strong: 0 26px 64px rgba(46, 28, 18, 0.16);
|
||||
--azionelab-radius-sm: 10px;
|
||||
--azionelab-radius-md: 16px;
|
||||
--azionelab-radius-lg: 24px;
|
||||
--azionelab-shell-width: 1180px;
|
||||
--azionelab-copy-width: 64ch;
|
||||
--azionelab-section-gap: 28px;
|
||||
--azionelab-bg: #fcfbf8;
|
||||
--azionelab-bg-strong: #f5f3ee;
|
||||
--azionelab-surface: #ffffff;
|
||||
--azionelab-surface-strong: #ffffff;
|
||||
--azionelab-surface-dark: #121212;
|
||||
--azionelab-ink: #111111;
|
||||
--azionelab-ink-soft: #1e1e1e;
|
||||
--azionelab-muted: #666666;
|
||||
--azionelab-accent: #2f7d57;
|
||||
--azionelab-accent-strong: #225b40;
|
||||
--azionelab-accent-soft: #dcefe5;
|
||||
--azionelab-highlight: #2f7d57;
|
||||
--azionelab-border: rgba(17, 17, 17, 0.10);
|
||||
--azionelab-border-strong: rgba(17, 17, 17, 0.16);
|
||||
--azionelab-shadow: none;
|
||||
--azionelab-shadow-strong: none;
|
||||
--azionelab-radius-sm: 8px;
|
||||
--azionelab-radius-md: 12px;
|
||||
--azionelab-radius-lg: 18px;
|
||||
--azionelab-shell-width: 1200px;
|
||||
--azionelab-copy-width: 66ch;
|
||||
--azionelab-section-gap: 48px;
|
||||
--azionelab-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
|
||||
--azionelab-serif: "Fraunces", Georgia, "Times New Roman", serif;
|
||||
--azionelab-success-bg: #edf7ef;
|
||||
@@ -43,9 +43,7 @@ html, body {
|
||||
font-family: var(--azionelab-sans);
|
||||
font-weight: 500;
|
||||
color: var(--azionelab-ink);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(143, 51, 45, 0.06), transparent 140px),
|
||||
linear-gradient(180deg, #faf5ee 0%, var(--azionelab-bg) 52%, #efe4d6 100%);
|
||||
background: var(--azionelab-bg);
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -75,18 +73,18 @@ h1, h2, h3 {
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.65rem;
|
||||
line-height: 1.04;
|
||||
font-size: 3.2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.7rem;
|
||||
line-height: 1.16;
|
||||
font-size: 2rem;
|
||||
line-height: 1.08;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.24;
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
button, input, textarea, select {
|
||||
@@ -108,6 +106,8 @@ button, input, textarea, select {
|
||||
|
||||
a {
|
||||
color: var(--azionelab-accent-strong);
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 0.16em;
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -121,40 +121,47 @@ code {
|
||||
.page {
|
||||
width: min(100%, var(--azionelab-shell-width));
|
||||
margin: 0 auto;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 12px;
|
||||
color: var(--azionelab-accent);
|
||||
text-transform: uppercase;
|
||||
font-size: 0.76rem;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.supporting {
|
||||
color: var(--azionelab-muted);
|
||||
font-size: 1.02rem;
|
||||
line-height: 1.72;
|
||||
font-size: 1.04rem;
|
||||
line-height: 1.78;
|
||||
max-width: var(--azionelab-copy-width);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
h1 {
|
||||
font-size: 2.15rem;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.45rem;
|
||||
font-size: 1.72rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
h1 {
|
||||
font-size: 1.9rem;
|
||||
font-size: 2.05rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.3rem;
|
||||
font-size: 1.42rem;
|
||||
}
|
||||
|
||||
.page {
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user