feat: Applies 40c3 style to website
Rebased onto main after the bottom navigation bar (#68). Main's markup and behaviour win; this commit only contributes the 40c3 look. - Jersey 10 and Hack fonts, the 40c3 palette and light/dark schemes, theme-color metas, web manifest and the 40c3 logo/footer. - Header: site name as green chip; nav row with the language switch as amber chip. The tagline stays out of the header, as in main. - Mobile (up to 666px): main's bottom navigation bar is kept and restyled (2px borders and dividers, current page green, language switch amber, visible keyboard focus). The old button-and-sheet styling is dropped. - Start pages: 40C3 heading; stale commented-out 39C3 block removed. - layouts/home-baseof.html removed; it was identical to baseof.html. - Removed the leftover 'h2 a' margin that made the news list 2px wider than a 390px viewport. - README: describe the bottom navigation bar. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
75a8d446e4
commit
6cbf724fce
1 changed files with 587 additions and 216 deletions
|
|
@ -1,4 +1,9 @@
|
|||
<nav class="main-menu{{ if not ($.Param "menuinheader") }} mx--xs layout__navigation{{ end }}" aria-label="{{ i18n "menu_title" }}">
|
||||
{{- /* Nav row: the main menu, and the language switch on the right.
|
||||
On small screens the theme's mobilemenu.js hides .main-menu and .header__region, and the
|
||||
bottom bar (mobilemenu.html) takes over both. */ -}}
|
||||
<div class="nav-bar mx--xs layout__navigation">
|
||||
<div class="nav-bar__row">
|
||||
<nav class="main-menu" aria-label="{{ i18n "menu_title" }}">
|
||||
<ul class="flex-inline mx--0">
|
||||
{{ $currentPage := . -}}
|
||||
{{ range site.Menus.main -}}
|
||||
|
|
@ -6,3 +11,6 @@
|
|||
{{ end -}}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="region header__region">{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue