sproutsite 0.5.13 → 0.5.14

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 CHANGED
@@ -234,6 +234,8 @@ Add `type: language-switcher` to `header.links` to show the native disclosure dr
234
234
 
235
235
  Below 72rem, the header uses a hamburger button and a fullscreen native `<dialog>`. It reuses the same configured navigation, with an inline language selector and full-width CTA. A compact language selector also remains available in the closed header when configured. Native modal focus handling, Escape, localized open/close labels, scroll locking, and desktop resize restoration are supported. Without JavaScript, the ordinary wrapping navigation remains accessible. The desktop layout is unchanged.
236
236
 
237
+ The footer supports optional `groups` (`title` and `links` with optional Lucide `icon`), `social` (`title` and icon links with `platform`, `label`, `href`), `copyright`, `showVersion` and `languageSwitcher`. Supported social platforms are `github`, `instagram` and `facebook`; logos are rendered locally from CC0-licensed Simple Icons. Existing `footer.text` and `footer.links` remain supported; `links` is the lower utility row. Version visibility defaults to `true`, language selection to `false`; omitting groups or socials hides those areas. The footer language dropdown opens upward and uses the same translated-page matching as the header. See [Global website settings](https://sproutsite.dev/documentation/content/) for a complete YAML example.
238
+
237
239
  Every page is a directory under `src/content/pages/`:
238
240
 
239
241
  ```text
@@ -19,6 +19,8 @@ Both existing `OFL.txt` files are retained unchanged. The source font is from th
19
19
 
20
20
  ## Dependency licenses and notices
21
21
 
22
+ Footer social logos (GitHub, Instagram and Facebook) are rendered locally from `simple-icons` 16.38.0, distributed under [CC0 1.0 Universal](third-party-licenses/simple-icons-LICENSE). The full, unmodified upstream license is retained. Brand names and logos remain subject to their respective trademark rights; CC0 does not grant trademark rights. No remote icon service or social embed is loaded. The footer-wave SVG in `src/themes/default/assets/footer-waves.svg` was supplied by the maintainer on 2026-11-18; its separate provenance and redistribution permissions have not yet been confirmed. The existing hero-wave authorization should not be assumed to cover this new file.
23
+
22
24
  Language-selector flags are local SVG assets from `flag-icons` 7.6.0, licensed under MIT. The full, unmodified [upstream license](third-party-licenses/flag-icons-LICENSE), including Panayiotis Lipiridis's copyright notice, is retained for redistribution. Only the GB and DE SVGs used by the theme are bundled into the website; no flag CDN or external requests are required. Preserve the upstream notice when redistributing these assets.
23
25
 
24
26
  Lucide icons are rendered from `@lucide/astro` 1.73.0. Its full, unmodified [license text](third-party-licenses/lucide-LICENSE) is included with the npm package: ISC for Lucide, plus the upstream MIT notice and icon list for Feather-derived artwork. These icons retain their upstream licensing independently of the project-branding artwork below. Preserve the applicable notices when distributing rendered SVGs or a generated website containing them.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.13
1
+ 0.5.14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutsite",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Björn Hempel",
6
6
  "description": "Agent-ready, Markdown-first Static CMS powered by Astro and TypeScript.",
@@ -75,6 +75,7 @@
75
75
  "remark-gfm": "^4.0.1",
76
76
  "remark-mdx": "^3.1.1",
77
77
  "remark-parse": "^11.0.0",
78
+ "simple-icons": "^16.38.0",
78
79
  "tailwindcss": "^4.3.3",
79
80
  "unified": "^11.0.5",
80
81
  "unist-util-visit": "^5.1.0",
@@ -6,7 +6,21 @@ import type { SiteConfig } from './types.js';
6
6
 
7
7
  const linkSchema = z.object({
8
8
  label: z.string().trim().min(1),
9
- href: z.string().trim().min(1),
9
+ href: z
10
+ .string()
11
+ .trim()
12
+ .min(1)
13
+ .refine((href) => {
14
+ if (href.startsWith('//') || /[\u0000-\u0020\u007f\\]/.test(href))
15
+ return false;
16
+ try {
17
+ return ['http:', 'https:', 'mailto:', 'tel:'].includes(
18
+ new URL(href, 'https://example.invalid').protocol,
19
+ );
20
+ } catch {
21
+ return false;
22
+ }
23
+ }, 'must be a safe website, email or telephone link'),
10
24
  });
11
25
  const headerLinkSchema = linkSchema.extend({
12
26
  icon: z
@@ -80,6 +94,38 @@ const siteSchema = z.object({
80
94
  footer: z.object({
81
95
  text: z.string().trim().min(1),
82
96
  links: z.array(linkSchema),
97
+ groups: z
98
+ .array(
99
+ z
100
+ .object({
101
+ title: z.string().trim().min(1),
102
+ links: z.array(headerLinkSchema.strict()).min(1),
103
+ })
104
+ .strict(),
105
+ )
106
+ .optional(),
107
+ social: z
108
+ .object({
109
+ title: z.string().trim().min(1),
110
+ links: z
111
+ .array(
112
+ linkSchema
113
+ .extend({
114
+ platform: z.enum([
115
+ 'github',
116
+ 'instagram',
117
+ 'facebook',
118
+ ]),
119
+ })
120
+ .strict(),
121
+ )
122
+ .min(1),
123
+ })
124
+ .strict()
125
+ .optional(),
126
+ copyright: z.string().trim().min(1).optional(),
127
+ showVersion: z.boolean().optional(),
128
+ languageSwitcher: z.boolean().optional(),
83
129
  }),
84
130
  });
85
131
 
@@ -41,5 +41,16 @@ export interface SiteConfig {
41
41
  heading: string;
42
42
  };
43
43
  header: { links: HeaderItem[] };
44
- footer: { text: string; links: Link[] };
44
+ footer: {
45
+ text: string;
46
+ links: Link[];
47
+ groups?: { title: string; links: (Link & { icon?: string })[] }[];
48
+ social?: {
49
+ title: string;
50
+ links: (Link & { platform: 'github' | 'instagram' | 'facebook' })[];
51
+ };
52
+ copyright?: string;
53
+ showVersion?: boolean;
54
+ languageSwitcher?: boolean;
55
+ };
45
56
  }
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="180" viewBox="0 0 1600 180" fill="none" aria-hidden="true">
2
+ <defs>
3
+ <linearGradient id="back-wave" x1="540" y1="170" x2="1600" y2="55" 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="960" y1="168" 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 62) rotate(163) scale(370 98)" gradientUnits="userSpaceOnUse">
16
+ <stop stop-color="#73DF48" stop-opacity="0.83"/>
17
+ <stop offset="0.24" stop-color="#40BF61" stop-opacity="0.65"/>
18
+ <stop offset="0.58" stop-color="#159C78" stop-opacity="0.22"/>
19
+ <stop offset="1" stop-color="#159C78" stop-opacity="0"/>
20
+ </radialGradient>
21
+ <linearGradient id="middle-wave" x1="660" y1="95" x2="1550" y2="177" 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="920" y1="125" x2="1570" y2="185" 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 810 210 C 990 185 1135 132 1250 100 C 1380 64 1470 35 1600 30 L 1600 210 Z"/>
32
+ </defs>
33
+ <path d="M 0 167 C 245 174 410 160 615 143 C 805 125 950 129 1090 105 C 1300 70 1460 80 1600 45 L 1600 180 L 0 180 Z" fill="url(#back-wave)"/>
34
+ <use href="#crest-shape" fill="url(#crest-base)"/>
35
+ <use href="#crest-shape" fill="url(#crest-green)"/>
36
+ <path d="M 350 190 C 560 170 720 142 880 142 C 1050 142 1155 170 1300 142 C 1425 118 1515 115 1600 123 L 1600 190 Z" fill="url(#middle-wave)"/>
37
+ <path d="M 720 190 C 940 173 1070 157 1210 164 C 1365 174 1495 144 1600 151 L 1600 190 Z" fill="url(#front-wave)"/>
38
+ </svg>
@@ -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 class="ss-language-switcher">
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 name="Globe" size={20} />
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>
@@ -99,6 +99,28 @@
99
99
  flex-shrink: 0;
100
100
  }
101
101
 
102
+ &.ss-language-switcher--footer {
103
+ font-size: inherit;
104
+ --ss-header-dropdown-bg: var(--color-hero-navy);
105
+ --ss-header-dropdown-border: color-mix(
106
+ in srgb,
107
+ currentColor 35%,
108
+ transparent
109
+ );
110
+
111
+ .ss-language-switcher__options {
112
+ inset-block-start: auto;
113
+ inset-block-end: calc(100% + 1.5rem);
114
+
115
+ &::before {
116
+ inset-block-start: auto;
117
+ inset-block-end: 0;
118
+ translate: -50% 50%;
119
+ rotate: 225deg;
120
+ }
121
+ }
122
+ }
123
+
102
124
  .ss-header__dialog & {
103
125
  width: 100%;
104
126
 
@@ -1,5 +1,9 @@
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';
@@ -9,49 +13,150 @@ import {
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
+ target: isExternalWebLink(href, site.url) ? '_blank' : undefined,
28
+ rel: isExternalWebLink(href, site.url) ? 'noopener noreferrer' : undefined,
29
+ });
14
30
  ---
15
31
 
16
32
  <footer class="ss-footer">
17
33
  <div class="ss-footer__inner site-shell">
18
- <div class="ss-footer__text">
34
+ <div class="ss-footer__top">
19
35
  <div class="ss-footer__brand">
20
36
  <a
21
37
  href={contentHref('/', site)}
22
- aria-label={`${site.name}: ${t(site.language === 'de' ? 'de' : 'en', 'home')}`}
38
+ aria-label={`${site.name}: ${t(language, 'home')}`}
23
39
  >
24
40
  <BrandLogo name={site.name} />
25
41
  </a>
26
- <span class="ss-footer__version">Version {version.trim()}</span>
42
+ <p>{site.footer.text}</p>
27
43
  </div>
28
- <span>{site.footer.text}</span>
29
- </div>
30
- <nav
31
- aria-label={t(
32
- site.language === 'de' ? 'de' : 'en',
33
- 'footerNavigation',
44
+ {(site.footer.groups ?? []).map((group) => (
45
+ <nav class="ss-footer__group" aria-label={group.title}>
46
+ <h2 class="ss-footer__heading">{group.title}</h2>
47
+ <ul>
48
+ {group.links.map((link) => (
49
+ <li>
50
+ <a {...linkAttributes(link.href)}>
51
+ {link.icon && (
52
+ <span class="ss-footer__link-icon">
53
+ <Icon
54
+ name={
55
+ link.icon as ComponentProps<
56
+ typeof Icon
57
+ >['name']
58
+ }
59
+ size={20}
60
+ strokeWidth={1.5}
61
+ />
62
+ </span>
63
+ )}
64
+ <span>{link.label}</span>
65
+ {isExternalWebLink(link.href, site.url) && (
66
+ <span class="ss-footer__external">
67
+ <Icon
68
+ name="ArrowUpRight"
69
+ size={16}
70
+ strokeWidth={1.5}
71
+ />
72
+ </span>
73
+ )}
74
+ <span class="ss-footer__chevron">
75
+ <Icon
76
+ name="ChevronRight"
77
+ size={18}
78
+ strokeWidth={1.5}
79
+ />
80
+ </span>
81
+ </a>
82
+ </li>
83
+ ))}
84
+ </ul>
85
+ </nav>
86
+ ))}
87
+ {site.footer.social && (
88
+ <div class="ss-footer__social">
89
+ <h2 class="ss-footer__heading">
90
+ {site.footer.social.title}
91
+ </h2>
92
+ <ul>
93
+ {site.footer.social.links.map((link) => (
94
+ <li>
95
+ <a
96
+ {...linkAttributes(link.href)}
97
+ aria-label={link.label}
98
+ >
99
+ <svg
100
+ viewBox="0 0 24 24"
101
+ width="24"
102
+ height="24"
103
+ fill="currentColor"
104
+ aria-hidden="true"
105
+ focusable="false"
106
+ >
107
+ <path
108
+ d={socialIcons[link.platform].path}
109
+ />
110
+ </svg>
111
+ </a>
112
+ </li>
113
+ ))}
114
+ </ul>
115
+ </div>
34
116
  )}
35
- >
36
- <ul class="ss-footer__links">
37
- {site.footer.links.map((link, index) => {
38
- const external = isExternalWebLink(link.href, site.url);
39
- return (
40
- <li>
41
- {index > 0 && <span aria-hidden="true">·</span>}
42
- <a
43
- href={contentHref(link.href, site)}
44
- target={external ? '_blank' : undefined}
45
- rel={
46
- external ? 'noopener noreferrer' : undefined
47
- }
48
- >
49
- {link.label}
50
- </a>
51
- </li>
52
- );
53
- })}
54
- </ul>
55
- </nav>
117
+ </div>
118
+ <div class="ss-footer__bottom">
119
+ <div class="ss-footer__credits">
120
+ {site.footer.copyright && <span>{site.footer.copyright}</span>}
121
+ {site.footer.showVersion !== false && (
122
+ <span class="ss-footer__version">
123
+ <a
124
+ {...linkAttributes(
125
+ `https://github.com/sproutsite/sproutsite/releases/tag/${version.trim()}`,
126
+ )}
127
+ >
128
+ Version {version.trim()}
129
+ </a>
130
+ </span>
131
+ )}
132
+ </div>
133
+ <div class="ss-footer__utilities">
134
+ {site.footer.links.length > 0 && (
135
+ <nav aria-label={t(language, 'footerNavigation')}>
136
+ <ul class="ss-footer__links">
137
+ {site.footer.links.map((link) => (
138
+ <li>
139
+ <a {...linkAttributes(link.href)}>
140
+ {link.label}
141
+ </a>
142
+ </li>
143
+ ))}
144
+ </ul>
145
+ </nav>
146
+ )}
147
+ {site.footer.languageSwitcher && (
148
+ <>
149
+ {site.footer.links.length > 0 && (
150
+ <span aria-hidden="true">·</span>
151
+ )}
152
+ <LanguageSwitcher
153
+ site={site}
154
+ route={route}
155
+ placement="footer"
156
+ />
157
+ </>
158
+ )}
159
+ </div>
160
+ </div>
56
161
  </div>
