feat: apply azionelab branding to frontend

This commit is contained in:
2026-05-05 10:46:10 +02:00
parent cf4e9ec239
commit fbbb1ae5fe
9 changed files with 213 additions and 179 deletions

View File

@@ -15,29 +15,29 @@ import { MatButtonModule } from '@angular/material/button';
<div class="app-shell">
<div class="topline">
<div class="topline-inner">
<span>Rome-based theatre company</span>
<span>Reservations, confirmation, and entrance check-in</span>
<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="/">
<span class="brand-mark">A</span>
<img class="brand-logo" src="assets/azionelab-logo.svg" alt="AzioneLab" />
<span class="brand-text">
<strong>AzioneLab</strong>
<small>Independent theatre company</small>
<small>Laboratori teatrali & produzioni audio/visive</small>
</span>
</a>
<nav class="main-nav" aria-label="Primary navigation">
<a mat-button routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Home</a>
<a mat-button routerLink="/shows" routerLinkActive="active">Shows</a>
<a mat-button routerLink="/check-in" routerLinkActive="active">Check-in</a>
<a mat-button routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Inizio</a>
<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">Book a performance</a>
<a mat-stroked-button routerLink="/shows">Prenota uno spettacolo</a>
</div>
</div>
</header>
@@ -50,12 +50,12 @@ import { MatButtonModule } from '@angular/material/button';
<div class="footer-inner">
<div>
<p class="footer-title">AzioneLab</p>
<p class="footer-copy">Contemporary theatre evenings, small venues, and a lightweight booking flow built for real audiences.</p>
<p class="footer-copy">Un luogo per laboratori teatrali, produzioni audio/visive e serate di scena costruite con attenzione per il pubblico reale.</p>
</div>
<nav class="footer-nav" aria-label="Footer navigation">
<a routerLink="/">Home</a>
<a routerLink="/shows">Shows</a>
<a routerLink="/check-in">Check-in</a>
<a routerLink="/">Inizio</a>
<a routerLink="/shows">Spettacoli</a>
<a routerLink="/check-in">Accoglienza</a>
</nav>
</div>
</footer>
@@ -115,16 +115,12 @@ import { MatButtonModule } from '@angular/material/button';
text-decoration: none;
}
.brand-mark {
display: inline-grid;
place-items: center;
width: 48px;
height: 48px;
border-radius: 14px;
background: linear-gradient(145deg, var(--azionelab-accent), var(--azionelab-accent-soft));
color: #fff8f2;
font-weight: 700;
box-shadow: 0 14px 30px rgba(111, 40, 33, 0.18);
.brand-logo {
width: 58px;
height: 58px;
display: block;
object-fit: contain;
filter: drop-shadow(0 14px 30px rgba(111, 40, 33, 0.16));
}
.brand-text {

View File

@@ -9,10 +9,10 @@ import { ShowListPageComponent } from './pages/show-list-page.component';
export const appRoutes: Routes = [
{ path: '', component: HomePageComponent, title: 'AzioneLab' },
{ path: 'shows', component: ShowListPageComponent, title: 'Shows | AzioneLab' },
{ path: 'shows/:slug', component: ShowDetailPlaceholderPageComponent, title: 'Show detail | AzioneLab' },
{ path: 'performances/:id/book', component: BookingPlaceholderPageComponent, title: 'Book | AzioneLab' },
{ path: 'reservations/confirm', component: ReservationConfirmPageComponent, title: 'Confirm reservation | AzioneLab' },
{ path: 'shows', component: ShowListPageComponent, title: 'Spettacoli | AzioneLab' },
{ path: 'shows/:slug', component: ShowDetailPlaceholderPageComponent, title: 'Scheda spettacolo | AzioneLab' },
{ path: 'performances/:id/book', component: BookingPlaceholderPageComponent, title: 'Prenotazione | AzioneLab' },
{ path: 'reservations/confirm', component: ReservationConfirmPageComponent, title: 'Conferma prenotazione | AzioneLab' },
{ path: 'check-in', component: CheckInPlaceholderPageComponent, title: 'Check-in | AzioneLab' },
{ path: '**', redirectTo: '' },
];

View File

@@ -29,22 +29,22 @@ type ApiValidationErrors = Record<string, string[]>;
template: `
<section class="page">
<header class="page-header">
<p class="eyebrow">Booking</p>
<h1>Reserve seats</h1>
<p class="eyebrow">Prenotazione</p>
<h1>Richiedi i tuoi posti</h1>
<p class="supporting">
Performance {{ performanceId }}. Complete the form and we will email a confirmation link before any reservation becomes active.
Replica {{ performanceId }}. Compila il modulo: ti invieremo un link email di conferma prima che la prenotazione diventi attiva.
</p>
</header>
<div class="booking-grid">
<mat-card class="summary-card">
<mat-card-content>
<p class="summary-label">Before you submit</p>
<h2>Reservations are activated only after email confirmation.</h2>
<p class="summary-label">Prima di inviare</p>
<h2>La prenotazione si attiva solo dopo la conferma via email.</h2>
<ul class="summary-list">
<li>Your confirmation link arrives at the email address you provide.</li>
<li>Seat availability is checked on the server before confirmation.</li>
<li>The QR code is generated only after the reservation becomes confirmed.</li>
<li>Il link di conferma arriva all'indirizzo email che inserisci.</li>
<li>La disponibilita' viene verificata sul server prima della conferma.</li>
<li>Il QR code viene generato solo dopo la conferma della prenotazione.</li>
</ul>
</mat-card-content>
</mat-card>
@@ -57,11 +57,11 @@ type ApiValidationErrors = Record<string, string[]>;
<mat-icon fontSet="material-symbols-outlined">mark_email_read</mat-icon>
</div>
<div>
<h2>Reservation created</h2>
<p>Check your email to confirm the booking and unlock the QR code for admission.</p>
<h2>Richiesta inviata</h2>
<p>Controlla la tua email per confermare la prenotazione e ottenere il QR code per l'ingresso.</p>
<div class="status-steps">
<span><mat-icon fontSet="material-symbols-outlined">mail</mat-icon> Open the confirmation email</span>
<span><mat-icon fontSet="material-symbols-outlined">verified</mat-icon> Confirm your reservation</span>
<span><mat-icon fontSet="material-symbols-outlined">mail</mat-icon> Apri l'email di conferma</span>
<span><mat-icon fontSet="material-symbols-outlined">verified</mat-icon> Conferma la tua prenotazione</span>
</div>
</div>
</div>
@@ -69,16 +69,16 @@ type ApiValidationErrors = Record<string, string[]>;
<form [formGroup]="bookingForm" (ngSubmit)="submit()" novalidate>
<div class="intro-note">
<mat-icon fontSet="material-symbols-outlined">info</mat-icon>
<p>We only ask for the essentials. Your seats are held only after email confirmation.</p>
<p>Ti chiediamo solo l'essenziale. I posti vengono confermati solo dopo la verifica via email.</p>
</div>
<div class="form-grid">
<mat-form-field appearance="outline">
<mat-icon matPrefix fontSet="material-symbols-outlined">person</mat-icon>
<mat-label>Name</mat-label>
<mat-label>Nome</mat-label>
<input matInput type="text" formControlName="name" autocomplete="name" />
@if (bookingForm.controls.name.touched && bookingForm.controls.name.hasError('required')) {
<mat-error>Name is required.</mat-error>
<mat-error>Il nome e' obbligatorio.</mat-error>
}
</mat-form-field>
@@ -86,25 +86,25 @@ type ApiValidationErrors = Record<string, string[]>;
<mat-icon matPrefix fontSet="material-symbols-outlined">mail</mat-icon>
<mat-label>Email</mat-label>
<input matInput type="email" formControlName="email" autocomplete="email" />
<mat-hint>We will send the confirmation link here.</mat-hint>
<mat-hint>Invieremo qui il link di conferma.</mat-hint>
@if (bookingForm.controls.email.touched && bookingForm.controls.email.hasError('required')) {
<mat-error>Email is required.</mat-error>
<mat-error>L'email e' obbligatoria.</mat-error>
}
@if (bookingForm.controls.email.touched && bookingForm.controls.email.hasError('email')) {
<mat-error>Enter a valid email address.</mat-error>
<mat-error>Inserisci un indirizzo email valido.</mat-error>
}
</mat-form-field>
<mat-form-field appearance="outline">
<mat-icon matPrefix fontSet="material-symbols-outlined">group</mat-icon>
<mat-label>Number of seats</mat-label>
<mat-label>Numero di posti</mat-label>
<input matInput type="number" min="1" step="1" formControlName="partySize" />
<mat-hint>Enter the total number of guests in your party.</mat-hint>
<mat-hint>Indica il numero totale di persone della prenotazione.</mat-hint>
@if (bookingForm.controls.partySize.touched && bookingForm.controls.partySize.hasError('required')) {
<mat-error>Number of seats is required.</mat-error>
<mat-error>Il numero di posti e' obbligatorio.</mat-error>
}
@if (bookingForm.controls.partySize.touched && bookingForm.controls.partySize.hasError('min')) {
<mat-error>At least 1 seat is required.</mat-error>
<mat-error>Devi richiedere almeno 1 posto.</mat-error>
}
</mat-form-field>
</div>
@@ -120,7 +120,7 @@ type ApiValidationErrors = Record<string, string[]>;
<div class="message-panel error field-errors" aria-live="assertive">
<mat-icon fontSet="material-symbols-outlined">warning</mat-icon>
<div>
<p class="message-title">Please check the highlighted details:</p>
<p class="message-title">Controlla i dati evidenziati:</p>
@for (message of fieldErrors(); track message) {
<p>{{ message }}</p>
}
@@ -132,15 +132,15 @@ type ApiValidationErrors = Record<string, string[]>;
<button mat-flat-button type="submit" [disabled]="isSubmitting()">
@if (isSubmitting()) {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Submitting...</span>
<span>Invio in corso...</span>
} @else {
<ng-container>
<mat-icon fontSet="material-symbols-outlined">confirmation_number</mat-icon>
<span>Reserve</span>
<span>Prenota</span>
</ng-container>
}
</button>
<a mat-button routerLink="/shows">Back to shows</a>
<a mat-button routerLink="/shows">Torna agli spettacoli</a>
</div>
</form>
}
@@ -413,15 +413,30 @@ export class BookingPlaceholderPageComponent {
this.fieldErrors.set(this.flattenValidationErrors(error.error as ApiValidationErrors));
return;
}
this.submitError.set('Could not create reservation. Please try again.');
this.submitError.set('Non siamo riusciti a creare la prenotazione. Riprova.');
},
});
}
private flattenValidationErrors(errors: ApiValidationErrors): string[] {
return Object.entries(errors).flatMap(([field, messages]) => {
const label = field === 'party_size' ? 'number of seats' : field;
return messages.map((message) => `${label}: ${message}`);
const labelMap: Record<string, string> = {
name: 'nome',
email: 'email',
party_size: 'numero di posti',
};
const label = labelMap[field] ?? field;
return messages.map((message) => `${label}: ${this.translateValidationMessage(message)}`);
});
}
private translateValidationMessage(message: string): string {
const translations: Record<string, string> = {
'This field is required.': 'questo campo e\' obbligatorio.',
'Enter a valid email address.': 'inserisci un indirizzo email valido.',
'Ensure this value is greater than or equal to 1.': 'inserisci un valore maggiore o uguale a 1.',
};
return translations[message] ?? message;
}
}

View File

@@ -63,20 +63,20 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
template: `
<section class="page">
<header class="page-header">
<p class="eyebrow">Staff check-in</p>
<h1>Token validation</h1>
<p class="supporting">Enter a token manually or scan a QR code to preview admission data and confirm entrance.</p>
<p class="eyebrow">Accoglienza staff</p>
<h1>Verifica ingresso</h1>
<p class="supporting">Inserisci il token manualmente oppure inquadra il QR code per controllare i dati di accesso e confermare l'ingresso.</p>
</header>
<div class="checkin-grid">
<mat-card class="side-card">
<mat-card-content>
<p class="side-label">Front of house</p>
<h2>Designed for quick, low-friction arrivals.</h2>
<p class="side-label">Ingresso sala</p>
<h2>Uno strumento pensato per un'accoglienza rapida e chiara.</h2>
<ul class="side-list">
<li>Scan a QR code when a device camera is available.</li>
<li>Enter the token manually if scanning is not possible.</li>
<li>Confirm admission only after the preview data matches the guest.</li>
<li>Inquadra il QR code quando la fotocamera del dispositivo e' disponibile.</li>
<li>Inserisci il token manualmente se la scansione non e' possibile.</li>
<li>Conferma l'ingresso solo dopo aver verificato che i dati corrispondano alla prenotazione.</li>
</ul>
</mat-card-content>
</mat-card>
@@ -85,13 +85,13 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<mat-card-content>
<section class="scanner-panel">
<div class="scanner-copy">
<h2>Camera scan</h2>
<p>Optional on supported browsers. If the QR contains a full check-in URL, the token is extracted automatically.</p>
<h2>Scansione con fotocamera</h2>
<p>Disponibile nei browser compatibili. Se il QR contiene l'intero link di check-in, il token viene estratto automaticamente.</p>
</div>
<div class="actions scanner-actions">
@if (cameraState() === 'active') {
<button mat-stroked-button type="button" (click)="stopScanner()">Stop camera</button>
<button mat-stroked-button type="button" (click)="stopScanner()">Ferma fotocamera</button>
} @else {
<button
mat-stroked-button
@@ -101,9 +101,9 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
>
@if (cameraState() === 'starting') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Starting camera...</span>
<span>Avvio fotocamera...</span>
} @else {
<span>Use camera</span>
<span>Usa fotocamera</span>
}
</button>
}
@@ -123,10 +123,10 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<form [formGroup]="tokenForm" (ngSubmit)="preview()" novalidate>
<mat-form-field appearance="outline" class="full-width">
<mat-label>Opaque token</mat-label>
<mat-label>Token opaco</mat-label>
<input matInput formControlName="token" autocomplete="off" />
@if (tokenForm.controls.token.touched && tokenForm.controls.token.hasError('required')) {
<mat-error>Token is required.</mat-error>
<mat-error>Il token e' obbligatorio.</mat-error>
}
</mat-form-field>
@@ -134,34 +134,34 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<button mat-flat-button type="submit" [disabled]="isBusy()">
@if (state() === 'preview_loading') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Validating...</span>
<span>Verifica in corso...</span>
} @else {
<span>Preview check-in</span>
<span>Anteprima check-in</span>
}
</button>
<a mat-button routerLink="/">Home</a>
<a mat-button routerLink="/shows">Shows</a>
<a mat-button routerLink="/">Inizio</a>
<a mat-button routerLink="/shows">Spettacoli</a>
</div>
</form>
@if (previewData() && shouldShowPreview()) {
<section class="preview-panel" aria-live="polite">
<h2>Admission preview</h2>
<h2>Anteprima accesso</h2>
<dl>
<div><dt>Show</dt><dd>{{ previewData()!.show_title }}</dd></div>
<div><dt>Venue</dt><dd>{{ previewData()!.venue_name }}</dd></div>
<div><dt>Starts at</dt><dd>{{ previewData()!.starts_at | date: 'EEEE d MMMM, HH:mm' }}</dd></div>
<div><dt>Party size</dt><dd>{{ previewData()!.party_size }}</dd></div>
<div><dt>Reservation</dt><dd>#{{ previewData()!.reservation_id }}</dd></div>
<div><dt>Spettacolo</dt><dd>{{ previewData()!.show_title }}</dd></div>
<div><dt>Spazio</dt><dd>{{ previewData()!.venue_name }}</dd></div>
<div><dt>Inizio</dt><dd>{{ previewData()!.starts_at | date: 'EEEE d MMMM, HH:mm' }}</dd></div>
<div><dt>Posti</dt><dd>{{ previewData()!.party_size }}</dd></div>
<div><dt>Prenotazione</dt><dd>#{{ previewData()!.reservation_id }}</dd></div>
</dl>
<button mat-flat-button type="button" (click)="confirm()" [disabled]="isBusy() || state() === 'confirm_success'">
@if (state() === 'confirm_loading') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Confirming...</span>
<span>Conferma in corso...</span>
} @else if (state() === 'confirm_success') {
<span>Checked in</span>
<span>Ingresso registrato</span>
} @else {
<span>Confirm check-in</span>
<span>Conferma ingresso</span>
}
</button>
</section>
@@ -169,24 +169,24 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
@if (state() === 'confirm_success' && confirmData()) {
<p class="success-message" aria-live="polite">
Check-in confirmed at {{ confirmData()!.checked_in_at | date: 'HH:mm' }}.
Ingresso confermato alle {{ confirmData()!.checked_in_at | date: 'HH:mm' }}.
</p>
}
@if (state() === 'invalid_token') {
<p class="error-message" aria-live="assertive">Invalid token.</p>
<p class="error-message" aria-live="assertive">Token non valido.</p>
}
@if (state() === 'pending_reservation') {
<p class="error-message" aria-live="assertive">Reservation is still pending confirmation.</p>
<p class="error-message" aria-live="assertive">La prenotazione non e' ancora confermata.</p>
}
@if (state() === 'already_checked_in') {
<p class="error-message" aria-live="assertive">This reservation is already checked in.</p>
<p class="error-message" aria-live="assertive">Questa prenotazione risulta gia' registrata all'ingresso.</p>
}
@if (state() === 'unauthorized') {
<p class="error-message" aria-live="assertive">You are not authorized. Log into <code>/admin</code> with a staff account, let the page reload with that session, then retry this check-in.</p>
<p class="error-message" aria-live="assertive">Non sei autorizzato. Accedi a <code>/admin</code> con un account staff, lascia ricaricare la pagina con quella sessione e poi riprova.</p>
}
@if (state() === 'error') {
<p class="error-message" aria-live="assertive">Something went wrong. Please try again.</p>
<p class="error-message" aria-live="assertive">Qualcosa non ha funzionato. Riprova.</p>
}
</mat-card-content>
</mat-card>
@@ -388,8 +388,8 @@ export class CheckInPlaceholderPageComponent {
protected readonly cameraState = signal<CameraState>(this.scannerSupported ? 'ready' : 'unsupported');
protected readonly cameraMessage = signal(
this.scannerSupported
? 'Open the camera to scan a QR code, or keep using manual token entry.'
: 'Camera scanning is not available in this browser. Manual token entry still works.',
? 'Apri la fotocamera per scansionare un QR code, oppure continua con l\'inserimento manuale del token.'
: 'La scansione con fotocamera non e\' disponibile in questo browser. Puoi comunque inserire il token manualmente.',
);
constructor() {
@@ -452,13 +452,13 @@ export class CheckInPlaceholderPageComponent {
protected async startScanner(): Promise<void> {
if (!this.scannerSupported || !this.barcodeDetectorCtor) {
this.cameraState.set('unsupported');
this.cameraMessage.set('Camera scanning is not available in this browser. Manual token entry still works.');
this.cameraMessage.set('La scansione con fotocamera non e\' disponibile in questo browser. Puoi comunque inserire il token manualmente.');
return;
}
this.stopScanner();
this.cameraState.set('starting');
this.cameraMessage.set('Starting camera...');
this.cameraMessage.set('Avvio della fotocamera in corso...');
try {
this.scannerStream = await navigator.mediaDevices.getUserMedia({
@@ -468,19 +468,19 @@ export class CheckInPlaceholderPageComponent {
this.detector = new this.barcodeDetectorCtor({ formats: ['qr_code'] });
this.cameraState.set('active');
this.cameraMessage.set('Point the camera at the visitor QR code.');
this.cameraMessage.set('Inquadra il QR code del visitatore.');
this.scheduleScan();
} catch (error) {
this.stopScanner();
if (error instanceof DOMException && (error.name === 'NotAllowedError' || error.name === 'SecurityError')) {
this.cameraState.set('denied');
this.cameraMessage.set('Camera access was denied. You can continue with manual token entry.');
this.cameraMessage.set('L\'accesso alla fotocamera e\' stato negato. Puoi continuare con l\'inserimento manuale del token.');
return;
}
this.cameraState.set('error');
this.cameraMessage.set('Could not start the camera. You can continue with manual token entry.');
this.cameraMessage.set('Non siamo riusciti ad avviare la fotocamera. Puoi continuare con l\'inserimento manuale del token.');
}
}
@@ -507,7 +507,7 @@ export class CheckInPlaceholderPageComponent {
if (this.scannerSupported && this.cameraState() === 'active') {
this.cameraState.set('ready');
this.cameraMessage.set('Camera stopped. You can scan again or continue with manual token entry.');
this.cameraMessage.set('Fotocamera fermata. Puoi riavviare la scansione oppure continuare con l\'inserimento manuale del token.');
}
}
@@ -559,7 +559,7 @@ export class CheckInPlaceholderPageComponent {
const context = canvas.getContext('2d');
if (!context) {
this.cameraState.set('error');
this.cameraMessage.set('Camera scan is not available right now. Please enter the token manually.');
this.cameraMessage.set('La scansione non e\' disponibile in questo momento. Inserisci il token manualmente.');
this.stopScanner();
return;
}
@@ -578,14 +578,14 @@ export class CheckInPlaceholderPageComponent {
if (token) {
this.tokenForm.controls.token.setValue(token);
this.tokenForm.controls.token.markAsTouched();
this.cameraMessage.set('QR captured. Validating token...');
this.cameraMessage.set('QR acquisito. Verifica del token in corso...');
this.stopScanner();
this.preview();
return;
}
} catch {
this.cameraState.set('error');
this.cameraMessage.set('Camera scan failed. Please enter the token manually.');
this.cameraMessage.set('La scansione non e\' andata a buon fine. Inserisci il token manualmente.');
this.stopScanner();
return;
} finally {

View File

@@ -11,14 +11,15 @@ import { API_BASE_URL } from '../services/api-config.token';
template: `
<section class="hero page">
<div class="hero-copy">
<p class="eyebrow">AzioneLab Theatre Company</p>
<h1>Small-stage evenings, thoughtful performances, simple reservations.</h1>
<img class="hero-logo" src="assets/azionelab-logo.svg" alt="AzioneLab" />
<p class="eyebrow">AzioneLab</p>
<h1>Laboratori, scena e produzioni che mettono il pubblico al centro.</h1>
<p class="supporting">
AzioneLab brings contemporary theatre into intimate venues. This public frontend is shaped around clear show discovery, lightweight booking, and a calm arrival experience at the door.
AzioneLab intreccia laboratori teatrali, produzioni audio/visive e una presenza scenica pensata per spazi vivi e raccolti. Il sito accompagna il pubblico con chiarezza: scoperta degli spettacoli, prenotazione essenziale, conferma serena all'ingresso.
</p>
<div class="hero-actions">
<a mat-flat-button color="primary" routerLink="/shows">Browse upcoming shows</a>
<a mat-stroked-button routerLink="/check-in">Staff check-in</a>
<a mat-flat-button color="primary" routerLink="/shows">Scopri gli spettacoli</a>
<a mat-stroked-button routerLink="/check-in">Area accoglienza</a>
</div>
</div>
@@ -26,8 +27,8 @@ import { API_BASE_URL } from '../services/api-config.token';
<div class="curtain"></div>
<div class="stage-glow"></div>
<div class="stage-copy">
<span>Tonight at AzioneLab</span>
<strong>Doors open 30 minutes before the performance</strong>
<span>Questa sera da AzioneLab</span>
<strong>Le porte aprono 30 minuti prima dell'inizio</strong>
</div>
</div>
</section>
@@ -35,29 +36,29 @@ import { API_BASE_URL } from '../services/api-config.token';
<section class="overview page">
<div class="section-heading">
<div>
<p class="eyebrow">At a glance</p>
<h2>Built for a small company, not a sprawling ticketing empire</h2>
<p class="eyebrow">In breve</p>
<h2>Un sito pensato per una compagnia viva, non per una macchina impersonale di biglietteria</h2>
</div>
<p class="supporting">The public experience stays simple: browse a show, reserve seats, confirm by email, arrive with a QR code.</p>
<p class="supporting">L'esperienza pubblica resta semplice: scegli uno spettacolo, richiedi i posti, conferma via email, arriva con il tuo QR code.</p>
</div>
<div class="feature-grid">
<mat-card class="feature-card">
<mat-card-title>Find the right performance</mat-card-title>
<mat-card-title>Scegli la replica giusta</mat-card-title>
<mat-card-content>
<p>Show listings and detail pages keep venue, schedule, and availability visible without noise.</p>
<p>Le schede degli spettacoli tengono in primo piano luogo, orari e disponibilita', senza confusione.</p>
</mat-card-content>
</mat-card>
<mat-card class="feature-card">
<mat-card-title>Confirm by email</mat-card-title>
<mat-card-title>Conferma via email</mat-card-title>
<mat-card-content>
<p>Reservations stay pending until the audience member confirms, which keeps capacity trustworthy and easy to manage.</p>
<p>Le richieste restano in attesa finche' il pubblico non conferma, cosi' la capienza resta affidabile e semplice da gestire.</p>
</mat-card-content>
</mat-card>
<mat-card class="feature-card">
<mat-card-title>Check in quickly</mat-card-title>
<mat-card-title>Accoglienza rapida</mat-card-title>
<mat-card-content>
<p>Front-of-house staff can preview a token, validate it server-side, and record entry in one compact flow.</p>
<p>Lo staff puo' verificare il token, controllarlo lato server e registrare l'ingresso in un flusso compatto.</p>
</mat-card-content>
</mat-card>
</div>
@@ -65,21 +66,21 @@ import { API_BASE_URL } from '../services/api-config.token';
<section class="journey-grid page">
<div class="journey-copy">
<p class="eyebrow">Audience journey</p>
<h2>From interest to entrance in a few quiet steps</h2>
<p class="eyebrow">Percorso del pubblico</p>
<h2>Dall'interesse all'ingresso in pochi passaggi chiari</h2>
<ol>
<li>Browse the public programme and open a show page.</li>
<li>Reserve seats for a performance and confirm by email.</li>
<li>Keep the QR code ready on your phone or on paper for entry.</li>
<li>Esplora la programmazione pubblica e apri la scheda di uno spettacolo.</li>
<li>Richiedi i posti per una replica e conferma via email.</li>
<li>Tieni pronto il QR code sul telefono o su carta per l'ingresso.</li>
</ol>
</div>
<mat-card class="meta-card">
<mat-card-title>Runtime wiring</mat-card-title>
<mat-card-title>Base tecnica</mat-card-title>
<mat-card-content>
<p class="meta-label">API base URL</p>
<p class="meta-label">URL base API</p>
<code>{{ apiBaseUrl }}</code>
<p class="meta-note">The frontend remains aligned with the existing Django API surface without changing backend contracts.</p>
<p class="meta-note">Il frontend resta allineato alle API Django gia' esistenti, senza cambiare i contratti del backend.</p>
</mat-card-content>
</mat-card>
</section>
@@ -97,6 +98,13 @@ import { API_BASE_URL } from '../services/api-config.token';
padding: 34px 0 20px;
}
.hero-logo {
width: min(220px, 52vw);
height: auto;
display: block;
margin-bottom: 18px;
}
h1 {
margin: 0;
max-width: 11ch;

View File

@@ -23,9 +23,9 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
template: `
<section class="page">
<header class="page-header">
<p class="eyebrow">Reservation confirmation</p>
<h1>Email confirmation</h1>
<p class="supporting">Use the link from your inbox to confirm your reservation and retrieve the QR code for venue check-in.</p>
<p class="eyebrow">Conferma prenotazione</p>
<h1>Conferma via email</h1>
<p class="supporting">Usa il link ricevuto nella tua casella email per confermare la prenotazione e ottenere il QR code per l'ingresso.</p>
</header>
<mat-card class="status-card">
@@ -34,8 +34,8 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
<div class="status-panel loading" aria-live="polite">
<mat-progress-spinner mode="indeterminate" diameter="36"></mat-progress-spinner>
<div>
<h2>Confirming reservation...</h2>
<p>Please wait while we validate your link.</p>
<h2>Stiamo confermando la prenotazione...</h2>
<p>Attendi qualche istante mentre verifichiamo il link.</p>
</div>
</div>
}
@@ -46,37 +46,37 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
<mat-icon fontSet="material-symbols-outlined">verified</mat-icon>
</div>
<div>
<h2>Reservation confirmed</h2>
<p>Your seats are confirmed. Present this QR code at check-in and keep the link handy if staff needs manual access.</p>
<h2>Prenotazione confermata</h2>
<p>I tuoi posti sono confermati. Mostra questo QR code all'ingresso e conserva il link nel caso lo staff debba aprirlo manualmente.</p>
<div class="success-points">
<span><mat-icon fontSet="material-symbols-outlined">qr_code_2</mat-icon> Ready for entry</span>
<span><mat-icon fontSet="material-symbols-outlined">theater_comedy</mat-icon> See you at the performance</span>
<span><mat-icon fontSet="material-symbols-outlined">qr_code_2</mat-icon> Pronto per l'ingresso</span>
<span><mat-icon fontSet="material-symbols-outlined">theater_comedy</mat-icon> Ci vediamo a teatro</span>
</div>
</div>
</div>
@if (confirmation()!.qr_code_image) {
<div class="qr-panel">
<p class="panel-label">Your check-in QR code</p>
<img [src]="confirmation()!.qr_code_image" alt="Reservation QR code" />
<p class="panel-label">Il tuo QR code di ingresso</p>
<img [src]="confirmation()!.qr_code_image" alt="QR code della prenotazione" />
</div>
}
@if (confirmation()!.qr_code_url) {
<div class="meta-card">
<mat-icon fontSet="material-symbols-outlined">link</mat-icon>
<p>Check-in URL: <a [href]="confirmation()!.qr_code_url">{{ confirmation()!.qr_code_url }}</a></p>
<p>Link di accesso: <a [href]="confirmation()!.qr_code_url">{{ confirmation()!.qr_code_url }}</a></p>
</div>
}
<div class="next-steps">
<div>
<p class="step-label">What to do next</p>
<p>Keep the QR code on your phone or print it. Staff can scan it directly at the entrance.</p>
<p class="step-label">Cosa fare adesso</p>
<p>Conserva il QR code sul telefono oppure stampalo. Lo staff potra' leggerlo direttamente all'ingresso.</p>
</div>
<div>
<p class="step-label">Need the link later?</p>
<p>Save the confirmation email so you can reopen the check-in page if the QR needs to be shown again.</p>
<p class="step-label">Ti serve di nuovo il link?</p>
<p>Tieni l'email di conferma: potrai riaprire la pagina di check-in in qualsiasi momento se dovrai mostrare ancora il QR.</p>
</div>
</div>
}
@@ -87,8 +87,8 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
<mat-icon fontSet="material-symbols-outlined">error</mat-icon>
</div>
<div>
<h2>Invalid confirmation link</h2>
<p>This token is not valid. Please use the latest email confirmation link.</p>
<h2>Link di conferma non valido</h2>
<p>Questo token non e' valido. Usa l'ultimo link di conferma ricevuto via email.</p>
</div>
</div>
}
@@ -99,8 +99,8 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
<mat-icon fontSet="material-symbols-outlined">schedule</mat-icon>
</div>
<div>
<h2>Confirmation link expired</h2>
<p>This link has expired. Please create a new reservation.</p>
<h2>Link di conferma scaduto</h2>
<p>Questo link e' scaduto. Crea una nuova prenotazione.</p>
</div>
</div>
}
@@ -111,16 +111,16 @@ type ConfirmationState = 'loading' | 'success' | 'invalid' | 'expired' | 'error'
<mat-icon fontSet="material-symbols-outlined">warning</mat-icon>
</div>
<div>
<h2>Could not confirm reservation</h2>
<p>Please try again in a moment.</p>
<h2>Non siamo riusciti a confermare la prenotazione</h2>
<p>Riprova tra qualche istante.</p>
</div>
</div>
}
</mat-card-content>
<mat-card-actions>
<a mat-button routerLink="/">Home</a>
<a mat-button routerLink="/shows">Shows</a>
<a mat-button routerLink="/">Inizio</a>
<a mat-button routerLink="/shows">Spettacoli</a>
</mat-card-actions>
</mat-card>
</section>

View File

@@ -25,7 +25,7 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
@if (isLoading()) {
<div class="status-panel" aria-live="polite">
<mat-progress-spinner mode="indeterminate" diameter="40"></mat-progress-spinner>
<p>Loading show details...</p>
<p>Caricamento dei dettagli dello spettacolo...</p>
</div>
} @else if (errorMessage()) {
<mat-card class="status-card" aria-live="assertive">
@@ -33,25 +33,25 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
<div class="status-copy">
<mat-icon>error</mat-icon>
<div>
<h1>Could not load this show</h1>
<h1>Non siamo riusciti a caricare questo spettacolo</h1>
<p>{{ errorMessage() }}</p>
</div>
</div>
</mat-card-content>
<mat-card-actions>
<button mat-flat-button type="button" (click)="reload()">Try again</button>
<a mat-button routerLink="/shows">Back to shows</a>
<button mat-flat-button type="button" (click)="reload()">Riprova</button>
<a mat-button routerLink="/shows">Torna agli spettacoli</a>
</mat-card-actions>
</mat-card>
} @else if (show()) {
<header class="page-header">
<div class="hero-copy">
<p class="eyebrow">Show detail</p>
<p class="eyebrow">Scheda spettacolo</p>
<h1>{{ show()!.title }}</h1>
<p class="supporting">{{ show()!.description || show()!.summary }}</p>
<div class="hero-note">
<span>Published programme</span>
<span>Choose a performance below to continue</span>
<span>Programmazione pubblica</span>
<span>Scegli una data per continuare</span>
</div>
</div>
@if (show()!.image_url) {
@@ -64,10 +64,10 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
<section class="section">
<div class="section-heading">
<div>
<h2>Upcoming performances</h2>
<p>Choose a performance to continue to the booking placeholder.</p>
<h2>Prossime repliche</h2>
<p>Scegli una data per proseguire verso la prenotazione.</p>
</div>
<a mat-button routerLink="/shows">Back to show list</a>
<a mat-button routerLink="/shows">Torna all'elenco</a>
</div>
@if (performances().length === 0) {
@@ -76,8 +76,8 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
<div class="status-copy">
<mat-icon>theaters</mat-icon>
<div>
<h2>No performances published yet</h2>
<p>This show is online, but there are no upcoming performances available right now.</p>
<h2>Nessuna replica pubblicata per ora</h2>
<p>Lo spettacolo e' online, ma al momento non ci sono date disponibili.</p>
</div>
</div>
</mat-card-content>
@@ -91,24 +91,24 @@ import { ShowDetail, ShowPerformance, ShowsApiService } from '../services/shows-
<mat-card-content>
<dl class="performance-meta">
<div>
<dt>Venue</dt>
<dt>Spazio</dt>
<dd>{{ performance.venue.name }}</dd>
</div>
<div>
<dt>City</dt>
<dt>Citta'</dt>
<dd>{{ performance.venue.city }}</dd>
</div>
<div>
<dt>Available seats</dt>
<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']">Book this performance</a>
<a mat-flat-button [routerLink]="['/performances', performance.id, 'book']">Prenota questa data</a>
} @else {
<button mat-stroked-button type="button" disabled>Booking unavailable</button>
<button mat-stroked-button type="button" disabled>Prenotazione non disponibile</button>
}
</mat-card-actions>
</mat-card>
@@ -310,7 +310,7 @@ export class ShowDetailPlaceholderPageComponent {
const slug = this.route.snapshot.paramMap.get('slug');
if (!slug) {
this.errorMessage.set('The requested show is missing a valid identifier.');
this.errorMessage.set('Lo spettacolo richiesto non ha un identificativo valido.');
this.show.set(null);
this.performances.set([]);
this.isLoading.set(false);
@@ -342,7 +342,7 @@ export class ShowDetailPlaceholderPageComponent {
error: () => {
this.show.set(null);
this.performances.set([]);
this.errorMessage.set('Please try again in a moment.');
this.errorMessage.set('Riprova tra qualche istante.');
this.isLoading.set(false);
},
});

View File

@@ -15,18 +15,18 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<section class="page">
<header class="page-header">
<div>
<p class="eyebrow">Public shows</p>
<h1>Shows</h1>
<p class="eyebrow">Programmazione</p>
<h1>Spettacoli</h1>
</div>
<p class="supporting">
Browse current productions, open a show page, and move toward booking without friction.
Scopri le produzioni di AzioneLab, apri la scheda di ogni spettacolo e avvicinati alla prenotazione con semplicità.
</p>
</header>
@if (isLoading()) {
<div class="status-panel" aria-live="polite">
<mat-progress-spinner mode="indeterminate" diameter="40"></mat-progress-spinner>
<p>Loading shows...</p>
<p>Caricamento degli spettacoli in corso...</p>
</div>
} @else if (errorMessage()) {
<mat-card class="status-card" aria-live="assertive">
@@ -34,13 +34,13 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<div class="status-copy">
<mat-icon>error</mat-icon>
<div>
<h2>Could not load shows</h2>
<h2>Non siamo riusciti a caricare gli spettacoli</h2>
<p>{{ errorMessage() }}</p>
</div>
</div>
</mat-card-content>
<mat-card-actions>
<button mat-flat-button type="button" (click)="reload()">Try again</button>
<button mat-flat-button type="button" (click)="reload()">Riprova</button>
</mat-card-actions>
</mat-card>
} @else if (shows().length === 0) {
@@ -49,8 +49,8 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<div class="status-copy">
<mat-icon>theaters</mat-icon>
<div>
<h2>No shows published yet</h2>
<p>Published productions will appear here as soon as they are available.</p>
<h2>Nessuno spettacolo pubblicato per ora</h2>
<p>Le produzioni disponibili compariranno qui non appena saranno online.</p>
</div>
</div>
</mat-card-content>
@@ -65,14 +65,14 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
</div>
}
<div class="card-topline">
<span class="card-label">Published show</span>
<span class="card-label">Spettacolo in evidenza</span>
</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]">Open detail</a>
<a mat-button [routerLink]="['/shows', show.slug]">Apri scheda</a>
</mat-card-actions>
</mat-card>
}
@@ -246,7 +246,7 @@ export class ShowListPageComponent {
},
error: () => {
this.shows.set([]);
this.errorMessage.set('Please try again in a moment.');
this.errorMessage.set('Riprova tra qualche istante.');
this.isLoading.set(false);
},
});

View File

@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 220" role="img" aria-labelledby="title desc">
<title id="title">AzioneLab</title>
<desc id="desc">Logo AzioneLab con payoff e direzione artistica.</desc>
<defs>
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#c54f41"/>
<stop offset="100%" stop-color="#7f251f"/>
</linearGradient>
</defs>
<rect x="12" y="18" width="120" height="120" rx="28" fill="url(#bg)"/>
<path d="M46 109L74 48h17l28 61h-17l-5-12H67l-5 12H46zm27-26h18L82 60 73 83z" fill="#fff7f0"/>
<text x="160" y="78" fill="#221c18" font-size="52" font-weight="700" font-family="Georgia, 'Times New Roman', serif">AzioneLab</text>
<text x="160" y="122" fill="#5f5650" font-size="24" font-family="Arial, Helvetica, sans-serif">Laboratori teatrali &amp; produzioni audio/visive</text>
<text x="160" y="158" fill="#8f332d" font-size="20" font-family="Arial, Helvetica, sans-serif">Direzione artistica a cura di Ernesto Estatico</text>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB