40C3: site structure and 40C3 theme
Move the Hackertours design into a stacked theme (hackertours) on top of upstream zen, and add the 40C3 design as theme layer hackertours-40c3. Adds the tour map, calendar/ICS and list view for the schedule, mobile menu fixes, vendored icons and Leaflet, schedule tests, and README documentation.
This commit is contained in:
parent
b644e8dce2
commit
c18375eeba
5 changed files with 16014 additions and 90 deletions
|
|
@ -0,0 +1,2 @@
|
|||
{{- /* 40C3: the event's logo at the top of the footer. */ -}}
|
||||
<p class="footer__event">{{ partial "logo-40c3.html" (dict "class" "footer__logo") }}</p>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{{- /* 40C3: fonts, and browser UI colours, the same as the page backgrounds in assets/css/_custom.css. */ -}}
|
||||
{{ partial "head/fonts.html" . }}
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#dff0d4">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#001300">
|
||||
25
themes/hackertours-40c3/layouts/_partials/head/fonts.html
Normal file
25
themes/hackertours-40c3/layouts/_partials/head/fonts.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{{- /*
|
||||
Self-hosted fonts: Jersey 10 for headings and Hack for everything else (assets/fonts, licences in
|
||||
static/fonts). Their @font-face rules are generated from assets/css/fonts.css.tmpl instead of
|
||||
being part of the main stylesheet. A web font that arrives after the first paint swaps in and
|
||||
moves the page: Jersey 10 is far narrower than the monospace fallback, so the heading chips
|
||||
changed their width, and the page transition made that visible on every language switch.
|
||||
|
||||
- The Latin subset of Jersey 10 is embedded in the stylesheet, so it is there at the first paint
|
||||
whatever the connection, and without a request that the browser would have to revalidate.
|
||||
- Hack is preloaded, so the body text is not first drawn in a fallback font of a different
|
||||
character width (SF Mono in Safari, Consolas on Windows). Its URL here and in @font-face come
|
||||
from the same fingerprinted resource, so they are identical (and correct below a sub path, as
|
||||
on the PR previews).
|
||||
*/ -}}
|
||||
{{- with resources.Get "css/fonts.css.tmpl" | resources.ExecuteAsTemplate "css/fonts.tmpl.css" . }}
|
||||
{{- /* The executed template has no media type (from ".tmpl"), which minify needs. */ -}}
|
||||
{{- with resources.FromString "css/fonts.css" .Content | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- range slice "Hack-Regular" "Hack-Bold" }}
|
||||
{{- with resources.Get (printf "fonts/%s.woff2" .) | fingerprint }}
|
||||
<link rel="preload" href="{{ .RelPermalink }}" as="font" type="font/woff2" crossorigin>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
10
themes/hackertours-40c3/layouts/_partials/logo-40c3.html
Normal file
10
themes/hackertours-40c3/layouts/_partials/logo-40c3.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{{- /*
|
||||
40C3 text logo, picked to suit the colour scheme: green on dark, dark text colour on light.
|
||||
Params: class (optional, on the picture element).
|
||||
*/ -}}
|
||||
{{- $light := resources.Get "img/40c3/logo-text-b.svg" -}}
|
||||
{{- $dark := resources.Get "img/40c3/logo-text-0.svg" -}}
|
||||
<picture{{ with .class }} class="{{ . }}"{{ end }}>
|
||||
<source srcset="{{ $dark.RelPermalink }}" media="(prefers-color-scheme: dark)">
|
||||
<img src="{{ $light.RelPermalink }}" alt="40C3 MODEL_CITIZENS" width="138" height="71" loading="lazy">
|
||||
</picture>
|
||||
|
|
@ -0,0 +1 @@
|
|||
{{- partial "logo-40c3.html" (dict "class" "event-logo") -}}
|
||||
Loading…
Reference in a new issue