sproutsite 0.0.0-stage → 0.5.8

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.
Files changed (116) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +14 -0
  3. package/README.md +604 -2
  4. package/THIRD_PARTY_NOTICES.md +85 -0
  5. package/VERSION +1 -0
  6. package/package.json +107 -5
  7. package/src/lib/sproutsite/colors.ts +7 -0
  8. package/src/lib/sproutsite/language-links.ts +60 -0
  9. package/src/lib/sproutsite/pages.ts +78 -0
  10. package/src/lib/sproutsite/rehype-ids.ts +20 -0
  11. package/src/lib/sproutsite/rehype-links.ts +19 -0
  12. package/src/lib/sproutsite/rehype-tables.ts +74 -0
  13. package/src/lib/sproutsite/remark-links.ts +19 -0
  14. package/src/lib/sproutsite/site-config.ts +110 -0
  15. package/src/lib/sproutsite/sitemap.ts +160 -0
  16. package/src/lib/sproutsite/types.ts +45 -0
  17. package/src/lib/sproutsite/urls.ts +79 -0
  18. package/src/lib/sproutsite/validation.ts +1406 -0
  19. package/src/package/404.astro +5 -0
  20. package/src/package/500.astro +5 -0
  21. package/src/package/components.ts +17 -0
  22. package/src/package/config.ts +161 -0
  23. package/src/package/content.ts +117 -0
  24. package/src/package/index.ts +3 -0
  25. package/src/package/manifest.ts +27 -0
  26. package/src/package/page.astro +124 -0
  27. package/src/themes/default/assets/branding/apple-touch-icon.png +0 -0
  28. package/src/themes/default/assets/branding/favicon-16x16.png +0 -0
  29. package/src/themes/default/assets/branding/favicon-32x32.png +0 -0
  30. package/src/themes/default/assets/branding/favicon-48x48.png +0 -0
  31. package/src/themes/default/assets/branding/favicon.ico +0 -0
  32. package/src/themes/default/assets/branding/favicon.svg +1 -0
  33. package/src/themes/default/assets/branding/icon-192x192.png +0 -0
  34. package/src/themes/default/assets/branding/icon-512x512.png +0 -0
  35. package/src/themes/default/assets/branding/icon-monochrome.svg +1 -0
  36. package/src/themes/default/assets/branding/icon.svg +18 -0
  37. package/src/themes/default/assets/branding/logo-dark.svg +18 -0
  38. package/src/themes/default/assets/branding/logo-monochrome.svg +1 -0
  39. package/src/themes/default/assets/branding/logo.svg +18 -0
  40. package/src/themes/default/assets/branding/social-card.png +0 -0
  41. package/src/themes/default/assets/hero-waves.svg +41 -0
  42. package/src/themes/default/components/atoms/Badge/Badge.astro +65 -0
  43. package/src/themes/default/components/atoms/Badge/Badge.css +5 -0
  44. package/src/themes/default/components/atoms/BrandLogo/BrandLogo.astro +26 -0
  45. package/src/themes/default/components/atoms/BrandLogo/BrandLogo.css +22 -0
  46. package/src/themes/default/components/atoms/Button/Button.astro +106 -0
  47. package/src/themes/default/components/atoms/Button/Button.css +14 -0
  48. package/src/themes/default/components/atoms/ContentImage/ContentImage.astro +54 -0
  49. package/src/themes/default/components/atoms/ContentImage/ContentImage.css +21 -0
  50. package/src/themes/default/components/atoms/Eyebrow/Eyebrow.astro +3 -0
  51. package/src/themes/default/components/atoms/Eyebrow/Eyebrow.css +18 -0
  52. package/src/themes/default/components/atoms/Icon/Icon.astro +80 -0
  53. package/src/themes/default/components/atoms/Icon/Icon.css +68 -0
  54. package/src/themes/default/components/atoms/Tab/Tab.astro +15 -0
  55. package/src/themes/default/components/atoms/Tab/Tab.css +34 -0
  56. package/src/themes/default/components/layout/Column/Column.astro +18 -0
  57. package/src/themes/default/components/layout/Column/Column.css +82 -0
  58. package/src/themes/default/components/layout/Columns/Columns.astro +163 -0
  59. package/src/themes/default/components/layout/Columns/Columns.css +177 -0
  60. package/src/themes/default/components/molecules/Accordion/Accordion.astro +17 -0
  61. package/src/themes/default/components/molecules/Accordion/Accordion.css +11 -0
  62. package/src/themes/default/components/molecules/Accordion/accordion.ts +47 -0
  63. package/src/themes/default/components/molecules/AccordionItem/AccordionItem.astro +100 -0
  64. package/src/themes/default/components/molecules/AccordionItem/AccordionItem.css +118 -0
  65. package/src/themes/default/components/molecules/Alert/Alert.astro +42 -0
  66. package/src/themes/default/components/molecules/Alert/Alert.css +13 -0
  67. package/src/themes/default/components/molecules/Card/Card.astro +57 -0
  68. package/src/themes/default/components/molecules/Card/Card.css +25 -0
  69. package/src/themes/default/components/molecules/CardActions/CardActions.astro +3 -0
  70. package/src/themes/default/components/molecules/CardActions/CardActions.css +13 -0
  71. package/src/themes/default/components/molecules/ContentTable/ContentTable.astro +42 -0
  72. package/src/themes/default/components/molecules/ContentTable/ContentTable.css +59 -0
  73. package/src/themes/default/components/molecules/Feature/Feature.astro +108 -0
  74. package/src/themes/default/components/molecules/Feature/Feature.css +157 -0
  75. package/src/themes/default/components/molecules/FoundationSample/FoundationSample.astro +165 -0
  76. package/src/themes/default/components/molecules/FoundationSample/FoundationSample.css +201 -0
  77. package/src/themes/default/components/molecules/LanguageSwitcher/LanguageSwitcher.astro +118 -0
  78. package/src/themes/default/components/molecules/LanguageSwitcher/LanguageSwitcher.css +134 -0
  79. package/src/themes/default/components/molecules/Tabs/Tabs.astro +33 -0
  80. package/src/themes/default/components/molecules/Tabs/Tabs.css +38 -0
  81. package/src/themes/default/components/molecules/Tabs/tabs.ts +91 -0
  82. package/src/themes/default/components/organisms/BlogIndex/BlogIndex.astro +86 -0
  83. package/src/themes/default/components/organisms/BlogIndex/BlogIndex.css +17 -0
  84. package/src/themes/default/components/organisms/BlogPost/BlogPost.astro +51 -0
  85. package/src/themes/default/components/organisms/BlogPost/BlogPost.css +5 -0
  86. package/src/themes/default/components/organisms/Footer/Footer.astro +57 -0
  87. package/src/themes/default/components/organisms/Footer/Footer.css +63 -0
  88. package/src/themes/default/components/organisms/Header/Header.astro +223 -0
  89. package/src/themes/default/components/organisms/Header/Header.css +282 -0
  90. package/src/themes/default/components/organisms/Hero/Hero.astro +106 -0
  91. package/src/themes/default/components/organisms/Hero/Hero.css +187 -0
  92. package/src/themes/default/components/organisms/PageTitle/PageTitle.astro +39 -0
  93. package/src/themes/default/components/organisms/PageTitle/PageTitle.css +25 -0
  94. package/src/themes/default/components/organisms/Section/Section.astro +39 -0
  95. package/src/themes/default/components/organisms/Section/Section.css +21 -0
  96. package/src/themes/default/i18n/de.yaml +38 -0
  97. package/src/themes/default/i18n/en.yaml +38 -0
  98. package/src/themes/default/i18n/index.ts +63 -0
  99. package/src/themes/default/layouts/ErrorPage/ErrorPage.astro +110 -0
  100. package/src/themes/default/layouts/PageLayout/PageLayout.astro +108 -0
  101. package/src/themes/default/layouts/PageLayout/PageLayout.css +15 -0
  102. package/src/themes/default/styles/foundation/base.css +19 -0
  103. package/src/themes/default/styles/foundation/focus.css +6 -0
  104. package/src/themes/default/styles/foundation/fonts/OFL.txt +93 -0
  105. package/src/themes/default/styles/foundation/fonts/nunito-latin-variable.woff2 +0 -0
  106. package/src/themes/default/styles/foundation/fonts.css +17 -0
  107. package/src/themes/default/styles/foundation/layout.css +6 -0
  108. package/src/themes/default/styles/foundation/prose.css +54 -0
  109. package/src/themes/default/styles/foundation/tokens.css +48 -0
  110. package/src/themes/default/styles/theme.css +99 -0
  111. package/src/themes/default/styles/themes/section-tones.css +30 -0
  112. package/third-party-licenses/daisyui-LICENSE +21 -0
  113. package/third-party-licenses/flag-icons-LICENSE +21 -0
  114. package/third-party-licenses/lucide-LICENSE +43 -0
  115. package/third-party-licenses/tailwindcss-LICENSE +21 -0
  116. package/third-party-licenses/tailwindcss-typography-LICENSE +21 -0
