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,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1276" height="320" viewBox="0 0 1276 320" role="img" aria-label="Sproutsite"><defs>
2
+ <linearGradient id="turquoise" x1="0%" y1="0%" x2="35%" y2="100%"><stop stop-color="#20d5c1"/><stop offset="0.5" stop-color="#1cbbaa"/><stop offset="1" stop-color="#169587"/></linearGradient>
3
+ <linearGradient id="cyan" x1="0%" y1="0%" x2="35%" y2="100%"><stop stop-color="#0aa9d6"/><stop offset="0.5" stop-color="#0995bc"/><stop offset="1" stop-color="#077696"/></linearGradient>
4
+ <linearGradient id="blue" x1="0%" y1="0%" x2="35%" y2="100%"><stop stop-color="#0875c9"/><stop offset="0.5" stop-color="#0767b1"/><stop offset="1" stop-color="#06528d"/></linearGradient>
5
+ <linearGradient id="stem" x1="189" y1="0" x2="173" y2="0" gradientUnits="userSpaceOnUse"><stop stop-color="#65d82f"/><stop offset="1" stop-color="#35b919"/></linearGradient>
6
+ <linearGradient id="green" x2="0.35" y2="1"><stop stop-color="#8bed43"/><stop offset="0.5" stop-color="#65d82f"/><stop offset="1" stop-color="#35b919"/></linearGradient>
7
+ </defs><path fill="url(#blue)" transform="translate(160 260)" d="M -120 -4 L -87.5 -17 L -20 10 Q 0 18 20 10 L 87.5 -17 L 120 -4 Q 130 0 120 4 L 20 44 Q 0 52 -20 44 L -120 4 Q -130 0 -120 -4 Z"/><path fill="url(#cyan)" transform="translate(160 213)" d="M -120 -4 L -87.5 -17 L -20 10 Q 0 18 20 10 L 87.5 -17 L 120 -4 Q 130 0 120 4 L 20 44 Q 0 52 -20 44 L -120 4 Q -130 0 -120 -4 Z"/><path fill="url(#turquoise)" transform="translate(160 166)" d="M -120 -4 L -58 -28.8 Q -48 -32.8 -38 -28.8 L -8 -16.8 Q 0 -13.6 8 -16.8 L 38 -28.8 Q 48 -32.8 58 -28.8 L 120 -4 Q 130 0 120 4 L 20 44 Q 0 52 -20 44 L -120 4 Q -130 0 -120 -4 Z"/><g transform="translate(-21 -2.5)"><path fill="url(#stem)" d="M 173 166 L 173 127 Q 172 115 160 107 L 166 98 Q 176 104 181 116 Q 186 103 194 97 L 201 104 Q 189 117 189 132 L 189 166 Q 181 171 173 166 Z"/><path fill="url(#green)" d="M 177 126 C 165 78 145 45 94 47 Q 86 47 88 56 C 94 101 119 124 160 120 Z"/><path fill="url(#green)" d="M 181 116 C 179 57 214 19 275 23 Q 283 23 281 32 C 275 85 238 116 195 111 Z"/><defs>
8
+ <linearGradient id="leaf-detail-left" x1="102" y1="61" x2="166" y2="115" gradientUnits="userSpaceOnUse"><stop stop-color="#ffffff" stop-opacity="0"/><stop offset="0.35" stop-color="#ffffff" stop-opacity="0.36"/><stop offset="0.75" stop-color="#ffffff" stop-opacity="0.3"/><stop offset="1" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
9
+ <linearGradient id="leaf-detail-right" x1="265" y1="35" x2="190" y2="103" gradientUnits="userSpaceOnUse"><stop stop-color="#ffffff" stop-opacity="0"/><stop offset="0.35" stop-color="#ffffff" stop-opacity="0.36"/><stop offset="0.75" stop-color="#ffffff" stop-opacity="0.3"/><stop offset="1" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
10
+ </defs>
11
+ <g fill="none" stroke="url(#leaf-detail-left)" stroke-linecap="round">
12
+ <path d="M 102 61 C 126 76 150 96 166 115" stroke-width="1.4"/>
13
+ <path d="M 134 84 C 130 77 128 71 126 66 M 149 99 C 141 101 134 102 127 101" stroke-width="0.9" opacity="0.5"/>
14
+ </g>
15
+ <g fill="none" stroke="url(#leaf-detail-right)" stroke-linecap="round">
16
+ <path d="M 265 35 C 238 52 208 77 190 103" stroke-width="1.4"/>
17
+ <path d="M 233 59 C 235 50 239 42 244 36 M 213 78 C 222 79 229 78 237 75" stroke-width="0.9" opacity="0.5"/>
18
+ </g></g><g fill="#0b1f3a"><path transform="translate(350 202) scale(0.184 -0.184)" d="M323 -10Q281 -10 237 -4Q193 2 154.5 14Q116 26 85 44Q62 56 53 75.5Q44 95 47 115Q50 135 61.5 150.5Q73 166 93 170.5Q113 175 136 163Q178 141 226.5 130Q275 119 323 119Q395 119 427 141Q459 163 459 197Q459 227 436.5 243.5Q414 260 359 271L246 295Q150 316 104 364.5Q58 413 58 492Q58 542 78.5 583.5Q99 625 136.5 654.5Q174 684 227 699.5Q280 715 344 715Q399 715 453 702Q507 689 549 663Q568 651 575.5 633Q583 615 580.5 595.5Q578 576 565.5 562.5Q553 549 534 545Q515 541 488 554Q456 571 418.5 578.5Q381 586 342 586Q300 586 270.5 575Q241 564 226 544.5Q211 525 211 498Q211 470 231.5 452Q252 434 304 423L416 399Q515 378 563.5 331.5Q612 285 612 209Q612 159 591 118.5Q570 78 532.5 49.5Q495 21 442.5 5.5Q390 -10 323 -10Z"/><path transform="translate(467.94831250000004 202) scale(0.184 -0.184)" d="M133 -188Q98 -188 78 -169Q58 -150 58 -112L58 423Q58 460 77.5 479.5Q97 499 133 499Q168 499 187.5 479.5Q207 460 207 423L207 355L196 394Q211 443 256.5 472Q302 501 361 501Q425 501 474 470Q523 439 549.5 382Q576 325 576 246Q576 167 549 109Q522 51 474 20.5Q426 -10 361 -10Q303 -10 258 18Q213 46 198 91L209 91L209 -112Q209 -150 189.5 -169Q170 -188 133 -188ZM316 102Q348 102 372.5 117.5Q397 133 410.5 165Q424 197 424 246Q424 319 394 353.5Q364 388 316 388Q284 388 259.5 373Q235 358 221.5 326Q208 294 208 246Q208 172 238 137Q268 102 316 102Z"/><path transform="translate(580.192625 202) scale(0.184 -0.184)" d="M136 -8Q98 -8 78 11.5Q58 31 58 68L58 423Q58 460 77.5 479.5Q97 499 133 499Q168 499 187 479.5Q206 460 206 423L206 371L196 371Q207 431 248.5 464Q290 497 356 501Q380 503 393.5 488.5Q407 474 409 440Q410 410 395.5 392Q381 374 347 370L324 368Q267 363 239.5 335Q212 307 212 254L212 68Q212 31 193 11.5Q174 -8 136 -8Z"/><path transform="translate(654.479615234375 202) scale(0.184 -0.184)" d="M294 -10Q215 -10 157 21Q99 52 66.5 109.5Q34 167 34 246Q34 305 52 352Q70 399 104.5 432.5Q139 466 187.5 483.5Q236 501 294 501Q373 501 431.5 470Q490 439 522.5 381.5Q555 324 555 246Q555 187 536.5 139Q518 91 484 58Q450 25 402 7.5Q354 -10 294 -10ZM294 102Q327 102 351 117.5Q375 133 389 165Q403 197 403 246Q403 319 373 353.5Q343 388 294 388Q262 388 237.5 373Q213 358 199.5 326Q186 294 186 246Q186 172 216 137Q246 102 294 102Z"/><path transform="translate(762.769005859375 202) scale(0.184 -0.184)" d="M239 -10Q177 -10 136 13Q95 36 75.5 81.5Q56 127 56 196L56 423Q56 461 75.5 480Q95 499 131 499Q167 499 187 480Q207 461 207 423L207 193Q207 150 225 128Q243 106 281 106Q325 106 352.5 136.5Q380 167 380 217L380 423Q380 461 400 480Q420 499 455 499Q492 499 511.5 480Q531 461 531 423L531 68Q531 -8 458 -8Q423 -8 403 11.5Q383 31 383 68L383 136L399 96Q377 44 336 17Q295 -10 239 -10Z"/><path transform="translate(871.2645878906251 202) scale(0.184 -0.184)" d="M299 -10Q230 -10 183.5 12.5Q137 35 115 79Q93 123 93 190L93 379L49 379Q22 379 6.5 393.5Q-9 408 -9 435Q-9 462 6.5 476Q22 490 49 490L93 490L93 567Q93 605 112.5 624Q132 643 168 643Q205 643 224.5 624Q244 605 244 567L244 490L337 490Q366 490 381 476Q396 462 396 435Q396 408 381 393.5Q366 379 337 379L244 379L244 196Q244 154 263 133.5Q282 113 325 113Q340 113 353.5 116Q367 119 376 119Q390 120 399.5 110.5Q409 101 409 69Q409 44 401.5 26Q394 8 373 1Q360 -3 337 -6.5Q314 -10 299 -10Z"/><path transform="translate(945.6668476562502 202) scale(0.184 -0.184)" d="M246 -10Q203 -10 156 -2.5Q109 5 72 24Q51 34 42.5 49.5Q34 65 35 81.5Q36 98 45.5 110.5Q55 123 70.5 127.5Q86 132 105 124Q146 107 180.5 100Q215 93 247 93Q289 93 309 107Q329 121 329 143Q329 162 316 171.5Q303 181 278 186L172 205Q111 217 77.5 251Q44 285 44 339Q44 390 72 426Q100 462 149.5 481.5Q199 501 262 501Q307 501 344.5 493Q382 485 418 466Q436 458 443.5 443Q451 428 448 412Q445 396 435.5 383.5Q426 371 410.5 366.5Q395 362 374 371Q342 384 315 390.5Q288 397 265 397Q219 397 198.5 383Q178 369 178 347Q178 330 190 318.5Q202 307 226 303L332 285Q396 273 430 240.5Q464 208 464 153Q464 75 404.5 32.5Q345 -10 246 -10Z"/><path transform="translate(1036.208099609375 202) scale(0.184 -0.184)" d="M133 -8Q98 -8 78 13.5Q58 35 58 74L58 417Q58 457 78 477.5Q98 498 133 498Q170 498 189.5 477.5Q209 457 209 417L209 74Q209 35 190 13.5Q171 -8 133 -8ZM133 580Q92 580 70 600Q48 620 48 657Q48 693 70 712.5Q92 732 133 732Q175 732 197.5 712.5Q220 693 220 657Q220 620 197.5 600Q175 580 133 580Z"/><path transform="translate(1085.4911250000002 202) scale(0.184 -0.184)" d="M299 -10Q230 -10 183.5 12.5Q137 35 115 79Q93 123 93 190L93 379L49 379Q22 379 6.5 393.5Q-9 408 -9 435Q-9 462 6.5 476Q22 490 49 490L93 490L93 567Q93 605 112.5 624Q132 643 168 643Q205 643 224.5 624Q244 605 244 567L244 490L337 490Q366 490 381 476Q396 462 396 435Q396 408 381 393.5Q366 379 337 379L244 379L244 196Q244 154 263 133.5Q282 113 325 113Q340 113 353.5 116Q367 119 376 119Q390 120 399.5 110.5Q409 101 409 69Q409 44 401.5 26Q394 8 373 1Q360 -3 337 -6.5Q314 -10 299 -10Z"/><path transform="translate(1158.9733847656253 202) scale(0.184 -0.184)" d="M313 -10Q226 -10 163.5 21Q101 52 67.5 109.5Q34 167 34 246Q34 322 66.5 378.5Q99 435 156 468Q213 501 285 501Q340 501 382.5 483.5Q425 466 456 433.5Q487 401 503 354.5Q519 308 519 251Q519 232 507 222.5Q495 213 472 213L159 213L159 291L410 291L394 277Q394 318 382 345.5Q370 373 347.5 387.5Q325 402 292 402Q255 402 229 385Q203 368 189 335.5Q175 303 175 258L175 250Q175 174 210 138Q245 102 316 102Q340 102 370.5 108Q401 114 429 127Q453 138 470 134Q487 130 497.5 117.5Q508 105 509 88Q510 71 501.5 54.5Q493 38 473 27Q438 7 395 -1.5Q352 -10 313 -10Z"/></g><g fill="#0b1f3a"><path transform="translate(363 271) scale(0.031 -0.031)" d="M316 -8Q279 -8 259 12.5Q239 33 239 71L239 577L63 577Q31 577 14 594Q-3 611 -3 642Q-3 672 14 688.5Q31 705 63 705L571 705Q602 705 619 688.5Q636 672 636 642Q636 611 619 594Q602 577 571 577L394 577L394 71Q394 33 374.5 12.5Q355 -8 316 -8Z"/><path transform="translate(398.38305684570315 271) scale(0.031 -0.031)" d="M148 -8Q111 -8 91 12.5Q71 33 71 71L71 634Q71 673 91 693Q111 713 148 713Q186 713 206 693Q226 673 226 634L226 421L553 421L553 634Q553 673 573.5 693Q594 713 632 713Q669 713 689 693Q709 673 709 634L709 71Q709 33 689 12.5Q669 -8 632 -8Q594 -8 573.5 12.5Q553 33 553 71L553 293L226 293L226 71Q226 33 206.5 12.5Q187 -8 148 -8Z"/><path transform="translate(438.33246061523437 271) scale(0.031 -0.031)" d="M152 0Q113 0 92 21Q71 42 71 82L71 623Q71 663 92 684Q113 705 152 705L501 705Q531 705 546.5 689.5Q562 674 562 645Q562 615 546.5 599.5Q531 584 501 584L220 584L220 419L479 419Q510 419 525 403.5Q540 388 540 358Q540 329 525 313.5Q510 298 479 298L220 298L220 121L501 121Q531 121 546.5 105.5Q562 90 562 60Q562 31 546.5 15.5Q531 0 501 0Z"/><path transform="translate(472.88412561523444 271) scale(0.031 -0.031)" d=""/><path transform="translate(497.30066000000005 271) scale(0.031 -0.031)" d="M90 -8Q62 -8 44.5 4.5Q27 17 23 39Q19 61 31 88L288 650Q304 683 326.5 698Q349 713 377 713Q406 713 428 698Q450 683 466 650L723 88Q736 60 732.5 38.5Q729 17 711.5 4.5Q694 -8 668 -8Q634 -8 615.5 7.5Q597 23 583 57L523 196L585 153L168 153L230 196L171 57Q155 23 139 7.5Q123 -8 90 -8ZM376 540L247 234L220 274L533 274L507 234L378 540Z"/><path transform="translate(535.9151943847658 271) scale(0.031 -0.031)" d="M420 -10Q301 -10 219 34.5Q137 79 93.5 160Q50 241 50 350Q50 434 75.5 501Q101 568 149 616.5Q197 665 267 690Q337 715 425 715Q479 715 533 704Q587 693 637 664Q658 651 665.5 632.5Q673 614 669.5 594Q666 574 653.5 558.5Q641 543 621.5 538Q602 533 577 546Q544 564 506.5 573Q469 582 426 582Q355 582 307.5 555Q260 528 236 476.5Q212 425 212 350Q212 237 266.5 179Q321 121 428 121Q463 121 501.5 128.5Q540 136 577 148L548 84L548 277L458 277Q428 277 412 292Q396 307 396 334Q396 360 412 374.5Q428 389 458 389L614 389Q644 389 660 373Q676 357 676 328L676 95Q676 68 665.5 50.5Q655 33 632 25Q587 9 531 -0.5Q475 -10 420 -10Z"/><path transform="translate(574.6884675390626 271) scale(0.031 -0.031)" d="M152 0Q113 0 92 21Q71 42 71 82L71 623Q71 663 92 684Q113 705 152 705L501 705Q531 705 546.5 689.5Q562 674 562 645Q562 615 546.5 599.5Q531 584 501 584L220 584L220 419L479 419Q510 419 525 403.5Q540 388 540 358Q540 329 525 313.5Q510 298 479 298L220 298L220 121L501 121Q531 121 546.5 105.5Q562 90 562 60Q562 31 546.5 15.5Q531 0 501 0Z"/><path transform="translate(609.2401325390626 271) scale(0.031 -0.031)" d="M143 -8Q108 -8 89.5 10.5Q71 29 71 65L71 636Q71 674 89.5 693.5Q108 713 139 713Q166 713 180.5 703Q195 693 214 670L565 222L537 222L537 641Q537 675 556 694Q575 713 611 713Q645 713 663.5 694Q682 675 682 641L682 63Q682 30 665 11Q648 -8 619 -8Q591 -8 574.5 2.5Q558 13 538 36L188 484L215 484L215 65Q215 29 196.5 10.5Q178 -8 143 -8Z"/><path transform="translate(648.3562750781251 271) scale(0.031 -0.031)" d="M316 -8Q279 -8 259 12.5Q239 33 239 71L239 577L63 577Q31 577 14 594Q-3 611 -3 642Q-3 672 14 688.5Q31 705 63 705L571 705Q602 705 619 688.5Q636 672 636 642Q636 611 619 594Q602 577 571 577L394 577L394 71Q394 33 374.5 12.5Q355 -8 316 -8Z"/><path transform="translate(682.231911513672 271) scale(0.031 -0.031)" d="M117 209Q92 209 74.5 226Q57 243 57 268Q57 295 74.5 311Q92 327 117 327L323 327Q349 327 366 311Q383 295 383 268Q383 243 366 226Q349 209 323 209Z"/><path transform="translate(711.6431846679689 271) scale(0.031 -0.031)" d="M148 -8Q111 -8 91 12.5Q71 33 71 71L71 626Q71 665 91.5 685Q112 705 149 705L393 705Q510 705 574.5 648Q639 591 639 489Q639 423 610 375Q581 327 526 301Q471 275 393 275L402 291L442 291Q484 291 515.5 271Q547 251 569 209L632 93Q647 68 645.5 44.5Q644 21 627 6.5Q610 -8 577 -8Q544 -8 523.5 5.5Q503 19 487 48L390 224Q376 253 354.5 262.5Q333 272 301 272L226 272L226 71Q226 33 206.5 12.5Q187 -8 148 -8ZM226 385L366 385Q427 385 458.5 410Q490 435 490 485Q490 534 458.5 559Q427 584 366 584L226 584Z"/><path transform="translate(749.0024006933595 271) scale(0.031 -0.031)" d="M152 0Q113 0 92 21Q71 42 71 82L71 623Q71 663 92 684Q113 705 152 705L501 705Q531 705 546.5 689.5Q562 674 562 645Q562 615 546.5 599.5Q531 584 501 584L220 584L220 419L479 419Q510 419 525 403.5Q540 388 540 358Q540 329 525 313.5Q510 298 479 298L220 298L220 121L501 121Q531 121 546.5 105.5Q562 90 562 60Q562 31 546.5 15.5Q531 0 501 0Z"/><path transform="translate(783.180196308594 271) scale(0.031 -0.031)" d="M90 -8Q62 -8 44.5 4.5Q27 17 23 39Q19 61 31 88L288 650Q304 683 326.5 698Q349 713 377 713Q406 713 428 698Q450 683 466 650L723 88Q736 60 732.5 38.5Q729 17 711.5 4.5Q694 -8 668 -8Q634 -8 615.5 7.5Q597 23 583 57L523 196L585 153L168 153L230 196L171 57Q155 23 139 7.5Q123 -8 90 -8ZM376 540L247 234L220 274L533 274L507 234L378 540Z"/><path transform="translate(822.3082817187502 271) scale(0.031 -0.031)" d="M152 0Q113 0 92 21Q71 42 71 82L71 623Q71 663 92 684Q113 705 152 705L347 705Q527 705 626 613.5Q725 522 725 353Q725 269 699.5 203Q674 137 625.5 92Q577 47 507.5 23.5Q438 0 347 0ZM226 127L337 127Q394 127 436.5 141.5Q479 156 507 183.5Q535 211 549 253.5Q563 296 563 353Q563 467 507 522.5Q451 578 337 578L226 578Z"/><path transform="translate(860.777889589844 271) scale(0.031 -0.031)" d="M315 -8Q278 -8 258 12.5Q238 33 238 72L238 361L270 272L35 608Q19 629 21 653.5Q23 678 41.5 695.5Q60 713 93 713Q117 713 136.5 701.5Q156 690 174 664L334 433L301 433L462 664Q481 690 499.5 701.5Q518 713 543 713Q575 713 593 697Q611 681 612 656.5Q613 632 596 606L362 272L393 361L393 72Q393 -8 315 -8Z"/><path transform="translate(896.126207666016 271) scale(0.031 -0.031)" d=""/><path transform="translate(920.5427420507816 271) scale(0.031 -0.031)" d="M323 -10Q281 -10 237 -4Q193 2 154.5 14Q116 26 85 44Q62 56 53 75.5Q44 95 47 115Q50 135 61.5 150.5Q73 166 93 170.5Q113 175 136 163Q178 141 226.5 130Q275 119 323 119Q395 119 427 141Q459 163 459 197Q459 227 436.5 243.5Q414 260 359 271L246 295Q150 316 104 364.5Q58 413 58 492Q58 542 78.5 583.5Q99 625 136.5 654.5Q174 684 227 699.5Q280 715 344 715Q399 715 453 702Q507 689 549 663Q568 651 575.5 633Q583 615 580.5 595.5Q578 576 565.5 562.5Q553 549 534 545Q515 541 488 554Q456 571 418.5 578.5Q381 586 342 586Q300 586 270.5 575Q241 564 226 544.5Q211 525 211 498Q211 470 231.5 452Q252 434 304 423L416 399Q515 378 563.5 331.5Q612 285 612 209Q612 159 591 118.5Q570 78 532.5 49.5Q495 21 442.5 5.5Q390 -10 323 -10Z"/><path transform="translate(955.7319580761723 271) scale(0.031 -0.031)" d="M316 -8Q279 -8 259 12.5Q239 33 239 71L239 577L63 577Q31 577 14 594Q-3 611 -3 642Q-3 672 14 688.5Q31 705 63 705L571 705Q602 705 619 688.5Q636 672 636 642Q636 611 619 594Q602 577 571 577L394 577L394 71Q394 33 374.5 12.5Q355 -8 316 -8Z"/><path transform="translate(988.6775945117192 271) scale(0.031 -0.031)" d="M90 -8Q62 -8 44.5 4.5Q27 17 23 39Q19 61 31 88L288 650Q304 683 326.5 698Q349 713 377 713Q406 713 428 698Q450 683 466 650L723 88Q736 60 732.5 38.5Q729 17 711.5 4.5Q694 -8 668 -8Q634 -8 615.5 7.5Q597 23 583 57L523 196L585 153L168 153L230 196L171 57Q155 23 139 7.5Q123 -8 90 -8ZM376 540L247 234L220 274L533 274L507 234L378 540Z"/><path transform="translate(1025.3682595117193 271) scale(0.031 -0.031)" d="M316 -8Q279 -8 259 12.5Q239 33 239 71L239 577L63 577Q31 577 14 594Q-3 611 -3 642Q-3 672 14 688.5Q31 705 63 705L571 705Q602 705 619 688.5Q636 672 636 642Q636 611 619 594Q602 577 571 577L394 577L394 71Q394 33 374.5 12.5Q355 -8 316 -8Z"/><path transform="translate(1060.7513163574222 271) scale(0.031 -0.031)" d="M148 -8Q111 -8 91 12.5Q71 33 71 71L71 634Q71 673 91 693Q111 713 148 713Q186 713 206 693Q226 673 226 634L226 71Q226 33 206.5 12.5Q187 -8 148 -8Z"/><path transform="translate(1085.7321854589848 271) scale(0.031 -0.031)" d="M412 -10Q299 -10 217.5 34.5Q136 79 93 161Q50 243 50 353Q50 435 74.5 502Q99 569 146 617Q193 665 260.5 690Q328 715 412 715Q464 715 515 703Q566 691 604 668Q629 653 638 632.5Q647 612 643.5 591.5Q640 571 626.5 555.5Q613 540 593 535.5Q573 531 548 545Q518 563 485.5 571Q453 579 418 579Q351 579 305.5 552.5Q260 526 237.5 476.5Q215 427 215 353Q215 281 237.5 230Q260 179 305.5 152.5Q351 126 418 126Q450 126 483.5 134Q517 142 548 159Q574 172 594 168.5Q614 165 627.5 150.5Q641 136 645 115.5Q649 95 641 75.5Q633 56 611 42Q573 17 520 3.5Q467 -10 412 -10Z"/><path transform="translate(1122.7111973828128 271) scale(0.031 -0.031)" d=""/><path transform="translate(1147.1277317675786 271) scale(0.031 -0.031)" d="M412 -10Q299 -10 217.5 34.5Q136 79 93 161Q50 243 50 353Q50 435 74.5 502Q99 569 146 617Q193 665 260.5 690Q328 715 412 715Q464 715 515 703Q566 691 604 668Q629 653 638 632.5Q647 612 643.5 591.5Q640 571 626.5 555.5Q613 540 593 535.5Q573 531 548 545Q518 563 485.5 571Q453 579 418 579Q351 579 305.5 552.5Q260 526 237.5 476.5Q215 427 215 353Q215 281 237.5 230Q260 179 305.5 152.5Q351 126 418 126Q450 126 483.5 134Q517 142 548 159Q574 172 594 168.5Q614 165 627.5 150.5Q641 136 645 115.5Q649 95 641 75.5Q633 56 611 42Q573 17 520 3.5Q467 -10 412 -10Z"/><path transform="translate(1184.1067436914068 271) scale(0.031 -0.031)" d="M143 -8Q109 -8 91 10.5Q73 29 73 64L73 641Q73 677 92.5 695Q112 713 146 713Q176 713 193.5 702Q211 691 225 664L456 242L424 242L655 664Q669 691 686.5 702Q704 713 734 713Q767 713 785.5 695Q804 677 804 641L804 64Q804 29 786 10.5Q768 -8 733 -8Q700 -8 681.5 10.5Q663 29 663 64L663 468L685 468L498 135Q487 116 473.5 107Q460 98 439 98Q416 98 402 107.5Q388 117 377 135L190 469L213 469L213 64Q213 29 195.5 10.5Q178 -8 143 -8Z"/><path transform="translate(1227.0399882812503 271) scale(0.031 -0.031)" d="M323 -10Q281 -10 237 -4Q193 2 154.5 14Q116 26 85 44Q62 56 53 75.5Q44 95 47 115Q50 135 61.5 150.5Q73 166 93 170.5Q113 175 136 163Q178 141 226.5 130Q275 119 323 119Q395 119 427 141Q459 163 459 197Q459 227 436.5 243.5Q414 260 359 271L246 295Q150 316 104 364.5Q58 413 58 492Q58 542 78.5 583.5Q99 625 136.5 654.5Q174 684 227 699.5Q280 715 344 715Q399 715 453 702Q507 689 549 663Q568 651 575.5 633Q583 615 580.5 595.5Q578 576 565.5 562.5Q553 549 534 545Q515 541 488 554Q456 571 418.5 578.5Q381 586 342 586Q300 586 270.5 575Q241 564 226 544.5Q211 525 211 498Q211 470 231.5 452Q252 434 304 423L416 399Q515 378 563.5 331.5Q612 285 612 209Q612 159 591 118.5Q570 78 532.5 49.5Q495 21 442.5 5.5Q390 -10 323 -10Z"/></g></svg>
@@ -0,0 +1,41 @@
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>
@@ -0,0 +1,65 @@
1
+ ---
2
+ type BadgeVariant =
3
+ | 'default'
4
+ | 'primary'
5
+ | 'secondary'
6
+ | 'accent'
7
+ | 'neutral'
8
+ | 'info'
9
+ | 'success'
10
+ | 'warning'
11
+ | 'error';
12
+ type BadgeStyle = 'solid' | 'outline' | 'soft' | 'dash';
13
+ type BadgeSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
+
15
+ /** A compact DaisyUI status or category label with a default slot for its text. */
16
+ interface Props {
17
+ /** Semantic color variant. */
18
+ variant?: BadgeVariant;
19
+ /** Visual treatment independent of the color variant. */
20
+ style?: BadgeStyle;
21
+ /** Badge size. */
22
+ size?: BadgeSize;
23
+ }
24
+
25
+ const { variant = 'default', style = 'solid', size = 'md' } = Astro.props;
26
+
27
+ const variantClasses: Record<BadgeVariant, string> = {
28
+ default: '',
29
+ primary: 'badge-primary',
30
+ secondary: 'badge-secondary',
31
+ accent: 'badge-accent',
32
+ neutral: 'badge-neutral',
33
+ info: 'badge-info',
34
+ success: 'badge-success',
35
+ warning: 'badge-warning',
36
+ error: 'badge-error',
37
+ };
38
+ const styleClasses: Record<BadgeStyle, string> = {
39
+ solid: '',
40
+ outline: 'badge-outline',
41
+ soft: 'badge-soft',
42
+ dash: 'badge-dash',
43
+ };
44
+ const sizeClasses: Record<BadgeSize, string> = {
45
+ xs: 'badge-xs',
46
+ sm: 'badge-sm',
47
+ md: 'badge-md',
48
+ lg: 'badge-lg',
49
+ xl: 'badge-xl',
50
+ };
51
+ ---
52
+
53
+ <span
54
+ class:list={[
55
+ 'ss-badge',
56
+ 'badge',
57
+ 'not-prose',
58
+ variantClasses[variant],
59
+ styleClasses[style],
60
+ sizeClasses[size],
61
+ ]}
62
+ >
63
+ {/* @slot Short status or category text. */}
64
+ <slot />
65
+ </span>
@@ -0,0 +1,5 @@
1
+ @layer components {
2
+ .ss-badge {
3
+ @apply m-1 font-semibold;
4
+ }
5
+ }
@@ -0,0 +1,26 @@
1
+ ---
2
+ import icon from '../../../assets/branding/icon.svg?url&no-inline';
3
+
4
+ interface Props {
5
+ name: string;
6
+ }
7
+ const { name } = Astro.props;
8
+ const highlight = name === 'Sproutsite' ? 'site' : undefined;
9
+ const highlightStart = highlight ? name.indexOf(highlight) : -1;
10
+ const hasHighlight = highlightStart >= 0 && highlight !== undefined;
11
+ const nameBeforeHighlight = hasHighlight ? name.slice(0, highlightStart) : name;
12
+ const nameAfterHighlight = hasHighlight
13
+ ? name.slice(highlightStart + highlight.length)
14
+ : undefined;
15
+ ---
16
+
17
+ <span class="ss-brand-logo">
18
+ {name === 'Sproutsite' && <img src={icon} width="40" height="40" alt="" />}
19
+ <span class="ss-brand-logo__name">
20
+ {nameBeforeHighlight}
21
+ {hasHighlight && (
22
+ <span class="ss-brand-logo__highlight">{highlight}</span>
23
+ )}
24
+ {nameAfterHighlight}
25
+ </span>
26
+ </span>
@@ -0,0 +1,22 @@
1
+ @layer components {
2
+ .ss-brand-logo {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: 0.625rem;
6
+ font-family: var(--font-heading);
7
+ font-size: 1.5rem;
8
+ font-weight: 800;
9
+ line-height: 1;
10
+ letter-spacing: -0.025em;
11
+
12
+ img {
13
+ flex: none;
14
+ width: 2.5rem;
15
+ height: 2.5rem;
16
+ }
17
+
18
+ .ss-brand-logo__highlight {
19
+ color: var(--ss-brand-highlight, var(--color-hero-cyan));
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,106 @@
1
+ ---
2
+ import { contentHref } from '../../../../../lib/sproutsite/urls.js';
3
+ import { loadSiteConfig } from '../../../../../lib/sproutsite/site-config.js';
4
+ import type { HTMLAttributes } from 'astro/types';
5
+
6
+ type ButtonVariant =
7
+ | 'primary'
8
+ | 'secondary'
9
+ | 'accent'
10
+ | 'neutral'
11
+ | 'info'
12
+ | 'success'
13
+ | 'warning'
14
+ | 'error';
15
+ type ButtonStyle = 'solid' | 'outline' | 'soft' | 'ghost' | 'link';
16
+ type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
17
+ type ButtonType = 'button' | 'submit' | 'reset';
18
+
19
+ /** A DaisyUI-styled link or native button with a default slot for its label. */
20
+ interface Props {
21
+ /** Semantic color variant. */
22
+ variant?: ButtonVariant;
23
+ /** Visual treatment independent of the color variant. */
24
+ style?: ButtonStyle;
25
+ /** Button size. */
26
+ size?: ButtonSize;
27
+ /** When set, the component renders an anchor instead of a button. */
28
+ href?: string;
29
+ /** Browsing context for a link. */
30
+ target?: HTMLAttributes<'a'>['target'];
31
+ /** Relationship of a link to its target. */
32
+ rel?: string;
33
+ /** Marks a link as the current page. */
34
+ 'aria-current'?: 'page';
35
+ /** Native button type for button actions. */
36
+ type?: ButtonType;
37
+ /** Disables a native button. Links cannot be disabled. */
38
+ disabled?: boolean;
39
+ }
40
+
41
+ const {
42
+ variant = 'primary',
43
+ style = 'solid',
44
+ size = 'md',
45
+ href,
46
+ target,
47
+ rel,
48
+ 'aria-current': ariaCurrent,
49
+ type = 'button',
50
+ disabled = false,
51
+ } = Astro.props;
52
+ const site = loadSiteConfig(Astro.currentLocale === 'de' ? 'de' : 'en');
53
+
54
+ if (href && disabled)
55
+ throw new Error('Sproutsite Button links cannot be disabled.');
56
+
57
+ const variantClasses: Record<ButtonVariant, string> = {
58
+ primary: 'btn-primary',
59
+ secondary: 'btn-secondary',
60
+ accent: 'btn-accent',
61
+ neutral: 'btn-neutral',
62
+ info: 'btn-info',
63
+ success: 'btn-success',
64
+ warning: 'btn-warning',
65
+ error: 'btn-error',
66
+ };
67
+ const styleClasses: Record<ButtonStyle, string> = {
68
+ solid: '',
69
+ outline: 'btn-outline',
70
+ soft: 'btn-soft',
71
+ ghost: 'btn-ghost',
72
+ link: 'btn-link',
73
+ };
74
+ const sizeClasses: Record<ButtonSize, string> = {
75
+ xs: 'btn-xs',
76
+ sm: 'btn-sm',
77
+ md: 'btn-md',
78
+ lg: 'btn-lg',
79
+ xl: 'btn-xl',
80
+ };
81
+ const classes = [
82
+ 'ss-button',
83
+ 'btn',
84
+ 'not-prose',
85
+ variantClasses[variant],
86
+ styleClasses[style],
87
+ sizeClasses[size],
88
+ ];
89
+ ---
90
+
91
+ {href ? (
92
+ <a
93
+ class:list={classes}
94
+ href={contentHref(href, site)}
95
+ target={target}
96
+ rel={rel}
97
+ aria-current={ariaCurrent}
98
+ >
99
+ {/* @slot Button label or other inline content. */}
100
+ <slot />
101
+ </a>
102
+ ) : (
103
+ <button class:list={classes} type={type} disabled={disabled}>
104
+ <slot />
105
+ </button>
106
+ )}
@@ -0,0 +1,14 @@
1
+ @layer components {
2
+ .ss-button {
3
+ @apply m-1 !gap-2.5 font-semibold;
4
+
5
+ > p:has(> .ss-icon) {
6
+ @apply m-0 inline-flex items-center gap-2.5;
7
+ }
8
+
9
+ .ss-icon {
10
+ display: block;
11
+ align-self: center;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,54 @@
1
+ ---
2
+ import type { ImageMetadata } from 'astro';
3
+ import { Image } from 'astro:assets';
4
+
5
+ type Shape = 'rounded' | 'square';
6
+ type Border = 'default' | 'none';
7
+
8
+ /** An optimized local Astro image with content-focused display options. */
9
+ interface Props {
10
+ /** Imported Astro image metadata. */
11
+ src: ImageMetadata;
12
+ /** Meaningful alternative text for the image. */
13
+ alt: string;
14
+ /** Optional rendered width in pixels. */
15
+ width?: number;
16
+ /** Optional rendered height in pixels; combines with width for a cover crop. */
17
+ height?: number;
18
+ /** Makes the image fill the available content width. */
19
+ fullWidth?: boolean;
20
+ /** Corner treatment. */
21
+ shape?: Shape;
22
+ /** Optional visible image border. */
23
+ border?: Border;
24
+ }
25
+
26
+ const {
27
+ src,
28
+ alt,
29
+ width,
30
+ height,
31
+ fullWidth = false,
32
+ shape = 'rounded',
33
+ border = 'none',
34
+ } = Astro.props;
35
+ ---
36
+
37
+ <Image
38
+ src={src}
39
+ alt={alt}
40
+ width={width}
41
+ height={height}
42
+ format="webp"
43
+ quality={80}
44
+ loading="lazy"
45
+ decoding="async"
46
+ class:list={[
47
+ 'ss-content-image',
48
+ fullWidth && 'ss-content-image--full',
49
+ shape === 'rounded'
50
+ ? 'ss-content-image--rounded'
51
+ : 'ss-content-image--square',
52
+ border === 'default' && 'ss-content-image--bordered',
53
+ ]}
54
+ />
@@ -0,0 +1,21 @@
1
+ @layer components {
2
+ .ss-content-image {
3
+ @apply block max-w-full object-cover;
4
+
5
+ &.ss-content-image--full {
6
+ @apply w-full;
7
+ }
8
+
9
+ &.ss-content-image--rounded {
10
+ @apply rounded-box;
11
+ }
12
+
13
+ &.ss-content-image--square {
14
+ @apply rounded-none;
15
+ }
16
+
17
+ &.ss-content-image--bordered {
18
+ @apply border border-base-300;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ <p class="ss-eyebrow">
2
+ <slot />
3
+ </p>
@@ -0,0 +1,18 @@
1
+ @layer components {
2
+ .ss-eyebrow {
3
+ @apply mb-1.5 text-sm font-bold tracking-wider uppercase;
4
+ font-family: var(--font-heading);
5
+ color: var(--ss-eyebrow-color, var(--color-primary));
6
+ display: flex;
7
+ align-items: center;
8
+ gap: 0.75rem;
9
+
10
+ &::before {
11
+ content: '';
12
+ flex: 0 0 1.25rem;
13
+ height: 2px;
14
+ border-radius: 999px;
15
+ background-color: currentColor;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,80 @@
1
+ ---
2
+ import { icons } from '@lucide/astro';
3
+
4
+ /** A locally rendered Lucide SVG; decorative unless a label is provided. */
5
+ interface Props {
6
+ /** Canonical Lucide component name, for example Sprout or ArrowRight. */
7
+ name: keyof typeof icons;
8
+ /** Width and height in pixels. */
9
+ size?: number;
10
+ /** Stroke width in the icon's 24 × 24 coordinate system. */
11
+ strokeWidth?: number;
12
+ /** Inherit the surrounding text color or use a semantic theme color. */
13
+ color?:
14
+ | 'inherit'
15
+ | 'primary'
16
+ | 'secondary'
17
+ | 'accent'
18
+ | 'info'
19
+ | 'success'
20
+ | 'warning'
21
+ | 'error';
22
+ /** Optional semantic background for a padded square with rounded corners. */
23
+ background?:
24
+ | 'primary'
25
+ | 'secondary'
26
+ | 'accent'
27
+ | 'neutral'
28
+ | 'info'
29
+ | 'success'
30
+ | 'warning'
31
+ | 'error';
32
+ /** Accessible name for meaningful standalone icons; omit beside visible text. */
33
+ label?: string;
34
+ }
35
+
36
+ const {
37
+ name,
38
+ size = 24,
39
+ strokeWidth = 2,
40
+ color = 'inherit',
41
+ background,
42
+ label,
43
+ } = Astro.props;
44
+ if (!Object.hasOwn(icons, name)) {
45
+ throw new Error(
46
+ `Sproutsite Icon: unknown Lucide name "${name}". Use a canonical component name such as Sprout or ArrowRight.`,
47
+ );
48
+ }
49
+ if (
50
+ !Number.isFinite(size) ||
51
+ size <= 0 ||
52
+ !Number.isFinite(strokeWidth) ||
53
+ strokeWidth <= 0
54
+ ) {
55
+ throw new Error(
56
+ 'Sproutsite Icon: size and strokeWidth must be positive finite numbers.',
57
+ );
58
+ }
59
+ if (label !== undefined && !label.trim()) {
60
+ throw new Error('Sproutsite Icon: label must be non-empty when provided.');
61
+ }
62
+ const LucideIcon = icons[name];
63
+ ---
64
+
65
+ <LucideIcon
66
+ class:list={[
67
+ 'ss-icon',
68
+ `ss-icon--${color}`,
69
+ background && [
70
+ 'ss-icon--background',
71
+ `ss-icon--background-${background}`,
72
+ ],
73
+ ]}
74
+ size={size}
75
+ stroke-width={strokeWidth}
76
+ focusable="false"
77
+ aria-hidden={label ? undefined : 'true'}
78
+ role={label ? 'img' : undefined}
79
+ aria-label={label?.trim()}
80
+ />
@@ -0,0 +1,68 @@
1
+ @layer components {
2
+ .ss-icon {
3
+ display: inline-block;
4
+ flex-shrink: 0;
5
+ vertical-align: -0.125em;
6
+
7
+ &.ss-icon--background {
8
+ box-sizing: content-box;
9
+ padding: 0.5em;
10
+ border-radius: 0.375rem;
11
+ }
12
+
13
+ &.ss-icon--background-primary {
14
+ background-color: var(--color-primary);
15
+ color: var(--color-primary-content);
16
+ }
17
+ &.ss-icon--background-secondary {
18
+ background-color: var(--color-secondary);
19
+ color: var(--color-secondary-content);
20
+ }
21
+ &.ss-icon--background-accent {
22
+ background-color: var(--color-accent);
23
+ color: var(--color-accent-content);
24
+ }
25
+ &.ss-icon--background-neutral {
26
+ background-color: var(--color-neutral);
27
+ color: var(--color-neutral-content);
28
+ }
29
+ &.ss-icon--background-info {
30
+ background-color: var(--color-info);
31
+ color: var(--color-info-content);
32
+ }
33
+ &.ss-icon--background-success {
34
+ background-color: var(--color-success);
35
+ color: var(--color-success-content);
36
+ }
37
+ &.ss-icon--background-warning {
38
+ background-color: var(--color-warning);
39
+ color: var(--color-warning-content);
40
+ }
41
+ &.ss-icon--background-error {
42
+ background-color: var(--color-error);
43
+ color: var(--color-error-content);
44
+ }
45
+
46
+ &.ss-icon--primary {
47
+ color: var(--color-primary);
48
+ }
49
+ &.ss-icon--secondary {
50
+ color: var(--color-secondary);
51
+ }
52
+ &.ss-icon--accent {
53
+ color: var(--color-accent);
54
+ }
55
+ &.ss-icon--info {
56
+ color: var(--color-info);
57
+ }
58
+ &.ss-icon--success {
59
+ color: var(--color-success);
60
+ }
61
+ &.ss-icon--warning {
62
+ color: var(--color-warning);
63
+ }
64
+ &.ss-icon--error {
65
+ color: var(--color-error);
66
+ }
67
+ }
68
+ }
@@ -0,0 +1,15 @@
1
+ ---
2
+ interface Props {
3
+ title: string;
4
+ }
5
+
6
+ const { title } = Astro.props;
7
+ if (!title?.trim()) throw new Error('Tab requires a non-empty title.');
8
+ ---
9
+
10
+ <div class="ss-tab" data-title={title}>
11
+ <p class="ss-tab__label">{title}</p>
12
+ <div class="ss-tab__content">
13
+ <slot />
14
+ </div>
15
+ </div>
@@ -0,0 +1,34 @@
1
+ @layer components {
2
+ .ss-tab {
3
+ @apply rounded-box border border-base-300 bg-base-100 p-5 sm:p-6;
4
+
5
+ &[hidden] {
6
+ display: none;
7
+ }
8
+
9
+ & + .ss-tab {
10
+ @apply mt-2;
11
+ }
12
+
13
+ .ss-tab__label {
14
+ @apply mt-0 font-bold;
15
+
16
+ &[hidden] {
17
+ display: none;
18
+ }
19
+ }
20
+
21
+ .ss-tab__content {
22
+ @apply min-w-0;
23
+ overflow-wrap: anywhere;
24
+
25
+ > :first-child:not(.ss-button) {
26
+ @apply mt-0;
27
+ }
28
+
29
+ > :last-child:not(.ss-button) {
30
+ @apply mb-0;
31
+ }
32
+ }
33
+ }
34
+ }