sproutsite 0.5.13 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -1
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/VERSION +1 -1
- package/package.json +3 -1
- package/src/lib/sproutsite/legal-identity.ts +85 -0
- package/src/lib/sproutsite/privacy-infrastructure.ts +70 -0
- package/src/lib/sproutsite/rehype-links.ts +24 -5
- package/src/lib/sproutsite/site-config.ts +54 -1
- package/src/lib/sproutsite/types.ts +16 -1
- package/src/lib/sproutsite/urls.ts +31 -0
- package/src/lib/sproutsite/validation.ts +56 -0
- package/src/package/components.ts +2 -0
- package/src/package/config.ts +7 -1
- package/src/themes/default/assets/arrow-up-right.svg +2 -0
- package/src/themes/default/assets/footer-waves.svg +38 -0
- package/src/themes/default/components/atoms/Button/Button.astro +16 -3
- package/src/themes/default/components/molecules/Card/Card.css +4 -0
- package/src/themes/default/components/molecules/Feature/Feature.css +4 -0
- package/src/themes/default/components/molecules/LanguageSwitcher/LanguageSwitcher.astro +13 -3
- package/src/themes/default/components/molecules/LanguageSwitcher/LanguageSwitcher.css +25 -0
- package/src/themes/default/components/molecules/LegalIdentity/LegalIdentity.astro +92 -0
- package/src/themes/default/components/molecules/LegalIdentity/LegalIdentity.css +22 -0
- package/src/themes/default/components/molecules/PrivacyInfrastructure/PrivacyInfrastructure.astro +89 -0
- package/src/themes/default/components/molecules/PrivacyInfrastructure/PrivacyInfrastructure.css +16 -0
- package/src/themes/default/components/organisms/Footer/Footer.astro +127 -32
- package/src/themes/default/components/organisms/Footer/Footer.css +208 -27
- package/src/themes/default/components/organisms/Header/Header.astro +8 -12
- package/src/themes/default/components/organisms/Header/Header.css +4 -4
- package/src/themes/default/layouts/PageLayout/PageLayout.astro +7 -2
- package/src/themes/default/styles/foundation/base.css +5 -0
- package/src/themes/default/styles/foundation/links.css +28 -0
- package/src/themes/default/styles/foundation/prose.css +6 -1
- package/src/themes/default/styles/theme.css +3 -0
- package/third-party-licenses/simple-icons-LICENSE +30 -0
|
@@ -13,8 +13,9 @@ import { getBlogCollection } from '../../../../../package/blog.js';
|
|
|
13
13
|
interface Props {
|
|
14
14
|
site: SiteConfig;
|
|
15
15
|
route: string;
|
|
16
|
+
placement?: 'header' | 'footer';
|
|
16
17
|
}
|
|
17
|
-
const { site, route } = Astro.props;
|
|
18
|
+
const { site, route, placement = 'header' } = Astro.props;
|
|
18
19
|
const [pages, posts] = await Promise.all([
|
|
19
20
|
getCollection('pages'),
|
|
20
21
|
getBlogCollection('blogPages'),
|
|
@@ -40,11 +41,20 @@ const options = languageLinks(
|
|
|
40
41
|
}));
|
|
41
42
|
---
|
|
42
43
|
|
|
43
|
-
<details
|
|
44
|
+
<details
|
|
45
|
+
class:list={[
|
|
46
|
+
'ss-language-switcher',
|
|
47
|
+
{ 'ss-language-switcher--footer': placement === 'footer' },
|
|
48
|
+
]}
|
|
49
|
+
>
|
|
44
50
|
<summary
|
|
45
51
|
aria-label={t(site.language === 'de' ? 'de' : 'en', 'languageSwitcher')}
|
|
46
52
|
>
|
|
47
|
-
<Icon
|
|
53
|
+
<Icon
|
|
54
|
+
name="Globe"
|
|
55
|
+
size={20}
|
|
56
|
+
strokeWidth={placement === 'footer' ? 1.5 : 2}
|
|
57
|
+
/>
|
|
48
58
|
<span>{site.language.toUpperCase()}</span>
|
|
49
59
|
<Icon name="ChevronDown" size={16} />
|
|
50
60
|
</summary>
|
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
border-radius: 0.375rem;
|
|
76
76
|
color: inherit;
|
|
77
77
|
text-decoration: none;
|
|
78
|
+
&:hover {
|
|
79
|
+
text-decoration: underline;
|
|
80
|
+
}
|
|
78
81
|
|
|
79
82
|
&:hover {
|
|
80
83
|
background: color-mix(
|
|
@@ -99,6 +102,28 @@
|
|
|
99
102
|
flex-shrink: 0;
|
|
100
103
|
}
|
|
101
104
|
|
|
105
|
+
&.ss-language-switcher--footer {
|
|
106
|
+
font-size: inherit;
|
|
107
|
+
--ss-header-dropdown-bg: var(--color-hero-navy);
|
|
108
|
+
--ss-header-dropdown-border: color-mix(
|
|
109
|
+
in srgb,
|
|
110
|
+
currentColor 35%,
|
|
111
|
+
transparent
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
.ss-language-switcher__options {
|
|
115
|
+
inset-block-start: auto;
|
|
116
|
+
inset-block-end: calc(100% + 1.5rem);
|
|
117
|
+
|
|
118
|
+
&::before {
|
|
119
|
+
inset-block-start: auto;
|
|
120
|
+
inset-block-end: 0;
|
|
121
|
+
translate: -50% 50%;
|
|
122
|
+
rotate: 225deg;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
102
127
|
.ss-header__dialog & {
|
|
103
128
|
width: 100%;
|
|
104
129
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { loadLegalIdentity } from '../../../../../lib/sproutsite/legal-identity.js';
|
|
3
|
+
import { loadSiteConfig } from '../../../../../lib/sproutsite/site-config.js';
|
|
4
|
+
import { externalLinkAttributes } from '../../../../../lib/sproutsite/urls.js';
|
|
5
|
+
import Column from '../../layout/Column/Column.astro';
|
|
6
|
+
import Columns from '../../layout/Columns/Columns.astro';
|
|
7
|
+
import Feature from '../Feature/Feature.astro';
|
|
8
|
+
import Alert from '../Alert/Alert.astro';
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
part?: 'contact' | 'name' | 'email' | 'controller';
|
|
12
|
+
}
|
|
13
|
+
const { part = 'contact' } = Astro.props;
|
|
14
|
+
if (!['contact', 'name', 'email', 'controller'].includes(part))
|
|
15
|
+
throw new Error(
|
|
16
|
+
'LegalIdentity part must be contact, name, email or controller.',
|
|
17
|
+
);
|
|
18
|
+
const { values, placeholder } = loadLegalIdentity(import.meta.env.PROD);
|
|
19
|
+
const german = Astro.currentLocale === 'de';
|
|
20
|
+
const site = loadSiteConfig(german ? 'de' : 'en');
|
|
21
|
+
const country =
|
|
22
|
+
new Intl.DisplayNames([german ? 'de' : 'en'], { type: 'region' }).of(
|
|
23
|
+
values.LEGAL_COUNTRY,
|
|
24
|
+
) ?? values.LEGAL_COUNTRY;
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
{part === 'name' ? (
|
|
28
|
+
values.LEGAL_NAME
|
|
29
|
+
) : part === 'email' ? (
|
|
30
|
+
<a href={`mailto:${values.LEGAL_EMAIL}`}>{values.LEGAL_EMAIL}</a>
|
|
31
|
+
) : (
|
|
32
|
+
<div class="ss-legal-identity">
|
|
33
|
+
{placeholder && (
|
|
34
|
+
<Alert variant="info">
|
|
35
|
+
{german
|
|
36
|
+
? 'Vorschau mit Beispieldaten: Die Betreiberangaben in der lokalen .env fehlen, sind unvollständig oder enthalten noch Musterwerte.'
|
|
37
|
+
: 'Preview with example data: Operator details in the local .env are missing, incomplete or still contain example values.'}
|
|
38
|
+
</Alert>
|
|
39
|
+
)}
|
|
40
|
+
<Columns>
|
|
41
|
+
<Column span={6}>
|
|
42
|
+
<Feature
|
|
43
|
+
icon="MapPin"
|
|
44
|
+
title={german ? 'Postanschrift' : 'Postal address'}
|
|
45
|
+
layout="card"
|
|
46
|
+
color="primary"
|
|
47
|
+
>
|
|
48
|
+
<address>
|
|
49
|
+
<strong>{values.LEGAL_NAME}</strong>
|
|
50
|
+
<span>{values.LEGAL_STREET}</span>
|
|
51
|
+
<span>
|
|
52
|
+
{values.LEGAL_POSTAL_CODE} {values.LEGAL_CITY}
|
|
53
|
+
</span>
|
|
54
|
+
<span>{country}</span>
|
|
55
|
+
</address>
|
|
56
|
+
</Feature>
|
|
57
|
+
</Column>
|
|
58
|
+
<Column span={6}>
|
|
59
|
+
<Feature
|
|
60
|
+
icon="Mail"
|
|
61
|
+
title={german ? 'Kontakt' : 'Contact'}
|
|
62
|
+
layout="card"
|
|
63
|
+
color="secondary"
|
|
64
|
+
>
|
|
65
|
+
<p>
|
|
66
|
+
<strong>{german ? 'E-Mail' : 'Email'}</strong>
|
|
67
|
+
<br />
|
|
68
|
+
<a href={`mailto:${values.LEGAL_EMAIL}`}>
|
|
69
|
+
{values.LEGAL_EMAIL}
|
|
70
|
+
</a>
|
|
71
|
+
</p>
|
|
72
|
+
{part !== 'controller' && (
|
|
73
|
+
<p>
|
|
74
|
+
<strong>LinkedIn</strong>
|
|
75
|
+
<br />
|
|
76
|
+
<a
|
|
77
|
+
href={values.LEGAL_LINKEDIN}
|
|
78
|
+
{...externalLinkAttributes(
|
|
79
|
+
values.LEGAL_LINKEDIN,
|
|
80
|
+
site,
|
|
81
|
+
)}
|
|
82
|
+
>
|
|
83
|
+
{values.LEGAL_NAME}{' '}
|
|
84
|
+
{german ? 'auf LinkedIn' : 'on LinkedIn'}
|
|
85
|
+
</a>
|
|
86
|
+
</p>
|
|
87
|
+
)}
|
|
88
|
+
</Feature>
|
|
89
|
+
</Column>
|
|
90
|
+
</Columns>
|
|
91
|
+
</div>
|
|
92
|
+
)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ss-legal-identity {
|
|
3
|
+
address {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a {
|
|
10
|
+
color: var(--color-primary);
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
text-underline-offset: 0.2em;
|
|
13
|
+
&:hover {
|
|
14
|
+
text-decoration: underline;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
p {
|
|
19
|
+
margin-block: 0 0.75rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/themes/default/components/molecules/PrivacyInfrastructure/PrivacyInfrastructure.astro
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { loadPrivacyInfrastructure } from '../../../../../lib/sproutsite/privacy-infrastructure.js';
|
|
3
|
+
import { loadSiteConfig } from '../../../../../lib/sproutsite/site-config.js';
|
|
4
|
+
import { externalLinkAttributes } from '../../../../../lib/sproutsite/urls.js';
|
|
5
|
+
import Feature from '../Feature/Feature.astro';
|
|
6
|
+
import Alert from '../Alert/Alert.astro';
|
|
7
|
+
interface Props {
|
|
8
|
+
part?: 'hosting' | 'email-retention' | 'log-size-limit' | 'log-retention';
|
|
9
|
+
}
|
|
10
|
+
const { part = 'hosting' } = Astro.props;
|
|
11
|
+
if (
|
|
12
|
+
!['hosting', 'email-retention', 'log-size-limit', 'log-retention'].includes(
|
|
13
|
+
part,
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
throw new Error('Invalid PrivacyInfrastructure part.');
|
|
17
|
+
const { values, placeholder } = loadPrivacyInfrastructure(import.meta.env.PROD);
|
|
18
|
+
const german = Astro.currentLocale === 'de';
|
|
19
|
+
const site = loadSiteConfig(german ? 'de' : 'en');
|
|
20
|
+
const country =
|
|
21
|
+
new Intl.DisplayNames([german ? 'de' : 'en'], { type: 'region' }).of(
|
|
22
|
+
values.PRIVACY_SERVER_COUNTRY,
|
|
23
|
+
) ?? values.PRIVACY_SERVER_COUNTRY;
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
{part === 'email-retention' ? (
|
|
27
|
+
values.PRIVACY_EMAIL_RETENTION_MONTHS
|
|
28
|
+
) : part === 'log-size-limit' ? (
|
|
29
|
+
<>{values.PRIVACY_LOG_SIZE_LIMIT_MIB} MiB</>
|
|
30
|
+
) : part === 'log-retention' ? (
|
|
31
|
+
values.PRIVACY_LOG_RETENTION_DAYS ? (
|
|
32
|
+
<p>
|
|
33
|
+
{german
|
|
34
|
+
? `Die beschriebenen nginx- und Traefik-Protokolle werden im regulären Betrieb spätestens nach ${values.PRIVACY_LOG_RETENTION_DAYS} Tagen gelöscht.`
|
|
35
|
+
: `During normal operation, the nginx and Traefik logs described above are deleted within ${values.PRIVACY_LOG_RETENTION_DAYS} days.`}
|
|
36
|
+
</p>
|
|
37
|
+
) : (
|
|
38
|
+
<Alert variant="warning">
|
|
39
|
+
{german
|
|
40
|
+
? 'Noch offen: Eine feste Speicherfrist in Tagen für die eingerichteten nginx-Zugriffs-/Fehlerprotokolle und Traefik-Betriebs-/Fehlerprotokolle ist nicht hinterlegt. Die Größenbegrenzung allein garantiert keine maximale Aufbewahrungsdauer in Tagen.'
|
|
41
|
+
: 'Still open: No fixed retention period in days has been specified for the configured nginx access/error logs and Traefik operational/error logs. A size limit alone does not guarantee a maximum retention period in days.'}
|
|
42
|
+
</Alert>
|
|
43
|
+
)
|
|
44
|
+
) : (
|
|
45
|
+
<div class="ss-privacy-infrastructure">
|
|
46
|
+
{placeholder && (
|
|
47
|
+
<Alert variant="info">
|
|
48
|
+
{german
|
|
49
|
+
? 'Vorschau mit Beispieldaten: Hostingangaben in .env ergänzen.'
|
|
50
|
+
: 'Preview with example data: Complete the hosting details in .env.'}
|
|
51
|
+
</Alert>
|
|
52
|
+
)}
|
|
53
|
+
<Feature
|
|
54
|
+
icon="Server"
|
|
55
|
+
title={german ? 'Hosting-Infrastruktur' : 'Hosting infrastructure'}
|
|
56
|
+
layout="card"
|
|
57
|
+
color="primary"
|
|
58
|
+
>
|
|
59
|
+
<p>
|
|
60
|
+
<a
|
|
61
|
+
href={values.PRIVACY_HOST_URL}
|
|
62
|
+
{...externalLinkAttributes(values.PRIVACY_HOST_URL, site)}
|
|
63
|
+
>
|
|
64
|
+
{values.PRIVACY_HOST_NAME}
|
|
65
|
+
</a>
|
|
66
|
+
</p>
|
|
67
|
+
<address>{values.PRIVACY_HOST_ADDRESS}</address>
|
|
68
|
+
<p>
|
|
69
|
+
<strong>
|
|
70
|
+
{german ? 'Serverstandort:' : 'Server location:'}
|
|
71
|
+
</strong>{' '}
|
|
72
|
+
{values.PRIVACY_SERVER_CITY}, {country}
|
|
73
|
+
</p>
|
|
74
|
+
<p>
|
|
75
|
+
<a
|
|
76
|
+
href={values.PRIVACY_HOST_PRIVACY_URL}
|
|
77
|
+
{...externalLinkAttributes(
|
|
78
|
+
values.PRIVACY_HOST_PRIVACY_URL,
|
|
79
|
+
site,
|
|
80
|
+
)}
|
|
81
|
+
>
|
|
82
|
+
{german
|
|
83
|
+
? 'Datenschutzhinweise des Hosting-Anbieters'
|
|
84
|
+
: 'Hosting provider privacy information'}
|
|
85
|
+
</a>
|
|
86
|
+
</p>
|
|
87
|
+
</Feature>
|
|
88
|
+
</div>
|
|
89
|
+
)}
|
package/src/themes/default/components/molecules/PrivacyInfrastructure/PrivacyInfrastructure.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ss-privacy-infrastructure {
|
|
3
|
+
address {
|
|
4
|
+
font-style: normal;
|
|
5
|
+
margin-bottom: 0.75rem;
|
|
6
|
+
}
|
|
7
|
+
a {
|
|
8
|
+
color: var(--color-primary);
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
text-underline-offset: 0.2em;
|
|
11
|
+
&:hover {
|
|
12
|
+
text-decoration: underline;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,57 +1,152 @@
|
|
|
1
1
|
---
|
|
2
|
+
import type { ComponentProps } from 'astro/types';
|
|
3
|
+
import { siGithub, siInstagram, siFacebook } from 'simple-icons';
|
|
2
4
|
import BrandLogo from '../../atoms/BrandLogo/BrandLogo.astro';
|
|
5
|
+
import Icon from '../../atoms/Icon/Icon.astro';
|
|
6
|
+
import LanguageSwitcher from '../../molecules/LanguageSwitcher/LanguageSwitcher.astro';
|
|
3
7
|
import version from '../../../../../../VERSION?raw';
|
|
4
8
|
import { t } from '../../../i18n/index.js';
|
|
5
9
|
import type { SiteConfig } from '../../../../../lib/sproutsite/types.js';
|
|
6
10
|
import {
|
|
7
11
|
contentHref,
|
|
8
|
-
|
|
12
|
+
externalLinkAttributes,
|
|
9
13
|
} from '../../../../../lib/sproutsite/urls.js';
|
|
10
14
|
interface Props {
|
|
11
15
|
site: SiteConfig;
|
|
16
|
+
route: string;
|
|
12
17
|
}
|
|
13
|
-
const { site } = Astro.props;
|
|
18
|
+
const { site, route } = Astro.props;
|
|
19
|
+
const language = site.language === 'de' ? 'de' : 'en';
|
|
20
|
+
const socialIcons = {
|
|
21
|
+
github: siGithub,
|
|
22
|
+
instagram: siInstagram,
|
|
23
|
+
facebook: siFacebook,
|
|
24
|
+
};
|
|
25
|
+
const linkAttributes = (href: string) => ({
|
|
26
|
+
href: contentHref(href, site),
|
|
27
|
+
...externalLinkAttributes(href, site),
|
|
28
|
+
});
|
|
14
29
|
---
|
|
15
30
|
|
|
16
31
|
<footer class="ss-footer">
|
|
17
32
|
<div class="ss-footer__inner site-shell">
|
|
18
|
-
<div class="ss-
|
|
33
|
+
<div class="ss-footer__top">
|
|
19
34
|
<div class="ss-footer__brand">
|
|
20
35
|
<a
|
|
21
36
|
href={contentHref('/', site)}
|
|
22
|
-
aria-label={`${site.name}: ${t(
|
|
37
|
+
aria-label={`${site.name}: ${t(language, 'home')}`}
|
|
23
38
|
>
|
|
24
39
|
<BrandLogo name={site.name} />
|
|
25
40
|
</a>
|
|
26
|
-
<
|
|
41
|
+
<p>{site.footer.text}</p>
|
|
27
42
|
</div>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
43
|
+
{(site.footer.groups ?? []).map((group) => (
|
|
44
|
+
<nav class="ss-footer__group" aria-label={group.title}>
|
|
45
|
+
<h2 class="ss-footer__heading">{group.title}</h2>
|
|
46
|
+
<ul>
|
|
47
|
+
{group.links.map((link) => (
|
|
48
|
+
<li>
|
|
49
|
+
<a {...linkAttributes(link.href)}>
|
|
50
|
+
{link.icon && (
|
|
51
|
+
<span class="ss-footer__link-icon">
|
|
52
|
+
<Icon
|
|
53
|
+
name={
|
|
54
|
+
link.icon as ComponentProps<
|
|
55
|
+
typeof Icon
|
|
56
|
+
>['name']
|
|
57
|
+
}
|
|
58
|
+
size={20}
|
|
59
|
+
strokeWidth={1.5}
|
|
60
|
+
/>
|
|
61
|
+
</span>
|
|
62
|
+
)}
|
|
63
|
+
<span>{link.label}</span>
|
|
64
|
+
<span class="ss-footer__chevron">
|
|
65
|
+
<Icon
|
|
66
|
+
name="ChevronRight"
|
|
67
|
+
size={18}
|
|
68
|
+
strokeWidth={1.5}
|
|
69
|
+
/>
|
|
70
|
+
</span>
|
|
71
|
+
</a>
|
|
72
|
+
</li>
|
|
73
|
+
))}
|
|
74
|
+
</ul>
|
|
75
|
+
</nav>
|
|
76
|
+
))}
|
|
77
|
+
{site.footer.social && (
|
|
78
|
+
<div class="ss-footer__social">
|
|
79
|
+
<h2 class="ss-footer__heading">
|
|
80
|
+
{site.footer.social.title}
|
|
81
|
+
</h2>
|
|
82
|
+
<ul>
|
|
83
|
+
{site.footer.social.links.map((link) => (
|
|
84
|
+
<li>
|
|
85
|
+
<a
|
|
86
|
+
{...linkAttributes(link.href)}
|
|
87
|
+
aria-label={link.label}
|
|
88
|
+
>
|
|
89
|
+
<svg
|
|
90
|
+
viewBox="0 0 24 24"
|
|
91
|
+
width="24"
|
|
92
|
+
height="24"
|
|
93
|
+
fill="currentColor"
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
focusable="false"
|
|
96
|
+
>
|
|
97
|
+
<path
|
|
98
|
+
d={socialIcons[link.platform].path}
|
|
99
|
+
/>
|
|
100
|
+
</svg>
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
))}
|
|
104
|
+
</ul>
|
|
105
|
+
</div>
|
|
34
106
|
)}
|
|
35
|
-
>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
107
|
+
</div>
|
|
108
|
+
<div class="ss-footer__bottom">
|
|
109
|
+
<div class="ss-footer__credits">
|
|
110
|
+
{site.footer.copyright && <span>{site.footer.copyright}</span>}
|
|
111
|
+
{site.footer.showVersion !== false && (
|
|
112
|
+
<span class="ss-footer__version">
|
|
113
|
+
<a
|
|
114
|
+
{...linkAttributes(
|
|
115
|
+
`https://github.com/sproutsite/sproutsite/releases/tag/${version.trim()}`,
|
|
116
|
+
)}
|
|
117
|
+
>
|
|
118
|
+
Version {version.trim()}
|
|
119
|
+
</a>
|
|
120
|
+
</span>
|
|
121
|
+
)}
|
|
122
|
+
</div>
|
|
123
|
+
<div class="ss-footer__utilities">
|
|
124
|
+
{site.footer.links.length > 0 && (
|
|
125
|
+
<nav aria-label={t(language, 'footerNavigation')}>
|
|
126
|
+
<ul class="ss-footer__links">
|
|
127
|
+
{site.footer.links.map((link) => (
|
|
128
|
+
<li>
|
|
129
|
+
<a {...linkAttributes(link.href)}>
|
|
130
|
+
{link.label}
|
|
131
|
+
</a>
|
|
132
|
+
</li>
|
|
133
|
+
))}
|
|
134
|
+
</ul>
|
|
135
|
+
</nav>
|
|
136
|
+
)}
|
|
137
|
+
{site.footer.languageSwitcher && (
|
|
138
|
+
<>
|
|
139
|
+
{site.footer.links.length > 0 && (
|
|
140
|
+
<span aria-hidden="true">·</span>
|
|
141
|
+
)}
|
|
142
|
+
<LanguageSwitcher
|
|
143
|
+
site={site}
|
|
144
|
+
route={route}
|
|
145
|
+
placement="footer"
|
|
146
|
+
/>
|
|
147
|
+
</>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
56
151
|
</div>
|
|
57
152
|
</footer>
|