diff --git a/astro.config.mjs b/astro.config.mjs index e951817..91af766 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -11,6 +11,7 @@ const site = process.env.PUBLIC_SITE_URL || 'https://windwiderstand.de'; export default defineConfig({ site, + devToolbar: { enabled: false }, integrations: [ svelte(), sitemap(), diff --git a/src/components/Accordion.svelte b/src/components/Accordion.svelte new file mode 100644 index 0000000..a2d8281 --- /dev/null +++ b/src/components/Accordion.svelte @@ -0,0 +1,28 @@ + + +
+ + + {label} + +
+ {@render children()} +
+
diff --git a/src/components/EventBadges.svelte b/src/components/EventBadges.svelte new file mode 100644 index 0000000..868d3a2 --- /dev/null +++ b/src/components/EventBadges.svelte @@ -0,0 +1,49 @@ + + +{#if dateLabel || locationText} +
+ {#if dateLabel} + + + {/if} + {#if locationText} + {#if locationHref} + + + {:else} + + + {/if} + {/if} +
+{/if} diff --git a/src/components/EventMap.svelte b/src/components/EventMap.svelte new file mode 100644 index 0000000..4c6b39c --- /dev/null +++ b/src/components/EventMap.svelte @@ -0,0 +1,77 @@ + + + +
+ {#if embedUrl} +
+
+ + {#if overlayVisible} +
{ overlayVisible = false; }} + onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') overlayVisible = false; }} + > +
+
+
+ {/if} +
+ {#if linkUrl} + + + {/if} +
+ {:else if linkUrl} + + + {/if} +
+
diff --git a/src/components/Ico.svelte b/src/components/Ico.svelte new file mode 100644 index 0000000..e3a0225 --- /dev/null +++ b/src/components/Ico.svelte @@ -0,0 +1,14 @@ + + +