feat: Takes over the 40C3 startpage's background and headings
Light green background (#dff0d4), which is also the text colour in the dark scheme. Page titles and the site name are capitals like the startpage's h1, and section headings are green boxes like its "GET INFORMED", so the home page's 40C3 heading is now an h2. The EH22 logo credit moves to the footer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bbaff0ee91
commit
cea49f0ab5
12 changed files with 53 additions and 42 deletions
|
|
@ -235,7 +235,7 @@ events:
|
|||
- `motto` and `venue` are shown as they are.
|
||||
- `start` and `end` are `YYYY-MM-DD`. The card shows the range in the page's language, as on the 40C3 start page: `27.–30. Dezember 2025`, `27–30 December 2025`. Leave out `end` for a one-day event.
|
||||
- `status` (optional): `inprogress` greys the card out, without a link, and marks it "In Vorbereitung" / "In progress", for an event whose tours aren't online yet. Remove it once the event's section exists.
|
||||
- `credit` (optional) names the logo's authors and licence in Markdown, shown below the cards, for logos whose licence asks for it.
|
||||
- `credit` (optional) names the logo's authors and licence in Markdown, for logos whose licence asks for it. It is shown in the footer of the pages with the cards.
|
||||
|
||||
The heading shows the event's logo, `assets/img/events/<event>.svg`, in the text colour. The SVG's own colours are ignored, only its shape counts, so use a version without a background. Where each logo comes from, and its licence, is listed in [assets/img/events/Sources.txt](assets/img/events/Sources.txt).
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
@import './_events.css';
|
||||
|
||||
/*
|
||||
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide.
|
||||
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide and the 40C3 startpage
|
||||
* (events.ccc.de/congress/2026/infos/startpage.html).
|
||||
* Key colours: green (0), paper (A) and ink (B); the other colours are accents.
|
||||
* Dark: ink background, paper text, green accents.
|
||||
* Light: paper background and ink text, as on the 40C3 info pages
|
||||
* (events.ccc.de/congress/2026/infos). Those pages also put black boxes behind links and give
|
||||
* each heading level its own colour; this site doesn't, it sticks to the styleguide's chips.
|
||||
* Light: paper background and ink text.
|
||||
* Paper is the startpage's light green (#dff0d4), not the styleguide's grey (#ebedf0).
|
||||
* WCAG AA contrast: on ink every palette colour works as text, but on the light background
|
||||
* only the foreground does. So in the light scheme green is only ever a fill or a line,
|
||||
* with foreground-coloured text on it.
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
--c40-coral: #ea6f82;
|
||||
--c40-orange: #f88a30;
|
||||
--c40-amber: #ffbc40;
|
||||
--c40-paper: #ebedf0;
|
||||
--c40-paper: #dff0d4;
|
||||
--c40-ink: #001300;
|
||||
|
||||
--c40-light-bg: var(--c40-paper);
|
||||
|
|
@ -130,28 +130,36 @@ mark {
|
|||
color: var(--c40-on-fill);
|
||||
}
|
||||
|
||||
/* Headings: Jersey 10 for the big ones. h1 is the "loud header" (filled chip), h3 and below
|
||||
are Hack Bold, h3 underlined like the styleguide's subheads. */
|
||||
/* Headings: Jersey 10 for the big ones, as on the 40C3 startpage. Page titles (h1) are capitals
|
||||
in the foreground colour (green in the dark scheme), section headings (h2) capitals on a green
|
||||
box. Post titles in lists and the schedule's days are plain h2s, the size of the card titles.
|
||||
h3 and below are Hack Bold, h3 underlined like the styleguide's subheads. */
|
||||
h1,
|
||||
h2 {
|
||||
color: light-dark(var(--c40-light-fg), var(--c40-green));
|
||||
font-family: var(--ff-display);
|
||||
font-weight: 400;
|
||||
/* Jersey 10 has a single weight; like the startpage, this has browsers draw it bolder. */
|
||||
font-weight: bold;
|
||||
letter-spacing: 0;
|
||||
line-height: 1;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
padding: 0.12em 0.3em 0.2em;
|
||||
background: var(--c40-green);
|
||||
color: var(--c40-on-fill);
|
||||
font-size: calc(var(--fs-xxl) * var(--display-scale));
|
||||
font-size: min(3rem, calc(var(--fs-xxl) * var(--display-scale)));
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: light-dark(var(--c40-light-fg), var(--c40-green));
|
||||
font-size: calc(var(--fs-xl) * var(--display-scale));
|
||||
font-size: calc(var(--fs-l) * var(--display-scale));
|
||||
}
|
||||
|
||||
h2:not(.title, .schedule__day-title) {
|
||||
width: fit-content;
|
||||
padding-inline: 1rem;
|
||||
background: var(--c40-green);
|
||||
color: var(--c40-on-fill);
|
||||
font-size: min(2.4rem, calc(var(--fs-xl) * var(--display-scale)));
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
|
@ -175,7 +183,7 @@ h3 {
|
|||
white-space: pre-line;
|
||||
}
|
||||
|
||||
/* Branding: the logo, and the site name as a loud header chip like the page's own h1. */
|
||||
/* Branding: the logo, and the site name set like the page titles. */
|
||||
.header {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
|
@ -208,11 +216,17 @@ h3 {
|
|||
}
|
||||
}
|
||||
|
||||
/* The name takes the heading's colour; on hover and focus it gets the links' green chip, with
|
||||
dark text, because green text would vanish on it. */
|
||||
.header__site-link {
|
||||
color: inherit;
|
||||
&:link,
|
||||
&:visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
color: var(--c40-on-fill);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
color: inherit;
|
||||
font-family: var(--ff-display);
|
||||
font-size: calc(var(--fs-l) * var(--display-scale));
|
||||
font-weight: 400;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
@ -131,11 +131,6 @@ a.event-card:focus-visible {
|
|||
}
|
||||
}
|
||||
|
||||
.event-cards__credits {
|
||||
color: var(--color-text-meta);
|
||||
font-size: var(--fs-xs);
|
||||
}
|
||||
|
||||
/* Forced colours drop background colours, and with them the masked logos. */
|
||||
@media (forced-colors: active) {
|
||||
.event-card__logo {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Das electrum ist Hamburgs Museum der Elektrizität und Technik. Ohne Strom geht
|
|||
{{< gallery-image src="Electrum_Hamburg-Harburg.nnw.jpg" alt="Museum electrum in Hamburg-Harburg, cc-by-sa NordNordWest" >}}
|
||||
{{< /gallery >}}
|
||||
|
||||
# Daten
|
||||
## Daten
|
||||
* Tag 1 (27.12) **12:30 Uhr**
|
||||
* Dauer: 1,5h
|
||||
* Spache: Deutsch
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Lizenz: (https://creativecommons.org/licenses/by-sa/3.0/de/legalcode)
|
|||
|
||||
Das Museum wird von einem Verein geführt und unterstützt. Ihr seid herzlich dazu eingeladen, den Verein ebenfalls, entweder aktiv oder passiv, zu unterstützen, z. B. in [Form einer Vereinsmitgliedschaft](https://www.electrum-hamburg.de/content/download/71/298?version=2).
|
||||
|
||||
# Daten
|
||||
## Daten
|
||||
* ~~Tag 3 (29.12.) **13:45 Uhr** Deutsch~~ ausgebucht
|
||||
* ~~Tag 3 (29.12.) **14:45 Uhr** Englisch~~ ausgebucht
|
||||
* Dauer: 1 Stunde
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ cascade:
|
|||
intro: Wir von Hamburg Hackertours zeigen euch die Stadt!
|
||||
---
|
||||
|
||||
# 40C3
|
||||
## 40C3
|
||||
|
||||
Für den [40C3](https://events.ccc.de/category/40c3/) haben wir interessante Orte in und um Hamburg gefunden, an denen ihr für ein paar Stunden in andere Welten eintauchen und spannende Dinge erleben könnt. [Wie das funktioniert, erklären wir euch hier in unseren FAQ]({{< relref "faq/_index" >}})!
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ cascade:
|
|||
intro: Let Hamburg Hackertours show you around the city!
|
||||
---
|
||||
|
||||
# 40C3
|
||||
## 40C3
|
||||
|
||||
For [40C3](https://events.ccc.de/category/40c3/) we have found interesting places in and around Hamburg where you can delve into other worlds and experience fascinating things for a few hours. [We are going to explain how this works here in our FAQ article]({{< relref "faq/_index" >}})!
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
# Event cards on the home page, rendered by the events shortcode, newest first.
|
||||
# event: the event's section (content/*/<event>/) and logo (assets/img/events/<event>.svg).
|
||||
# status: inprogress greys out the card and leaves out the link, for an event without tours yet.
|
||||
# credit: the logo's authors and licence in Markdown, shown in the footer of pages with the cards.
|
||||
events:
|
||||
- event: 40c3
|
||||
title: { de: 40. Chaos Communication Congress, en: 40th Chaos Communication Congress }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo. */ -}}
|
||||
{{- /* Overrides the zen theme's footer.html. Same as the theme's, plus the 40C3 logo and, on pages
|
||||
with event cards, the credits for event logos whose licence asks for one (credit in data/events.yaml). */ -}}
|
||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||
<p class="footer__event">{{ partial "logo-40c3.html" (dict "class" "footer__logo") }}</p>
|
||||
<p>{{ with site.Copyright }}{{ . | site.Home.RenderString }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
||||
{{- if .HasShortcode "events" }}
|
||||
{{- $credits := slice }}
|
||||
{{- with hugo.Data.events }}{{ range .events }}{{ if .credit }}{{ $credits = $credits | append (dict "name" (.name | default (upper .event)) "credit" .credit) }}{{ end }}{{ end }}{{ end }}
|
||||
{{- with $credits }}
|
||||
<p>{{ range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $entry.credit | site.Home.RenderString }}{{ end }}</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ with $.Param "footer" }}<p>{{ . | site.Home.RenderString }}</p>{{ end }}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{{ partial "head/fonts.html" . }}
|
||||
{{- /* Browser UI colours, the same as the page backgrounds in assets/css/_custom.css. */ -}}
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ebedf0">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#dff0d4">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#001300">
|
||||
{{- /*
|
||||
Open Graph image for link previews. The theme's head/meta.html writes og:image only for the
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Event cards from data/events.yaml, after the cards on the 40C3 start page
|
|||
(events.ccc.de/congress/2026/infos/startpage.html): the event's name and logo
|
||||
(assets/img/events/<event>.svg) in a heading bar, its motto, full name, dates and venue below.
|
||||
Cards link to the event's section; an event that is in progress, or has no section, gets a
|
||||
greyed-out card without a link. Logo credits from the data file follow the cards.
|
||||
greyed-out card without a link. Logo credits from the data file are in the footer (footer.html).
|
||||
|
||||
Usage: {{< events >}}
|
||||
*/ -}}
|
||||
|
|
@ -12,7 +12,6 @@ Usage: {{< events >}}
|
|||
{{- if not $events -}}
|
||||
{{- warnidf "warning-events-empty" "events: no events in data/events.yaml: %s" .Position -}}
|
||||
{{- else -}}
|
||||
{{- $credits := slice -}}
|
||||
<ul class="event-cards" role="list">
|
||||
{{- range $events }}
|
||||
{{- $name := .name | default (upper .event) }}
|
||||
|
|
@ -45,7 +44,6 @@ Usage: {{< events >}}
|
|||
{{- else }}
|
||||
{{- warnf "events: no logo assets/img/events/%s.svg" .event }}
|
||||
{{- end }}
|
||||
{{- with .credit }}{{ $credits = $credits | append (dict "name" $name "credit" .) }}{{ end }}
|
||||
<li class="event-cards__item">
|
||||
{{- if $link }}
|
||||
<a class="event-card" href="{{ $page.RelPermalink }}">
|
||||
|
|
@ -74,9 +72,4 @@ Usage: {{< events >}}
|
|||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- with $credits }}
|
||||
<p class="event-cards__credits">
|
||||
{{- range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $.Page.RenderString $entry.credit }}{{ end -}}
|
||||
</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ebedf0",
|
||||
"background_color": "#ebedf0",
|
||||
"theme_color": "#dff0d4",
|
||||
"background_color": "#dff0d4",
|
||||
"display": "standalone"
|
||||
}
|
||||
Loading…
Reference in a new issue