Compare commits

..
2 Commits
Author SHA1 Message Date
Tom 76eec0e0f3 Merge pull request 'Show the same brand mark in header and footer, lettered "der IGMH"' (#69) from ui/brand-lettering into main
Build and deploy / deploy (push) Successful in 17s
Build and deploy / build (push) Successful in 1m27s
Reviewed-on: #69
2026-10-12 23:57:13 +02:00
TomandClaude Opus 5.5 39ed1fde4d Show the same brand mark in header and footer, lettered "der IGMH"
- New Brand component: signet plus two-line lettering, used by header and
  footer, so both show one mark instead of two differently built ones
- Lettering sized in em; header and footer set the scale with one font-size,
  the footer a little smaller than the header
- Second line reads "der IGMH" instead of "IGMH Mannheim" (the M already
  stands for Mannheim), also on the maintenance page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 23:54:51 +02:00
5 changed files with 46 additions and 38 deletions

No files matched your search

@@ -17,14 +17,9 @@
<header class="site-header">
<div class="header-inner">
@* Two-line lettering next to the signet: the body's name large, the
school small below it. One link, so the whole mark leads home. *@
@* The mark (signet and lettering) as one link, so all of it leads home. *@
<a class="brand" href="/">
<Signet />
<span class="brand-text">
<span class="brand-name">Elternbeirat</span>
<span class="brand-school">IGMH Mannheim</span>
</span>
<Brand />
</a>
@* CSS-only mobile menu: the checkbox holds the open/closed state, the
@@ -72,8 +67,7 @@
<div class="footer-inner">
<div class="footer-brand">
<Signet />
<span>Elternbeirat der IGMH</span>
<Brand />
</div>
@* Both link columns come from PocketBase like the header. An empty list
@@ -47,8 +47,8 @@
gap: var(--space-2) var(--space-4);
}
/* Signet and two-line lettering side by side. The lettering is a column of its
own, so the name and the school line up on the left edge. */
/* Signet and two-line lettering (Brand.razor) side by side. The lettering is sized
in em, so this font-size is its scale. */
.brand {
display: flex;
align-items: center;
@@ -76,23 +76,6 @@
height: 3rem;
}
.brand-text {
display: flex;
flex-direction: column;
line-height: 1.15;
}
.brand-name {
font-size: 1.35rem;
font-weight: var(--font-weight-heading);
letter-spacing: var(--letter-spacing-heading);
}
.brand-school {
font-size: 0.85rem;
font-weight: 600;
}
/* The links are pills with their own padding (see app.css), so the gap between
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. */
@@ -169,19 +152,21 @@
gap: var(--space-4);
}
/* The same mark as in the header, a little smaller: the footer closes the page, it
does not introduce it. */
.footer-brand {
display: flex;
align-items: center;
align-self: start;
gap: var(--space-2);
color: var(--color-on-footer);
font-weight: 700;
font-size: 0.9rem;
}
.footer-brand ::deep .signet {
flex-shrink: 0;
width: 3.5rem;
height: 3.5rem;
width: 2.75rem;
height: 2.75rem;
}
/* Column headings label the lists; they are not a second page heading, so they
@@ -353,12 +338,8 @@
height: 2.5rem;
}
.brand-name {
font-size: 1.15rem;
}
.brand-school {
font-size: 0.75rem;
.brand {
font-size: 0.86rem;
}
/* The footer columns stack: one column, brand on top. */
@@ -0,0 +1,14 @@
@*
The site's mark: the IGMH signet with the two-line lettering beside it, the body's
name large and "der IGMH" small below it. One component for the header and the
footer, so both show the same mark. It renders no wrapper of its own: the parent
supplies the element (the home link in the header, a plain box in the footer), lays
the two parts out side by side and scales them through its font-size, since the
lettering is sized in em (Brand.razor.css). "der IGMH" rather than "IGMH Mannheim":
the M in IGMH already stands for Mannheim.
*@
<Signet />
<span class="brand-text">
<span class="brand-name">Elternbeirat</span>
<span class="brand-school">der IGMH</span>
</span>
@@ -0,0 +1,19 @@
/* The name and the school line up on the left edge as a column of their own. Sizes in
em, so the parent sets the scale with one font-size: full size in the header,
smaller on phones and in the footer. */
.brand-text {
display: flex;
flex-direction: column;
line-height: 1.15;
}
.brand-name {
font-size: 1.35em;
font-weight: var(--font-weight-heading);
letter-spacing: var(--letter-spacing-heading);
}
.brand-school {
font-size: 0.85em;
font-weight: 600;
}
+1 -1
View File
@@ -204,7 +204,7 @@
</svg>
<span class="brand-text">
<span class="brand-name">Elternbeirat</span>
<span class="brand-school">IGMH Mannheim</span>
<span class="brand-school">der IGMH</span>
</span>
</div>
</header>