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="app-shell">
<div class="topline"> <div class="topline">
<div class="topline-inner"> <div class="topline-inner">
<span>Rome-based theatre company</span> <span>Laboratori teatrali & produzioni audio/visive</span>
<span>Reservations, confirmation, and entrance check-in</span> <span>Direzione artistica a cura di Ernesto Estatico</span>
</div> </div>
</div> </div>
<header class="site-header"> <header class="site-header">
<div class="header-inner"> <div class="header-inner">
<a class="brand" routerLink="/"> <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"> <span class="brand-text">
<strong>AzioneLab</strong> <strong>AzioneLab</strong>
<small>Independent theatre company</small> <small>Laboratori teatrali & produzioni audio/visive</small>
</span> </span>
</a> </a>
<nav class="main-nav" aria-label="Primary navigation"> <nav class="main-nav" aria-label="Primary navigation">
<a mat-button routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Home</a> <a mat-button routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Inizio</a>
<a mat-button routerLink="/shows" routerLinkActive="active">Shows</a> <a mat-button routerLink="/shows" routerLinkActive="active">Spettacoli</a>
<a mat-button routerLink="/check-in" routerLinkActive="active">Check-in</a> <a mat-button routerLink="/check-in" routerLinkActive="active">Accoglienza</a>
</nav> </nav>
<div class="header-actions"> <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>
</div> </div>
</header> </header>
@@ -50,12 +50,12 @@ import { MatButtonModule } from '@angular/material/button';
<div class="footer-inner"> <div class="footer-inner">
<div> <div>
<p class="footer-title">AzioneLab</p> <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> </div>
<nav class="footer-nav" aria-label="Footer navigation"> <nav class="footer-nav" aria-label="Footer navigation">
<a routerLink="/">Home</a> <a routerLink="/">Inizio</a>
<a routerLink="/shows">Shows</a> <a routerLink="/shows">Spettacoli</a>
<a routerLink="/check-in">Check-in</a> <a routerLink="/check-in">Accoglienza</a>
</nav> </nav>
</div> </div>
</footer> </footer>
@@ -115,16 +115,12 @@ import { MatButtonModule } from '@angular/material/button';
text-decoration: none; text-decoration: none;
} }
.brand-mark { .brand-logo {
display: inline-grid; width: 58px;
place-items: center; height: 58px;
width: 48px; display: block;
height: 48px; object-fit: contain;
border-radius: 14px; filter: drop-shadow(0 14px 30px rgba(111, 40, 33, 0.16));
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-text { .brand-text {

View File

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

View File

@@ -29,22 +29,22 @@ type ApiValidationErrors = Record<string, string[]>;
template: ` template: `
<section class="page"> <section class="page">
<header class="page-header"> <header class="page-header">
<p class="eyebrow">Booking</p> <p class="eyebrow">Prenotazione</p>
<h1>Reserve seats</h1> <h1>Richiedi i tuoi posti</h1>
<p class="supporting"> <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> </p>
</header> </header>
<div class="booking-grid"> <div class="booking-grid">
<mat-card class="summary-card"> <mat-card class="summary-card">
<mat-card-content> <mat-card-content>
<p class="summary-label">Before you submit</p> <p class="summary-label">Prima di inviare</p>
<h2>Reservations are activated only after email confirmation.</h2> <h2>La prenotazione si attiva solo dopo la conferma via email.</h2>
<ul class="summary-list"> <ul class="summary-list">
<li>Your confirmation link arrives at the email address you provide.</li> <li>Il link di conferma arriva all'indirizzo email che inserisci.</li>
<li>Seat availability is checked on the server before confirmation.</li> <li>La disponibilita' viene verificata sul server prima della conferma.</li>
<li>The QR code is generated only after the reservation becomes confirmed.</li> <li>Il QR code viene generato solo dopo la conferma della prenotazione.</li>
</ul> </ul>
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
@@ -57,11 +57,11 @@ type ApiValidationErrors = Record<string, string[]>;
<mat-icon fontSet="material-symbols-outlined">mark_email_read</mat-icon> <mat-icon fontSet="material-symbols-outlined">mark_email_read</mat-icon>
</div> </div>
<div> <div>
<h2>Reservation created</h2> <h2>Richiesta inviata</h2>
<p>Check your email to confirm the booking and unlock the QR code for admission.</p> <p>Controlla la tua email per confermare la prenotazione e ottenere il QR code per l'ingresso.</p>
<div class="status-steps"> <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">mail</mat-icon> Apri l'email di conferma</span>
<span><mat-icon fontSet="material-symbols-outlined">verified</mat-icon> Confirm your reservation</span> <span><mat-icon fontSet="material-symbols-outlined">verified</mat-icon> Conferma la tua prenotazione</span>
</div> </div>
</div> </div>
</div> </div>
@@ -69,16 +69,16 @@ type ApiValidationErrors = Record<string, string[]>;
<form [formGroup]="bookingForm" (ngSubmit)="submit()" novalidate> <form [formGroup]="bookingForm" (ngSubmit)="submit()" novalidate>
<div class="intro-note"> <div class="intro-note">
<mat-icon fontSet="material-symbols-outlined">info</mat-icon> <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>
<div class="form-grid"> <div class="form-grid">
<mat-form-field appearance="outline"> <mat-form-field appearance="outline">
<mat-icon matPrefix fontSet="material-symbols-outlined">person</mat-icon> <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" /> <input matInput type="text" formControlName="name" autocomplete="name" />
@if (bookingForm.controls.name.touched && bookingForm.controls.name.hasError('required')) { @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> </mat-form-field>
@@ -86,25 +86,25 @@ type ApiValidationErrors = Record<string, string[]>;
<mat-icon matPrefix fontSet="material-symbols-outlined">mail</mat-icon> <mat-icon matPrefix fontSet="material-symbols-outlined">mail</mat-icon>
<mat-label>Email</mat-label> <mat-label>Email</mat-label>
<input matInput type="email" formControlName="email" autocomplete="email" /> <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')) { @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')) { @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>
<mat-form-field appearance="outline"> <mat-form-field appearance="outline">
<mat-icon matPrefix fontSet="material-symbols-outlined">group</mat-icon> <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" /> <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')) { @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')) { @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> </mat-form-field>
</div> </div>
@@ -120,7 +120,7 @@ type ApiValidationErrors = Record<string, string[]>;
<div class="message-panel error field-errors" aria-live="assertive"> <div class="message-panel error field-errors" aria-live="assertive">
<mat-icon fontSet="material-symbols-outlined">warning</mat-icon> <mat-icon fontSet="material-symbols-outlined">warning</mat-icon>
<div> <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) { @for (message of fieldErrors(); track message) {
<p>{{ message }}</p> <p>{{ message }}</p>
} }
@@ -132,15 +132,15 @@ type ApiValidationErrors = Record<string, string[]>;
<button mat-flat-button type="submit" [disabled]="isSubmitting()"> <button mat-flat-button type="submit" [disabled]="isSubmitting()">
@if (isSubmitting()) { @if (isSubmitting()) {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Submitting...</span> <span>Invio in corso...</span>
} @else { } @else {
<ng-container> <ng-container>
<mat-icon fontSet="material-symbols-outlined">confirmation_number</mat-icon> <mat-icon fontSet="material-symbols-outlined">confirmation_number</mat-icon>
<span>Reserve</span> <span>Prenota</span>
</ng-container> </ng-container>
} }
</button> </button>
<a mat-button routerLink="/shows">Back to shows</a> <a mat-button routerLink="/shows">Torna agli spettacoli</a>
</div> </div>
</form> </form>
} }
@@ -413,15 +413,30 @@ export class BookingPlaceholderPageComponent {
this.fieldErrors.set(this.flattenValidationErrors(error.error as ApiValidationErrors)); this.fieldErrors.set(this.flattenValidationErrors(error.error as ApiValidationErrors));
return; 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[] { private flattenValidationErrors(errors: ApiValidationErrors): string[] {
return Object.entries(errors).flatMap(([field, messages]) => { return Object.entries(errors).flatMap(([field, messages]) => {
const label = field === 'party_size' ? 'number of seats' : field; const labelMap: Record<string, string> = {
return messages.map((message) => `${label}: ${message}`); 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: ` template: `
<section class="page"> <section class="page">
<header class="page-header"> <header class="page-header">
<p class="eyebrow">Staff check-in</p> <p class="eyebrow">Accoglienza staff</p>
<h1>Token validation</h1> <h1>Verifica ingresso</h1>
<p class="supporting">Enter a token manually or scan a QR code to preview admission data and confirm entrance.</p> <p class="supporting">Inserisci il token manualmente oppure inquadra il QR code per controllare i dati di accesso e confermare l'ingresso.</p>
</header> </header>
<div class="checkin-grid"> <div class="checkin-grid">
<mat-card class="side-card"> <mat-card class="side-card">
<mat-card-content> <mat-card-content>
<p class="side-label">Front of house</p> <p class="side-label">Ingresso sala</p>
<h2>Designed for quick, low-friction arrivals.</h2> <h2>Uno strumento pensato per un'accoglienza rapida e chiara.</h2>
<ul class="side-list"> <ul class="side-list">
<li>Scan a QR code when a device camera is available.</li> <li>Inquadra il QR code quando la fotocamera del dispositivo e' disponibile.</li>
<li>Enter the token manually if scanning is not possible.</li> <li>Inserisci il token manualmente se la scansione non e' possibile.</li>
<li>Confirm admission only after the preview data matches the guest.</li> <li>Conferma l'ingresso solo dopo aver verificato che i dati corrispondano alla prenotazione.</li>
</ul> </ul>
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
@@ -85,13 +85,13 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<mat-card-content> <mat-card-content>
<section class="scanner-panel"> <section class="scanner-panel">
<div class="scanner-copy"> <div class="scanner-copy">
<h2>Camera scan</h2> <h2>Scansione con fotocamera</h2>
<p>Optional on supported browsers. If the QR contains a full check-in URL, the token is extracted automatically.</p> <p>Disponibile nei browser compatibili. Se il QR contiene l'intero link di check-in, il token viene estratto automaticamente.</p>
</div> </div>
<div class="actions scanner-actions"> <div class="actions scanner-actions">
@if (cameraState() === 'active') { @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 { } @else {
<button <button
mat-stroked-button mat-stroked-button
@@ -101,9 +101,9 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
> >
@if (cameraState() === 'starting') { @if (cameraState() === 'starting') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Starting camera...</span> <span>Avvio fotocamera...</span>
} @else { } @else {
<span>Use camera</span> <span>Usa fotocamera</span>
} }
</button> </button>
} }
@@ -123,10 +123,10 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<form [formGroup]="tokenForm" (ngSubmit)="preview()" novalidate> <form [formGroup]="tokenForm" (ngSubmit)="preview()" novalidate>
<mat-form-field appearance="outline" class="full-width"> <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" /> <input matInput formControlName="token" autocomplete="off" />
@if (tokenForm.controls.token.touched && tokenForm.controls.token.hasError('required')) { @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> </mat-form-field>
@@ -134,34 +134,34 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
<button mat-flat-button type="submit" [disabled]="isBusy()"> <button mat-flat-button type="submit" [disabled]="isBusy()">
@if (state() === 'preview_loading') { @if (state() === 'preview_loading') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Validating...</span> <span>Verifica in corso...</span>
} @else { } @else {
<span>Preview check-in</span> <span>Anteprima check-in</span>
} }
</button> </button>
<a mat-button routerLink="/">Home</a> <a mat-button routerLink="/">Inizio</a>
<a mat-button routerLink="/shows">Shows</a> <a mat-button routerLink="/shows">Spettacoli</a>
</div> </div>
</form> </form>
@if (previewData() && shouldShowPreview()) { @if (previewData() && shouldShowPreview()) {
<section class="preview-panel" aria-live="polite"> <section class="preview-panel" aria-live="polite">
<h2>Admission preview</h2> <h2>Anteprima accesso</h2>
<dl> <dl>
<div><dt>Show</dt><dd>{{ previewData()!.show_title }}</dd></div> <div><dt>Spettacolo</dt><dd>{{ previewData()!.show_title }}</dd></div>
<div><dt>Venue</dt><dd>{{ previewData()!.venue_name }}</dd></div> <div><dt>Spazio</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>Inizio</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>Posti</dt><dd>{{ previewData()!.party_size }}</dd></div>
<div><dt>Reservation</dt><dd>#{{ previewData()!.reservation_id }}</dd></div> <div><dt>Prenotazione</dt><dd>#{{ previewData()!.reservation_id }}</dd></div>
</dl> </dl>
<button mat-flat-button type="button" (click)="confirm()" [disabled]="isBusy() || state() === 'confirm_success'"> <button mat-flat-button type="button" (click)="confirm()" [disabled]="isBusy() || state() === 'confirm_success'">
@if (state() === 'confirm_loading') { @if (state() === 'confirm_loading') {
<mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="18"></mat-progress-spinner>
<span>Confirming...</span> <span>Conferma in corso...</span>
} @else if (state() === 'confirm_success') { } @else if (state() === 'confirm_success') {
<span>Checked in</span> <span>Ingresso registrato</span>
} @else { } @else {
<span>Confirm check-in</span> <span>Conferma ingresso</span>
} }
</button> </button>
</section> </section>
@@ -169,24 +169,24 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
@if (state() === 'confirm_success' && confirmData()) { @if (state() === 'confirm_success' && confirmData()) {
<p class="success-message" aria-live="polite"> <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> </p>
} }
@if (state() === 'invalid_token') { @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') { @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') { @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') { @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') { @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-content>
</mat-card> </mat-card>
@@ -388,8 +388,8 @@ export class CheckInPlaceholderPageComponent {
protected readonly cameraState = signal<CameraState>(this.scannerSupported ? 'ready' : 'unsupported'); protected readonly cameraState = signal<CameraState>(this.scannerSupported ? 'ready' : 'unsupported');
protected readonly cameraMessage = signal( protected readonly cameraMessage = signal(
this.scannerSupported this.scannerSupported
? 'Open the camera to scan a QR code, or keep using manual token entry.' ? 'Apri la fotocamera per scansionare un QR code, oppure continua con l\'inserimento manuale del token.'
: 'Camera scanning is not available in this browser. Manual token entry still works.', : 'La scansione con fotocamera non e\' disponibile in questo browser. Puoi comunque inserire il token manualmente.',
); );
constructor() { constructor() {
@@ -452,13 +452,13 @@ export class CheckInPlaceholderPageComponent {
protected async startScanner(): Promise<void> { protected async startScanner(): Promise<void> {
if (!this.scannerSupported || !this.barcodeDetectorCtor) { if (!this.scannerSupported || !this.barcodeDetectorCtor) {
this.cameraState.set('unsupported'); 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; return;
} }
this.stopScanner(); this.stopScanner();
this.cameraState.set('starting'); this.cameraState.set('starting');
this.cameraMessage.set('Starting camera...'); this.cameraMessage.set('Avvio della fotocamera in corso...');
try { try {
this.scannerStream = await navigator.mediaDevices.getUserMedia({ this.scannerStream = await navigator.mediaDevices.getUserMedia({
@@ -468,19 +468,19 @@ export class CheckInPlaceholderPageComponent {
this.detector = new this.barcodeDetectorCtor({ formats: ['qr_code'] }); this.detector = new this.barcodeDetectorCtor({ formats: ['qr_code'] });
this.cameraState.set('active'); 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(); this.scheduleScan();
} catch (error) { } catch (error) {
this.stopScanner(); this.stopScanner();
if (error instanceof DOMException && (error.name === 'NotAllowedError' || error.name === 'SecurityError')) { if (error instanceof DOMException && (error.name === 'NotAllowedError' || error.name === 'SecurityError')) {
this.cameraState.set('denied'); 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; return;
} }
this.cameraState.set('error'); 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') { if (this.scannerSupported && this.cameraState() === 'active') {
this.cameraState.set('ready'); 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'); const context = canvas.getContext('2d');
if (!context) { if (!context) {
this.cameraState.set('error'); 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(); this.stopScanner();
return; return;
} }
@@ -578,14 +578,14 @@ export class CheckInPlaceholderPageComponent {
if (token) { if (token) {
this.tokenForm.controls.token.setValue(token); this.tokenForm.controls.token.setValue(token);
this.tokenForm.controls.token.markAsTouched(); 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.stopScanner();
this.preview(); this.preview();
return; return;
} }
} catch { } catch {
this.cameraState.set('error'); 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(); this.stopScanner();
return; return;
} finally { } finally {

View File

@@ -11,14 +11,15 @@ import { API_BASE_URL } from '../services/api-config.token';
template: ` template: `
<section class="hero page"> <section class="hero page">
<div class="hero-copy"> <div class="hero-copy">
<p class="eyebrow">AzioneLab Theatre Company</p> <img class="hero-logo" src="assets/azionelab-logo.svg" alt="AzioneLab" />
<h1>Small-stage evenings, thoughtful performances, simple reservations.</h1> <p class="eyebrow">AzioneLab</p>
<h1>Laboratori, scena e produzioni che mettono il pubblico al centro.</h1>
<p class="supporting"> <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> </p>
<div class="hero-actions"> <div class="hero-actions">
<a mat-flat-button color="primary" routerLink="/shows">Browse upcoming shows</a> <a mat-flat-button color="primary" routerLink="/shows">Scopri gli spettacoli</a>
<a mat-stroked-button routerLink="/check-in">Staff check-in</a> <a mat-stroked-button routerLink="/check-in">Area accoglienza</a>
</div> </div>
</div> </div>
@@ -26,8 +27,8 @@ import { API_BASE_URL } from '../services/api-config.token';
<div class="curtain"></div> <div class="curtain"></div>
<div class="stage-glow"></div> <div class="stage-glow"></div>
<div class="stage-copy"> <div class="stage-copy">
<span>Tonight at AzioneLab</span> <span>Questa sera da AzioneLab</span>
<strong>Doors open 30 minutes before the performance</strong> <strong>Le porte aprono 30 minuti prima dell'inizio</strong>
</div> </div>
</div> </div>
</section> </section>
@@ -35,29 +36,29 @@ import { API_BASE_URL } from '../services/api-config.token';
<section class="overview page"> <section class="overview page">
<div class="section-heading"> <div class="section-heading">
<div> <div>
<p class="eyebrow">At a glance</p> <p class="eyebrow">In breve</p>
<h2>Built for a small company, not a sprawling ticketing empire</h2> <h2>Un sito pensato per una compagnia viva, non per una macchina impersonale di biglietteria</h2>
</div> </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>
<div class="feature-grid"> <div class="feature-grid">
<mat-card class="feature-card"> <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> <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-content>
</mat-card> </mat-card>
<mat-card class="feature-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> <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-content>
</mat-card> </mat-card>
<mat-card class="feature-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> <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-content>
</mat-card> </mat-card>
</div> </div>
@@ -65,21 +66,21 @@ import { API_BASE_URL } from '../services/api-config.token';
<section class="journey-grid page"> <section class="journey-grid page">
<div class="journey-copy"> <div class="journey-copy">
<p class="eyebrow">Audience journey</p> <p class="eyebrow">Percorso del pubblico</p>
<h2>From interest to entrance in a few quiet steps</h2> <h2>Dall'interesse all'ingresso in pochi passaggi chiari</h2>
<ol> <ol>
<li>Browse the public programme and open a show page.</li> <li>Esplora la programmazione pubblica e apri la scheda di uno spettacolo.</li>
<li>Reserve seats for a performance and confirm by email.</li> <li>Richiedi i posti per una replica e conferma via email.</li>
<li>Keep the QR code ready on your phone or on paper for entry.</li> <li>Tieni pronto il QR code sul telefono o su carta per l'ingresso.</li>
</ol> </ol>
</div> </div>
<mat-card class="meta-card"> <mat-card class="meta-card">
<mat-card-title>Runtime wiring</mat-card-title> <mat-card-title>Base tecnica</mat-card-title>
<mat-card-content> <mat-card-content>
<p class="meta-label">API base URL</p> <p class="meta-label">URL base API</p>
<code>{{ apiBaseUrl }}</code> <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-content>
</mat-card> </mat-card>
</section> </section>
@@ -97,6 +98,13 @@ import { API_BASE_URL } from '../services/api-config.token';
padding: 34px 0 20px; padding: 34px 0 20px;
} }
.hero-logo {
width: min(220px, 52vw);
height: auto;
display: block;
margin-bottom: 18px;
}
h1 { h1 {
margin: 0; margin: 0;
max-width: 11ch; max-width: 11ch;

View File

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

View File

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

View File

@@ -15,18 +15,18 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<section class="page"> <section class="page">
<header class="page-header"> <header class="page-header">
<div> <div>
<p class="eyebrow">Public shows</p> <p class="eyebrow">Programmazione</p>
<h1>Shows</h1> <h1>Spettacoli</h1>
</div> </div>
<p class="supporting"> <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> </p>
</header> </header>
@if (isLoading()) { @if (isLoading()) {
<div class="status-panel" aria-live="polite"> <div class="status-panel" aria-live="polite">
<mat-progress-spinner mode="indeterminate" diameter="40"></mat-progress-spinner> <mat-progress-spinner mode="indeterminate" diameter="40"></mat-progress-spinner>
<p>Loading shows...</p> <p>Caricamento degli spettacoli in corso...</p>
</div> </div>
} @else if (errorMessage()) { } @else if (errorMessage()) {
<mat-card class="status-card" aria-live="assertive"> <mat-card class="status-card" aria-live="assertive">
@@ -34,13 +34,13 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<div class="status-copy"> <div class="status-copy">
<mat-icon>error</mat-icon> <mat-icon>error</mat-icon>
<div> <div>
<h2>Could not load shows</h2> <h2>Non siamo riusciti a caricare gli spettacoli</h2>
<p>{{ errorMessage() }}</p> <p>{{ errorMessage() }}</p>
</div> </div>
</div> </div>
</mat-card-content> </mat-card-content>
<mat-card-actions> <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-actions>
</mat-card> </mat-card>
} @else if (shows().length === 0) { } @else if (shows().length === 0) {
@@ -49,8 +49,8 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
<div class="status-copy"> <div class="status-copy">
<mat-icon>theaters</mat-icon> <mat-icon>theaters</mat-icon>
<div> <div>
<h2>No shows published yet</h2> <h2>Nessuno spettacolo pubblicato per ora</h2>
<p>Published productions will appear here as soon as they are available.</p> <p>Le produzioni disponibili compariranno qui non appena saranno online.</p>
</div> </div>
</div> </div>
</mat-card-content> </mat-card-content>
@@ -65,14 +65,14 @@ import { ShowListItem, ShowsApiService } from '../services/shows-api.service';
</div> </div>
} }
<div class="card-topline"> <div class="card-topline">
<span class="card-label">Published show</span> <span class="card-label">Spettacolo in evidenza</span>
</div> </div>
<mat-card-title>{{ show.title }}</mat-card-title> <mat-card-title>{{ show.title }}</mat-card-title>
<mat-card-content> <mat-card-content>
<p>{{ show.summary }}</p> <p>{{ show.summary }}</p>
</mat-card-content> </mat-card-content>
<mat-card-actions> <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-actions>
</mat-card> </mat-card>
} }
@@ -246,7 +246,7 @@ export class ShowListPageComponent {
}, },
error: () => { error: () => {
this.shows.set([]); this.shows.set([]);
this.errorMessage.set('Please try again in a moment.'); this.errorMessage.set('Riprova tra qualche istante.');
this.isLoading.set(false); 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