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 / build (push) Successful in 1m27s
Build and deploy / deploy (push) Successful in 17s

Reviewed-on: #69
This commit was merged in pull request #69.
This commit is contained in:
Tom committed 2026-10-12 23:57:13 +02:00
commit 76eec0e0f3
5 files changed
+46 -38

No files matched your search

@@ -17,14 +17,9 @@
<header class="site-header"> <header class="site-header">
<div class="header-inner"> <div class="header-inner">
@* Two-line lettering next to the signet: the body's name large, the @* The mark (signet and lettering) as one link, so all of it leads home. *@
school small below it. One link, so the whole mark leads home. *@
<a class="brand" href="/"> <a class="brand" href="/">
<Signet /> <Brand />
<span class="brand-text">
<span class="brand-name">Elternbeirat</span>
<span class="brand-school">IGMH Mannheim</span>
</span>
</a> </a>
@* CSS-only mobile menu: the checkbox holds the open/closed state, the @* CSS-only mobile menu: the checkbox holds the open/closed state, the
@@ -72,8 +67,7 @@
<div class="footer-inner"> <div class="footer-inner">
<div class="footer-brand"> <div class="footer-brand">
<Signet /> <Brand />
<span>Elternbeirat der IGMH</span>
</div> </div>
@* Both link columns come from PocketBase like the header. An empty list @* Both link columns come from PocketBase like the header. An empty list
@@ -47,8 +47,8 @@
gap: var(--space-2) var(--space-4); gap: var(--space-2) var(--space-4);
} }
/* Signet and two-line lettering side by side. The lettering is a column of its /* Signet and two-line lettering (Brand.razor) side by side. The lettering is sized
own, so the name and the school line up on the left edge. */ in em, so this font-size is its scale. */
.brand { .brand {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -76,23 +76,6 @@
height: 3rem; 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 /* 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 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. */ from the brand -- the usual split, brand left, menu right. */
@@ -169,19 +152,21 @@
gap: var(--space-4); 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 { .footer-brand {
display: flex; display: flex;
align-items: center; align-items: center;
align-self: start; align-self: start;
gap: var(--space-2); gap: var(--space-2);
color: var(--color-on-footer); color: var(--color-on-footer);
font-weight: 700; font-size: 0.9rem;
} }
.footer-brand ::deep .signet { .footer-brand ::deep .signet {
flex-shrink: 0; flex-shrink: 0;
width: 3.5rem; width: 2.75rem;
height: 3.5rem; height: 2.75rem;
} }
/* Column headings label the lists; they are not a second page heading, so they /* Column headings label the lists; they are not a second page heading, so they
@@ -353,12 +338,8 @@
height: 2.5rem; height: 2.5rem;
} }
.brand-name { .brand {
font-size: 1.15rem; font-size: 0.86rem;
}
.brand-school {
font-size: 0.75rem;
} }
/* The footer columns stack: one column, brand on top. */ /* 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> </svg>
<span class="brand-text"> <span class="brand-text">
<span class="brand-name">Elternbeirat</span> <span class="brand-name">Elternbeirat</span>
<span class="brand-school">IGMH Mannheim</span> <span class="brand-school">der IGMH</span>
</span> </span>
</div> </div>
</header> </header>