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.
270
themes/hackertours/assets/css/_custom.css
Normal file
|
|
@ -0,0 +1,270 @@
|
|||
@import './_schedule.css';
|
||||
@import './_tour-map.css';
|
||||
@import './_gallery.css';
|
||||
@import './_events.css';
|
||||
|
||||
.intro-text {
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.header__logo {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Header h1 styling - responsive sizing that grows with viewport */
|
||||
.header__site-name {
|
||||
font-size: var(--fs-xxl);
|
||||
margin-block-start: 0;
|
||||
margin-block-end: 0;
|
||||
flex-shrink: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Smaller on mobile only */
|
||||
@media (width <= 666px) {
|
||||
.header__site-name {
|
||||
font-size: var(--fs-l);
|
||||
}
|
||||
}
|
||||
|
||||
/* Logo scaling - smaller on mobile */
|
||||
.header__logo-image {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
@media (width >= 667px) {
|
||||
.header__logo-image {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reserve space for the mobile menu without changing the theme's colours or fonts. */
|
||||
:root {
|
||||
--mobile-bar-h: 3.25rem;
|
||||
}
|
||||
|
||||
.layout__page:has(> .mobile-nav:not([hidden])) {
|
||||
padding-block-end: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
:root:has(.mobile-nav:not([hidden])) {
|
||||
scroll-padding-block-end: calc(var(--mobile-bar-h) + 1rem);
|
||||
}
|
||||
|
||||
.mobile-nav {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.mobile-nav__cover {
|
||||
inset: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.mobile-nav__toggle.button {
|
||||
position: fixed;
|
||||
inset: auto 0 0;
|
||||
justify-content: center;
|
||||
gap: 0.6rem;
|
||||
width: auto;
|
||||
block-size: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
padding: 0 var(--gutters) env(safe-area-inset-bottom, 0px);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: var(--color-button);
|
||||
|
||||
&:hover,
|
||||
&:focus-visible,
|
||||
&:active {
|
||||
background: var(--color-button-hover);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-nav__sheet {
|
||||
position: absolute;
|
||||
inset: auto 0 calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: calc(100% - var(--mobile-bar-h) - env(safe-area-inset-bottom, 0px) - var(--spacing-l));
|
||||
overflow-y: auto;
|
||||
padding: var(--spacing-m) var(--gutters);
|
||||
transform: translateY(100%);
|
||||
|
||||
[data-navopen] & {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector ul {
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.language-selector a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45em;
|
||||
}
|
||||
|
||||
.language-selector .language-icon {
|
||||
inline-size: 1.1em;
|
||||
block-size: 1.1em;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
fill: currentcolor;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector a,
|
||||
.mobile-nav__navbar a {
|
||||
padding-block: 0.5rem;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector a {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.mobile-nav__navbar a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid;
|
||||
}
|
||||
th, td {
|
||||
padding: 3px 6px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.title-post-date { margin-left: 0em;
|
||||
display: block;
|
||||
font-size: 0.5em;
|
||||
}
|
||||
|
||||
/* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */
|
||||
:root {
|
||||
/* White bottom navigation in light mode; zen's default is the brand colour in both. */
|
||||
--color-mobile-menu: light-dark(var(--color-white), var(--color-brand-400));
|
||||
--color-body-bg: light-dark(var(--color-grey-100), #141414);
|
||||
--color-page-bg: light-dark(var(--color-white), #242424);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color-headings: #faf5f5;
|
||||
--color-header-bg: #242424;
|
||||
--color-text: #faf5f5;
|
||||
--color-link: #66f2ff;
|
||||
--color-link-visited: #66f2ff;
|
||||
--color-footer-bg: #242424;
|
||||
--color-border: #faf5f5;
|
||||
--color-button: #141414;
|
||||
--color-button-text: #faf5f5;
|
||||
--color-button-hover: #343434;
|
||||
--color-brand: #66f2ff;
|
||||
--color-text-meta: #faf5f5;
|
||||
--color-mobile-menu: #141414;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.main-menu a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
/* Links in text keep their underline: the link colour alone is too close to the text colour. */
|
||||
nav a,
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h2 a {
|
||||
margin-right: 2em;
|
||||
}
|
||||
/* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */
|
||||
.skip-link:focus {
|
||||
position: absolute;
|
||||
inset-block-start: 0.5rem;
|
||||
inset-inline-start: 0.5rem;
|
||||
z-index: 100;
|
||||
padding: 0.5rem 1rem;
|
||||
background: var(--color-button);
|
||||
color: var(--color-button-text);
|
||||
}
|
||||
|
||||
#main-content:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Content images with their credit, see layouts/_markup/render-image.html. */
|
||||
.content-image {
|
||||
margin: 1rem 0;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
span.content-image {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
max-width: 100%;
|
||||
margin: 0 0.5rem 0.5rem 0;
|
||||
}
|
||||
|
||||
.content-image__credit {
|
||||
display: block;
|
||||
margin-block-start: 0.25rem;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
/* Calendar links after a tour date, see layouts/_shortcodes/calendar.html.
|
||||
The links are at least 24 pixels high, so they are easy to hit (WCAG 2.5.8). */
|
||||
.tour-calendar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4em;
|
||||
margin-inline-start: 0.4em;
|
||||
padding: 0 0.6em;
|
||||
border: 1px solid color-mix(in oklch, var(--color-text) 25%, transparent);
|
||||
border-radius: 999px;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-xs);
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
|
||||
a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.tour-calendar__separator {
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
.fa-icon {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
139
themes/hackertours/assets/css/_events.css
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
/*
|
||||
* Event cards on the home page (events shortcode), after the cards on the 40C3 start page
|
||||
* (events.ccc.de/congress/2026/infos/startpage.html): a heading bar that holds the event's logo,
|
||||
* drawn in the heading colour like the start page's icons, above the event's details. Cards of
|
||||
* past events link to their tours; an event in progress is greyed out.
|
||||
*/
|
||||
|
||||
/* The hairline, corners and inactive grey of the start page's Bootstrap cards (as archived in
|
||||
October 2026); the text reuses the theme's own colours, the link colour for the motto and the
|
||||
heading and text colours for the rest. */
|
||||
.event-cards {
|
||||
--event-card-line: 1px;
|
||||
--event-card-radius: 0.25rem;
|
||||
--event-card-bg: light-dark(#fff, #242424);
|
||||
--event-card-border: light-dark(rgb(0 0 0 / 12.5%), rgb(255 255 255 / 15%));
|
||||
--event-card-inactive-bg: light-dark(lightgrey, #363636);
|
||||
--event-card-inactive-text: light-dark(#5a5a5a, #a6a6a6);
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
|
||||
gap: 2rem;
|
||||
margin-block: 0 var(--spacing-m);
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.event-cards__item {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* The card keeps its own colours in every link state: the theme's link colours are in a cascade
|
||||
layer, this file isn't. */
|
||||
.event-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
block-size: 100%;
|
||||
border: var(--event-card-line) solid var(--event-card-border);
|
||||
border-radius: var(--event-card-radius);
|
||||
background: var(--event-card-bg);
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.event-card__heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-block-end: var(--event-card-line) solid var(--event-card-border);
|
||||
color: var(--color-headings);
|
||||
}
|
||||
|
||||
.event-card__title {
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
color: inherit;
|
||||
font-family: var(--ff-headings);
|
||||
font-size: var(--fs-l);
|
||||
font-weight: var(--fw-headings);
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* The logo as a mask in the text colour, 2rem high (the start page's size-8 icons); wide
|
||||
wordmarks shrink to leave room for the title. */
|
||||
.event-card__logo {
|
||||
flex: none;
|
||||
max-inline-size: 60%;
|
||||
block-size: 2rem;
|
||||
background-color: currentcolor;
|
||||
mask: var(--event-logo) right center / contain no-repeat;
|
||||
}
|
||||
|
||||
.event-card__body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
gap: 0.25rem;
|
||||
padding: 0.5rem 1rem 0.75rem;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* The motto stands out in the theme's link colour, like the one link on the card. */
|
||||
.event-card__motto {
|
||||
color: var(--color-link);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.event-card__meta {
|
||||
font-size: var(--fs-s);
|
||||
}
|
||||
|
||||
.event-card__status {
|
||||
align-self: flex-start;
|
||||
margin-block-start: 0.25rem;
|
||||
padding: 0.1rem 0.5rem;
|
||||
border: var(--event-card-line) solid currentcolor;
|
||||
border-radius: var(--event-card-radius);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: 0.5em !important;
|
||||
}
|
||||
|
||||
/* An inactive card isn't a link, so it greys its motto and text to read as non-interactive. */
|
||||
.event-card--inactive {
|
||||
background: var(--event-card-inactive-bg);
|
||||
color: var(--event-card-inactive-text);
|
||||
|
||||
.event-card__motto {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hover and focus underline the motto and shift it to the theme's link-hover colour, like a link. */
|
||||
a.event-card:hover .event-card__motto,
|
||||
a.event-card:focus-visible .event-card__motto {
|
||||
color: var(--color-link-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Forced colours drop background colours, and with them the masked logos. */
|
||||
@media (forced-colors: active) {
|
||||
.event-card__logo {
|
||||
background-color: CanvasText;
|
||||
forced-color-adjust: none;
|
||||
}
|
||||
|
||||
a.event-card .event-card__logo {
|
||||
background-color: LinkText;
|
||||
}
|
||||
}
|
||||
180
themes/hackertours/assets/css/_gallery.css
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
/* Gallery shortcode: square thumbnails, two per row on wide screens, and the lightbox. */
|
||||
|
||||
.gallery {
|
||||
container-type: inline-size;
|
||||
margin-block: var(--spacing-l);
|
||||
}
|
||||
|
||||
.gallery__list {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@container (width >= 40rem) {
|
||||
.gallery__list {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.gallery__item,
|
||||
.gallery__figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.gallery__link {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
border-radius: var(--radius-m);
|
||||
cursor: zoom-in;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid var(--color-link);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.gallery__link img {
|
||||
transition: scale 0.2s;
|
||||
}
|
||||
|
||||
.gallery__link:hover img {
|
||||
scale: 1.03;
|
||||
}
|
||||
}
|
||||
|
||||
.gallery__credit {
|
||||
margin-block-start: 0.25rem;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
/* Lightbox */
|
||||
|
||||
/* No scrolling of the page behind it. */
|
||||
html:has(.lightbox[open]) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.lightbox {
|
||||
width: 100vw;
|
||||
max-width: none;
|
||||
height: 100dvh;
|
||||
max-height: none;
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
border: 0;
|
||||
background: rgb(0 0 0 / 0.92);
|
||||
color: #fff;
|
||||
|
||||
&[open] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
&::backdrop {
|
||||
background: rgb(0 0 0 / 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
/* On wider screens, the arrows sit beside the image instead of on it. */
|
||||
@media (min-width: 40rem) {
|
||||
.lightbox {
|
||||
padding-inline: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.lightbox__figure {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.lightbox__image {
|
||||
display: block;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
max-height: calc(100dvh - 7rem);
|
||||
width: auto;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.lightbox__caption {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 0.25rem 1rem;
|
||||
max-width: 50rem;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.lightbox__credit,
|
||||
.lightbox__counter {
|
||||
color: rgb(255 255 255 / 0.75);
|
||||
}
|
||||
|
||||
.lightbox__counter {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.lightbox__button {
|
||||
position: fixed;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: rgb(255 255 255 / 0.15);
|
||||
color: #fff;
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: rgb(255 255 255 / 0.3);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 3px solid #fff;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.lightbox__close {
|
||||
inset-block-start: 1rem;
|
||||
inset-inline-end: 1rem;
|
||||
}
|
||||
|
||||
.lightbox__previous,
|
||||
.lightbox__next {
|
||||
inset-block-start: calc(50% - 1.5rem);
|
||||
}
|
||||
|
||||
.lightbox__previous {
|
||||
inset-inline-start: 1rem;
|
||||
}
|
||||
|
||||
.lightbox__next {
|
||||
inset-inline-end: 1rem;
|
||||
}
|
||||
367
themes/hackertours/assets/css/_schedule.css
Normal file
|
|
@ -0,0 +1,367 @@
|
|||
/* Tour schedule shortcode: a mobile day picker and a wide-screen list, with a no-JavaScript grid fallback. */
|
||||
|
||||
.schedule {
|
||||
--schedule-line: color-mix(in oklch, var(--color-text) 20%, transparent);
|
||||
--schedule-card-bg: color-mix(in oklch, var(--color-text) 4%, transparent);
|
||||
--schedule-accent: var(--color-link);
|
||||
|
||||
container-type: inline-size;
|
||||
margin-block: var(--spacing-l);
|
||||
}
|
||||
|
||||
.schedule__days {
|
||||
display: grid;
|
||||
gap: var(--spacing-l);
|
||||
}
|
||||
|
||||
/* Hour lines are only drawn in the aligned grid below. */
|
||||
.schedule__hour {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* One column per day; the shortcode puts each card in the row of its start time
|
||||
(--schedule-row), and the subgrids line those rows up across the days. */
|
||||
@container (width >= 48rem) {
|
||||
.schedule__days {
|
||||
grid-template-columns: repeat(var(--schedule-days), minmax(0, 1fr));
|
||||
grid-template-rows: auto repeat(var(--schedule-rows), auto);
|
||||
gap: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
/* Placed explicitly: auto-placement would move the days out of the way of the hour lines. */
|
||||
.schedule__day {
|
||||
display: grid;
|
||||
grid-column: var(--schedule-column);
|
||||
grid-row: 1 / -1;
|
||||
grid-template-rows: subgrid;
|
||||
}
|
||||
|
||||
.schedule__list {
|
||||
grid-row: 2 / -1;
|
||||
grid-template-rows: subgrid;
|
||||
}
|
||||
|
||||
.schedule__card {
|
||||
grid-row: var(--schedule-row);
|
||||
}
|
||||
|
||||
/* Titles always take two lines, so all cards in the grid are the same size; longer
|
||||
titles get an ellipsis. */
|
||||
.schedule__title {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
overflow: hidden;
|
||||
min-height: calc(2 * 1.3em);
|
||||
}
|
||||
|
||||
/* Line above each hour, drawn in the middle of the row gap. Spans all days, so it must
|
||||
not catch clicks meant for the cards. */
|
||||
.schedule__hour {
|
||||
display: block;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: var(--schedule-row);
|
||||
margin-block-start: -0.25rem;
|
||||
border-block-start: 1px solid var(--schedule-line);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Lined up with the time on the cards, but in normal weight to stay in the background.
|
||||
No transparency: it has to keep text contrast. */
|
||||
.schedule__hour-label {
|
||||
display: block;
|
||||
padding: calc(0.5rem + 0.25rem) 0.75rem 0.5rem calc(0.75rem + 3px);
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
font-weight: normal;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
.schedule__day-title {
|
||||
margin: 0 0 0.75rem;
|
||||
padding-block-end: 0.35rem;
|
||||
border-block-end: 2px solid var(--schedule-accent);
|
||||
font-size: var(--fs-l);
|
||||
}
|
||||
|
||||
.schedule__date {
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
font-weight: normal;
|
||||
color: var(--color-text-meta);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.schedule__list {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.schedule__card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 0.15rem 0.5rem;
|
||||
margin: 0;
|
||||
max-width: none;
|
||||
padding: 0.5rem 0.75rem 0.6rem;
|
||||
border: 1px solid var(--schedule-line);
|
||||
border-inline-start: 3px solid var(--schedule-accent);
|
||||
border-radius: var(--radius-m);
|
||||
background: var(--schedule-card-bg);
|
||||
transition: border-color 0.15s;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--schedule-accent);
|
||||
}
|
||||
|
||||
&:has(a:focus-visible) {
|
||||
outline: 2px solid var(--schedule-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.schedule__when {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 0 0.5rem;
|
||||
}
|
||||
|
||||
.schedule__photo {
|
||||
display: none;
|
||||
position: absolute;
|
||||
inset: 0 0 0 60%;
|
||||
z-index: -1;
|
||||
margin: 0;
|
||||
pointer-events: none;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
mask-image: linear-gradient(90deg,
|
||||
transparent 0%,
|
||||
rgb(0 0 0 / 3%) 10%,
|
||||
rgb(0 0 0 / 10%) 40%,
|
||||
rgb(0 0 0 / 80%) 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.schedule__photo-credit {
|
||||
display: none;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 3;
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
@media (width >= 667px) {
|
||||
.schedule--picker .schedule__card--photo {
|
||||
isolation: isolate;
|
||||
overflow: hidden;
|
||||
min-height: 7rem;
|
||||
align-items: start;
|
||||
|
||||
.schedule__title,
|
||||
.schedule__photo-credit {
|
||||
max-width: 70%;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.schedule__lang {
|
||||
background: var(--color-body-bg);
|
||||
}
|
||||
}
|
||||
|
||||
.schedule--picker .schedule__photo,
|
||||
.schedule--picker .schedule__photo-credit {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.schedule__status {
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
/* Fully booked: still listed and linked, but muted. */
|
||||
.schedule__card--soldout {
|
||||
border-inline-start-color: var(--schedule-line);
|
||||
|
||||
& .schedule__title {
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
}
|
||||
|
||||
.schedule__time {
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
font-weight: bold;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
.schedule__langs {
|
||||
/* Above the card-wide link, so the badge tooltip still works. */
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.schedule__lang {
|
||||
padding: 0 0.4rem;
|
||||
border: 1px solid var(--schedule-line);
|
||||
border-radius: 999px;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-xs);
|
||||
letter-spacing: 0.03em;
|
||||
text-decoration: none;
|
||||
color: var(--color-text-meta);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.schedule__title {
|
||||
grid-column: 1 / -1;
|
||||
font-family: var(--ff-headings);
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
text-decoration: none;
|
||||
|
||||
/* Make the whole card clickable. Being absolutely positioned against the card, it is not
|
||||
clipped by the overflow set in the grid view. */
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
/* The picker is only shown on mobile with JavaScript. */
|
||||
.schedule__picker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Keeps a focused card from scrolling under the sticky day picker. */
|
||||
.schedule__title {
|
||||
scroll-margin-block-start: 6rem;
|
||||
}
|
||||
|
||||
.schedule__picker:not([hidden]) {
|
||||
position: sticky;
|
||||
inset-block-start: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
margin-block-end: 1rem;
|
||||
padding: 0.25rem;
|
||||
border-radius: var(--radius-l);
|
||||
background: var(--color-body-bg);
|
||||
box-shadow: inset 0 0 0 1px var(--schedule-line);
|
||||
}
|
||||
|
||||
.schedule__pick {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 0.35rem 0.25rem;
|
||||
border: 0;
|
||||
border-radius: var(--radius-m);
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
|
||||
&[aria-pressed="true"] {
|
||||
background: var(--schedule-accent);
|
||||
color: var(--color-body-bg);
|
||||
|
||||
.schedule__pick-date {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.schedule__pick-date {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: normal;
|
||||
color: var(--color-text-meta);
|
||||
}
|
||||
|
||||
@media (width < 667px) {
|
||||
.schedule--picker {
|
||||
.schedule__day:not(.schedule__day--selected) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* The picker already names the day. */
|
||||
.schedule__day-title {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@container (width >= 48rem) {
|
||||
.schedule--picker {
|
||||
.schedule__days {
|
||||
display: grid;
|
||||
grid-template-columns: none;
|
||||
grid-template-rows: none;
|
||||
gap: var(--spacing-l);
|
||||
}
|
||||
|
||||
.schedule__day {
|
||||
display: block;
|
||||
grid-column: auto;
|
||||
grid-row: auto;
|
||||
}
|
||||
|
||||
.schedule__list {
|
||||
grid-template-rows: none;
|
||||
}
|
||||
|
||||
.schedule__card {
|
||||
grid-row: auto;
|
||||
}
|
||||
|
||||
.schedule__title {
|
||||
display: block;
|
||||
-webkit-line-clamp: unset;
|
||||
line-clamp: unset;
|
||||
overflow: visible;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.schedule__hour {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (width >= 667px) {
|
||||
.schedule__picker:not([hidden]),
|
||||
.schedule--picker .schedule__day--past {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
125
themes/hackertours/assets/css/_tour-map.css
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/* Tour map shortcode: Leaflet map of the tour locations, a plain list without JavaScript. */
|
||||
|
||||
.tour-map {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
margin-block: var(--spacing-l);
|
||||
}
|
||||
|
||||
/* Without JavaScript only the list is shown. */
|
||||
.tour-map__canvas {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tour-map--ready {
|
||||
.tour-map__canvas {
|
||||
display: block;
|
||||
height: clamp(20rem, 60vh, 36rem);
|
||||
border: 1px solid color-mix(in oklch, var(--color-text) 20%, transparent);
|
||||
border-radius: var(--radius-m);
|
||||
}
|
||||
|
||||
/* Kept for screen readers, which can't use the map itself. */
|
||||
.tour-map__list {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.tour-map__marker span {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
/* Leaflet positions the icon's top left corner; centre it on the location. */
|
||||
margin: -1rem 0 0 -1rem;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 50%;
|
||||
background: var(--tour-map-color, #555);
|
||||
box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
|
||||
}
|
||||
|
||||
/* The icon is drawn in white through its shape, whatever colours the SVG uses. */
|
||||
.tour-map__marker i {
|
||||
width: 60%;
|
||||
height: 60%;
|
||||
background: #fff;
|
||||
mask: var(--tour-map-icon) center / contain no-repeat;
|
||||
}
|
||||
|
||||
.tour-map__marker--origin span {
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin: -1.375rem 0 0 -1.375rem;
|
||||
background: #111;
|
||||
}
|
||||
|
||||
.tour-map {
|
||||
.leaflet-popup-content-wrapper,
|
||||
.leaflet-popup-tip {
|
||||
background: var(--color-body-bg);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.leaflet-popup-content {
|
||||
margin: 0.75rem 1rem;
|
||||
font-family: var(--ff-alt);
|
||||
font-size: var(--fs-s);
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
||||
.tour-map__popup-title {
|
||||
font-family: var(--ff-headings);
|
||||
font-size: var(--fs-m);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.tour-map__directions {
|
||||
ul {
|
||||
margin: 0.5rem 0 0;
|
||||
padding-inline-start: 1.1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.5rem 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* The credit line on an opaque background, so its contrast doesn't depend on the map below.
|
||||
As specific as Leaflet's own semi-transparent rule plus one, which it would lose to otherwise. */
|
||||
.tour-map .leaflet-container .leaflet-control-attribution {
|
||||
background: #fff;
|
||||
color: #333;
|
||||
|
||||
a {
|
||||
color: #0b5394;
|
||||
}
|
||||
}
|
||||
|
||||
/* Leaflet blends tiles with plus-lighter to hide seams while they fade in; the map doesn't fade
|
||||
tiles (tour-map.js), and axe, which pa11y uses, fails on that blend mode. */
|
||||
.tour-map .leaflet-container img.leaflet-tile {
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
|
||||
.tour-map .leaflet-bar a {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
/* The zoom icons (SVG, see tour-map.js) centred in their buttons. */
|
||||
.tour-map .leaflet-control-zoom a {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
/* Dark map tiles to match the dark colour scheme. */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.tour-map .leaflet-tile-pane {
|
||||
filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9);
|
||||
}
|
||||
}
|
||||
94
themes/hackertours/assets/css/mobilemenu.css
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
/* The mobile navigation stylesheet for this theme. */
|
||||
|
||||
@layer mobilemenu {
|
||||
.mobile-bottom-nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
background-color: var(--color-mobile-menu);
|
||||
border-top: 1px solid var(--color-border);
|
||||
z-index: 20;
|
||||
font-family: var(--ff-headings);
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 666px) {
|
||||
.mobile-bottom-nav {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-bottom-nav__list {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 5rem;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mobile-bottom-nav__item {
|
||||
list-style: none;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.mobile-bottom-nav__link {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.5rem;
|
||||
color: light-dark(var(--color-black), var(--color-grey-300));
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 500;
|
||||
transition: color 150ms ease;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.icon {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
flex-shrink: 0;
|
||||
display: block;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
color: light-dark(var(--color-black), var(--color-white));
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&[aria-current="page"] {
|
||||
color: var(--color-link);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-bottom-nav__label {
|
||||
display: block;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
7
themes/hackertours/assets/img/events/37c3.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<svg width="205" height="72" viewBox="0 0 205 72" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M1.80225 30.4511H25.8893V27.7522L8.06572 26.7141V20.3486L25.8893 19.3105V16.6116H1.80225V0.560333H30.1276C43.7128 0.560333 48.5303 3.74312 48.5303 12.7373C48.5303 18.6877 44.2428 22.2857 36.7754 22.7009V23.8076C45.5907 25.0533 48.5303 27.6819 48.5303 34.3254C48.5303 42.0755 43.4233 44.8431 28.9728 44.8431H1.80225V30.4511Z" fill="black"/>
|
||||
<path d="M73.5752 19.2418H51.8011V0.560333H97.6622V16.4743L80.5617 44.8431H57.6311L73.5768 19.2418H73.5752Z" fill="black"/>
|
||||
<path d="M100.783 22.7712C100.783 6.09548 108.105 0.560333 119.619 0.560333H152.569V20.7638H122.364V26.3676H152.569V44.8415H121.739C108.733 44.8415 100.783 39.7902 100.783 22.7696V22.7712Z" fill="black"/>
|
||||
<path d="M157.554 30.4511H181.641V27.7522L163.818 26.7141V20.3486L181.641 19.3105V16.6116H157.554V0.560333H185.88C199.465 0.560333 204.281 3.74312 204.281 12.7373C204.281 18.6877 199.993 22.2857 192.527 22.7009V23.8076C201.343 25.0533 204.281 27.6819 204.281 34.3254C204.281 42.0755 199.174 44.8431 184.723 44.8431H157.554V30.4511Z" fill="black"/>
|
||||
<path d="M2.93594 66.6447H1.80312L1.80312 53.0509H4.06875L4.06875 65.5118H5.20156L5.20156 66.6447H9.73281V65.5118H10.8656L10.8656 53.0509H13.1312L13.1312 66.6447H11.9984V67.7775H10.8656V68.9103H4.06875V67.7775H2.93594V66.6447ZM31.1185 59.8478L31.1185 68.9103H28.8529L28.8529 53.0509H31.1185V56.4493H32.2513V57.5822H33.3841V58.715H34.5169V59.8478H35.6498V60.9806L36.7826 60.9806V62.1134H37.9154V53.0509H40.181V68.9103H37.9154V65.5118H36.7826V64.379H35.6498V63.2462H34.5169V62.1134H33.3841V60.9806H32.2513V59.8478H31.1185ZM55.9026 68.9103V53.0509H58.1683V66.6447H67.2308V68.9103H55.9026ZM90.8821 55.3165H86.3508V56.4493H85.218V65.5118H86.3508V66.6447H90.8821V65.5118H92.0149V56.4493H90.8821V55.3165ZM82.9524 55.3165L84.0852 55.3165V54.1837H85.218V53.0509H92.0149V54.1837H93.1477V55.3165H94.2805V66.6447H93.1477V67.7775H92.0149V68.9103H85.218V67.7775H84.0852V66.6447H82.9524V55.3165ZM113.401 66.6447H117.932V65.5118H119.065V64.379H121.33V66.6447H120.197V67.7775H119.065V68.9103H112.268V67.7775H111.135V66.6447H110.002V55.3165H111.135V54.1837H112.268V53.0509H119.065V54.1837H120.197V55.3165H121.33V57.5822H119.065V56.4493H117.932V55.3165H113.401V56.4493H112.268V65.5118H113.401V66.6447ZM139.318 62.1134V68.9103H137.052V53.0509H139.318V59.8478H140.45V58.715H141.583V57.5822H142.716V56.4493H143.849V55.3165H144.982V54.1837H146.114V53.0509H148.38V55.3165H147.247V56.4493H146.114V57.5822H144.982V58.715H143.849V59.8478H142.716V62.1134H143.849V63.2462H144.982V64.379H146.114V65.5118H147.247V66.6447H148.38V68.9103H146.114V67.7775H144.982V66.6447H143.849V65.5118H142.716V64.379H141.583V63.2462H140.45V62.1134H139.318ZM175.43 53.0509V55.3165H166.367V59.8478H173.164V62.1134H166.367V66.6447H175.43V68.9103H164.102V53.0509H175.43ZM193.417 55.3165V66.6447H199.081V65.5118H200.214V56.4493H199.081V55.3165H193.417ZM191.151 53.0509L200.214 53.0509V54.1837H201.347V55.3165H202.479V66.6447H201.347V67.7775H200.214V68.9103H191.151V53.0509Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3 KiB |
3
themes/hackertours/assets/img/events/38c3.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="914" height="240" viewBox="0 0 914 240" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M167.29 123.402C196.134 111.569 221.152 125.768 221.152 152.689C221.152 206.529 156.988 237 81.639 237C28.954 237 11 224.871 11 206.234C11 196.767 16.004 187.892 38.078 189.963L167.584 201.5C184.655 202.979 192.308 194.992 192.308 186.709C192.308 178.13 185.538 172.213 167.584 169.847L62.214 156.83C39.844 154.168 32.192 140.56 32.192 126.36C32.192 115.414 36.312 101.51 62.214 93.227L177.003 56.545C190.836 52.107 193.191 46.191 193.191 38.795C192.896 29.328 184.067 27.849 176.708 29.92L73.987 60.39C53.089 66.603 13.649 80.211 11.294 40.274C9.823 16.608 28.954 7.437 53.384 7.437H162.58C193.779 7.437 209.379 21.933 209.379 41.457C209.379 52.403 201.726 63.349 188.481 72.815L100.771 134.051C88.998 142.335 94.884 153.28 108.424 147.66L167.29 123.402ZM249.862 52.995C249.862 33.47 268.11 3 333.158 3C420.868 3.591 450.89 22.228 450.89 52.699C450.89 69.857 444.709 75.478 423.517 85.24L374.658 107.723C370.832 109.498 369.066 111.864 369.949 115.414C370.538 118.077 372.892 120.443 379.368 120.739L403.503 121.627C437.351 122.81 453.539 139.672 453.539 179.905C453.539 217.179 414.982 236.704 359.353 236.704C293.423 236.112 238.972 226.054 238.972 175.467C238.972 146.772 248.685 126.952 282.827 124.289L315.203 121.627C321.973 121.035 324.328 117.781 324.328 113.935C324.328 110.089 321.384 106.835 316.675 105.652C267.522 93.227 249.862 79.323 249.862 52.995ZM369.36 134.643C353.172 123.402 343.753 122.514 326.682 134.643L268.11 176.651C259.575 182.863 260.458 194.105 273.114 194.105L425.872 193.217C437.645 193.217 439.117 183.455 430.287 177.242L369.36 134.643ZM331.392 95.298C337.573 108.906 350.523 108.906 362.002 100.623L401.148 72.815C409.978 66.603 410.861 58.911 399.971 53.586L328.154 18.679C309.905 9.804 295.483 17.791 303.136 34.062L331.392 95.298ZM569.018 3C624.94 3 676.448 40.866 676.448 66.899C676.448 88.494 648.193 104.173 625.235 77.252L581.968 26.37C555.184 -4.988 503.676 43.824 544.883 65.715L561.071 74.294C585.795 87.606 577.259 113.639 556.361 119.556L503.382 134.347C491.02 137.897 491.609 148.547 503.088 155.647L598.156 213.629C611.696 221.912 619.054 213.038 616.699 199.725L611.696 171.622C608.752 154.759 608.752 129.022 633.476 126.36C663.498 123.106 672.328 142.335 672.328 163.043C672.328 201.5 639.068 236.704 582.557 236.704C514.861 236.704 467.474 186.117 467.474 115.71C467.474 52.403 499.556 3 569.018 3ZM848.138 123.402C876.982 111.569 902 125.768 902 152.689C902 206.529 837.836 237 762.487 237C709.802 237 691.848 224.871 691.848 206.234C691.848 196.767 696.851 187.892 718.926 189.963L848.432 201.5C865.503 202.979 873.156 194.992 873.156 186.709C873.156 178.13 866.386 172.213 848.432 169.847L743.061 156.83C720.692 154.168 713.04 140.56 713.04 126.36C713.04 115.414 717.16 101.51 743.061 93.227L857.85 56.545C871.684 52.107 874.039 46.191 874.039 38.795C873.744 29.328 864.914 27.849 857.556 29.92L754.835 60.39C733.937 66.603 694.497 80.211 692.142 40.274C690.67 16.608 709.802 7.437 734.231 7.437H843.428C874.627 7.437 890.227 21.933 890.227 41.457C890.227 52.403 882.574 63.349 869.329 72.815L781.619 134.051C769.845 142.335 775.732 153.28 789.271 147.66L848.138 123.402Z" fill="#FF5053" stroke="#FF5053" stroke-width="4.5" stroke-miterlimit="2" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
4
themes/hackertours/assets/img/events/39c3.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 69.9">
|
||||
<path d="M113.72.49c3.97,0,7.52.74,10.65,2.21,3.13,1.41,5.6,3.55,7.39,6.43,1.86,2.88,2.78,6.43,2.78,10.65v27.54c0,4.99-.9,9.15-2.69,12.48-1.79,3.26-4.25,5.69-7.39,7.29-3.07,1.54-6.56,2.3-10.46,2.3h-19.87c-3.84,0-7.29-.7-10.36-2.11-3.07-1.41-5.5-3.55-7.29-6.43-1.79-2.88-2.69-6.4-2.69-10.56v-3.93h2.78v4.03c0,5.37,1.66,9.44,4.99,12.19,3.33,2.75,7.52,4.13,12.57,4.13h19.87c3.33,0,6.3-.64,8.93-1.92,2.69-1.34,4.83-3.45,6.43-6.33,1.6-2.88,2.4-6.53,2.4-10.94v-16.41h-1.63l1.73-3.07c-.06,1.92-.93,3.81-2.59,5.66-1.6,1.86-3.81,3.36-6.62,4.51-2.75,1.09-5.82,1.63-9.21,1.63h-20.06c-3.84,0-7.33-.67-10.46-2.02-3.07-1.41-5.53-3.52-7.39-6.33-1.79-2.82-2.69-6.27-2.69-10.36v-1.82c0-4.03.9-7.45,2.69-10.27,1.86-2.88,4.35-5.02,7.49-6.43,3.2-1.41,6.75-2.11,10.65-2.11h20.06ZM93.76,3.28c-5.18,0-9.5,1.34-12.96,4.03-3.39,2.69-5.09,6.69-5.09,12v1.82c0,5.31,1.7,9.31,5.09,12,3.45,2.62,7.74,3.93,12.86,3.93h19.96c5.31,0,9.66-1.31,13.05-3.93,3.39-2.69,5.09-6.69,5.09-12v-1.82c0-5.31-1.7-9.31-5.09-12-3.39-2.69-7.74-4.03-13.05-4.03h-19.87ZM20.35,69.11c-3.65,0-7.01-.64-10.08-1.92-3.07-1.28-5.57-3.26-7.49-5.95-1.86-2.69-2.78-5.98-2.78-9.88v-4.99h2.88v4.99c0,5.05,1.7,8.83,5.09,11.32,3.45,2.43,7.61,3.65,12.48,3.65h18.23c2.94,0,5.76-.51,8.45-1.54,2.75-1.09,4.96-2.72,6.62-4.89,1.73-2.24,2.59-4.99,2.59-8.25v-1.73c0-4.99-1.66-8.7-4.99-11.13-3.26-2.43-7.9-3.65-13.92-3.65h-21.21v-2.78L50.29,4.62v-.48H1.92V1.36h53.45v2.88L21.31,31.88v1.44l-2.4-.86h18.81c6.78,0,12.06,1.5,15.83,4.51,3.77,2.94,5.66,7.26,5.66,12.96v1.63c0,3.77-.96,7.01-2.88,9.69-1.86,2.62-4.35,4.61-7.49,5.95-3.14,1.28-6.53,1.92-10.17,1.92h-18.33ZM255.09,69.59c-5.05,0-9.47-.74-13.24-2.21-3.78-1.47-6.72-3.74-8.83-6.81s-3.17-6.94-3.17-11.61v-2.21h21.5v2.21c0,1.02.16,1.82.48,2.4.32.51.83.9,1.54,1.15.7.19,1.66.29,2.88.29h17.08c1.22,0,2.18-.13,2.88-.38.77-.32,1.31-.77,1.63-1.34.38-.64.58-1.38.58-2.21v-1.44c0-1.28-.45-2.27-1.34-2.98-.9-.7-2.11-1.06-3.65-1.06h-31.29v-13.82l17.95-8.83v-1.54h-27.06V1.36h62.67v17.47l-19.67,9.88v3.93l-19-2.5h23.03c6.21,0,11.07,1.54,14.59,4.61,3.58,3.07,5.37,7.45,5.37,13.15v1.34c0,4.41-.99,8.13-2.98,11.13-1.98,3.01-4.86,5.31-8.64,6.91-3.78,1.54-8.38,2.3-13.82,2.3h-19.48ZM174.86,69.59c-10.04,0-17.75-2.5-23.13-7.49-5.31-5.05-7.97-12.89-7.97-23.51v-7.1c0-10.68,2.65-18.55,7.97-23.61,5.37-5.05,13.08-7.58,23.13-7.58h23.03c6.21,0,11.45,1.02,15.74,3.07,4.35,2.05,7.71,5.25,10.08,9.6,2.37,4.35,3.55,9.92,3.55,16.7v2.4h-22.36v-2.4c-.06-2.62-.35-4.67-.86-6.14-.51-1.47-1.34-2.53-2.5-3.17-1.09-.7-2.59-1.06-4.51-1.06h-20.92c-3.07,0-5.34.96-6.81,2.88-1.41,1.86-2.11,4.93-2.11,9.21v7.39c0,4.16.7,7.17,2.11,9.02,1.47,1.86,3.74,2.78,6.81,2.78h20.92c1.92,0,3.42-.32,4.51-.96,1.15-.64,1.98-1.7,2.5-3.17.58-1.54.86-3.58.86-6.14v-1.92h22.36v1.82c0,6.78-1.18,12.35-3.55,16.7-2.3,4.35-5.63,7.55-9.98,9.6-4.35,2.05-9.63,3.07-15.83,3.07h-23.03Z" fill="#141414"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
21
themes/hackertours/assets/img/events/40c3.svg
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="Ebene_2" data-name="Ebene 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 67.65 88.42">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #75b44b;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g id="Content">
|
||||
<g>
|
||||
<path class="cls-1" d="M51.97,18.24l6.34-6.34-3.22-3.22-7.19,7.19c-3.93-2.29-7.87-4.57-11.8-6.86V0h-4.55v9.02c-3.93,2.29-7.87,4.57-11.8,6.86l-7.19-7.19-3.22,3.22,6.34,6.34C10.45,21.28,5.23,24.32,0,27.35c11.27,6.55,22.55,13.11,33.82,19.66,11.27-6.55,22.55-13.11,33.82-19.66-5.23-3.04-10.45-6.08-15.68-9.11ZM33.82,37.52c-5.61,0-10.16-4.55-10.16-10.16s4.55-10.16,10.16-10.16,10.16,4.55,10.16,10.16-4.55,10.16-10.16,10.16Z"/>
|
||||
<g>
|
||||
<path class="cls-1" d="M31.08,51.75l-14.55-8.4v36.67l14.55,8.4v-36.67ZM26.91,68.28v9.22c-1.07-.52-2.18-1.08-3.31-1.69-1.16-.62-2.26-1.25-3.31-1.88v-17.55c1.09.61,2.19,1.23,3.31,1.84,1.11.61,2.21,1.21,3.31,1.8v8.27Z"/>
|
||||
<path class="cls-1" d="M53.06,47.19v6.43c1.76-1.2,3.57-2.48,5.41-3.85,1.82-1.36,3.55-2.71,5.2-4.04.03,2.22.04,3.36.07,5.66-2.93,1.8-5.84,3.62-8.75,5.45.04,2.36.07,4.73.11,7.09,2.9-1.79,5.8-3.57,8.73-5.31.03,2.27.04,3.4.07,5.57-1.4.6-2.82,1.2-4.26,1.8-2.24.93-4.46,1.82-6.65,2.69v9.99l14.66-8.46c-.02-12.2-.11-24.4-.13-36.6l-14.45,8.34v5.24Z"/>
|
||||
<path class="cls-1" d="M12.6,53.6c-.8.32-1.66.64-2.57.94-.87.29-1.7.54-2.5.76l-.24,5.51c-1.8-1.01-2.7-1.52-4.53-2.59,1.15-4.24,2.33-8.47,3.54-12.7.66-2.31,1.34-4.62,2.03-6.93L0,33.8v33.02c1.38.75,2.75,1.51,4.13,2.26.91.5,1.83,1,2.74,1.5-.07,1.51-.13,2.52-.19,3.75l5.92,3.42v-24.14Z"/>
|
||||
<path class="cls-1" d="M40.5,77.55c.02-6.09.06-12.18.09-18.26,2.93-1.35,5.84-2.76,8.73-4.2v-10.98l-13.16,7.6c0,6.09,0,12.18,0,18.26,0,6.14,0,12.27,0,18.41l13.16-7.6v-10.75c-2.91,2.56-5.84,5.07-8.82,7.53Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
18
themes/hackertours/assets/img/events/Sources.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Event logos for the event cards on the home page (events shortcode, data/events.yaml).
|
||||
The cards use them as masks in the text colour, so the colours in the files don't matter.
|
||||
All files are unmodified copies of the originals.
|
||||
|
||||
37c3.svg https://designs.events.ccc.de/37C3/37c3-logo-full-black.svg
|
||||
38c3.svg https://designs.events.ccc.de/38C3/logo-simple.svg
|
||||
39c3.svg https://designs.events.ccc.de/39C3/39C3-Logo-RGB_muted-black.svg
|
||||
From the CCC event design archive, https://designs.events.ccc.de/
|
||||
|
||||
40c3.svg https://events.ccc.de/congress/2026/infos/assets/favicon.svg
|
||||
The 40C3 symbol from the 40C3 info pages; the design archive has no 40C3 entry yet.
|
||||
|
||||
eh22.svg logo/logo_simple.svg from the Easterhegg 2025 design repository,
|
||||
https://git.hamburg.ccc.de/EH22/design-public
|
||||
By kritzl, traumweh & Schrottkatze, licensed under CC BY-SA 4.0,
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
The home page credits it below the cards (credit in data/events.yaml).
|
||||
The design archive's EH22 logo is a raster image with a glow, which doesn't work as a mask.
|
||||
34
themes/hackertours/assets/img/events/eh22.svg
Normal file
|
After Width: | Height: | Size: 37 KiB |
116
themes/hackertours/assets/js/gallery.js
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
// Gallery shortcode: opens the full image in a lightbox (a modal <dialog>) with its alt text
|
||||
// and credit. Arrow buttons, arrow keys and swiping move between the images of the gallery;
|
||||
// Escape, the close button or a click beside the image close it.
|
||||
{
|
||||
const button = (className, label, symbol) => {
|
||||
const element = document.createElement('button');
|
||||
element.type = 'button';
|
||||
element.className = `lightbox__button ${className}`;
|
||||
element.setAttribute('aria-label', label);
|
||||
element.innerHTML = `<span aria-hidden="true">${symbol}</span>`;
|
||||
return element;
|
||||
};
|
||||
|
||||
const lightbox = (gallery) => {
|
||||
const links = [...gallery.querySelectorAll('.gallery__link')];
|
||||
const labels = gallery.dataset;
|
||||
let index = 0;
|
||||
|
||||
const dialog = document.createElement('dialog');
|
||||
dialog.className = 'lightbox';
|
||||
dialog.setAttribute('aria-label', labels.labelDialog);
|
||||
dialog.innerHTML = `
|
||||
<figure class="lightbox__figure">
|
||||
<img class="lightbox__image" alt="">
|
||||
<figcaption class="lightbox__caption" aria-live="polite">
|
||||
<span class="lightbox__alt"></span>
|
||||
<span class="lightbox__credit"></span>
|
||||
<span class="lightbox__counter"></span>
|
||||
</figcaption>
|
||||
</figure>`;
|
||||
const close = button('lightbox__close', labels.labelClose, '×');
|
||||
const previous = button('lightbox__previous', labels.labelPrevious, '‹');
|
||||
const next = button('lightbox__next', labels.labelNext, '›');
|
||||
dialog.append(close);
|
||||
if (links.length > 1) dialog.append(previous, next);
|
||||
document.body.append(dialog);
|
||||
|
||||
const image = dialog.querySelector('.lightbox__image');
|
||||
const preload = (link) => {
|
||||
new Image().src = link.href;
|
||||
};
|
||||
|
||||
const show = (newIndex) => {
|
||||
index = (newIndex + links.length) % links.length;
|
||||
const link = links[index];
|
||||
image.src = link.href;
|
||||
image.width = link.dataset.width;
|
||||
image.height = link.dataset.height;
|
||||
image.alt = link.dataset.alt;
|
||||
// The alt text is shown as the caption, so screen readers get it once, from the image.
|
||||
dialog.querySelector('.lightbox__alt').textContent = link.dataset.alt;
|
||||
dialog.querySelector('.lightbox__alt').setAttribute('aria-hidden', 'true');
|
||||
dialog.querySelector('.lightbox__credit').textContent = link.dataset.credit ?? '';
|
||||
dialog.querySelector('.lightbox__counter').textContent =
|
||||
links.length > 1 ? `${index + 1} / ${links.length}` : '';
|
||||
if (links.length > 1) {
|
||||
preload(links[(index + 1) % links.length]);
|
||||
preload(links[(index - 1 + links.length) % links.length]);
|
||||
}
|
||||
};
|
||||
|
||||
links.forEach((link, i) => {
|
||||
link.addEventListener('click', (event) => {
|
||||
// Let modified clicks open the image in a new tab or window as usual.
|
||||
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
||||
event.preventDefault();
|
||||
show(i);
|
||||
dialog.showModal();
|
||||
close.focus();
|
||||
});
|
||||
});
|
||||
|
||||
// Closing goes through here, so that focus goes back to the thumbnail of the image that was
|
||||
// shown (the browser would restore it to where it was before the lightbox opened).
|
||||
const hide = () => {
|
||||
dialog.close();
|
||||
links[index].focus();
|
||||
};
|
||||
|
||||
close.addEventListener('click', hide);
|
||||
// Escape, or the back gesture on Android.
|
||||
dialog.addEventListener('cancel', (event) => {
|
||||
event.preventDefault();
|
||||
hide();
|
||||
});
|
||||
previous.addEventListener('click', () => show(index - 1));
|
||||
next.addEventListener('click', () => show(index + 1));
|
||||
|
||||
// A click on the dark area around the image closes the lightbox.
|
||||
dialog.addEventListener('click', (event) => {
|
||||
if (event.target === dialog || event.target.classList.contains('lightbox__figure')) hide();
|
||||
});
|
||||
|
||||
dialog.addEventListener('keydown', (event) => {
|
||||
if (links.length < 2) return;
|
||||
if (event.key === 'ArrowLeft') show(index - 1);
|
||||
else if (event.key === 'ArrowRight') show(index + 1);
|
||||
else return;
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
// Swiping left or right on touch screens.
|
||||
let startX = null;
|
||||
dialog.addEventListener('pointerdown', (event) => {
|
||||
if (event.pointerType !== 'mouse') startX = event.clientX;
|
||||
});
|
||||
dialog.addEventListener('pointerup', (event) => {
|
||||
if (startX === null || links.length < 2) return;
|
||||
const distance = event.clientX - startX;
|
||||
startX = null;
|
||||
if (Math.abs(distance) > 50) show(index + (distance < 0 ? 1 : -1));
|
||||
});
|
||||
};
|
||||
|
||||
document.querySelectorAll('[data-gallery]').forEach(lightbox);
|
||||
}
|
||||
16
themes/hackertours/assets/js/mobilemenu.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* @file
|
||||
* A JavaScript file for the mobile bottom navigation menu.
|
||||
*/
|
||||
|
||||
(function () {
|
||||
// Hide the main menu on small screens
|
||||
const main_menu = document.querySelector('.main-menu');
|
||||
const header_region = document.querySelector('.header__region');
|
||||
const small_screen = window.matchMedia('(max-width: 666px)').matches;
|
||||
|
||||
if (small_screen) {
|
||||
if (main_menu) main_menu.hidden = true;
|
||||
if (header_region) header_region.hidden = true;
|
||||
}
|
||||
})();
|
||||
33
themes/hackertours/assets/js/schedule.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Responsive schedule for the shortcode. Without JavaScript all days remain visible.
|
||||
for (const schedule of document.querySelectorAll('[data-schedule]')) {
|
||||
const picker = schedule.querySelector('.schedule__picker');
|
||||
const buttons = [...picker.querySelectorAll('button')];
|
||||
|
||||
const select = (selected) => {
|
||||
for (const button of buttons) {
|
||||
const isSelected = button === selected;
|
||||
button.setAttribute('aria-pressed', isSelected);
|
||||
document
|
||||
.getElementById(button.getAttribute('aria-controls'))
|
||||
.classList.toggle('schedule__day--selected', isSelected);
|
||||
}
|
||||
};
|
||||
|
||||
for (const button of buttons) {
|
||||
button.addEventListener('click', () => select(button));
|
||||
}
|
||||
|
||||
// During the event, start on today's tours. The 'sv' locale formats as YYYY-MM-DD.
|
||||
const today = new Date().toLocaleDateString('sv');
|
||||
select(buttons.find((button) => button.dataset.date === today) ?? buttons[0]);
|
||||
|
||||
const hasUpcomingDays = buttons.some((button) => button.dataset.date >= today);
|
||||
for (const button of buttons) {
|
||||
document
|
||||
.getElementById(button.getAttribute('aria-controls'))
|
||||
.classList.toggle('schedule__day--past', hasUpcomingDays && button.dataset.date < today);
|
||||
}
|
||||
|
||||
picker.hidden = false;
|
||||
schedule.classList.add('schedule--picker');
|
||||
}
|
||||
157
themes/hackertours/assets/js/tour-map.js
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
// Tour map shortcode: draws the tour locations and their routes from the Congress on
|
||||
// OpenStreetMap tiles with Leaflet. The data comes from the data-tour-map attribute.
|
||||
|
||||
const POPUP = { minWidth: 220, maxWidth: 320 };
|
||||
|
||||
const decodePolyline = (encoded, precision = 5) => {
|
||||
const factor = 10 ** precision;
|
||||
const points = [];
|
||||
let index = 0;
|
||||
let lat = 0;
|
||||
let lon = 0;
|
||||
const next = () => {
|
||||
let result = 0;
|
||||
let shift = 0;
|
||||
let byte;
|
||||
do {
|
||||
byte = encoded.charCodeAt(index++) - 63;
|
||||
result |= (byte & 0x1f) << shift;
|
||||
shift += 5;
|
||||
} while (byte >= 0x20);
|
||||
return result & 1 ? ~(result >> 1) : result >> 1;
|
||||
};
|
||||
while (index < encoded.length) {
|
||||
lat += next();
|
||||
lon += next();
|
||||
points.push([lat / factor, lon / factor]);
|
||||
}
|
||||
return points;
|
||||
};
|
||||
|
||||
const legPoints = (leg) =>
|
||||
leg.coordinates
|
||||
? leg.coordinates.map(([lon, lat]) => [lat, lon])
|
||||
: decodePolyline(leg.polyline ?? '', leg.precision ?? 5);
|
||||
|
||||
// icon is a data: URI from the vendored icon sets (see the tour-map-icon partial), or empty.
|
||||
const markerIcon = (color, icon, modifier) => {
|
||||
const symbol = document.createElement('span');
|
||||
if (color) symbol.style.setProperty('--tour-map-color', color);
|
||||
if (icon) {
|
||||
const image = document.createElement('i');
|
||||
image.style.setProperty('--tour-map-icon', `url("${icon}")`);
|
||||
symbol.append(image);
|
||||
}
|
||||
return L.divIcon({
|
||||
className: `tour-map__marker${modifier ? ` tour-map__marker--${modifier}` : ''}`,
|
||||
html: symbol,
|
||||
iconSize: null,
|
||||
});
|
||||
};
|
||||
|
||||
const popup = (tour) => {
|
||||
const content = document.createElement('div');
|
||||
const title = document.createElement(tour.url ? 'a' : 'strong');
|
||||
title.className = 'tour-map__popup-title';
|
||||
title.textContent = tour.title;
|
||||
if (tour.url) title.href = tour.url;
|
||||
content.append(title);
|
||||
if (tour.directions) {
|
||||
// Rendered from the site's own data files by Hugo.
|
||||
const directions = document.createElement('div');
|
||||
directions.className = 'tour-map__directions';
|
||||
directions.innerHTML = tour.directions;
|
||||
content.append(directions);
|
||||
}
|
||||
return content;
|
||||
};
|
||||
|
||||
// Leaflet makes markers buttons, but only gives them a title, which isn't an accessible name.
|
||||
const named = (marker, label) =>
|
||||
marker.on('add', () => marker.getElement().setAttribute('aria-label', label));
|
||||
|
||||
const createMap = (element) => {
|
||||
const { origin, tours } = JSON.parse(element.dataset.tourMap);
|
||||
const map = L.map(element.querySelector('.tour-map__canvas'), {
|
||||
scrollWheelZoom: false,
|
||||
zoomControl: false,
|
||||
// No fading in of tiles, see the tile blend mode in _tour-map.css.
|
||||
fadeAnimation: false,
|
||||
});
|
||||
// Plus and minus as icons rather than characters, with names in the page's language.
|
||||
L.control
|
||||
.zoom({
|
||||
zoomInText: '<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M7 2h2v5h5v2H9v5H7V9H2V7h5z" fill="currentColor"/></svg>',
|
||||
zoomInTitle: element.dataset.labelZoomIn,
|
||||
zoomOutText: '<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M2 7h12v2H2z" fill="currentColor"/></svg>',
|
||||
zoomOutTitle: element.dataset.labelZoomOut,
|
||||
})
|
||||
.addTo(map);
|
||||
// Without the flag icon, so the credit line is plain text.
|
||||
map.attributionControl.setPrefix('<a href="https://leafletjs.com">Leaflet</a>');
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
}).addTo(map);
|
||||
|
||||
// Zooming with the scroll wheel only once the map is in use, so it doesn't catch page scrolling.
|
||||
map.on('click focus', () => map.scrollWheelZoom.enable());
|
||||
map.on('mouseout blur', () => map.scrollWheelZoom.disable());
|
||||
|
||||
const bounds = L.latLngBounds([]);
|
||||
|
||||
for (const tour of tours) {
|
||||
for (const leg of tour.route) {
|
||||
const points = legPoints(leg);
|
||||
L.polyline(points, {
|
||||
color: tour.color || '#555',
|
||||
weight: 4,
|
||||
opacity: 0.8,
|
||||
dashArray: leg.mode === 'walk' ? '2 8' : null,
|
||||
})
|
||||
.bindPopup(popup(tour), POPUP)
|
||||
.addTo(map);
|
||||
points.forEach((point) => bounds.extend(point));
|
||||
}
|
||||
named(L.marker([tour.lat, tour.lon], { icon: markerIcon(tour.color, tour.icon), title: tour.title }), tour.title)
|
||||
.bindPopup(popup(tour), POPUP)
|
||||
.addTo(map);
|
||||
bounds.extend([tour.lat, tour.lon]);
|
||||
}
|
||||
|
||||
if (origin.lat !== undefined) {
|
||||
named(
|
||||
L.marker([origin.lat, origin.lon], {
|
||||
icon: markerIcon('', origin.icon, 'origin'),
|
||||
title: origin.name,
|
||||
zIndexOffset: 1000,
|
||||
}),
|
||||
origin.name,
|
||||
)
|
||||
.bindPopup(popup({ title: origin.name }), POPUP)
|
||||
.addTo(map);
|
||||
bounds.extend([origin.lat, origin.lon]);
|
||||
}
|
||||
|
||||
map.fitBounds(bounds, { padding: [24, 24], maxZoom: 16 });
|
||||
};
|
||||
|
||||
// The map is only created when it comes near the visible part of the page: visitors who don't
|
||||
// scroll down load no map tiles, and accessibility checkers that look at the page as loaded
|
||||
// don't see the tiles, which axe wrongly takes to overlap the text above the map.
|
||||
const nearView = new IntersectionObserver(
|
||||
(entries) => {
|
||||
for (const entry of entries) {
|
||||
if (!entry.isIntersecting) continue;
|
||||
nearView.unobserve(entry.target);
|
||||
createMap(entry.target);
|
||||
}
|
||||
},
|
||||
{ rootMargin: '200px' },
|
||||
);
|
||||
|
||||
for (const element of document.querySelectorAll('[data-tour-map]')) {
|
||||
// Shows the (still empty) map area at its final size, so the page doesn't jump later on.
|
||||
element.classList.add('tour-map--ready');
|
||||
nearView.observe(element);
|
||||
}
|
||||
165
themes/hackertours/assets/vendor/fontawesome/LICENSE.txt
vendored
Normal file
|
|
@ -0,0 +1,165 @@
|
|||
Fonticons, Inc. (https://fontawesome.com)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Font Awesome Free License
|
||||
|
||||
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
||||
commercial projects, open source projects, or really almost whatever you want.
|
||||
Full Font Awesome Free license: https://fontawesome.com/license/free.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
||||
|
||||
The Font Awesome Free download is licensed under a Creative Commons
|
||||
Attribution 4.0 International License and applies to all icons packaged
|
||||
as SVG and JS file types.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Fonts: SIL OFL 1.1 License
|
||||
|
||||
In the Font Awesome Free download, the SIL OFL license applies to all icons
|
||||
packaged as web and desktop font files.
|
||||
|
||||
Copyright (c) 2026 Fonticons, Inc. (https://fontawesome.com)
|
||||
with Reserved Font Name: "Font Awesome".
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
SIL OPEN FONT LICENSE
|
||||
Version 1.1 - 26 February 2007
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting — in part or in whole — any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Code: MIT License (https://opensource.org/licenses/MIT)
|
||||
|
||||
In the Font Awesome Free download, the MIT license applies to all non-font and
|
||||
non-icon files.
|
||||
|
||||
Copyright 2026 Fonticons, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in the
|
||||
Software without restriction, including without limitation the rights to use, copy,
|
||||
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
and to permit persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Attribution
|
||||
|
||||
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
|
||||
Awesome Free files already contain embedded comments with sufficient
|
||||
attribution, so you shouldn't need to do anything additional when using these
|
||||
files normally.
|
||||
|
||||
We've kept attribution comments terse, so we ask that you do not actively work
|
||||
to remove them from files, especially code. They're a great way for folks to
|
||||
learn about Font Awesome.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
# Brand Icons
|
||||
|
||||
All brand icons are trademarks of their respective owners. The use of these
|
||||
trademarks does not indicate endorsement of the trademark holder by Font
|
||||
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
|
||||
to represent the company, product, or service to which they refer.**
|
||||
5
themes/hackertours/assets/vendor/fontawesome/README
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Font Awesome Free 7.3.1 (https://fontawesome.com), from the npm package @fortawesome/fontawesome-free-7.3.1.tgz
|
||||
(sha512-wmglKKPDIkgV3aWlZzWECCPoGIkYCulzBwxG9+w7rc5BGapZ6cPMpoPOT8k36J0Ni7PPX6c/rsoMWfS4d1MUMg==).
|
||||
Only the SVG icons (svgs/brands, svgs/regular, svgs/solid) and LICENSE.txt are kept.
|
||||
Icons: CC BY 4.0. The attribution is the comment inside each SVG file; keep it when using an icon
|
||||
(layouts/_partials/fa-icon.html does).
|
||||
1
themes/hackertours/assets/vendor/fontawesome/brands/11ty.svg
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M615.3 168.5c2.3 0 4.6 .7 6.6 2.2 1.9 1.4 3.1 3.3 3.8 5 1.4 3.3 1.8 7.3 1.8 11.3 0 2.2-.3 4.9-.7 7.6l0 .4-50.9 264.9 0 0c-4 22.1-8.5 39.4-13.6 51.7-5 12.1-10.9 21.6-18.6 27l0 0c-7.5 5.3-16.9 7.7-27.6 8l-3 0c-16 0-29.3-4.2-36.9-14.8-.1-.1-.1-.1-.2-.2-.1-.2-.3-.4-.5-.6l0 0c-1.8-2.4-2.5-5.2-2.9-7.4-.5-2.8-.7-6.1-.7-9.8 0-7.3 .6-13.5 2.1-18.2 1.4-4.4 4.8-10.4 12.2-10.4l1.3 .1c.2 0 .4 .1 .5 .1 .3 .1 .6 .1 .8 .2 .6 .1 1.3 .3 2.2 .6l7.6 2.2 .1 0 7.6 2.1c.9 .2 1.7 .4 2.2 .5 .4 .1 .6 .1 .7 .1 0 0 .1 0 .2-.1 .1-.1 .4-.2 .8-.6 .9-.9 2.2-2.6 3.6-5.7 2.6-5.8 4.2-14.7 4.2-27.4 0-.7-.3-3.4-1.3-8.9-.9-5.1-2.3-12.2-4.2-21.1l-56-232.9-.1-.4 0-.3c-.4-2.7-.7-5.3-.7-7.3 0-3.7 .4-7.5 1.7-10.6 .7-1.6 1.8-3.4 3.5-4.9 1.9-1.5 4.2-2.3 6.5-2.3l34.6 0c4.6 0 8.7 1.7 11.9 5l1.3 1.5c1.2 1.6 2 3.4 2.7 5.2 .9 2.4 1.5 5.1 2 8.1l30.4 161.2 23.8-160c.8-5.8 2.2-11.4 5.1-15.1 3-3.8 7.2-5.8 12-5.8l24 0zM375.1 34.6c2.6 0 5.1 .7 7.4 2.3 2.2 1.5 3.7 3.6 4.7 5.7 1.9 4 2.5 9.1 2.5 14.5l0 111.2c0 .1 0 .2 0 .3l32.4 0c2.5 0 5 .6 7.2 2.1 2.2 1.4 3.7 3.4 4.8 5.5 2 3.9 2.6 8.8 2.6 13.9l0 15.4c0 5-.6 9.8-2.6 13.7-1.1 2-2.6 4-4.8 5.4-2.2 1.4-4.7 2-7.1 2l-32.5 0 0 145.8c0 10.8 .7 19.5 2 26.2 1.4 6.9 3.1 10.9 4.7 12.9 1.2 1.5 2.2 2.5 3.1 3.2l2.2 1.4 .1 .1 2.9 .8c1.2 .2 2.6 .3 4.3 .3l20.3 0c4.5 0 8.9 1.7 11.8 5.8 2.6 3.6 3.3 8.1 3.3 12.2l0 17.2c0 4.5-.8 9.3-3.4 13.1-3 4.2-7.5 6-12.3 6l0 0-29.1 .1c-8 0-15-.6-21.2-1.7-6.7-1.3-13.4-4.1-20.1-8.1-7.2-4.4-13-10.3-17.5-17.8-4.5-7.5-7.9-17.5-10.5-29.5-2.6-12.2-3.9-26.6-3.9-43l0-144.9-13.4 0c-2.4 0-4.9-.6-7.1-2-2.2-1.4-3.7-3.4-4.8-5.4-2-3.9-2.6-8.7-2.6-13.7l0-15.4c0-5.1 .6-10 2.6-13.9 1.1-2.1 2.6-4 4.8-5.5 2.2-1.5 4.7-2.1 7.2-2.1l13.4 0 0-.6 5.2-111.2 0-.1 .3-3.9c.5-3.8 1.3-7.4 2.7-10.3 2.1-4.2 6-7.9 11.8-7.9l28.6 0zm-268 11.7c1.8 .3 3.6 .9 5.3 2.1 2.1 1.5 3.5 3.5 4.4 5.4 1.7 3.7 2.3 8.4 2.3 13.2l0 377.8c0 6.7-.6 12.6-2.4 17.1-.9 2.3-2.3 4.7-4.4 6.5-2.3 2-5.1 3-8.1 3l-43.7 0c-3 0-5.8-1.1-8.1-3.1-2.1-1.9-3.4-4.3-4.2-6.5-1.7-4.5-2.3-10.3-2.3-17l0-315.8c-4.8 1.2-8.7 2.2-11.5 2.9-1.9 .5-3.4 .8-4.4 1.1-.5 .1-.9 .2-1.2 .3-.1 0-.3 .1-.5 .1-.1 0-.2 0-.3 .1 0 0-.2 0-.3 0 0 0-.2 0-.4 0l0 0c-.1 0-.3 0-.4 0-.1 0-.2 0-.2 0-2.2 .1-4.5-.4-6.6-1.7-2.3-1.4-3.8-3.4-4.7-5.3-1.8-3.7-2.3-8.4-2.3-13l0-27.4c0-4.4 .7-8.8 2.6-12.4 2.1-3.9 5.5-6.6 9.8-7.6l75.5-19.5c1.4-.4 2.9-.5 4.4-.5l1.8 .1zm143.8-.5c1.8 .3 3.6 .9 5.2 2.1 2.1 1.5 3.5 3.5 4.4 5.4 1.7 3.7 2.2 8.4 2.2 13.2l0 377.8c0 6.7-.6 12.6-2.4 17.1-.9 2.3-2.3 4.7-4.4 6.5-2.3 2-5.1 3-8.1 3l-43.7 0c-3 0-5.8-1.1-8.1-3.1-2.1-1.9-3.4-4.3-4.2-6.5-1.7-4.5-2.3-10.3-2.3-17l0-315.8c-4.8 1.2-8.7 2.2-11.5 2.9-1.9 .5-3.4 .8-4.4 1.1-.5 .1-.9 .2-1.2 .3-.1 0-.3 .1-.5 .1-.1 0-.2 0-.3 .1-.1 0-.2 0-.3 0 0 0-.2 0-.4 0l0 0c-.1 0-.2 0-.3 0-.1 0-.2 0-.3 0-2.2 .1-4.5-.4-6.6-1.7-2.3-1.4-3.8-3.4-4.7-5.3-1.8-3.7-2.3-8.3-2.3-13l0-27.4c0-4.4 .7-8.7 2.6-12.4 2.1-3.9 5.5-6.6 9.8-7.6l75.4-19.4c1.4-.4 2.9-.5 4.4-.5l1.8 .1z"/></svg>
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
1
themes/hackertours/assets/vendor/fontawesome/brands/42-group.svg
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill="currentColor" d="M320 96l0 320c21 0 41.8-4.1 61.2-12.2s37-19.8 51.9-34.7 26.6-32.5 34.7-51.9 12.2-40.2 12.2-61.2-4.1-41.8-12.2-61.2-19.8-37.1-34.7-51.9-32.5-26.6-51.9-34.7-40.2-12.2-61.2-12.2zM0 256L160 416 320 256 160 96 0 256zm480 0c0 21 4.1 41.8 12.2 61.2s19.8 37 34.7 51.9 32.5 26.6 51.9 34.7 40.2 12.2 61.2 12.2l0-320c-42.4 0-83.1 16.9-113.1 46.9S480 213.6 480 256z"/></svg>
|
||||
|
After Width: | Height: | Size: 664 B |