@@ -0,0 +1,38 @@
1
+ skipToContent: Zum Inhalt springen
2
+ primaryNavigation: Hauptnavigation
3
+ languageSwitcher: Sprache wählen
4
+ openMenu: Menü öffnen
5
+ closeMenu: Menü schließen
6
+ footerNavigation: Fußnavigation
7
+ home: Startseite
8
+ blogEyebrow: Beiträge
9
+ blogDescription: Neuigkeiten, Entscheidungen und Meilensteine.
10
+ blogHeading: Neueste Beiträge
11
+ readMore: Mehr erfahren
12
+ foundationDefault: Standardfläche
13
+ foundationMuted: Gedämpfte Fläche
14
+ foundationBorder: Rahmenfarbe
15
+ foundationText: Textfarbe
16
+ foundationPrimary: Primärfarbe
17
+ foundationSecondary: Sekundärfarbe
18
+ foundationAccent: Akzentfarbe
19
+ foundationNeutral: Neutral
20
+ foundationInfo: Information
21
+ foundationSuccess: Erfolg
22
+ foundationWarning: Warnung
23
+ foundationError: Fehler
24
+ foundationSquare: Eckig
25
+ foundationFields: Felder
26
+ foundationBoxes: Boxen
27
+ foundationNoShadow: Ohne Schatten
28
+ foundationSmall: Klein
29
+ foundationSoft: Weich
30
+ foundationRaised: Angehoben
31
+ foundationDisplayLabel: Nunito · große Schrift
32
+ foundationDisplay: Klare Gedanken.
33
+ foundationHeadingLabel: Nunito · mittlere Schrift
34
+ foundationHeading: Eine gemeinsame Formensprache.
35
+ foundationBodyLabel: Systemschrift · Fließtext
36
+ foundationBody: Gut lesbare Texte geben Inhalten Raum. Die Systemschrift ergänzt die weicheren Formen der Überschrift.
37
+ foundationFocus: Wechsle mit der Tabulatortaste zum Link. Die Kontur zeigt das aktive Tastaturziel; der Link führt zum Hauptinhalt dieser Seite.
38
+ foundationFocusLink: Zum Hauptinhalt
@@ -0,0 +1,38 @@
1
+ skipToContent: Skip to content
2
+ primaryNavigation: Primary navigation
3
+ languageSwitcher: Choose language
4
+ openMenu: Open menu
5
+ closeMenu: Close menu
6
+ footerNavigation: Footer navigation
7
+ home: Home
8
+ blogEyebrow: Articles
9
+ blogDescription: Updates, decisions, and milestones.
10
+ blogHeading: Latest articles
11
+ readMore: Learn more
12
+ foundationDefault: Default surface
13
+ foundationMuted: Muted surface
14
+ foundationBorder: Border color
15
+ foundationText: Text color
16
+ foundationPrimary: Primary color
17
+ foundationSecondary: Secondary color
18
+ foundationAccent: Accent color
19
+ foundationNeutral: Neutral
20
+ foundationInfo: Information
21
+ foundationSuccess: Success
22
+ foundationWarning: Warning
23
+ foundationError: Error
24
+ foundationSquare: Square
25
+ foundationFields: Fields
26
+ foundationBoxes: Boxes
27
+ foundationNoShadow: No shadow
28
+ foundationSmall: Small
29
+ foundationSoft: Soft
30
+ foundationRaised: Raised
31
+ foundationDisplayLabel: Nunito · display text
32
+ foundationDisplay: Clear thoughts.
33
+ foundationHeadingLabel: Nunito · heading text
34
+ foundationHeading: A shared visual language.
35
+ foundationBodyLabel: System font · body text
36
+ foundationBody: Readable text gives content room. The system font complements the softer shapes of the heading.
37
+ foundationFocus: Press Tab to reach the link. The outline identifies the keyboard target; the link leads to this page's main content.
38
+ foundationFocusLink: Go to main content
@@ -0,0 +1,63 @@
1
+ import { z } from 'zod';
2
+ import { parse } from 'yaml';
3
+ import english from './en.yaml?raw';
4
+ import german from './de.yaml?raw';
5
+
6
+ const messagesSchema = z
7
+ .object({
8
+ skipToContent: z.string().trim().min(1),
9
+ primaryNavigation: z.string().trim().min(1),
10
+ languageSwitcher: z.string().trim().min(1),
11
+ openMenu: z.string().trim().min(1),
12
+ closeMenu: z.string().trim().min(1),
13
+ footerNavigation: z.string().trim().min(1),
14
+ home: z.string().trim().min(1),
15
+ blogEyebrow: z.string().trim().min(1),
16
+ blogDescription: z.string().trim().min(1),
17
+ blogHeading: z.string().trim().min(1),
18
+ readMore: z.string().trim().min(1),
19
+ foundationDefault: z.string().trim().min(1),
20
+ foundationMuted: z.string().trim().min(1),
21
+ foundationBorder: z.string().trim().min(1),
22
+ foundationText: z.string().trim().min(1),
23
+ foundationPrimary: z.string().trim().min(1),
24
+ foundationSecondary: z.string().trim().min(1),
25
+ foundationAccent: z.string().trim().min(1),
26
+ foundationNeutral: z.string().trim().min(1),
27
+ foundationInfo: z.string().trim().min(1),
28
+ foundationSuccess: z.string().trim().min(1),
29
+ foundationWarning: z.string().trim().min(1),
30
+ foundationError: z.string().trim().min(1),
31
+ foundationSquare: z.string().trim().min(1),
32
+ foundationFields: z.string().trim().min(1),
33
+ foundationBoxes: z.string().trim().min(1),
34
+ foundationNoShadow: z.string().trim().min(1),
35
+ foundationSmall: z.string().trim().min(1),
36
+ foundationSoft: z.string().trim().min(1),
37
+ foundationRaised: z.string().trim().min(1),
38
+ foundationDisplayLabel: z.string().trim().min(1),
39
+ foundationDisplay: z.string().trim().min(1),
40
+ foundationHeadingLabel: z.string().trim().min(1),
41
+ foundationHeading: z.string().trim().min(1),
42
+ foundationBodyLabel: z.string().trim().min(1),
43
+ foundationBody: z.string().trim().min(1),
44
+ foundationFocus: z.string().trim().min(1),
45
+ foundationFocusLink: z.string().trim().min(1),
46
+ })
47
+ .strict();
48
+
49
+ export type Locale = 'en' | 'de';
50
+ export type MessageKey = keyof z.infer<typeof messagesSchema>;
51
+
52
+ function loadMessages(source: string) {
53
+ return messagesSchema.parse(parse(source));
54
+ }
55
+
56
+ const messages: Record<Locale, z.infer<typeof messagesSchema>> = {
57
+ en: loadMessages(english),
58
+ de: loadMessages(german),
59
+ };
60
+
61
+ export function t(locale: Locale, key: MessageKey): string {
62
+ return messages[locale][key];
63
+ }
@@ -0,0 +1,110 @@
1
+ ---
2
+ import { loadSiteConfig } from '../../../../lib/sproutsite/site-config.js';
3
+ import PageLayout from '../PageLayout/PageLayout.astro';
4
+ import Hero from '../../components/organisms/Hero/Hero.astro';
5
+ import Section from '../../components/organisms/Section/Section.astro';
6
+ import Button from '../../components/atoms/Button/Button.astro';
7
+
8
+ interface Props {
9
+ status: 404 | 500;
10
+ }
11
+ const { status } = Astro.props;
12
+ const defaultSite = loadSiteConfig();
13
+ const german =
14
+ defaultSite.locales.includes('de') &&
15
+ (Astro.url.pathname.startsWith(`${defaultSite.base}de/`) ||
16
+ defaultSite.language === 'de');
17
+ const site = german ? loadSiteConfig('de') : defaultSite;
18
+ const introduction = german
19
+ ? status === 404
20
+ ? 'Diese Adresse führt gerade ins Grüne.'
21
+ : 'Auf dem Server ist gerade eine kleine Pause angesagt.'
22
+ : status === 404
23
+ ? 'This address leads a little off the garden path.'
24
+ : 'The server is taking an unscheduled breather.';
25
+ const sectionTitle = german
26
+ ? status === 404
27
+ ? 'Zurück auf den Gartenweg'
28
+ : 'Kurz durchatmen, dann weiter'
29
+ : status === 404
30
+ ? 'Back on the garden path'
31
+ : 'Take a breath, then try again';
32
+ const copy = german
33
+ ? status === 404
34
+ ? {
35
+ title: 'Hier wächst gerade nichts.',
36
+ eyebrow: '404 · Seite nicht gefunden',
37
+ description:
38
+ 'Der Agent hat überall nachgesehen. Sogar unter den Blättern. Diese Adresse konnte er leider nicht finden.',
39
+ detail: 'Vielleicht hat sich ein Tippfehler eingeschlichen oder die Seite ist umgezogen. Auf der Startseite geht es weiter.',
40
+ action: 'Zur Startseite',
41
+ }
42
+ : {
43
+ title: 'Der Agent ist kurz im Funkloch.',
44
+ eyebrow: '500 · Serverfehler',
45
+ description:
46
+ 'Wir haben gerufen. Auch ein zweites Mal. Der Agent ist gerade nicht erreichbar.',
47
+ detail: 'Hier hakt es auf dem Server. Versuch es später noch einmal. Deine Ideen laufen in der Zwischenzeit nicht weg.',
48
+ action: 'Zur Startseite',
49
+ }
50
+ : status === 404
51
+ ? {
52
+ title: 'Nothing growing here.',
53
+ eyebrow: '404 · Page not found',
54
+ description:
55
+ 'The agent looked everywhere. Even under the leaves. This address is still nowhere to be found.',
56
+ detail: 'There might be a typo, or the page may have moved. The homepage is a good place to pick up the trail.',
57
+ action: 'Back to the homepage',
58
+ }
59
+ : {
60
+ title: 'The agent has lost signal.',
61
+ eyebrow: '500 · Server error',
62
+ description:
63
+ 'We called. Twice, actually. The agent is currently out of reach.',
64
+ detail: 'Something on the server needs a little attention. Try again later. Your ideas can wait a moment.',
65
+ action: 'Back to the homepage',
66
+ };
67
+ ---
68
+
69
+ <PageLayout
70
+ site={site}
71
+ title={copy.eyebrow}
72
+ description={copy.description}
73
+ route={`/${status}${site.language === defaultSite.language ? '' : `-${site.language}`}.html`}
74
+ noindex
75
+ >
76
+ <Hero
77
+ site={site}
78
+ hero={{
79
+ id: String(status),
80
+ data: {
81
+ title: copy.title,
82
+ eyebrow: copy.eyebrow,
83
+ type: 'small',
84
+ tone: 'brand',
85
+ fullWidth: false,
86
+ spacing: 'default',
87
+ },
88
+ }}
89
+ >
90
+ <p>{introduction}</p>
91
+ </Hero>
92
+ <Section
93
+ section={{
94
+ id: '01-error-details',
95
+ data: {
96
+ tone: 'default',
97
+ type: 'small',
98
+ fullWidth: false,
99
+ spacing: 'default',
100
+ },
101
+ }}
102
+ >
103
+ <h2>{sectionTitle}</h2>
104
+ <p>{copy.description}</p>
105
+ <p>{copy.detail}</p>
106
+ <Button href="/" variant="primary">
107
+ {copy.action}
108
+ </Button>
109
+ </Section>
110
+ </PageLayout>
@@ -0,0 +1,108 @@
1
+ ---
2
+ import '../../styles/theme.css';
3
+ import Header from '../../components/organisms/Header/Header.astro';
4
+ import { t } from '../../i18n/index.js';
5
+ import Footer from '../../components/organisms/Footer/Footer.astro';
6
+ import type { SiteConfig } from '../../../../lib/sproutsite/types.js';
7
+ import { canonicalUrl, withBase } from '../../../../lib/sproutsite/urls.js';
8
+ import favicon from '../../assets/branding/favicon.svg?url&no-inline';
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';
15
+ interface Props {
16
+ site: SiteConfig;
17
+ title: string;
18
+ description: string;
19
+ route: string;
20
+ layout?: 'default' | 'landing';
21
+ noindex?: boolean;
22
+ }
23
+ const {
24
+ site,
25
+ title,
26
+ description,
27
+ route,
28
+ layout = 'default',
29
+ noindex = false,
30
+ } = Astro.props;
31
+ const documentTitle = `${title} | ${site.name}`;
32
+ const canonical = noindex
33
+ ? new URL(withBase(route, site.base), site.url).href
34
+ : canonicalUrl(route, site);
35
+ const productSite = site.name === 'Sproutsite';
36
+ const socialImage = new URL(socialCard.src, site.url).href;
37
+ ---
38
+
39
+ <!doctype html>
40
+ <html lang={site.language} data-theme="sproutsite">
41
+ <head>
42
+ <meta charset="utf-8" />
43
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
44
+ <title>{documentTitle}</title>
45
+ <meta name="description" content={description} />
46
+ {noindex && <meta name="robots" content="noindex, follow" />}
47
+ <link rel="canonical" href={canonical} />
48
+ <link
49
+ rel="sitemap"
50
+ type="application/xml"
51
+ href={withBase('/sitemap.xml', site.base)}
52
+ />
53
+ <link rel="icon" type="image/svg+xml" href={favicon} />
54
+ <link
55
+ rel="icon"
56
+ type="image/x-icon"
57
+ sizes="16x16 32x32 48x48"
58
+ href={faviconIco}
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
+ <link rel="manifest" href={withBase('/site.webmanifest', site.base)} />
70
+ <meta property="og:title" content={documentTitle} />
71
+ <meta property="og:description" content={description} />
72
+ <meta property="og:url" content={canonical} />
73
+ <meta property="og:site_name" content={site.name} />
74
+ <meta property="og:type" content="website" />
75
+ {productSite && (
76
+ <>
77
+ <meta property="og:image" content={socialImage} />
78
+ <meta property="og:image:width" content="1200" />
79
+ <meta property="og:image:height" content="630" />
80
+ <meta
81
+ property="og:image:alt"
82
+ content="Sproutsite — The Agent-Ready Static CMS"
83
+ />
84
+ <meta name="twitter:image" content={socialImage} />
85
+ <meta
86
+ name="twitter:image:alt"
87
+ content="Sproutsite — The Agent-Ready Static CMS"
88
+ />
89
+ </>
90
+ )}
91
+ <meta
92
+ name="twitter:card"
93
+ content={productSite ? 'summary_large_image' : 'summary'}
94
+ />
95
+ <meta name="twitter:title" content={documentTitle} />
96
+ <meta name="twitter:description" content={description} />
97
+ </head>
98
+ <body class:list={{ 'ss-page--landing': layout === 'landing' }}>
99
+ <a class="ss-skip-link" href="#main-content">
100
+ {t(site.language === 'de' ? 'de' : 'en', 'skipToContent')}
101
+ </a>
102
+ {layout !== 'landing' && <Header site={site} route={route} />}
103
+ <main id="main-content">
104
+ <slot />
105
+ </main>
106
+ <Footer site={site} />
107
+ </body>
108
+ </html>
@@ -0,0 +1,15 @@
1
+ @layer components {
2
+ .ss-page--landing {
3
+ .ss-section:first-child {
4
+ @apply pt-6;
5
+
6
+ .content-prose > h1 {
7
+ @apply text-heading-2;
8
+ }
9
+ }
10
+ }
11
+
12
+ .ss-skip-link {
13
+ @apply sr-only fixed left-4 top-4 z-50 rounded-box bg-base-100 px-4 py-3 text-base-content shadow-lg focus:not-sr-only;
14
+ }
15
+ }
@@ -0,0 +1,19 @@
1
+ /* Element-level defaults shared by every Sproutsite page. */
2
+ @layer base {
3
+ html {
4
+ color-scheme: light;
5
+ scroll-behavior: smooth;
6
+ }
7
+
8
+ body {
9
+ @apply flex min-h-screen flex-col bg-base-100 text-base-content;
10
+ }
11
+
12
+ main {
13
+ @apply flex-1;
14
+ }
15
+
16
+ a {
17
+ @apply no-underline underline-offset-6 hover:underline;
18
+ }
19
+ }
@@ -0,0 +1,6 @@
1
+ /* One visible keyboard-focus treatment across theme components and content. */
2
+ @layer base {
3
+ :focus-visible {
4
+ @apply outline-3 outline-offset-3 outline-primary;
5
+ }
6
+ }
@@ -0,0 +1,93 @@
1
+ Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Nunito is stored locally so production pages do not request fonts
3
+ * from a third party. Its SIL Open Font License is in ./fonts/OFL.txt.
4
+ */
5
+ @font-face {
6
+ font-family: 'Nunito';
7
+ font-style: normal;
8
+ font-weight: 200 1000;
9
+ font-display: swap;
10
+ src: url('./fonts/nunito-latin-variable.woff2') format('woff2');
11
+ }
12
+
13
+ @layer base {
14
+ :is(h1, h2, h3, h4, h5, h6) {
15
+ font-family: var(--font-heading);
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ /* Shared responsive content width and inline spacing. */
2
+ @layer components {
3
+ .site-shell {
4
+ @apply mx-auto w-full max-w-6xl px-gutter;
5
+ }
6
+ }
@@ -0,0 +1,54 @@
1
+ /* Markdown typography rendered by Astro Content Collections. */
2
+ @layer components {
3
+ .content-prose {
4
+ @apply prose max-w-none prose-headings:scroll-mt-8 prose-a:text-primary prose-a:font-medium prose-a:decoration-2;
5
+
6
+ a {
7
+ @apply no-underline hover:underline;
8
+ }
9
+
10
+ h1 {
11
+ font-size: var(--text-heading-1);
12
+ @apply mb-5 font-bold;
13
+ }
14
+ h2 {
15
+ font-size: var(--text-heading-2);
16
+ @apply mb-4 font-bold;
17
+ }
18
+ h3 {
19
+ font-size: var(--text-heading-3);
20
+ @apply mb-3 font-medium;
21
+ }
22
+ h4 {
23
+ font-size: var(--text-heading-4);
24
+ @apply mb-2.5 font-medium;
25
+ }
26
+ h5 {
27
+ font-size: var(--text-heading-5);
28
+ @apply mb-2 font-medium;
29
+ }
30
+ h6 {
31
+ font-size: var(--text-heading-6);
32
+ @apply mb-2 font-medium;
33
+ }
34
+
35
+ :is(h1, h2, h3, h4, h5, h6) + * {
36
+ @apply mt-0;
37
+ }
38
+
39
+ > .ss-eyebrow + :is(h1, h2, h3, h4, h5, h6) {
40
+ @apply mt-0;
41
+ }
42
+ }
43
+
44
+ .ss-section > .site-shell > .content-prose,
45
+ .ss-hero > .site-shell > .content-prose {
46
+ > :first-child:not(.ss-button) {
47
+ @apply mt-0;
48
+ }
49
+
50
+ > :last-child:not(.ss-button) {
51
+ @apply mb-0;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,48 @@
1
+ /* Shared typography, spacing, radius, and elevation tokens for the default theme. */
2
+ @theme {
3
+ /* Sproutsite identity; separate from the existing semantic UI palette. */
4
+ --color-brand-navy: #0b1f3a;
5
+ --color-brand-blue: #0875c9;
6
+ --color-brand-cyan: #0aa9d6;
7
+ --color-brand-turquoise: #20d5c1;
8
+ --color-brand-green: #65d82f;
9
+ --color-brand-light-green: #8bed43;
10
+ --color-brand-white: #ffffff;
11
+ --color-hero-navy: #071a36;
12
+ --color-hero-midnight: #0d2b50;
13
+ --color-hero-ocean: #125b86;
14
+ --color-hero-teal: #087f80;
15
+ --color-hero-green: #74e33d;
16
+ --color-hero-cyan: #70c6df;
17
+
18
+ --font-sans: ui-sans-serif, system-ui, sans-serif;
19
+ --font-heading: 'Nunito', var(--font-sans);
20
+
21
+ --text-display: clamp(2.25rem, 5vw, 4rem);
22
+ --text-display--line-height: 1.08;
23
+ --text-heading: clamp(1.75rem, 3vw, 2.5rem);
24
+ --text-heading--line-height: 1.15;
25
+
26
+ --spacing-gutter: clamp(1rem, 4vw, 2rem);
27
+ --spacing-section: clamp(1.875rem, 3.75vw, 3.375rem);
28
+ --spacing-section-hero: clamp(4.5rem, 9vw, 7.5rem);
29
+ --spacing-section-hero-bottom: clamp(2rem, 4vw, 3.5rem);
30
+ --spacing-header-overlay: 10rem;
31
+
32
+ --shadow-soft: 0 1px 2px rgb(23 32 51 / 8%), 0 8px 24px rgb(23 32 51 / 6%);
33
+ --shadow-raised:
34
+ 0 8px 24px rgb(23 32 51 / 12%), 0 2px 6px rgb(23 32 51 / 8%);
35
+
36
+ --text-heading-1: clamp(2.25rem, 5vw, 4rem);
37
+ --text-heading-2: clamp(1.75rem, 3vw, 2.5rem);
38
+ --text-heading-3: 1.5rem;
39
+ --text-heading-4: 1.25rem;
40
+ --text-heading-5: 1.125rem;
41
+ --text-heading-6: 1rem;
42
+ }
43
+
44
+ @media (min-width: 48rem) {
45
+ :root {
46
+ --spacing-header-overlay: 5.5rem;
47
+ }
48
+ }