sproutsite 0.5.23 → 0.5.25
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 +46 -8
- package/THIRD_PARTY_NOTICES.md +5 -3
- package/VERSION +1 -1
- package/package.json +4 -2
- package/src/lib/sproutsite/branding.ts +150 -0
- package/src/lib/sproutsite/hero-background.ts +61 -0
- package/src/lib/sproutsite/public-assets.ts +33 -0
- package/src/lib/sproutsite/remark-links.ts +4 -3
- package/src/lib/sproutsite/site-config.ts +211 -24
- package/src/lib/sproutsite/sitemap.ts +2 -2
- package/src/lib/sproutsite/types.ts +8 -9
- package/src/lib/sproutsite/urls.ts +3 -3
- package/src/lib/sproutsite/validation.ts +4 -1
- package/src/package/config.ts +25 -8
- package/src/package/content.ts +25 -1
- package/src/package/manifest.ts +5 -10
- package/src/package/page.astro +6 -3
- package/src/package/starter-assets/README.md +85 -0
- package/src/package/starter-assets/manifest.json +95 -0
- package/src/package/starter-assets/public/LICENSE.txt +202 -0
- package/src/package/starter-assets/public/NOTICE.txt +10 -0
- package/src/package/starter-assets/public/branding/apple-touch-icon.png +0 -0
- package/src/package/starter-assets/public/branding/favicon-16.png +0 -0
- package/src/package/starter-assets/public/branding/favicon-32.png +0 -0
- package/src/package/starter-assets/public/branding/favicon-48.png +0 -0
- package/src/package/starter-assets/public/branding/favicon.ico +0 -0
- package/src/package/starter-assets/public/branding/favicon.svg +1 -0
- package/src/package/starter-assets/public/branding/icon-192.png +0 -0
- package/src/package/starter-assets/public/branding/icon-512.png +0 -0
- package/src/package/starter-assets/public/branding/logo-light.svg +1 -0
- package/src/package/starter-assets/public/branding/logo.svg +1 -0
- package/src/package/starter-assets/public/branding/sharing-image.png +0 -0
- package/src/package/starter-assets/public/images/hero.jpg +0 -0
- package/src/package/starter-assets/sources/hero.svg +12 -0
- package/src/package/starter-assets/sources/sharing-image.svg +18 -0
- package/src/themes/default/branding.ts +53 -0
- package/src/themes/default/components/atoms/BrandLogo/BrandLogo.astro +49 -12
- package/src/themes/default/components/atoms/BrandLogo/BrandLogo.css +28 -0
- package/src/themes/default/components/atoms/HeroBackground/HeroBackground.astro +52 -0
- package/src/themes/default/components/atoms/HeroBackground/HeroBackground.css +23 -0
- package/src/themes/default/components/molecules/LanguageSwitcher/LanguageSwitcher.astro +8 -5
- package/src/themes/default/components/organisms/BlogIndex/BlogIndex.astro +16 -13
- package/src/themes/default/components/organisms/BlogPost/BlogPost.astro +1 -1
- package/src/themes/default/components/organisms/Footer/Footer.astro +2 -2
- package/src/themes/default/components/organisms/Footer/Footer.css +3 -1
- package/src/themes/default/components/organisms/Header/Header.astro +4 -4
- package/src/themes/default/components/organisms/Header/Header.css +7 -1
- package/src/themes/default/components/organisms/Hero/Hero.astro +12 -13
- package/src/themes/default/components/organisms/Hero/Hero.css +7 -18
- package/src/themes/default/components/organisms/PageTitle/PageTitle.astro +19 -0
- package/src/themes/default/layouts/ErrorPage/ErrorPage.astro +7 -6
- package/src/themes/default/layouts/PageLayout/PageLayout.astro +26 -35
- package/src/themes/default/styles/theme.css +1 -0
- package/src/themes/default/assets/hero-waves.svg +0 -41
|
@@ -17,14 +17,16 @@ interface Props {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const { posts, site } = Astro.props;
|
|
20
|
-
const locale = site.
|
|
20
|
+
const locale = site.i18n.locale === 'de' ? 'de' : 'en';
|
|
21
21
|
const blog = site.blog ?? {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
hero: {
|
|
23
|
+
title: 'Blog',
|
|
24
|
+
description: t(locale, 'blogDescription'),
|
|
25
|
+
eyebrow: t(locale, 'blogEyebrow'),
|
|
26
|
+
},
|
|
27
|
+
articles: { heading: t(locale, 'blogHeading') },
|
|
26
28
|
};
|
|
27
|
-
const dateFormatter = new Intl.DateTimeFormat(site.
|
|
29
|
+
const dateFormatter = new Intl.DateTimeFormat(site.i18n.locale, {
|
|
28
30
|
day: '2-digit',
|
|
29
31
|
month: 'long',
|
|
30
32
|
year: 'numeric',
|
|
@@ -34,15 +36,16 @@ const dateFormatter = new Intl.DateTimeFormat(site.language, {
|
|
|
34
36
|
|
|
35
37
|
<PageLayout
|
|
36
38
|
site={site}
|
|
37
|
-
title={blog.title}
|
|
38
|
-
description={blog.description}
|
|
39
|
+
title={blog.hero.title}
|
|
40
|
+
description={blog.hero.description}
|
|
39
41
|
route="/blog/"
|
|
40
42
|
>
|
|
41
43
|
<PageTitle
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
site={site}
|
|
45
|
+
title={blog.hero.title}
|
|
46
|
+
eyebrow={blog.hero.eyebrow}
|
|
47
|
+
description={blog.hero.description}
|
|
48
|
+
classes={site.hero.classes}
|
|
46
49
|
variant="hero"
|
|
47
50
|
/>
|
|
48
51
|
<section
|
|
@@ -51,7 +54,7 @@ const dateFormatter = new Intl.DateTimeFormat(site.language, {
|
|
|
51
54
|
>
|
|
52
55
|
<div class="ss-section__inner site-shell">
|
|
53
56
|
<div class="content-prose ss-blog-index__content">
|
|
54
|
-
<h2 id="blog-overview">{blog.heading}</h2>
|
|
57
|
+
<h2 id="blog-overview">{blog.articles.heading}</h2>
|
|
55
58
|
<div class="ss-blog-index__grid">
|
|
56
59
|
{posts.map((post) => (
|
|
57
60
|
<Card
|
|
@@ -20,7 +20,7 @@ interface Props {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const { post, site, HeroContent, sections } = Astro.props;
|
|
23
|
-
const dateFormatter = new Intl.DateTimeFormat(site.
|
|
23
|
+
const dateFormatter = new Intl.DateTimeFormat(site.i18n.locale, {
|
|
24
24
|
day: '2-digit',
|
|
25
25
|
month: 'long',
|
|
26
26
|
year: 'numeric',
|
|
@@ -16,7 +16,7 @@ interface Props {
|
|
|
16
16
|
route: string;
|
|
17
17
|
}
|
|
18
18
|
const { site, route } = Astro.props;
|
|
19
|
-
const language = site.
|
|
19
|
+
const language = site.i18n.locale === 'de' ? 'de' : 'en';
|
|
20
20
|
const socialIcons = {
|
|
21
21
|
github: siGithub,
|
|
22
22
|
instagram: siInstagram,
|
|
@@ -36,7 +36,7 @@ const linkAttributes = (href: string) => ({
|
|
|
36
36
|
href={contentHref('/', site)}
|
|
37
37
|
aria-label={`${site.name}: ${t(language, 'home')}`}
|
|
38
38
|
>
|
|
39
|
-
<BrandLogo
|
|
39
|
+
<BrandLogo site={site} placement="footer" />
|
|
40
40
|
</a>
|
|
41
41
|
<p>{site.footer.text}</p>
|
|
42
42
|
</div>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.ss-footer {
|
|
3
|
+
--ss-logo-light-visibility: hidden;
|
|
4
|
+
--ss-logo-dark-visibility: visible;
|
|
3
5
|
border-top: 1px solid
|
|
4
6
|
color-mix(
|
|
5
7
|
in srgb,
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
@media (width < 72rem) {
|
|
72
74
|
gap: 0.5rem;
|
|
73
75
|
}
|
|
74
|
-
img {
|
|
76
|
+
&:not(.ss-brand-logo--custom) img {
|
|
75
77
|
width: 3rem;
|
|
76
78
|
height: 3rem;
|
|
77
79
|
}
|
|
@@ -17,7 +17,7 @@ interface Props {
|
|
|
17
17
|
route: string;
|
|
18
18
|
}
|
|
19
19
|
const { site, route } = Astro.props;
|
|
20
|
-
const language = site.
|
|
20
|
+
const language = site.i18n.locale === 'de' ? 'de' : 'en';
|
|
21
21
|
const hasLanguageSwitcher = site.header.links.some(
|
|
22
22
|
(link) => link.type === 'language-switcher',
|
|
23
23
|
);
|
|
@@ -26,7 +26,7 @@ const hasLanguageSwitcher = site.header.links.some(
|
|
|
26
26
|
<header class="ss-header">
|
|
27
27
|
<div class="ss-header__inner site-shell">
|
|
28
28
|
<a class="ss-header__brand" href={contentHref('/', site)}>
|
|
29
|
-
<BrandLogo
|
|
29
|
+
<BrandLogo site={site} />
|
|
30
30
|
</a>
|
|
31
31
|
<div class="ss-header__mobile-tools">
|
|
32
32
|
{hasLanguageSwitcher && (
|
|
@@ -51,7 +51,7 @@ const hasLanguageSwitcher = site.header.links.some(
|
|
|
51
51
|
<nav
|
|
52
52
|
class="ss-header__nav"
|
|
53
53
|
aria-label={t(
|
|
54
|
-
site.
|
|
54
|
+
site.i18n.locale === 'de' ? 'de' : 'en',
|
|
55
55
|
'primaryNavigation',
|
|
56
56
|
)}
|
|
57
57
|
>
|
|
@@ -126,7 +126,7 @@ const hasLanguageSwitcher = site.header.links.some(
|
|
|
126
126
|
>
|
|
127
127
|
<div class="ss-header__dialog-top site-shell">
|
|
128
128
|
<a class="ss-header__dialog-brand" href={contentHref('/', site)}>
|
|
129
|
-
<BrandLogo
|
|
129
|
+
<BrandLogo site={site} />
|
|
130
130
|
</a>
|
|
131
131
|
<button
|
|
132
132
|
type="button"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.ss-header {
|
|
3
|
+
--ss-logo-light-visibility: hidden;
|
|
4
|
+
--ss-logo-dark-visibility: visible;
|
|
3
5
|
--ss-header-active-underline: var(--color-hero-cyan);
|
|
4
6
|
--ss-header-cta-outline: var(--color-primary-content);
|
|
5
7
|
--ss-header-dropdown-bg: var(--color-hero-navy);
|
|
@@ -80,6 +82,8 @@
|
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
&.ss-header--scrolled {
|
|
85
|
+
--ss-logo-light-visibility: visible;
|
|
86
|
+
--ss-logo-dark-visibility: hidden;
|
|
83
87
|
--ss-header-active-underline: currentColor;
|
|
84
88
|
--ss-header-cta-outline: var(--color-base-content);
|
|
85
89
|
--ss-header-dropdown-bg: var(--color-base-100);
|
|
@@ -125,6 +129,8 @@
|
|
|
125
129
|
}
|
|
126
130
|
|
|
127
131
|
.ss-header__dialog {
|
|
132
|
+
--ss-logo-light-visibility: hidden;
|
|
133
|
+
--ss-logo-dark-visibility: visible;
|
|
128
134
|
--ss-brand-highlight: var(--color-hero-cyan);
|
|
129
135
|
--ss-header-active-underline: var(--color-hero-cyan);
|
|
130
136
|
--ss-header-cta-outline: var(--color-primary-content);
|
|
@@ -266,7 +272,7 @@
|
|
|
266
272
|
font-size: 1.25rem;
|
|
267
273
|
gap: 0.5rem;
|
|
268
274
|
}
|
|
269
|
-
.ss-brand-logo img {
|
|
275
|
+
.ss-brand-logo:not(.ss-brand-logo--custom) img {
|
|
270
276
|
width: 2rem;
|
|
271
277
|
height: 2rem;
|
|
272
278
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { CollectionEntry } from 'astro:content';
|
|
3
|
-
import
|
|
3
|
+
import HeroBackground from '../../atoms/HeroBackground/HeroBackground.astro';
|
|
4
|
+
import {
|
|
5
|
+
selectHeroBackground,
|
|
6
|
+
isSvgHeroImage,
|
|
7
|
+
} from '../../../../../lib/sproutsite/hero-background.js';
|
|
4
8
|
import { toneOf } from '../../../../../lib/sproutsite/pages.js';
|
|
5
9
|
import type { SiteConfig } from '../../../../../lib/sproutsite/types.js';
|
|
6
10
|
import Button from '../../atoms/Button/Button.astro';
|
|
@@ -21,9 +25,12 @@ const toneClass = {
|
|
|
21
25
|
}[toneOf(hero)];
|
|
22
26
|
const heroClasses =
|
|
23
27
|
hero.data.classes === undefined
|
|
24
|
-
? site.
|
|
28
|
+
? site.hero.classes
|
|
25
29
|
: (hero.data.classes ?? []);
|
|
26
|
-
const backgroundImage =
|
|
30
|
+
const backgroundImage = selectHeroBackground(
|
|
31
|
+
hero.data['background-image'],
|
|
32
|
+
site.hero['background-image'],
|
|
33
|
+
);
|
|
27
34
|
const heroTitle = hero.data.title;
|
|
28
35
|
if (!heroTitle) throw new Error('Sproutsite Hero requires a title.');
|
|
29
36
|
const titleHighlight = hero.data.titleHighlight;
|
|
@@ -47,21 +54,13 @@ const titleLines = heroTitle.split('\n').map((line) => {
|
|
|
47
54
|
'ss-hero',
|
|
48
55
|
`ss-hero--${hero.data.type ?? 'small'}`,
|
|
49
56
|
{ 'ss-hero--has-background-image': Boolean(backgroundImage) },
|
|
57
|
+
{ 'ss-hero--background-svg': isSvgHeroImage(backgroundImage) },
|
|
50
58
|
...heroClasses,
|
|
51
59
|
]}
|
|
52
60
|
aria-labelledby="page-title"
|
|
53
61
|
>
|
|
54
62
|
{backgroundImage && (
|
|
55
|
-
<
|
|
56
|
-
class="ss-hero__background"
|
|
57
|
-
src={backgroundImage}
|
|
58
|
-
alt=""
|
|
59
|
-
format="webp"
|
|
60
|
-
quality={82}
|
|
61
|
-
loading="eager"
|
|
62
|
-
decoding="async"
|
|
63
|
-
aria-hidden="true"
|
|
64
|
-
/>
|
|
63
|
+
<HeroBackground source={backgroundImage} base={site.base} />
|
|
65
64
|
)}
|
|
66
65
|
<div class="ss-hero__inner site-shell">
|
|
67
66
|
{hero.data.eyebrow && <Eyebrow>{hero.data.eyebrow}</Eyebrow>}
|
|
@@ -101,14 +101,11 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.ss-hero__background {
|
|
105
|
-
@apply pointer-events-none absolute inset-0 z-0 size-full object-cover object-center;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
104
|
&.ss-hero--has-background-image {
|
|
109
105
|
@apply text-primary-content;
|
|
110
106
|
|
|
111
|
-
|
|
107
|
+
&:not(.ss-hero--background-svg)::before,
|
|
108
|
+
&.ss-hero--background-svg:not(.ss-hero--theme-1)::before {
|
|
112
109
|
content: '';
|
|
113
110
|
@apply pointer-events-none absolute inset-0 z-[1];
|
|
114
111
|
background:
|
|
@@ -143,7 +140,7 @@
|
|
|
143
140
|
|
|
144
141
|
&::before {
|
|
145
142
|
content: '';
|
|
146
|
-
@apply pointer-events-none absolute inset-0;
|
|
143
|
+
@apply pointer-events-none absolute inset-0 z-[1];
|
|
147
144
|
background-image:
|
|
148
145
|
linear-gradient(
|
|
149
146
|
90deg,
|
|
@@ -160,27 +157,19 @@
|
|
|
160
157
|
color-mix(in srgb, var(--color-hero-navy) 35%, transparent)
|
|
161
158
|
5rem,
|
|
162
159
|
transparent 10rem
|
|
163
|
-
)
|
|
164
|
-
url('../../../assets/hero-waves.svg');
|
|
165
|
-
/* Fill wide heroes proportionally so the lower blue contours
|
|
166
|
-
* reach the middle; bottom alignment preserves their layering. */
|
|
160
|
+
);
|
|
167
161
|
background-size: cover;
|
|
168
162
|
background-position:
|
|
169
163
|
right bottom,
|
|
170
|
-
right bottom
|
|
171
|
-
right top;
|
|
164
|
+
right bottom;
|
|
172
165
|
background-repeat: no-repeat;
|
|
173
166
|
}
|
|
174
167
|
|
|
175
|
-
/* Keep
|
|
176
|
-
*
|
|
168
|
+
/* Keep the overlay subtle on tablets and phones. SVG sizing lives
|
|
169
|
+
* in the shared HeroBackground atom, independently of this class. */
|
|
177
170
|
@media (max-width: 63.999rem) {
|
|
178
171
|
&::before {
|
|
179
172
|
opacity: 0.5;
|
|
180
|
-
background-size:
|
|
181
|
-
cover,
|
|
182
|
-
cover,
|
|
183
|
-
auto 100%;
|
|
184
173
|
}
|
|
185
174
|
}
|
|
186
175
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
import Eyebrow from '../../atoms/Eyebrow/Eyebrow.astro';
|
|
3
|
+
import HeroBackground from '../../atoms/HeroBackground/HeroBackground.astro';
|
|
4
|
+
import type { SiteConfig } from '../../../../../lib/sproutsite/types.js';
|
|
5
|
+
import { isSvgHeroImage } from '../../../../../lib/sproutsite/hero-background.js';
|
|
3
6
|
|
|
4
7
|
interface Props {
|
|
5
8
|
title: string;
|
|
9
|
+
site: SiteConfig;
|
|
6
10
|
classes: string[];
|
|
7
11
|
eyebrow?: string;
|
|
8
12
|
description?: string;
|
|
@@ -11,6 +15,7 @@ interface Props {
|
|
|
11
15
|
|
|
12
16
|
const {
|
|
13
17
|
title,
|
|
18
|
+
site,
|
|
14
19
|
classes,
|
|
15
20
|
eyebrow,
|
|
16
21
|
description,
|
|
@@ -25,10 +30,24 @@ const {
|
|
|
25
30
|
'ss-hero--small',
|
|
26
31
|
'ss-page-title',
|
|
27
32
|
`ss-page-title--${variant}`,
|
|
33
|
+
{
|
|
34
|
+
'ss-hero--has-background-image': Boolean(
|
|
35
|
+
site.hero['background-image'],
|
|
36
|
+
),
|
|
37
|
+
'ss-hero--background-svg': isSvgHeroImage(
|
|
38
|
+
site.hero['background-image'],
|
|
39
|
+
),
|
|
40
|
+
},
|
|
28
41
|
...classes,
|
|
29
42
|
]}
|
|
30
43
|
aria-labelledby="page-title"
|
|
31
44
|
>
|
|
45
|
+
{site.hero['background-image'] && (
|
|
46
|
+
<HeroBackground
|
|
47
|
+
source={site.hero['background-image']}
|
|
48
|
+
base={site.base}
|
|
49
|
+
/>
|
|
50
|
+
)}
|
|
32
51
|
<div class="ss-hero__inner ss-page-title__inner site-shell">
|
|
33
52
|
{eyebrow && <Eyebrow>{eyebrow}</Eyebrow>}
|
|
34
53
|
<h1 id="page-title" class="ss-hero__title ss-page-title__title">
|
|
@@ -10,11 +10,12 @@ interface Props {
|
|
|
10
10
|
}
|
|
11
11
|
const { status } = Astro.props;
|
|
12
12
|
const defaultSite = loadSiteConfig();
|
|
13
|
-
const
|
|
14
|
-
defaultSite.locales.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const site =
|
|
13
|
+
const locale =
|
|
14
|
+
defaultSite.i18n.locales.find((candidate) =>
|
|
15
|
+
Astro.url.pathname.startsWith(`${defaultSite.base}${candidate}/`),
|
|
16
|
+
) ?? defaultSite.i18n.defaultLocale;
|
|
17
|
+
const site = loadSiteConfig(locale);
|
|
18
|
+
const german = site.i18n.locale === 'de';
|
|
18
19
|
const introduction = german
|
|
19
20
|
? status === 404
|
|
20
21
|
? 'Diese Adresse führt gerade ins Grüne.'
|
|
@@ -70,7 +71,7 @@ const copy = german
|
|
|
70
71
|
site={site}
|
|
71
72
|
title={copy.eyebrow}
|
|
72
73
|
description={copy.description}
|
|
73
|
-
route={`/${status}${site.
|
|
74
|
+
route={`/${status}${site.i18n.locale === defaultSite.i18n.defaultLocale ? '' : `-${site.i18n.locale}`}.html`}
|
|
74
75
|
noindex
|
|
75
76
|
>
|
|
76
77
|
<Hero
|
|
@@ -5,13 +5,7 @@ import { t } from '../../i18n/index.js';
|
|
|
5
5
|
import Footer from '../../components/organisms/Footer/Footer.astro';
|
|
6
6
|
import type { SiteConfig } from '../../../../lib/sproutsite/types.js';
|
|
7
7
|
import { canonicalUrl, withBase } from '../../../../lib/sproutsite/urls.js';
|
|
8
|
-
import
|
|
9
|
-
import faviconIco from '../../assets/branding/favicon.ico?url&no-inline';
|
|
10
|
-
import favicon16 from '../../assets/branding/favicon-16x16.png';
|
|
11
|
-
import favicon32 from '../../assets/branding/favicon-32x32.png';
|
|
12
|
-
import favicon48 from '../../assets/branding/favicon-48x48.png';
|
|
13
|
-
import appleIcon from '../../assets/branding/apple-touch-icon.png';
|
|
14
|
-
import socialCard from '../../assets/branding/social-card.png';
|
|
8
|
+
import { resolveBranding } from '../../branding.js';
|
|
15
9
|
interface Props {
|
|
16
10
|
site: SiteConfig;
|
|
17
11
|
title: string;
|
|
@@ -32,12 +26,12 @@ const documentTitle = `${title} | ${site.name}`;
|
|
|
32
26
|
const canonical = noindex
|
|
33
27
|
? new URL(withBase(route, site.base), site.url).href
|
|
34
28
|
: canonicalUrl(route, site);
|
|
35
|
-
const
|
|
36
|
-
const socialImage =
|
|
29
|
+
const branding = await resolveBranding(site);
|
|
30
|
+
const socialImage = branding.sharingImage;
|
|
37
31
|
---
|
|
38
32
|
|
|
39
33
|
<!doctype html>
|
|
40
|
-
<html lang={site.
|
|
34
|
+
<html lang={site.i18n.locale} data-theme="sproutsite">
|
|
41
35
|
<head>
|
|
42
36
|
<meta charset="utf-8" />
|
|
43
37
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
@@ -50,47 +44,44 @@ const socialImage = new URL(socialCard.src, site.url).href;
|
|
|
50
44
|
type="application/xml"
|
|
51
45
|
href={withBase('/sitemap.xml', site.base)}
|
|
52
46
|
/>
|
|
53
|
-
<link rel="icon" type="image/svg+xml" href={favicon} />
|
|
54
47
|
<link
|
|
55
48
|
rel="icon"
|
|
56
|
-
type=
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
type={branding.favicon.type}
|
|
50
|
+
href={branding.favicon.src}
|
|
51
|
+
/>
|
|
52
|
+
{branding.shortcut && (
|
|
53
|
+
<link rel="icon" type="image/x-icon" href={branding.shortcut} />
|
|
54
|
+
)}
|
|
55
|
+
<link
|
|
56
|
+
rel="apple-touch-icon"
|
|
57
|
+
sizes="180x180"
|
|
58
|
+
href={branding.appleTouch}
|
|
59
59
|
/>
|
|
60
|
-
{[favicon16, favicon32, favicon48].map((icon) => (
|
|
61
|
-
<link
|
|
62
|
-
rel="icon"
|
|
63
|
-
type="image/png"
|
|
64
|
-
sizes={`${icon.width}x${icon.height}`}
|
|
65
|
-
href={icon.src}
|
|
66
|
-
/>
|
|
67
|
-
))}
|
|
68
|
-
<link rel="apple-touch-icon" sizes="180x180" href={appleIcon.src} />
|
|
69
60
|
<link rel="manifest" href={withBase('/site.webmanifest', site.base)} />
|
|
70
61
|
<meta property="og:title" content={documentTitle} />
|
|
71
62
|
<meta property="og:description" content={description} />
|
|
72
63
|
<meta property="og:url" content={canonical} />
|
|
73
64
|
<meta property="og:site_name" content={site.name} />
|
|
74
65
|
<meta property="og:type" content="website" />
|
|
75
|
-
{
|
|
66
|
+
{socialImage && (
|
|
76
67
|
<>
|
|
77
|
-
<meta property="og:image" content={socialImage} />
|
|
78
|
-
<meta property="og:image:width" content="1200" />
|
|
79
|
-
<meta property="og:image:height" content="630" />
|
|
68
|
+
<meta property="og:image" content={socialImage.src} />
|
|
80
69
|
<meta
|
|
81
|
-
property="og:image:
|
|
82
|
-
content=
|
|
70
|
+
property="og:image:width"
|
|
71
|
+
content={String(socialImage.width)}
|
|
83
72
|
/>
|
|
84
|
-
<meta name="twitter:image" content={socialImage} />
|
|
85
73
|
<meta
|
|
86
|
-
|
|
87
|
-
content=
|
|
74
|
+
property="og:image:height"
|
|
75
|
+
content={String(socialImage.height)}
|
|
88
76
|
/>
|
|
77
|
+
<meta property="og:image:alt" content={socialImage.alt} />
|
|
78
|
+
<meta name="twitter:image" content={socialImage.src} />
|
|
79
|
+
<meta name="twitter:image:alt" content={socialImage.alt} />
|
|
89
80
|
</>
|
|
90
81
|
)}
|
|
91
82
|
<meta
|
|
92
83
|
name="twitter:card"
|
|
93
|
-
content={
|
|
84
|
+
content={socialImage ? 'summary_large_image' : 'summary'}
|
|
94
85
|
/>
|
|
95
86
|
<meta name="twitter:title" content={documentTitle} />
|
|
96
87
|
<meta name="twitter:description" content={description} />
|
|
@@ -104,11 +95,11 @@ const socialImage = new URL(socialCard.src, site.url).href;
|
|
|
104
95
|
}}
|
|
105
96
|
class:list={{
|
|
106
97
|
'ss-page--landing': layout === 'landing',
|
|
107
|
-
'ss-links--external-icons': site.links?.
|
|
98
|
+
'ss-links--external-icons': site.links?.external?.icon === true,
|
|
108
99
|
}}
|
|
109
100
|
>
|
|
110
101
|
<a class="ss-skip-link" href="#main-content">
|
|
111
|
-
{t(site.
|
|
102
|
+
{t(site.i18n.locale === 'de' ? 'de' : 'en', 'skipToContent')}
|
|
112
103
|
</a>
|
|
113
104
|
{layout !== 'landing' && <Header site={site} route={route} />}
|
|
114
105
|
<main id="main-content">
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
/* Theme components: atoms, molecules, organisms, then layout primitives */
|
|
27
27
|
@import '../components/atoms/BrandLogo/BrandLogo.css';
|
|
28
|
+
@import '../components/atoms/HeroBackground/HeroBackground.css';
|
|
28
29
|
@import '../components/atoms/Badge/Badge.css';
|
|
29
30
|
@import '../components/atoms/Button/Button.css';
|
|
30
31
|
@import '../components/atoms/ContentImage/ContentImage.css';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="640" viewBox="0 0 1600 640" fill="none" aria-hidden="true">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="back-wave" x1="740" y1="580" x2="1540" y2="130" gradientUnits="userSpaceOnUse">
|
|
4
|
-
<stop stop-color="#0B294A" stop-opacity="0"/>
|
|
5
|
-
<stop offset="0.38" stop-color="#10476B" stop-opacity="0.50"/>
|
|
6
|
-
<stop offset="0.78" stop-color="#0B6075" stop-opacity="0.76"/>
|
|
7
|
-
<stop offset="1" stop-color="#087B78" stop-opacity="0.88"/>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
<linearGradient id="crest-base" x1="1030" y1="390" x2="1550" y2="-20" gradientUnits="userSpaceOnUse">
|
|
10
|
-
<stop stop-color="#0D2B50" stop-opacity="0.10"/>
|
|
11
|
-
<stop offset="0.35" stop-color="#125B86" stop-opacity="0.62"/>
|
|
12
|
-
<stop offset="0.7" stop-color="#078481" stop-opacity="0.90"/>
|
|
13
|
-
<stop offset="1" stop-color="#159A70" stop-opacity="0.92"/>
|
|
14
|
-
</linearGradient>
|
|
15
|
-
<radialGradient id="crest-green" cx="0" cy="0" r="1" gradientTransform="translate(1510 20) rotate(155) scale(350 225)" gradientUnits="userSpaceOnUse">
|
|
16
|
-
<stop stop-color="#73DF48" stop-opacity="0.92"/>
|
|
17
|
-
<stop offset="0.24" stop-color="#40BF61" stop-opacity="0.72"/>
|
|
18
|
-
<stop offset="0.58" stop-color="#159C78" stop-opacity="0.24"/>
|
|
19
|
-
<stop offset="1" stop-color="#159C78" stop-opacity="0"/>
|
|
20
|
-
</radialGradient>
|
|
21
|
-
<linearGradient id="middle-wave" x1="900" y1="450" x2="1540" y2="630" gradientUnits="userSpaceOnUse">
|
|
22
|
-
<stop stop-color="#0D3458" stop-opacity="0.12"/>
|
|
23
|
-
<stop offset="0.48" stop-color="#15567B" stop-opacity="0.75"/>
|
|
24
|
-
<stop offset="1" stop-color="#0B365C" stop-opacity="0.84"/>
|
|
25
|
-
</linearGradient>
|
|
26
|
-
<linearGradient id="front-wave" x1="1040" y1="565" x2="1530" y2="680" gradientUnits="userSpaceOnUse">
|
|
27
|
-
<stop stop-color="#0B2B4E" stop-opacity="0.18"/>
|
|
28
|
-
<stop offset="0.5" stop-color="#10446C" stop-opacity="0.75"/>
|
|
29
|
-
<stop offset="1" stop-color="#092947" stop-opacity="0.88"/>
|
|
30
|
-
</linearGradient>
|
|
31
|
-
<path id="crest-shape" d="M 820 690 C 970 620 1072 504 1166 378 C 1260 252 1334 115 1478 22 C 1544 -20 1611 -36 1680 -40 L 1680 700 Z"/>
|
|
32
|
-
</defs>
|
|
33
|
-
<!-- The SVG is transparent so the hero's existing navy background remains visible. -->
|
|
34
|
-
<path d="M 620 700 C 794 558 898 442 1086 390 C 1272 338 1456 395 1680 265 L 1680 700 Z" fill="url(#back-wave)"/>
|
|
35
|
-
<!-- Organic upper crest with a localized green highlight, not a green wall. -->
|
|
36
|
-
<use href="#crest-shape" fill="url(#crest-base)"/>
|
|
37
|
-
<use href="#crest-shape" fill="url(#crest-green)"/>
|
|
38
|
-
<!-- Low, flowing blue folds. Their curved edges stay inside the visible canvas. -->
|
|
39
|
-
<path d="M 670 700 C 832 621 956 543 1106 532 C 1242 522 1322 579 1458 524 C 1548 488 1618 477 1680 496 L 1680 700 Z" fill="url(#middle-wave)"/>
|
|
40
|
-
<path d="M 880 700 C 1050 653 1168 617 1304 628 C 1440 639 1544 568 1680 596 L 1680 700 Z" fill="url(#front-wave)"/>
|
|
41
|
-
</svg>
|