57
162
  </footer>
@@ -1,13 +1,15 @@
1
1
  @layer components {
2
2
  .ss-footer {
3
- @apply border-t text-primary-content;
4
- border-color: color-mix(
5
- in srgb,
6
- var(--color-hero-ocean) 55%,
7
- var(--color-hero-navy)
8
- );
3
+ border-top: 1px solid
4
+ color-mix(
5
+ in srgb,
6
+ var(--color-hero-ocean) 55%,
7
+ var(--color-hero-navy)
8
+ );
9
+ color: var(--color-primary-content);
9
10
  background-color: var(--color-hero-navy);
10
11
  background-image:
12
+ url('../../../assets/footer-waves.svg'),
11
13
  radial-gradient(
12
14
  ellipse at 88% 100%,
13
15
  color-mix(in srgb, var(--color-hero-ocean) 32%, transparent),
@@ -18,45 +20,213 @@
18
20
  var(--color-hero-navy) 32%,
19
21
  var(--color-hero-midnight)
20
22
  );
23
+ background-repeat: no-repeat;
24
+ background-position:
25
+ right bottom,
26
+ center,
27
+ center;
28
+ background-size:
29
+ max(100%, 100rem) auto,
30
+ cover,
31
+ cover;
21
32
 
22
33
  .ss-footer__inner {
23
- @apply flex flex-wrap items-center justify-between gap-x-4 gap-y-8 py-10 text-sm;
34
+ padding-block: 4.5rem 9rem;
35
+ font-size: 1rem;
36
+ line-height: 1.6;
24
37
 
25
- .ss-footer__text {
26
- @apply flex flex-wrap items-center gap-x-6 gap-y-8;
38
+ a {
39
+ color: inherit;
40
+ text-decoration: none;
41
+ border-radius: 0.25rem;
42
+ &:hover {
43
+ color: var(--color-hero-cyan);
44
+ text-decoration: underline;
45
+ text-underline-offset: 0.25em;
46
+ }
47
+ &:focus-visible {
48
+ outline-color: var(--color-hero-green);
49
+ }
50
+ }
51
+ ul {
52
+ list-style: none;
53
+ margin: 0;
54
+ padding: 0;
55
+ }
27
56
 
57
+ .ss-footer__top {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: 2rem;
28
61
  .ss-footer__brand {
29
- position: relative;
30
-
31
62
  > a {
32
- display: block;
33
- color: var(--color-primary-content);
63
+ display: inline-block;
34
64
  text-decoration: none;
35
65
  }
36
-
37
- .ss-footer__version {
38
- @apply whitespace-nowrap text-xs;
39
- position: absolute;
40
- top: calc(100% + 0.375rem);
41
- left: 0;
66
+ .ss-brand-logo {
67
+ font-size: 2rem;
68
+ gap: 0.75rem;
69
+ img {
70
+ width: 3rem;
71
+ height: 3rem;
72
+ }
73
+ }
74
+ p {
75
+ max-width: 28ch;
76
+ margin: 1rem 0 0;
77
+ font-size: 1.125rem;
78
+ }
79
+ }
80
+ .ss-footer__heading {
81
+ margin: 0 0 0.75rem;
82
+ font-size: 1.125rem;
83
+ line-height: 1.4;
84
+ font-weight: 700;
85
+ }
86
+ .ss-footer__group {
87
+ a {
88
+ display: flex;
89
+ align-items: center;
90
+ gap: 0.75rem;
91
+ min-height: 2.75rem;
92
+ padding-block: 0.375rem;
93
+ }
94
+ .ss-footer__link-icon,
95
+ .ss-footer__external,
96
+ .ss-footer__chevron {
97
+ display: inline-flex;
98
+ flex: none;
99
+ }
100
+ .ss-footer__chevron {
101
+ margin-inline-start: auto;
102
+ }
103
+ }
104
+ .ss-footer__social {
105
+ border-bottom: 1px solid
106
+ color-mix(in srgb, currentColor 30%, transparent);
107
+ padding-block: 1.75rem;
108
+ ul {
109
+ display: flex;
110
+ flex-wrap: wrap;
111
+ gap: 1rem;
112
+ }
113
+ a {
114
+ display: grid;
115
+ place-items: center;
116
+ width: 2.875rem;
117
+ height: 2.875rem;
118
+ border-radius: 0.625rem;
119
+ background: color-mix(
120
+ in srgb,
121
+ currentColor 12%,
122
+ transparent
123
+ );
124
+ &:hover {
125
+ background: color-mix(
126
+ in srgb,
127
+ var(--color-hero-cyan) 20%,
128
+ transparent
129
+ );
130
+ }
42
131
  }
43
132
  }
44
133
  }
134
+ .ss-footer__bottom {
135
+ display: flex;
136
+ flex-direction: column;
137
+ align-items: center;
138
+ gap: 1rem;
139
+ margin-top: 2rem;
140
+ padding-top: 1.75rem;
141
+ border-top: 1px solid
142
+ color-mix(in srgb, currentColor 30%, transparent);
143
+ font-size: 0.875rem;
144
+ .ss-footer__credits {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 1rem;
45
148
 
46
- .ss-footer__links {
47
- @apply flex flex-wrap gap-2;
149
+ > span + span::before {
150
+ content: '·';
151
+ margin-inline-end: 1rem;
152
+ }
153
+ }
154
+ .ss-footer__utilities,
155
+ .ss-footer__links {
156
+ display: flex;
157
+ flex-wrap: wrap;
158
+ align-items: center;
159
+ justify-content: center;
160
+ gap: 0.5rem 1rem;
161
+ }
162
+ .ss-footer__links {
163
+ li {
164
+ display: flex;
165
+ align-items: center;
166
+ gap: 1rem;
167
+ + li::before {
168
+ content: '·';
169
+ }
170
+ }
171
+ a {
172
+ display: inline-flex;
173
+ align-items: center;
174
+ min-height: 2.75rem;
175
+ }
176
+ }
177
+ }
178
+ }
179
+ @media (width < 64rem) {
180
+ .ss-footer__inner {
181
+ padding-top: var(--spacing-section);
48
182
 
49
- li {
50
- @apply inline-flex items-center gap-2;
183
+ .ss-footer__top .ss-footer__social {
184
+ padding-top: 0;
51
185
  }
52
186
 
53
- a {
54
- color: var(--color-primary-content);
187
+ .ss-footer__top .ss-footer__brand {
188
+ border-bottom: 1px solid
189
+ color-mix(in srgb, currentColor 30%, transparent);
190
+ padding-bottom: 2rem;
191
+ }
192
+ .ss-footer__top:has(.ss-footer__social) + .ss-footer__bottom {
193
+ border-top: 0;
194
+ margin-top: 0;
55
195
  }
56
196
  }
197
+ }
198
+ @media (width >= 64rem) {
199
+ .ss-footer__inner {
200
+ padding-top: var(--spacing-section);
201
+ padding-bottom: var(--spacing-section);
57
202
 
58
- a:focus-visible {
59
- outline-color: var(--color-hero-green);
203
+ .ss-footer__top {
204
+ flex-direction: row;
205
+ flex-wrap: wrap;
206
+ column-gap: 3rem;
207
+ .ss-footer__brand {
208
+ flex: 2 1 16rem;
209
+ }
210
+ .ss-footer__group,
211
+ .ss-footer__social {
212
+ flex: 1 1 8rem;
213
+ }
214
+ .ss-footer__group {
215
+ .ss-footer__chevron {
216
+ display: none;
217
+ }
218
+ }
219
+ .ss-footer__social {
220
+ border: 0;
221
+ padding: 0;
222
+ }
223
+ }
224
+ .ss-footer__bottom {
225
+ flex-direction: row;
226
+ justify-content: space-between;
227
+ margin-top: 3rem;
228
+ padding-top: 0.5rem;
229
+ }
60
230
  }
61
231
  }
62
232
  }
@@ -103,6 +103,6 @@ const socialImage = new URL(socialCard.src, site.url).href;
103
103
  <main id="main-content">
104
104
  <slot />
105
105
  </main>
106
- <Footer site={site} />
106
+ <Footer site={site} route={route} />
107
107
  </body>
108
108
  </html>
@@ -0,0 +1,30 @@
1
+ # CC0 1.0 Universal
2
+
3
+ ## Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
6
+
7
+ Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
8
+
9
+ For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
10
+
11
+ 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
12
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
13
+ 2. moral rights retained by the original author(s) and/or performer(s);
14
+ 3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
15
+ 4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
16
+ 5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
17
+ 6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
18
+ 7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
19
+
20
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
21
+
22
+ 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
23
+
24
+ 4. Limitations and Disclaimers.
25
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
26
+ 2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
27
+ 3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
28
+ 4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
29
+
30
+ For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.