Compare commits

..
4 Commits
Author SHA1 Message Date
Tom d0f7660407 Merge pull request 'Keep line breaks in event notes' (#70) from fix/event-note-line-breaks into main
Build and deploy / build (push) Successful in 3m50s
Build and deploy / deploy (push) Successful in 27s
Reviewed-on: #70
2026-10-23 20:51:49 +02:00
TomandClaude Opus 5.5 79c23e42e1 Keep line breaks in event notes
The note was rendered as plain text, so the browser collapsed the editor's
line breaks into spaces. white-space: pre-line keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:50:03 +02:00
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 / build (push) Successful in 1m27s
Build and deploy / deploy (push) Successful in 17s
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
7 changed files with 50 additions and 39 deletions

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. */
@@ -55,9 +55,11 @@
color: var(--color-accent-dark); color: var(--color-accent-dark);
} }
/* pre-line keeps the editor's line breaks from the plain-text note field. */
.event-note { .event-note {
margin-top: var(--space-1); margin-top: var(--space-1);
font-size: 0.95rem; font-size: 0.95rem;
white-space: pre-line;
} }
/* In the linked card (home embed) the note is only a teaser: cut after two lines, /* In the linked card (home embed) the note is only a teaser: cut after two lines,
@@ -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>
+2 -1
View File
@@ -328,7 +328,8 @@ So erscheint ein Termin auf seiner Karte:
(`19:30–21:00 Uhr`), bei mehrtägigen Terminen „bis …“ mit dem letzten Tag. Ein (`19:30–21:00 Uhr`), bei mehrtägigen Terminen „bis …“ mit dem letzten Tag. Ein
ganztägiger Termin (Uhrzeit `00:00`) ohne `end` zeigt keine Uhrzeit. ganztägiger Termin (Uhrzeit `00:00`) ohne `end` zeigt keine Uhrzeit.
- Darunter `location` und `note`. Auf der Startseite wird `note` nach zwei - Darunter `location` und `note`. Auf der Startseite wird `note` nach zwei
Zeilen abgeschnitten, auf `/events` steht sie ganz. Zeilen abgeschnitten, auf `/events` steht sie ganz. `note` ist reiner Text
(kein Markdown); Zeilenumbrüche, die du mit Enter eingibst, bleiben erhalten.
Einen Einleitungstext über der Liste schreibst du in den `body` der Seite mit Einen Einleitungstext über der Liste schreibst du in den `body` der Seite mit
dem Slug `events` (unter `pages`); die Website fügt keinen eigenen hinzu. dem Slug `events` (unter `pages`); die Website fügt keinen eigenen hinzu.