diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 774a892..ca3b350 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -8,12 +8,26 @@ id?: string; } - let { footer = null, translations = {} }: { footer?: FooterEntry | null; translations?: Translations | null } = $props(); + let { + footer = null, + translations = {}, + logoSvgHtml = null, + logoUrl = null, + siteName = "", + }: { + footer?: FooterEntry | null; + translations?: Translations | null; + logoSvgHtml?: string | null; + logoUrl?: string | null; + siteName?: string; + } = $props(); function t(key: string) { return tStatic(translations ?? null, key); } + const year = new Date().getFullYear(); + const hasRowContent = $derived( !!footer && ((footer.row1Content?.length ?? 0) > 0 || @@ -32,13 +46,29 @@
- {:else} -+ {/if} + + +
{t(T.footer_copyright) !== T.footer_copyright ? t(T.footer_copyright) - : `© ${new Date().getFullYear()} Windwiderstand`} + : `Copyright © ${year} · Inhalte frei nutzbar mit Quellenangabe „windwiderstand.de“ · CC BY 4.0`}
- {/if} +{o.description}
- {/if} - {#if o.whatsapp || o.youtube} -{o.description}
- {/if} -{t(T.newsletter_inline_desc)}
+ {/if} +{t(T.newsletter_success_body)}
+{t(T.newsletter_success_body)}
{:else} -