generated from bisco/codex-bootstrap
210 lines
4.8 KiB
TypeScript
210 lines
4.8 KiB
TypeScript
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
standalone: true,
|
|
imports: [
|
|
RouterOutlet,
|
|
RouterLink,
|
|
RouterLinkActive,
|
|
MatButtonModule,
|
|
],
|
|
template: `
|
|
<div class="app-shell">
|
|
<header class="site-header">
|
|
<div class="header-inner">
|
|
<a class="brand" routerLink="/" aria-label="AzioneLab">
|
|
<img class="brand-logo" src="assets/azionelab-logo.png" alt="AzioneLab" />
|
|
</a>
|
|
|
|
<nav class="main-nav" aria-label="Primary navigation">
|
|
<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>
|
|
</header>
|
|
|
|
<main class="page-shell">
|
|
<router-outlet></router-outlet>
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<div class="footer-inner">
|
|
<div class="footer-copy-block">
|
|
<p class="footer-title">AzioneLab</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>
|
|
<a routerLink="/shows">Spettacoli</a>
|
|
<a routerLink="/check-in">Accoglienza</a>
|
|
</nav>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
`,
|
|
styles: [`
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topline-inner,
|
|
.header-inner,
|
|
.footer-inner {
|
|
width: min(100%, var(--azionelab-shell-width));
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: var(--azionelab-surface);
|
|
border-bottom: 1px solid var(--azionelab-border);
|
|
}
|
|
|
|
.header-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
min-height: 72px;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
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: 164px;
|
|
height: auto;
|
|
max-height: 44px;
|
|
display: block;
|
|
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: flex-end;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.main-nav .active {
|
|
color: var(--azionelab-accent-strong);
|
|
}
|
|
|
|
.page-shell {
|
|
flex: 1;
|
|
padding: 40px 0 88px;
|
|
}
|
|
|
|
.site-footer {
|
|
border-top: 1px solid var(--azionelab-border);
|
|
background: var(--azionelab-bg-strong);
|
|
}
|
|
|
|
.footer-inner {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.5fr) auto;
|
|
gap: 20px;
|
|
align-items: start;
|
|
padding: 32px 24px 36px;
|
|
}
|
|
|
|
.footer-title {
|
|
margin: 0 0 8px;
|
|
font-family: var(--azionelab-serif);
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--azionelab-ink);
|
|
}
|
|
|
|
.footer-copy {
|
|
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 {
|
|
color: var(--azionelab-ink-soft);
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.header-inner {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
min-height: auto;
|
|
padding: 14px 16px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.main-nav {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.brand {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 150px;
|
|
max-height: 40px;
|
|
}
|
|
|
|
.footer-inner {
|
|
grid-template-columns: 1fr;
|
|
padding: 28px 16px 32px;
|
|
}
|
|
|
|
.footer-nav {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
`],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class AppComponent {}
|