Use the IGMH mark in the header, a bubble favicon and a right-aligned menu

- Header and footer show the school's IGMH mark in white instead of the
  speech-bubble signet
- Favicon (SVG plus PNG fallback) and apple-touch-icon use the speech bubble,
  filling the whole tab space
- Main menu sits on the right; the hamburger takes over below 1024 px so the
  links never wrap to a second row
- Slimmer header on phones, brand vertically centred (no row gap above the
  folded menu)
- Home tab title shortened to "Elternbeirat IGMH"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tleiningerandClaude Opus 5.5 committed 2026-10-12 21:09:45 +02:00
1 parent b05f766133
commit dbfc5c7a75
10 files changed
+89 -39

No files matched your search

+8
View File
@@ -5,6 +5,14 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<base href="/"/>
@* Tab icon: the speech bubble with a grown-up and a child, filled with the header
gradient. The IGMH mark is unreadable at tab size, the bubble is not. SVG stays
sharp at every size; the PNG is for browsers without SVG icons. SVG comes last
because some browsers take the last icon they can use. The apple-touch-icon is
what phones use for a home-screen bookmark. *@
<link rel="icon" type="image/png" sizes="32x32" href="@Assets["favicon.png"]"/>
<link rel="icon" type="image/svg+xml" href="@Assets["favicon.svg"]"/>
<link rel="apple-touch-icon" href="@Assets["apple-touch-icon.png"]"/>
<ResourcePreloader/>
<link rel="stylesheet" href="@Assets["app.css"]"/>
<link rel="stylesheet" href="@Assets["Elternbeirat.Web.styles.css"]"/>
@@ -68,12 +68,12 @@
outline-color: var(--color-focus-inverse);
}
/* The signet lives in its own component (Signet.razor), so its <svg> carries that
/* The signet lives in its own component (Signet.razor), so its <img> carries that
component's scope attribute, not this one's; ::deep reaches it from here. */
.brand ::deep .signet {
flex-shrink: 0;
width: 2.5rem;
height: 2.5rem;
width: 3rem;
height: 3rem;
}
.brand-text {
@@ -94,8 +94,10 @@
}
/* The links are pills with their own padding (see app.css), so the gap between
them can stay small. */
them can stay small. margin-left:auto pushes the menu to the right edge, away
from the brand -- the usual split, brand left, menu right. */
.main-nav {
margin-left: auto;
display: flex;
flex-wrap: wrap;
align-items: center;
@@ -178,8 +180,8 @@
.footer-brand ::deep .signet {
flex-shrink: 0;
width: 3rem;
height: 3rem;
width: 3.5rem;
height: 3.5rem;
}
/* Column headings label the lists; they are not a second page heading, so they
@@ -229,16 +231,24 @@
font-size: 0.85rem;
}
/* Mobile: on narrow screens the nav collapses behind a hamburger button. This is
pure CSS -- the #nav-toggle checkbox holds the open/closed state and its
:checked state reveals the nav. No JavaScript, so it works under static SSR. */
@media (max-width: 40rem) {
/* Narrow screens: the nav collapses behind a hamburger button. This is pure CSS --
the #nav-toggle checkbox holds the open/closed state and its :checked state
reveals the nav. No JavaScript, so it works under static SSR. Without JavaScript
the header cannot measure whether the links still fit, so the switch happens at a
fixed width instead: brand plus the current menu need about 1000 px. When the
menu in PocketBase gets longer and the links start to wrap, raise this value
(and the matching one in app.css). */
@media (max-width: 64rem) {
/* The brand stays on the left, the hamburger goes to the right, and the nav
occupies its own full-width row below both. */
.header-inner {
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
/* No row gap: the folded nav is a zero-height second row, and a gap above
it would leave empty space under the brand, pushing it off centre. The
open nav brings its own distance instead (margin-top below). */
row-gap: 0;
}
/* The checkbox comes back as a real, focusable control -- only visually hidden
@@ -322,11 +332,34 @@
transition: max-height 0.2s ease;
max-height: 70vh;
overflow-y: auto;
margin-top: 0.5rem;
margin-top: var(--space-3);
}
/* Mobile per-link spacing for .main-nav a is in the global app.css too, for
the same scoped-attribute reason as above. */
}
/* Phones. */
@media (max-width: 40rem) {
/* The header stays pinned while scrolling, so on a small screen every pixel of
its height is lost for content. Less padding, a smaller signet and lettering
bring it down to about 56 px, the usual height of a phone's top bar. */
.header-inner {
padding-block: var(--space-2);
}
.brand ::deep .signet {
width: 2.5rem;
height: 2.5rem;
}
.brand-name {
font-size: 1.15rem;
}
.brand-school {
font-size: 0.75rem;
}
/* The footer columns stack: one column, brand on top. */
.footer-inner {