galley-cms 0.0.0-stage → 0.1.0
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 +76 -2
- package/bin/galley.js +29 -0
- package/dist/LICENSE +202 -0
- package/dist/NOTICE +19 -0
- package/dist/galley.mjs +168872 -0
- package/dist/overlay.js +60 -0
- package/dist/starters/README.md +257 -0
- package/dist/starters/astro-editorial/CONTENT-GUIDE.md +218 -0
- package/dist/starters/astro-editorial/LICENSE +21 -0
- package/dist/starters/astro-editorial/README.md +375 -0
- package/dist/starters/astro-editorial/astro.config.ts +50 -0
- package/dist/starters/astro-editorial/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-editorial/galley/photography/LOG.md +77 -0
- package/dist/starters/astro-editorial/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-editorial/galley/photography/shots.json +721 -0
- package/dist/starters/astro-editorial/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/night.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/film.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/form.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/look.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/story.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/about.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/about.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/contact.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/story.md +49 -0
- package/dist/starters/astro-editorial/galley/templates/story.webp +0 -0
- package/dist/starters/astro-editorial/galley.config.json +334 -0
- package/dist/starters/astro-editorial/gitignore +26 -0
- package/dist/starters/astro-editorial/netlify.toml +6 -0
- package/dist/starters/astro-editorial/package.json +46 -0
- package/dist/starters/astro-editorial/public/favicon.svg +5 -0
- package/dist/starters/astro-editorial/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-editorial/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-editorial/public/images/share.jpg +0 -0
- package/dist/starters/astro-editorial/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-editorial/scripts/gallery/gallery.astro +77 -0
- package/dist/starters/astro-editorial/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-editorial/scripts/gallery/sections.md +171 -0
- package/dist/starters/astro-editorial/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-editorial/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-editorial/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-editorial/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-editorial/scripts/starter-notice.json +9 -0
- package/dist/starters/astro-editorial/src/components/Actions.astro +31 -0
- package/dist/starters/astro-editorial/src/components/Footer.astro +195 -0
- package/dist/starters/astro-editorial/src/components/Header.astro +340 -0
- package/dist/starters/astro-editorial/src/components/Icon.astro +39 -0
- package/dist/starters/astro-editorial/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-editorial/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-editorial/src/components/Media.astro +37 -0
- package/dist/starters/astro-editorial/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-editorial/src/components/PieceList.astro +70 -0
- package/dist/starters/astro-editorial/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-editorial/src/components/PostList.astro +103 -0
- package/dist/starters/astro-editorial/src/components/Section.astro +47 -0
- package/dist/starters/astro-editorial/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-editorial/src/components/Sections.astro +81 -0
- package/dist/starters/astro-editorial/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-editorial/src/components/Tags.astro +68 -0
- package/dist/starters/astro-editorial/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-editorial/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-editorial/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-editorial/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-editorial/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-editorial/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-editorial/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-editorial/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-editorial/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-editorial/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-editorial/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-editorial/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-editorial/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-editorial/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-editorial/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-editorial/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-editorial/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-editorial/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-editorial/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-editorial/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-editorial/src/content/pages/404.md +14 -0
- package/dist/starters/astro-editorial/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-editorial/src/content/pages/collections.md +15 -0
- package/dist/starters/astro-editorial/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-editorial/src/content/pages/index.md +144 -0
- package/dist/starters/astro-editorial/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-editorial/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-editorial/src/content/pages/stockists.md +32 -0
- package/dist/starters/astro-editorial/src/content.config.ts +464 -0
- package/dist/starters/astro-editorial/src/data/navigation.json +60 -0
- package/dist/starters/astro-editorial/src/data/scripts.json +29 -0
- package/dist/starters/astro-editorial/src/data/site.json +86 -0
- package/dist/starters/astro-editorial/src/data/stockists.json +81 -0
- package/dist/starters/astro-editorial/src/data/visibility.json +30 -0
- package/dist/starters/astro-editorial/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-editorial/src/galley/catalog.js +42 -0
- package/dist/starters/astro-editorial/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-editorial/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-editorial/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-editorial/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-editorial/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-editorial/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-editorial/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-editorial/src/galley/components/index.js +5 -0
- package/dist/starters/astro-editorial/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-editorial/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-editorial/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-editorial/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-editorial/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-editorial/src/galley/integration.js +21 -0
- package/dist/starters/astro-editorial/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-editorial/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-editorial/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-editorial/src/galley/schema.js +338 -0
- package/dist/starters/astro-editorial/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-editorial/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-editorial/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-editorial/src/galley/settings.json +18 -0
- package/dist/starters/astro-editorial/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-editorial/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-editorial/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-editorial/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-editorial/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-editorial/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-editorial/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-editorial/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-editorial/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-editorial/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-editorial/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-editorial/src/layouts/Base.astro +98 -0
- package/dist/starters/astro-editorial/src/lib/journal.ts +45 -0
- package/dist/starters/astro-editorial/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-editorial/src/lib/site.ts +181 -0
- package/dist/starters/astro-editorial/src/pages/404.astro +13 -0
- package/dist/starters/astro-editorial/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-editorial/src/pages/collections/[slug].astro +23 -0
- package/dist/starters/astro-editorial/src/pages/collections/index.astro +66 -0
- package/dist/starters/astro-editorial/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-editorial/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-editorial/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-editorial/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-editorial/src/styles/global.css +661 -0
- package/dist/starters/astro-editorial/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-editorial/src/styles/tokens.css +181 -0
- package/dist/starters/astro-editorial/starter.json +52 -0
- package/dist/starters/astro-editorial/tsconfig.json +8 -0
- package/dist/starters/astro-saas/CONTENT-GUIDE.md +273 -0
- package/dist/starters/astro-saas/LICENSE +21 -0
- package/dist/starters/astro-saas/README.md +365 -0
- package/dist/starters/astro-saas/astro.config.ts +77 -0
- package/dist/starters/astro-saas/galley/previews/home.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/meridian.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/night-shift.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/signal.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/awards.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/case-studies.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/changelog.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/comparison.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-tabs.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/features.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/integrations.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/metrics.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing-table.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/screenshot.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/security.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/team.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/use-cases.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/about.md +50 -0
- package/dist/starters/astro-saas/galley/templates/about.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/contact.md +30 -0
- package/dist/starters/astro-saas/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.md +47 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/landing.md +76 -0
- package/dist/starters/astro-saas/galley/templates/landing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/pricing.md +77 -0
- package/dist/starters/astro-saas/galley/templates/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/product.md +69 -0
- package/dist/starters/astro-saas/galley/templates/product.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/solution.md +71 -0
- package/dist/starters/astro-saas/galley/templates/solution.webp +0 -0
- package/dist/starters/astro-saas/galley.config.json +286 -0
- package/dist/starters/astro-saas/gitignore +22 -0
- package/dist/starters/astro-saas/netlify.toml +6 -0
- package/dist/starters/astro-saas/package.json +45 -0
- package/dist/starters/astro-saas/public/favicon.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/easiest-setup.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/facilities-review.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/support-index.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/audit-schedule.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/certificate-register.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/four-numbers.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/fourteen-depots.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/offline-first.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/work-order-fields.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/corrin-foods.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/halbeck-retail.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/linmore-schools.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/ostrell-logistics.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/pellow-hotels.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/tamsett-facilities.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/vantry-health.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/wendmoor-senior-living.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/anika-thorvald.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/calum-ashby.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/dana-whitcombe.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/ellie-strand.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/grace-achterberg.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/hana-lindqvist.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/joel-marchetti.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/marcus-oyelaran.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/rosa-ferrante.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/sunmi-hollis.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/teodor-rask.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/tobi-merriden.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/dashboard.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/evidence.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/inspection.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/planner.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/reports.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/work-orders.svg +1 -0
- package/dist/starters/astro-saas/public/images/share.png +0 -0
- package/dist/starters/astro-saas/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-saas/scripts/gallery/gallery.astro +114 -0
- package/dist/starters/astro-saas/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-saas/scripts/gallery/sections.md +362 -0
- package/dist/starters/astro-saas/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-saas/src/components/Actions.astro +30 -0
- package/dist/starters/astro-saas/src/components/Announcement.astro +51 -0
- package/dist/starters/astro-saas/src/components/Checklist.astro +55 -0
- package/dist/starters/astro-saas/src/components/CustomerCard.astro +147 -0
- package/dist/starters/astro-saas/src/components/CustomerStory.astro +343 -0
- package/dist/starters/astro-saas/src/components/Footer.astro +204 -0
- package/dist/starters/astro-saas/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-saas/src/components/Frame.astro +88 -0
- package/dist/starters/astro-saas/src/components/Header.astro +489 -0
- package/dist/starters/astro-saas/src/components/Icon.astro +83 -0
- package/dist/starters/astro-saas/src/components/Logo.astro +40 -0
- package/dist/starters/astro-saas/src/components/Mark.astro +54 -0
- package/dist/starters/astro-saas/src/components/Media.astro +54 -0
- package/dist/starters/astro-saas/src/components/PageEntry.astro +65 -0
- package/dist/starters/astro-saas/src/components/PostCard.astro +99 -0
- package/dist/starters/astro-saas/src/components/PostList.astro +108 -0
- package/dist/starters/astro-saas/src/components/Section.astro +52 -0
- package/dist/starters/astro-saas/src/components/SectionHeader.astro +80 -0
- package/dist/starters/astro-saas/src/components/Sections.astro +100 -0
- package/dist/starters/astro-saas/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-saas/src/components/Tags.astro +67 -0
- package/dist/starters/astro-saas/src/components/UpdateEntry.astro +145 -0
- package/dist/starters/astro-saas/src/components/sections/Awards.astro +144 -0
- package/dist/starters/astro-saas/src/components/sections/CaseStudies.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/Changelog.astro +108 -0
- package/dist/starters/astro-saas/src/components/sections/Comparison.astro +132 -0
- package/dist/starters/astro-saas/src/components/sections/Contact.astro +105 -0
- package/dist/starters/astro-saas/src/components/sections/Cta.astro +121 -0
- package/dist/starters/astro-saas/src/components/sections/Faq.astro +142 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureSplit.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureTabs.astro +246 -0
- package/dist/starters/astro-saas/src/components/sections/Features.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/FormSection.astro +89 -0
- package/dist/starters/astro-saas/src/components/sections/Hero.astro +102 -0
- package/dist/starters/astro-saas/src/components/sections/HeroForm.astro +129 -0
- package/dist/starters/astro-saas/src/components/sections/HeroSplit.astro +140 -0
- package/dist/starters/astro-saas/src/components/sections/Integrations.astro +172 -0
- package/dist/starters/astro-saas/src/components/sections/Logos.astro +122 -0
- package/dist/starters/astro-saas/src/components/sections/Metrics.astro +97 -0
- package/dist/starters/astro-saas/src/components/sections/Newsletter.astro +94 -0
- package/dist/starters/astro-saas/src/components/sections/Posts.astro +93 -0
- package/dist/starters/astro-saas/src/components/sections/Pricing.astro +196 -0
- package/dist/starters/astro-saas/src/components/sections/PricingTable.astro +151 -0
- package/dist/starters/astro-saas/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-saas/src/components/sections/Screenshot.astro +112 -0
- package/dist/starters/astro-saas/src/components/sections/Security.astro +167 -0
- package/dist/starters/astro-saas/src/components/sections/Steps.astro +177 -0
- package/dist/starters/astro-saas/src/components/sections/Team.astro +135 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonial.astro +118 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonials.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-saas/src/components/sections/UseCases.astro +166 -0
- package/dist/starters/astro-saas/src/content/blog/audit-ready-maintenance-schedule.md +41 -0
- package/dist/starters/astro-saas/src/content/blog/certificate-register.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/four-maintenance-numbers.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/fourteen-depots-off-spreadsheets.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/offline-first-inspections.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/work-order-fields.md +43 -0
- package/dist/starters/astro-saas/src/content/changelog/asset-qr-labels.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/certificate-forecasts.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/contractor-bulk-upload.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/faster-planner.md +11 -0
- package/dist/starters/astro-saas/src/content/changelog/offline-inspections.md +16 -0
- package/dist/starters/astro-saas/src/content/changelog/scim-provisioning.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/weekly-reminders-fix.md +11 -0
- package/dist/starters/astro-saas/src/content/customers/linmore-schools.md +53 -0
- package/dist/starters/astro-saas/src/content/customers/ostrell-logistics.md +59 -0
- package/dist/starters/astro-saas/src/content/customers/pellow-hotels.md +47 -0
- package/dist/starters/astro-saas/src/content/customers/wendmoor-senior-living.md +47 -0
- package/dist/starters/astro-saas/src/content/forms/contact.json +31 -0
- package/dist/starters/astro-saas/src/content/forms/demo.json +133 -0
- package/dist/starters/astro-saas/src/content/forms/newsletter.json +13 -0
- package/dist/starters/astro-saas/src/content/pages/404.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/about.md +83 -0
- package/dist/starters/astro-saas/src/content/pages/blog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/changelog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/contact.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/customers.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/index.md +161 -0
- package/dist/starters/astro-saas/src/content/pages/pricing.md +131 -0
- package/dist/starters/astro-saas/src/content/pages/privacy.md +38 -0
- package/dist/starters/astro-saas/src/content/pages/product.md +152 -0
- package/dist/starters/astro-saas/src/content/pages/security.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/facilities-teams.md +114 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/service-contractors.md +88 -0
- package/dist/starters/astro-saas/src/content/pages/terms.md +31 -0
- package/dist/starters/astro-saas/src/content/team/anika-thorvald.md +7 -0
- package/dist/starters/astro-saas/src/content/team/calum-ashby.md +7 -0
- package/dist/starters/astro-saas/src/content/team/hana-lindqvist.md +10 -0
- package/dist/starters/astro-saas/src/content/team/joel-marchetti.md +7 -0
- package/dist/starters/astro-saas/src/content/team/rosa-ferrante.md +7 -0
- package/dist/starters/astro-saas/src/content/team/tobi-merriden.md +10 -0
- package/dist/starters/astro-saas/src/content.config.ts +746 -0
- package/dist/starters/astro-saas/src/data/navigation.json +146 -0
- package/dist/starters/astro-saas/src/data/scripts.json +10 -0
- package/dist/starters/astro-saas/src/data/site.json +105 -0
- package/dist/starters/astro-saas/src/data/visibility.json +32 -0
- package/dist/starters/astro-saas/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-saas/src/galley/catalog.js +42 -0
- package/dist/starters/astro-saas/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-saas/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-saas/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-saas/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-saas/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-saas/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-saas/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-saas/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-saas/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-saas/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-saas/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-saas/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-saas/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-saas/src/galley/components/index.js +5 -0
- package/dist/starters/astro-saas/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-saas/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-saas/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-saas/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-saas/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-saas/src/galley/integration.js +21 -0
- package/dist/starters/astro-saas/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-saas/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-saas/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-saas/src/galley/schema.js +338 -0
- package/dist/starters/astro-saas/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-saas/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-saas/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-saas/src/galley/settings.json +18 -0
- package/dist/starters/astro-saas/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-saas/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-saas/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-saas/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-saas/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-saas/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-saas/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-saas/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-saas/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-saas/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-saas/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-saas/src/layouts/Base.astro +106 -0
- package/dist/starters/astro-saas/src/lib/customers.ts +18 -0
- package/dist/starters/astro-saas/src/lib/posts.ts +47 -0
- package/dist/starters/astro-saas/src/lib/site.ts +222 -0
- package/dist/starters/astro-saas/src/pages/404.astro +13 -0
- package/dist/starters/astro-saas/src/pages/[...slug].astro +27 -0
- package/dist/starters/astro-saas/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-saas/src/pages/blog/[slug].astro +298 -0
- package/dist/starters/astro-saas/src/pages/blog/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-saas/src/pages/changelog.astro +41 -0
- package/dist/starters/astro-saas/src/pages/customers/[slug].astro +32 -0
- package/dist/starters/astro-saas/src/styles/global.css +651 -0
- package/dist/starters/astro-saas/src/styles/kit.css +70 -0
- package/dist/starters/astro-saas/src/styles/themes/meridian.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/night-shift.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/signal.css +173 -0
- package/dist/starters/astro-saas/src/styles/tokens.css +173 -0
- package/dist/starters/astro-saas/starter-notice.json +9 -0
- package/dist/starters/astro-saas/starter.json +52 -0
- package/dist/starters/astro-saas/tsconfig.json +8 -0
- package/dist/starters/astro-saas/wrangler.jsonc +12 -0
- package/dist/starters/astro-starter/CONTENT-GUIDE.md +195 -0
- package/dist/starters/astro-starter/LICENSE +21 -0
- package/dist/starters/astro-starter/README.md +381 -0
- package/dist/starters/astro-starter/astro.config.ts +77 -0
- package/dist/starters/astro-starter/galley/previews/evening.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/home.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/lowfield.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sage.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/features.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/form.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/split.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/stats.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/team.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/about.md +33 -0
- package/dist/starters/astro-starter/galley/templates/about.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/contact.md +25 -0
- package/dist/starters/astro-starter/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.md +27 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/project.md +44 -0
- package/dist/starters/astro-starter/galley/templates/project.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/service.md +50 -0
- package/dist/starters/astro-starter/galley/templates/service.webp +0 -0
- package/dist/starters/astro-starter/galley.config.json +187 -0
- package/dist/starters/astro-starter/gitignore +22 -0
- package/dist/starters/astro-starter/netlify.toml +6 -0
- package/dist/starters/astro-starter/package.json +44 -0
- package/dist/starters/astro-starter/public/favicon.svg +1 -0
- package/dist/starters/astro-starter/public/images/blog/kitchen-questions.svg +6 -0
- package/dist/starters/astro-starter/public/images/blog/measured-survey.svg +5 -0
- package/dist/starters/astro-starter/public/images/blog/planning.svg +7 -0
- package/dist/starters/astro-starter/public/images/blog/renovation-guide.svg +8 -0
- package/dist/starters/astro-starter/public/images/gallery/arched-doorway.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/garden-room.svg +4 -0
- package/dist/starters/astro-starter/public/images/gallery/kitchen.svg +7 -0
- package/dist/starters/astro-starter/public/images/gallery/plan.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/stair.svg +3 -0
- package/dist/starters/astro-starter/public/images/gallery/window-seat.svg +6 -0
- package/dist/starters/astro-starter/public/images/logos/brackenridge.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/hartwell-glass.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/millbrook-timber.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/ostler-lime.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/wrenhallow-civic.svg +1 -0
- package/dist/starters/astro-starter/public/images/people/client-mistry.svg +3 -0
- package/dist/starters/astro-starter/public/images/projects/garden-room.svg +11 -0
- package/dist/starters/astro-starter/public/images/projects/hero-house.svg +18 -0
- package/dist/starters/astro-starter/public/images/projects/kitchen-extension.svg +16 -0
- package/dist/starters/astro-starter/public/images/projects/workshop.svg +9 -0
- package/dist/starters/astro-starter/public/images/share.png +0 -0
- package/dist/starters/astro-starter/public/images/share.svg +10 -0
- package/dist/starters/astro-starter/public/images/team/joe-whitlock.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/nell-okafor.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/priya-anand.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/tomas-reyes.svg +1 -0
- package/dist/starters/astro-starter/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-starter/scripts/gallery/gallery.astro +136 -0
- package/dist/starters/astro-starter/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-starter/scripts/gallery/sections.md +201 -0
- package/dist/starters/astro-starter/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-starter/src/components/Actions.astro +30 -0
- package/dist/starters/astro-starter/src/components/Footer.astro +166 -0
- package/dist/starters/astro-starter/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-starter/src/components/Header.astro +284 -0
- package/dist/starters/astro-starter/src/components/Icon.astro +57 -0
- package/dist/starters/astro-starter/src/components/Media.astro +32 -0
- package/dist/starters/astro-starter/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-starter/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-starter/src/components/PostList.astro +108 -0
- package/dist/starters/astro-starter/src/components/Section.astro +43 -0
- package/dist/starters/astro-starter/src/components/SectionHeader.astro +93 -0
- package/dist/starters/astro-starter/src/components/Sections.astro +76 -0
- package/dist/starters/astro-starter/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-starter/src/components/Tags.astro +65 -0
- package/dist/starters/astro-starter/src/components/sections/Contact.astro +106 -0
- package/dist/starters/astro-starter/src/components/sections/Cta.astro +96 -0
- package/dist/starters/astro-starter/src/components/sections/Faq.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Features.astro +105 -0
- package/dist/starters/astro-starter/src/components/sections/FormSection.astro +91 -0
- package/dist/starters/astro-starter/src/components/sections/Gallery.astro +69 -0
- package/dist/starters/astro-starter/src/components/sections/Hero.astro +128 -0
- package/dist/starters/astro-starter/src/components/sections/Logos.astro +99 -0
- package/dist/starters/astro-starter/src/components/sections/Posts.astro +73 -0
- package/dist/starters/astro-starter/src/components/sections/Pricing.astro +186 -0
- package/dist/starters/astro-starter/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-starter/src/components/sections/Split.astro +117 -0
- package/dist/starters/astro-starter/src/components/sections/Stats.astro +83 -0
- package/dist/starters/astro-starter/src/components/sections/Steps.astro +113 -0
- package/dist/starters/astro-starter/src/components/sections/Team.astro +112 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonial.astro +82 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonials.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-starter/src/content/authors/ines-ferreira.md +5 -0
- package/dist/starters/astro-starter/src/content/authors/nell-okafor.md +6 -0
- package/dist/starters/astro-starter/src/content/authors/tomas-reyes.md +6 -0
- package/dist/starters/astro-starter/src/content/blog/kitchen-extension-questions.md +46 -0
- package/dist/starters/astro-starter/src/content/blog/living-through-a-renovation.md +47 -0
- package/dist/starters/astro-starter/src/content/blog/measured-survey.md +42 -0
- package/dist/starters/astro-starter/src/content/blog/permitted-development.md +45 -0
- package/dist/starters/astro-starter/src/content/forms/contact.json +39 -0
- package/dist/starters/astro-starter/src/content/pages/404.md +17 -0
- package/dist/starters/astro-starter/src/content/pages/about.md +66 -0
- package/dist/starters/astro-starter/src/content/pages/blog.md +9 -0
- package/dist/starters/astro-starter/src/content/pages/contact.md +30 -0
- package/dist/starters/astro-starter/src/content/pages/index.md +125 -0
- package/dist/starters/astro-starter/src/content/pages/pricing.md +77 -0
- package/dist/starters/astro-starter/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-starter/src/content/pages/services.md +84 -0
- package/dist/starters/astro-starter/src/content/team/joe-whitlock.md +10 -0
- package/dist/starters/astro-starter/src/content/team/nell-okafor.md +12 -0
- package/dist/starters/astro-starter/src/content/team/priya-anand.md +7 -0
- package/dist/starters/astro-starter/src/content/team/tomas-reyes.md +10 -0
- package/dist/starters/astro-starter/src/content.config.ts +410 -0
- package/dist/starters/astro-starter/src/data/navigation.json +64 -0
- package/dist/starters/astro-starter/src/data/scripts.json +10 -0
- package/dist/starters/astro-starter/src/data/site.json +66 -0
- package/dist/starters/astro-starter/src/data/visibility.json +30 -0
- package/dist/starters/astro-starter/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-starter/src/galley/catalog.js +42 -0
- package/dist/starters/astro-starter/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-starter/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-starter/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-starter/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-starter/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-starter/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-starter/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-starter/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-starter/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-starter/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-starter/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-starter/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-starter/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-starter/src/galley/components/index.js +5 -0
- package/dist/starters/astro-starter/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-starter/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-starter/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-starter/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-starter/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-starter/src/galley/integration.js +21 -0
- package/dist/starters/astro-starter/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-starter/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-starter/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-starter/src/galley/schema.js +338 -0
- package/dist/starters/astro-starter/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-starter/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-starter/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-starter/src/galley/settings.json +18 -0
- package/dist/starters/astro-starter/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-starter/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-starter/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-starter/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-starter/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-starter/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-starter/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-starter/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-starter/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-starter/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-starter/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-starter/src/layouts/Base.astro +104 -0
- package/dist/starters/astro-starter/src/lib/posts.ts +43 -0
- package/dist/starters/astro-starter/src/lib/site.ts +201 -0
- package/dist/starters/astro-starter/src/pages/404.astro +13 -0
- package/dist/starters/astro-starter/src/pages/[...slug].astro +32 -0
- package/dist/starters/astro-starter/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-starter/src/pages/blog/[slug].astro +289 -0
- package/dist/starters/astro-starter/src/pages/blog/tags/[tag]/[...page].astro +82 -0
- package/dist/starters/astro-starter/src/styles/global.css +478 -0
- package/dist/starters/astro-starter/src/styles/kit.css +74 -0
- package/dist/starters/astro-starter/src/styles/themes/evening.css +135 -0
- package/dist/starters/astro-starter/src/styles/themes/lowfield.css +133 -0
- package/dist/starters/astro-starter/src/styles/themes/sage.css +134 -0
- package/dist/starters/astro-starter/src/styles/tokens.css +133 -0
- package/dist/starters/astro-starter/starter-notice.json +9 -0
- package/dist/starters/astro-starter/starter.json +52 -0
- package/dist/starters/astro-starter/tsconfig.json +8 -0
- package/dist/starters/astro-starter/wrangler.jsonc +12 -0
- package/dist/starters/astro-storefront/CONTENT-GUIDE.md +280 -0
- package/dist/starters/astro-storefront/LICENSE +21 -0
- package/dist/starters/astro-storefront/README.md +203 -0
- package/dist/starters/astro-storefront/astro.config.ts +50 -0
- package/dist/starters/astro-storefront/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-storefront/galley/photography/LOG.md +91 -0
- package/dist/starters/astro-storefront/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-storefront/galley/photography/shots.json +743 -0
- package/dist/starters/astro-storefront/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/night.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/collection-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/featured-product.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/film.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/form.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/product-rail.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/shop-the-look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/about.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/about.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/contact.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.md +21 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.md +40 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/story.md +49 -0
- package/dist/starters/astro-storefront/galley/templates/story.webp +0 -0
- package/dist/starters/astro-storefront/galley.config.json +752 -0
- package/dist/starters/astro-storefront/gitignore +26 -0
- package/dist/starters/astro-storefront/netlify.toml +6 -0
- package/dist/starters/astro-storefront/package.json +49 -0
- package/dist/starters/astro-storefront/public/favicon.svg +5 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/aw26-harbour-wall-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/ss26-plaster-steps-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-04-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-05-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-06-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-07-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-08-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/blanket-scarf-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/field-coat-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/gansey-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rib-polo-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rollneck-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-storefront/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rollneck.webp +0 -0
- package/dist/starters/astro-storefront/public/images/share.jpg +0 -0
- package/dist/starters/astro-storefront/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-storefront/scripts/gallery/gallery.astro +86 -0
- package/dist/starters/astro-storefront/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-storefront/scripts/gallery/sections.md +196 -0
- package/dist/starters/astro-storefront/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-storefront/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-storefront/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-storefront/scripts/make-sizes.mjs +31 -0
- package/dist/starters/astro-storefront/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-storefront/scripts/seed-shopify.mjs +208 -0
- package/dist/starters/astro-storefront/src/components/Actions.astro +31 -0
- package/dist/starters/astro-storefront/src/components/Footer.astro +206 -0
- package/dist/starters/astro-storefront/src/components/Header.astro +423 -0
- package/dist/starters/astro-storefront/src/components/Icon.astro +43 -0
- package/dist/starters/astro-storefront/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-storefront/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-storefront/src/components/Media.astro +37 -0
- package/dist/starters/astro-storefront/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-storefront/src/components/PieceList.astro +112 -0
- package/dist/starters/astro-storefront/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-storefront/src/components/PostList.astro +103 -0
- package/dist/starters/astro-storefront/src/components/Section.astro +47 -0
- package/dist/starters/astro-storefront/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-storefront/src/components/Sections.astro +89 -0
- package/dist/starters/astro-storefront/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-storefront/src/components/Tags.astro +68 -0
- package/dist/starters/astro-storefront/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-storefront/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-storefront/src/components/sections/CollectionGrid.astro +116 -0
- package/dist/starters/astro-storefront/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-storefront/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-storefront/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-storefront/src/components/sections/FeaturedProduct.astro +109 -0
- package/dist/starters/astro-storefront/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-storefront/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-storefront/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-storefront/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-storefront/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-storefront/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-storefront/src/components/sections/ProductRail.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-storefront/src/components/sections/ShopTheLook.astro +150 -0
- package/dist/starters/astro-storefront/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-storefront/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-storefront/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-storefront/src/components/shop/BagDrawer.astro +114 -0
- package/dist/starters/astro-storefront/src/components/shop/BagView.astro +241 -0
- package/dist/starters/astro-storefront/src/components/shop/Breadcrumbs.astro +63 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductCard.astro +142 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductGrid.astro +297 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductImage.astro +53 -0
- package/dist/starters/astro-storefront/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-storefront/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-storefront/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-storefront/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-storefront/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-storefront/src/content/pages/404.md +14 -0
- package/dist/starters/astro-storefront/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-storefront/src/content/pages/bag.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-storefront/src/content/pages/index.md +107 -0
- package/dist/starters/astro-storefront/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-storefront/src/content/pages/lookbook.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/privacy.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/search.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/shop.md +4 -0
- package/dist/starters/astro-storefront/src/content/pages/stockists.md +66 -0
- package/dist/starters/astro-storefront/src/content/products/car-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/products/field-coat.md +35 -0
- package/dist/starters/astro-storefront/src/content/products/gansey.md +20 -0
- package/dist/starters/astro-storefront/src/content/products/wrap-coat.md +16 -0
- package/dist/starters/astro-storefront/src/content.config.ts +563 -0
- package/dist/starters/astro-storefront/src/data/navigation.json +77 -0
- package/dist/starters/astro-storefront/src/data/scripts.json +29 -0
- package/dist/starters/astro-storefront/src/data/shop/catalogue.json +2431 -0
- package/dist/starters/astro-storefront/src/data/shop/store.json +7 -0
- package/dist/starters/astro-storefront/src/data/site.json +161 -0
- package/dist/starters/astro-storefront/src/data/stockists.json +81 -0
- package/dist/starters/astro-storefront/src/data/visibility.json +33 -0
- package/dist/starters/astro-storefront/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-storefront/src/galley/catalog.js +42 -0
- package/dist/starters/astro-storefront/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-storefront/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-storefront/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-storefront/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-storefront/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-storefront/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-storefront/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-storefront/src/galley/components/index.js +5 -0
- package/dist/starters/astro-storefront/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-storefront/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-storefront/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-storefront/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-storefront/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-storefront/src/galley/integration.js +21 -0
- package/dist/starters/astro-storefront/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-storefront/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-storefront/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-storefront/src/galley/schema.js +338 -0
- package/dist/starters/astro-storefront/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-storefront/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-storefront/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-storefront/src/galley/settings.json +18 -0
- package/dist/starters/astro-storefront/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-storefront/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-storefront/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-storefront/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-storefront/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-storefront/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-storefront/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-storefront/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-storefront/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-storefront/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-storefront/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-storefront/src/layouts/Base.astro +112 -0
- package/dist/starters/astro-storefront/src/lib/journal.ts +45 -0
- package/dist/starters/astro-storefront/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-storefront/src/lib/shop/data.ts +161 -0
- package/dist/starters/astro-storefront/src/lib/shop/loader.ts +30 -0
- package/dist/starters/astro-storefront/src/lib/shop/store.ts +332 -0
- package/dist/starters/astro-storefront/src/lib/shop/structured.ts +40 -0
- package/dist/starters/astro-storefront/src/lib/shop/types.ts +80 -0
- package/dist/starters/astro-storefront/src/lib/site.ts +181 -0
- package/dist/starters/astro-storefront/src/pages/404.astro +13 -0
- package/dist/starters/astro-storefront/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-storefront/src/pages/bag.astro +37 -0
- package/dist/starters/astro-storefront/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-storefront/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-storefront/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/[slug].astro +23 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/index.astro +66 -0
- package/dist/starters/astro-storefront/src/pages/products/[handle].astro +455 -0
- package/dist/starters/astro-storefront/src/pages/search.astro +137 -0
- package/dist/starters/astro-storefront/src/pages/search.json.ts +36 -0
- package/dist/starters/astro-storefront/src/pages/shop/[collection].astro +65 -0
- package/dist/starters/astro-storefront/src/pages/shop/index.astro +33 -0
- package/dist/starters/astro-storefront/src/scripts/shop.ts +742 -0
- package/dist/starters/astro-storefront/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-storefront/src/styles/global.css +662 -0
- package/dist/starters/astro-storefront/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-storefront/src/styles/tokens.css +181 -0
- package/dist/starters/astro-storefront/starter-notice.json +9 -0
- package/dist/starters/astro-storefront/starter.json +53 -0
- package/dist/starters/astro-storefront/tsconfig.json +8 -0
- package/dist/starters/astro-storefront/wrangler.jsonc +12 -0
- package/dist/web/assets/AppSettingsScreen-D9ZHXus9.js +1 -0
- package/dist/web/assets/BodyEditor-DAJ8MM41.js +1 -0
- package/dist/web/assets/BrandScreen-BuYHSbp6.js +1 -0
- package/dist/web/assets/CollectionScreen-DVXLw7MF.js +1 -0
- package/dist/web/assets/EditorScreen-8vhIBZu1.js +6 -0
- package/dist/web/assets/FormsScreen-BbngAAzO.js +4 -0
- package/dist/web/assets/HistoryScreen-CubZj8QG.js +4 -0
- package/dist/web/assets/ImportScreen-DA8mZ3-S.css +1 -0
- package/dist/web/assets/ImportScreen-eVAPjnE2.js +1 -0
- package/dist/web/assets/InboxScreen-Azqy6w4_.js +2 -0
- package/dist/web/assets/MediaLibraryPane-Dpcxede9.css +1 -0
- package/dist/web/assets/MediaLibraryPane-jMuqbnLa.js +1 -0
- package/dist/web/assets/MediaScreen-BQYVSf8P.css +1 -0
- package/dist/web/assets/MediaScreen-mg2CATkP.js +1 -0
- package/dist/web/assets/NewSiteScreen-D9zWX6oE.js +1 -0
- package/dist/web/assets/NewSiteScreen-RQ3ccqTf.css +1 -0
- package/dist/web/assets/Online-bYUu0ETZ.js +1 -0
- package/dist/web/assets/OpenScreen-DR1GhNWX.js +1 -0
- package/dist/web/assets/PluginsScreen-1qEv-u35.js +3 -0
- package/dist/web/assets/PreviewControls-Du87hOEG.js +1 -0
- package/dist/web/assets/PreviewPane-SH9rzgVw.css +1 -0
- package/dist/web/assets/PreviewPane-a06mELw4.js +3 -0
- package/dist/web/assets/ProofScreen-CZfFbHFS.js +7 -0
- package/dist/web/assets/ProofScreen-fG_mV-V4.css +1 -0
- package/dist/web/assets/ProviderSettings-BOiCGeSI.js +1 -0
- package/dist/web/assets/ProviderSettings-COu_e6Mx.css +1 -0
- package/dist/web/assets/PublishDialog-CSKU1lfx.js +3 -0
- package/dist/web/assets/ReachNote-CZYr1oL0.js +1 -0
- package/dist/web/assets/ReachNote-DhT9Cta-.css +1 -0
- package/dist/web/assets/RedirectsScreen-DeR_yuj5.js +3 -0
- package/dist/web/assets/RedirectsScreen-QTaAXMh-.css +1 -0
- package/dist/web/assets/ScriptsScreen-BXY-kqbq.js +2 -0
- package/dist/web/assets/ScriptsScreen-DMdmwkY4.css +1 -0
- package/dist/web/assets/SiteHomeScreen-DOrqAteL.js +1 -0
- package/dist/web/assets/SiteSettingsScreen-B8xQnhjd.js +4 -0
- package/dist/web/assets/SourceView-B5SoYjUF.js +1 -0
- package/dist/web/assets/VisibilityScreen-B4iOATC4.js +2 -0
- package/dist/web/assets/brand-BYux4UiC.css +1 -0
- package/dist/web/assets/changes-BtRtvJ12.js +1 -0
- package/dist/web/assets/changes-DLBkrfUR.js +1 -0
- package/dist/web/assets/chrome-Brnq5kGb.js +1 -0
- package/dist/web/assets/clickToEdit-CV1WT3k1.js +1 -0
- package/dist/web/assets/coalesce-BG8d12M7.js +1 -0
- package/dist/web/assets/codemirror-CWul2x0p.js +11 -0
- package/dist/web/assets/codemirror-g0T4-Tsm.js +1 -0
- package/dist/web/assets/codemirror-languages-RlWkzgfM.js +28 -0
- package/dist/web/assets/common-BA1skXL0.css +1 -0
- package/dist/web/assets/common-BdVEb5Zs.js +2 -0
- package/dist/web/assets/cost-BhkzE86J.js +1 -0
- package/dist/web/assets/events-CTTFdOf-.js +1 -0
- package/dist/web/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/web/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/web/assets/hashScroll-CSp59QpH.js +1 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/web/assets/index-Djh-DSIT.js +10 -0
- package/dist/web/assets/index-Pd8oyXqS.css +1 -0
- package/dist/web/assets/jobs-BHawhnH2.js +1 -0
- package/dist/web/assets/listPlan-BXud7Oxv.js +1 -0
- package/dist/web/assets/marked.esm-CYtFtVHW.js +75 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-italic-CSPGnFdO.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-italic-kJKFiXvB.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-italic-DTr-ymY4.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2 +0 -0
- package/dist/web/assets/outside-CZs19WbV.css +1 -0
- package/dist/web/assets/outside-DaBM5h5B.js +2 -0
- package/dist/web/assets/paths-C8ESZJVU.js +1 -0
- package/dist/web/assets/prefs-BcNyBxxO.js +1 -0
- package/dist/web/assets/proof-BnPD-0Jr.css +1 -0
- package/dist/web/assets/proof-zOrlMTSg.js +2 -0
- package/dist/web/assets/purify.es-BQJV6A36.js +3 -0
- package/dist/web/assets/renderMarkdown-R9_GwOSq.js +1 -0
- package/dist/web/assets/scaffold-BHkqc62J.js +1 -0
- package/dist/web/assets/site-DJUEXLHW.js +1 -0
- package/dist/web/assets/sites-CGDZymBT.js +1 -0
- package/dist/web/assets/store-C95UZPFo.js +1 -0
- package/dist/web/assets/ui-C6O2tW4c.js +3 -0
- package/dist/web/assets/useBrand-DSAfWS_y.js +1 -0
- package/dist/web/assets/usePlugins-acEOSN5a.js +1 -0
- package/dist/web/assets/usePlugins-hom8Btua.css +1 -0
- package/dist/web/assets/useVisibility-B8cm5WkO.css +1 -0
- package/dist/web/assets/useVisibility-kpZhLMTT.js +3 -0
- package/dist/web/index.html +23 -0
- package/dist/web/theme.js +8 -0
- package/package.json +49 -3
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
# The section gallery's fixture: one example of every section type, in the
|
|
3
|
+
# order of galley.config.json. scripts/make-thumbnails.mjs photographs each
|
|
4
|
+
# one alone (galley/sections/<type>.webp). Keep the examples short enough to
|
|
5
|
+
# read in a 640-pixel picture, and keep one entry per type.
|
|
6
|
+
title: Section gallery
|
|
7
|
+
description: Every section type, rendered alone.
|
|
8
|
+
sections:
|
|
9
|
+
- type: campaign-hero
|
|
10
|
+
eyebrow: Autumn–Winter 2026
|
|
11
|
+
heading: The *long* afternoon.
|
|
12
|
+
text: Eight coats, shot on a harbour wall in the last two hours of light.
|
|
13
|
+
cta:
|
|
14
|
+
label: See the lookbook
|
|
15
|
+
href: /lookbook/aw26-the-long-afternoon/
|
|
16
|
+
image: /images/campaign/aw26-harbour-wall.webp
|
|
17
|
+
imageAlt: A woman in a long rust-coloured coat stands against a lime-washed harbour wall, her shadow thrown long across it by a low sun.
|
|
18
|
+
size: tall
|
|
19
|
+
imageFocus: right
|
|
20
|
+
- type: split-editorial
|
|
21
|
+
tone: muted
|
|
22
|
+
eyebrow: The workroom
|
|
23
|
+
heading: Every coat is cut on a table you can see *from the street*.
|
|
24
|
+
text: Four of us, one long table, and the windows of a rope-maker's loft.
|
|
25
|
+
image: /images/atelier/workroom.webp
|
|
26
|
+
imageAlt: "The Caddow workroom: a long cutting table under tall windows, rolls of undyed cloth and a rail of coats, low sun across the floor."
|
|
27
|
+
ratio: landscape
|
|
28
|
+
cta:
|
|
29
|
+
label: Visit the atelier
|
|
30
|
+
href: /atelier/
|
|
31
|
+
- type: lookbook-grid
|
|
32
|
+
heading: The *hour before dark*
|
|
33
|
+
lookbook: aw26-the-long-afternoon
|
|
34
|
+
limit: 3
|
|
35
|
+
columns: 3
|
|
36
|
+
captions: false
|
|
37
|
+
- type: look
|
|
38
|
+
eyebrow: Look 01
|
|
39
|
+
heading: The field coat
|
|
40
|
+
image: /images/lookbooks/aw26/look-01.webp
|
|
41
|
+
imageAlt: A woman in an open, undyed wool field coat and wide dark trousers walks along the foot of a sunlit wall.
|
|
42
|
+
pieces:
|
|
43
|
+
- name: Field coat
|
|
44
|
+
detail: Undyed Shetland wool
|
|
45
|
+
price: £640
|
|
46
|
+
- name: Rib polo
|
|
47
|
+
detail: Lambswool, oat
|
|
48
|
+
price: £210
|
|
49
|
+
- type: gallery
|
|
50
|
+
heading: A week at the table
|
|
51
|
+
layout: mosaic
|
|
52
|
+
items:
|
|
53
|
+
- image: /images/atelier/workroom.webp
|
|
54
|
+
imageAlt: "The Caddow workroom: a long cutting table under tall windows, rolls of undyed cloth and a rail of coats, low sun across the floor."
|
|
55
|
+
- image: /images/atelier/weave.webp
|
|
56
|
+
imageAlt: Close up, the twill of undyed Shetland wool and its loose selvedge, in raking light.
|
|
57
|
+
- image: /images/atelier/hands.webp
|
|
58
|
+
imageAlt: Hands marking undyed wool with tailor's chalk along a wooden rule.
|
|
59
|
+
- image: /images/lookbooks/aw26/look-03.webp
|
|
60
|
+
imageAlt: An older woman in a long belted bone-coloured wrap coat stands side-on to a wall, her shadow crisp beside her.
|
|
61
|
+
- image: /images/lookbooks/ss26/look-02.webp
|
|
62
|
+
imageAlt: An older woman in a light putty trench walks down pale steps with the arch's shadow across her.
|
|
63
|
+
- type: image-band
|
|
64
|
+
image: /images/campaign/wall-shadow.webp
|
|
65
|
+
imageAlt: A coat hangs from an iron hook on a long sunlit wall, its shadow stretched out beside it.
|
|
66
|
+
- type: quote
|
|
67
|
+
quote: I wanted a coat you could sleep in on a train and still wear to a funeral the next morning.
|
|
68
|
+
name: Hesper Lowe
|
|
69
|
+
role: Founder and designer
|
|
70
|
+
image: /images/people/hesper-lowe.webp
|
|
71
|
+
imageAlt: Hesper Lowe, Caddow's founder, by the workroom window with a tape measure round her neck.
|
|
72
|
+
size: medium
|
|
73
|
+
- type: statement
|
|
74
|
+
eyebrow: The label
|
|
75
|
+
heading: We make *coats*, and the knits that go under them. Forty of each.
|
|
76
|
+
- type: pieces
|
|
77
|
+
heading: Four to begin with
|
|
78
|
+
columns: 4
|
|
79
|
+
items:
|
|
80
|
+
- image: /images/pieces/field-coat.webp
|
|
81
|
+
imageAlt: The undyed wool field coat on a wooden hanger against a sunlit white wall.
|
|
82
|
+
name: Field coat
|
|
83
|
+
price: £640
|
|
84
|
+
- image: /images/pieces/rib-polo.webp
|
|
85
|
+
imageAlt: An oat rib-knit polo folded on a stone ledge in low sun.
|
|
86
|
+
name: Rib polo
|
|
87
|
+
price: £210
|
|
88
|
+
- image: /images/pieces/gansey.webp
|
|
89
|
+
imageAlt: A navy fisherman's gansey laid flat on unbleached linen, its stitch pattern caught by low light.
|
|
90
|
+
name: Gansey
|
|
91
|
+
price: £260
|
|
92
|
+
- image: /images/pieces/blanket-scarf.webp
|
|
93
|
+
imageAlt: A folded oat lambswool scarf with a single blue stripe, draped over the back of a wooden chair.
|
|
94
|
+
name: Blanket scarf
|
|
95
|
+
price: £120
|
|
96
|
+
- type: story
|
|
97
|
+
layout: two-column
|
|
98
|
+
dropCap: true
|
|
99
|
+
heading: Forty is not a marketing number
|
|
100
|
+
text: |-
|
|
101
|
+
Caddow began with a single coat, cut forty times on a borrowed table. Forty is what one cutter can make in a month without hurrying, and what one roll of good Shetland will give if you lay the pattern carefully.
|
|
102
|
+
- type: journal-list
|
|
103
|
+
heading: Notes from the workroom
|
|
104
|
+
limit: 3
|
|
105
|
+
- type: stockists
|
|
106
|
+
heading: Stockists
|
|
107
|
+
groups:
|
|
108
|
+
- marrowby
|
|
109
|
+
- vellamy
|
|
110
|
+
- kestrelmouth
|
|
111
|
+
- type: marquee
|
|
112
|
+
size: large
|
|
113
|
+
items:
|
|
114
|
+
- Undyed Shetland
|
|
115
|
+
- Waxed cotton
|
|
116
|
+
- Forty of each
|
|
117
|
+
- Cut in Marrowby
|
|
118
|
+
- type: newsletter
|
|
119
|
+
heading: Four letters a year, *and no more*.
|
|
120
|
+
text: When a lookbook is ready, when a coat comes back. Nothing else.
|
|
121
|
+
- type: cta
|
|
122
|
+
tone: inverse
|
|
123
|
+
heading: Come and try one on.
|
|
124
|
+
text: The workroom is open Thursday to Saturday, ten till five.
|
|
125
|
+
cta:
|
|
126
|
+
label: Plan a visit
|
|
127
|
+
href: /contact/
|
|
128
|
+
image: /images/campaign/wall-shadow.webp
|
|
129
|
+
imageAlt: A coat hangs from an iron hook on a long sunlit wall, its shadow stretched out beside it.
|
|
130
|
+
- type: contact
|
|
131
|
+
heading: Write to the *workroom*.
|
|
132
|
+
items:
|
|
133
|
+
- label: Email
|
|
134
|
+
value: studio@example.com
|
|
135
|
+
href: mailto:studio@example.com
|
|
136
|
+
- label: The workroom
|
|
137
|
+
value: The Ropewalk, Marrowby
|
|
138
|
+
- type: film
|
|
139
|
+
eyebrow: Film
|
|
140
|
+
heading: The Long Afternoon, *in two minutes and forty-eight seconds*.
|
|
141
|
+
image: /images/film/the-long-afternoon.webp
|
|
142
|
+
imageAlt: "A still from the film: a woman in a rust coat walks the length of the harbour wall at sunset."
|
|
143
|
+
href: https://www.example.com/films/the-long-afternoon
|
|
144
|
+
duration: "2:48"
|
|
145
|
+
- type: form
|
|
146
|
+
eyebrow: For shops
|
|
147
|
+
heading: Carry Caddow in your *town*.
|
|
148
|
+
form: stockist
|
|
149
|
+
- type: chapters
|
|
150
|
+
eyebrow: In the workroom
|
|
151
|
+
heading: How a coat is made, *in 3 days*
|
|
152
|
+
items:
|
|
153
|
+
- heading: Day one, the cloth
|
|
154
|
+
text: The Shetland comes off the roll and rests for a day before anyone cuts it.
|
|
155
|
+
image: /images/atelier/weave.webp
|
|
156
|
+
imageAlt: Close up, the twill of undyed Shetland wool and its loose selvedge, in raking light.
|
|
157
|
+
- heading: Day two, the cut
|
|
158
|
+
text: Marked out in chalk along a wooden rule and cut by hand, forty at a time.
|
|
159
|
+
image: /images/atelier/hands.webp
|
|
160
|
+
imageAlt: Hands marking undyed wool with tailor's chalk along a wooden rule.
|
|
161
|
+
- type: credits
|
|
162
|
+
eyebrow: Credits
|
|
163
|
+
columns: 3
|
|
164
|
+
items:
|
|
165
|
+
- role: Photography
|
|
166
|
+
name: Rafe Dunmore
|
|
167
|
+
- role: Styling
|
|
168
|
+
name: Lou Castellane
|
|
169
|
+
- role: Casting
|
|
170
|
+
name: Mina Sorell
|
|
171
|
+
- type: featured-product
|
|
172
|
+
eyebrow: Knitted in the round
|
|
173
|
+
product: gansey
|
|
174
|
+
text: A fisherman's gansey with no side seams to give way.
|
|
175
|
+
- type: product-rail
|
|
176
|
+
eyebrow: New this season
|
|
177
|
+
heading: Four coats for *the hour before dark*
|
|
178
|
+
products:
|
|
179
|
+
- car-coat
|
|
180
|
+
- field-coat
|
|
181
|
+
- wrap-coat
|
|
182
|
+
- overcoat
|
|
183
|
+
- type: collection-grid
|
|
184
|
+
tone: muted
|
|
185
|
+
eyebrow: The shop
|
|
186
|
+
heading: Coats, knitwear and *trousers*
|
|
187
|
+
- type: shop-the-look
|
|
188
|
+
eyebrow: Look 01
|
|
189
|
+
heading: The field coat, *worn open*
|
|
190
|
+
image: /images/lookbooks/aw26/look-01.webp
|
|
191
|
+
imageAlt: A woman in an open, undyed wool field coat and wide dark trousers walks along the foot of a sunlit wall.
|
|
192
|
+
products:
|
|
193
|
+
- field-coat
|
|
194
|
+
- rib-polo
|
|
195
|
+
- wide-trouser
|
|
196
|
+
---
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Puts generated photographs into their slots.
|
|
3
|
+
//
|
|
4
|
+
// node scripts/ingest-photos.mjs <folder> [--dry-run] [--no-thumbnails]
|
|
5
|
+
//
|
|
6
|
+
// The folder holds images named by shot id from galley/photography/shots.json
|
|
7
|
+
// — campaign-aw26.png, aw26-look-01.jpg, … — in any common format (JPEG, PNG,
|
|
8
|
+
// WebP, AVIF, TIFF) and any size. For each shot that has a file, this:
|
|
9
|
+
//
|
|
10
|
+
// 1. turns it upright (EXIF orientation) and converts it to sRGB;
|
|
11
|
+
// 2. scales it to cover the slot and crops it there, keeping the shot's
|
|
12
|
+
// `focus` point (x, y from 0 to 1) as near the centre of the crop as the
|
|
13
|
+
// picture allows;
|
|
14
|
+
// 3. encodes it at the slot's exact size and file name — WebP, quality
|
|
15
|
+
// stepped down until it fits the budget (≤ 220 kB for 2400-pixel
|
|
16
|
+
// campaign images, ≤ 120 kB for the rest), or JPEG for the share image;
|
|
17
|
+
// 4. writes it only if the result differs from what is there.
|
|
18
|
+
//
|
|
19
|
+
// Then it reports every slot still holding a placeholder (or nothing), and
|
|
20
|
+
// refreshes Galley's section and template pictures and the look previews by
|
|
21
|
+
// running scripts/make-thumbnails.mjs — when PLAYWRIGHT_MODULES is set; if it
|
|
22
|
+
// isn't, it prints the command instead. Running it twice changes nothing.
|
|
23
|
+
//
|
|
24
|
+
// The share image (`share`) is cropped from `campaign-aw26` when the folder
|
|
25
|
+
// has no share file of its own (its `derivedFrom`).
|
|
26
|
+
|
|
27
|
+
import { spawnSync } from "node:child_process";
|
|
28
|
+
import { createHash } from "node:crypto";
|
|
29
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
30
|
+
import { dirname, extname, join, resolve } from "node:path";
|
|
31
|
+
import { fileURLToPath } from "node:url";
|
|
32
|
+
import { parseArgs } from "node:util";
|
|
33
|
+
import sharp from "sharp";
|
|
34
|
+
|
|
35
|
+
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
36
|
+
const SHOTS = join(ROOT, "galley/photography/shots.json");
|
|
37
|
+
const MANIFEST = join(ROOT, "galley/photography/placeholders.json");
|
|
38
|
+
const FORMATS = new Set([".jpg", ".jpeg", ".png", ".webp", ".avif", ".tif", ".tiff"]);
|
|
39
|
+
|
|
40
|
+
const { values, positionals } = parseArgs({
|
|
41
|
+
allowPositionals: true,
|
|
42
|
+
options: { "dry-run": { type: "boolean" }, "no-thumbnails": { type: "boolean" }, help: { type: "boolean", short: "h" } },
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (values.help || positionals.length !== 1) {
|
|
46
|
+
console.log("Usage: node scripts/ingest-photos.mjs <folder> [--dry-run] [--no-thumbnails]");
|
|
47
|
+
console.log("Files in <folder> are matched to shots by name: <shot id>.<jpg|png|webp|avif|tif>.");
|
|
48
|
+
process.exit(values.help ? 0 : 1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const folder = resolve(positionals[0]);
|
|
52
|
+
if (!existsSync(folder)) {
|
|
53
|
+
console.error(`ingest-photos: there is no folder at ${folder}.`);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const { shots } = JSON.parse(readFileSync(SHOTS, "utf8"));
|
|
58
|
+
const byId = new Map(shots.map((shot) => [shot.id, shot]));
|
|
59
|
+
const manifest = existsSync(MANIFEST) ? JSON.parse(readFileSync(MANIFEST, "utf8")) : {};
|
|
60
|
+
const hash = (buffer) => createHash("sha256").update(buffer).digest("hex");
|
|
61
|
+
|
|
62
|
+
// ── Match files to shots ───────────────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
const inputs = new Map();
|
|
65
|
+
const strays = [];
|
|
66
|
+
for (const name of readdirSync(folder).sort()) {
|
|
67
|
+
const ext = extname(name).toLowerCase();
|
|
68
|
+
if (!FORMATS.has(ext)) continue;
|
|
69
|
+
const id = name.slice(0, -ext.length);
|
|
70
|
+
if (!byId.has(id)) strays.push(name);
|
|
71
|
+
else if (inputs.has(id)) console.warn(` ! ${name}: another file for ${id} was found first (${inputs.get(id)}); using that one.`);
|
|
72
|
+
else inputs.set(id, join(folder, name));
|
|
73
|
+
}
|
|
74
|
+
for (const shot of shots) {
|
|
75
|
+
if (!inputs.has(shot.id) && shot.derivedFrom && inputs.has(shot.derivedFrom)) inputs.set(shot.id, inputs.get(shot.derivedFrom));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// ── Crop and encode ────────────────────────────────────────────────────────
|
|
79
|
+
|
|
80
|
+
/** The crop window of a `width` × `height` slot in a source of `w` × `h`, centred on focus as far as it can be. */
|
|
81
|
+
function cropFor(w, h, shot) {
|
|
82
|
+
const scale = Math.max(shot.width / w, shot.height / h);
|
|
83
|
+
const scaledW = Math.round(w * scale);
|
|
84
|
+
const scaledH = Math.round(h * scale);
|
|
85
|
+
const fx = shot.focus?.x ?? 0.5;
|
|
86
|
+
const fy = shot.focus?.y ?? 0.5;
|
|
87
|
+
const left = Math.min(Math.max(0, Math.round(fx * scaledW - shot.width / 2)), scaledW - shot.width);
|
|
88
|
+
const top = Math.min(Math.max(0, Math.round(fy * scaledH - shot.height / 2)), scaledH - shot.height);
|
|
89
|
+
return { scaledW, scaledH, left, top, upscaled: scale > 1.05 };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function budget(shot) {
|
|
93
|
+
if (shot.file.endsWith(".jpg")) return 160 * 1024;
|
|
94
|
+
return shot.width >= 2400 ? 220 * 1024 : 120 * 1024;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async function encode(input, shot) {
|
|
98
|
+
const meta = await sharp(input).rotate().metadata();
|
|
99
|
+
const width = meta.autoOrient?.width ?? meta.width;
|
|
100
|
+
const height = meta.autoOrient?.height ?? meta.height;
|
|
101
|
+
const crop = cropFor(width, height, shot);
|
|
102
|
+
const base = await sharp(input)
|
|
103
|
+
.rotate()
|
|
104
|
+
.toColourspace("srgb")
|
|
105
|
+
.resize(crop.scaledW, crop.scaledH, { kernel: "lanczos3" })
|
|
106
|
+
.extract({ left: crop.left, top: crop.top, width: shot.width, height: shot.height })
|
|
107
|
+
.png()
|
|
108
|
+
.toBuffer();
|
|
109
|
+
|
|
110
|
+
const jpeg = shot.file.endsWith(".jpg");
|
|
111
|
+
let quality = jpeg ? 84 : 82;
|
|
112
|
+
let out;
|
|
113
|
+
for (;;) {
|
|
114
|
+
out = jpeg ? await sharp(base).jpeg({ quality, mozjpeg: true }).toBuffer() : await sharp(base).webp({ quality, effort: 6, smartSubsample: true }).toBuffer();
|
|
115
|
+
if (out.length <= budget(shot) || quality <= 50) break;
|
|
116
|
+
quality -= 4;
|
|
117
|
+
}
|
|
118
|
+
return { out, quality, crop, source: { width, height } };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const written = [];
|
|
122
|
+
const unchanged = [];
|
|
123
|
+
for (const [id, input] of inputs) {
|
|
124
|
+
const shot = byId.get(id);
|
|
125
|
+
const target = join(ROOT, shot.file);
|
|
126
|
+
const { out, quality, crop, source } = await encode(input, shot);
|
|
127
|
+
const note = `${source.width}×${source.height} → ${shot.width}×${shot.height}, q${quality}, ${(out.length / 1024).toFixed(0)} kB${crop.upscaled ? ", upscaled — generate larger if you can" : ""}${out.length > budget(shot) ? ", over budget" : ""}`;
|
|
128
|
+
|
|
129
|
+
if (existsSync(target) && hash(readFileSync(target)) === hash(out)) {
|
|
130
|
+
unchanged.push(id);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (!values["dry-run"]) {
|
|
134
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
135
|
+
writeFileSync(target, out);
|
|
136
|
+
delete manifest[shot.file]; // a photograph now, not a placeholder
|
|
137
|
+
}
|
|
138
|
+
written.push(id);
|
|
139
|
+
console.log(` ${values["dry-run"] ? "would write" : "wrote"} ${shot.file} (${note})`);
|
|
140
|
+
}
|
|
141
|
+
if (!values["dry-run"]) writeFileSync(MANIFEST, `${JSON.stringify(Object.fromEntries(Object.entries(manifest).sort()), null, 2)}\n`);
|
|
142
|
+
|
|
143
|
+
// ── Report ─────────────────────────────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
const placeholder = (shot) => {
|
|
146
|
+
const path = join(ROOT, shot.file);
|
|
147
|
+
return !existsSync(path) || manifest[shot.file] === hash(readFileSync(path));
|
|
148
|
+
};
|
|
149
|
+
const missing = shots.filter((shot) => !inputs.has(shot.id) && placeholder(shot));
|
|
150
|
+
|
|
151
|
+
console.log(`\n${written.length} photograph(s) ${values["dry-run"] ? "to write" : "written"}, ${unchanged.length} already in place.`);
|
|
152
|
+
if (strays.length) console.log(`Not in the shot list (ignored): ${strays.join(", ")}`);
|
|
153
|
+
if (missing.length) {
|
|
154
|
+
console.log(`\nStill showing a placeholder — ${missing.length} of ${shots.length}:`);
|
|
155
|
+
for (const shot of missing.sort((a, b) => a.priority - b.priority)) console.log(` [${shot.priority}] ${shot.id.padEnd(22)} ${shot.ratio.padEnd(7)} ${shot.file}`);
|
|
156
|
+
} else {
|
|
157
|
+
console.log("Every slot has its photograph.");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ── Pictures for Galley ────────────────────────────────────────────────────
|
|
161
|
+
|
|
162
|
+
if (values["dry-run"] || values["no-thumbnails"] || written.length === 0) process.exit(0);
|
|
163
|
+
if (!process.env.PLAYWRIGHT_MODULES) {
|
|
164
|
+
console.log("\nRefresh Galley's section, template and look pictures with:\n PLAYWRIGHT_MODULES=/path/to/node_modules/ node scripts/make-thumbnails.mjs");
|
|
165
|
+
process.exit(0);
|
|
166
|
+
}
|
|
167
|
+
console.log("\nRefreshing Galley's section, template and look pictures…");
|
|
168
|
+
const result = spawnSync(process.execPath, [join(ROOT, "scripts/make-thumbnails.mjs")], { cwd: ROOT, stdio: "inherit", env: process.env });
|
|
169
|
+
process.exit(result.status ?? 1);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Reads colour custom properties out of a tokens file and turns oklch() into
|
|
2
|
+
// sRGB, so the photography scripts can paint placeholders in the active look's
|
|
3
|
+
// palette. No dependencies; handles the plain `oklch(L% C H)` and
|
|
4
|
+
// `oklch(L% C H / a)` forms tokens.css uses.
|
|
5
|
+
|
|
6
|
+
import { readFileSync } from "node:fs";
|
|
7
|
+
|
|
8
|
+
/** Every `--name: value;` declaration in the file's first :root block. */
|
|
9
|
+
export function readTokens(file) {
|
|
10
|
+
const css = readFileSync(file, "utf8");
|
|
11
|
+
const root = css.match(/:root\s*\{([\s\S]*?)\n\}/);
|
|
12
|
+
const tokens = {};
|
|
13
|
+
for (const match of (root ? root[1] : css).matchAll(/--([\w-]+)\s*:\s*([^;]+);/g)) tokens[match[1]] = match[2].trim();
|
|
14
|
+
return tokens;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** oklch(L% C H [/ a]) → { r, g, b, a } with r/g/b 0–255 (gamut-clipped). */
|
|
18
|
+
export function oklchToRgb(value) {
|
|
19
|
+
const match = String(value).match(/oklch\(\s*([\d.]+)%?\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+))?\s*\)/);
|
|
20
|
+
if (!match) throw new Error(`Not an oklch() colour: ${value}`);
|
|
21
|
+
const L = Number(match[1]) > 1 ? Number(match[1]) / 100 : Number(match[1]);
|
|
22
|
+
const C = Number(match[2]);
|
|
23
|
+
const h = (Number(match[3]) * Math.PI) / 180;
|
|
24
|
+
const a = C * Math.cos(h);
|
|
25
|
+
const b = C * Math.sin(h);
|
|
26
|
+
const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
|
|
27
|
+
const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
|
|
28
|
+
const s_ = L - 0.0894841775 * a - 1.291485548 * b;
|
|
29
|
+
const l = l_ ** 3;
|
|
30
|
+
const m = m_ ** 3;
|
|
31
|
+
const s = s_ ** 3;
|
|
32
|
+
const linear = [
|
|
33
|
+
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
|
34
|
+
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
|
|
35
|
+
-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,
|
|
36
|
+
];
|
|
37
|
+
const [r, g, bl] = linear.map((c) => {
|
|
38
|
+
const v = Math.min(1, Math.max(0, c));
|
|
39
|
+
return Math.round((v <= 0.0031308 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055) * 255);
|
|
40
|
+
});
|
|
41
|
+
return { r, g, b: bl, a: match[4] === undefined ? 1 : Number(match[4]) };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** "#rrggbb" for an oklch() value. */
|
|
45
|
+
export function toHex(value) {
|
|
46
|
+
const { r, g, b } = oklchToRgb(value);
|
|
47
|
+
return `#${[r, g, b].map((n) => n.toString(16).padStart(2, "0")).join("")}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** WCAG relative luminance of { r, g, b } (0–255). */
|
|
51
|
+
export function luminance({ r, g, b }) {
|
|
52
|
+
const lin = (c) => {
|
|
53
|
+
const v = c / 255;
|
|
54
|
+
return v <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4;
|
|
55
|
+
};
|
|
56
|
+
return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** WCAG contrast ratio between two { r, g, b } colours. */
|
|
60
|
+
export function contrast(one, two) {
|
|
61
|
+
const [hi, lo] = [luminance(one), luminance(two)].sort((x, y) => y - x);
|
|
62
|
+
return (hi + 0.05) / (lo + 0.05);
|
|
63
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Paints a placeholder for every photograph in galley/photography/shots.json:
|
|
3
|
+
// a tonal field in the active look's palette, a hard edge of "late sun"
|
|
4
|
+
// across it, a little film grain, and the shot's short title and ratio set
|
|
5
|
+
// small in a corner. Each is written at the exact final size and file name,
|
|
6
|
+
// so replacing it with the real photograph changes nothing in the layout.
|
|
7
|
+
//
|
|
8
|
+
// node scripts/make-placeholders.mjs write every missing placeholder
|
|
9
|
+
// node scripts/make-placeholders.mjs --force rewrite them all (e.g. after switching looks)
|
|
10
|
+
// node scripts/make-placeholders.mjs --check only check the shot list against the content
|
|
11
|
+
//
|
|
12
|
+
// A slot that already holds a real photograph (anything this script did not
|
|
13
|
+
// write) is never touched, even with --force. Colours come from the
|
|
14
|
+
// --placeholder-* tokens in src/styles/tokens.css.
|
|
15
|
+
|
|
16
|
+
import { createHash } from "node:crypto";
|
|
17
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
18
|
+
import { dirname, join, relative, resolve } from "node:path";
|
|
19
|
+
import { fileURLToPath } from "node:url";
|
|
20
|
+
import { parseArgs } from "node:util";
|
|
21
|
+
import sharp from "sharp";
|
|
22
|
+
import { oklchToRgb, readTokens } from "./lib/tokens.mjs";
|
|
23
|
+
|
|
24
|
+
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
25
|
+
const SHOTS = join(ROOT, "galley/photography/shots.json");
|
|
26
|
+
/** Which slots hold a placeholder this script wrote (by content hash), so a real photograph is never overwritten. */
|
|
27
|
+
const MANIFEST = join(ROOT, "galley/photography/placeholders.json");
|
|
28
|
+
|
|
29
|
+
const { values } = parseArgs({ options: { force: { type: "boolean" }, check: { type: "boolean" } } });
|
|
30
|
+
const { shots } = JSON.parse(readFileSync(SHOTS, "utf8"));
|
|
31
|
+
const tokens = readTokens(join(ROOT, "src/styles/tokens.css"));
|
|
32
|
+
|
|
33
|
+
// ── Check: every image the content names is in the shot list, and back ────
|
|
34
|
+
|
|
35
|
+
function check() {
|
|
36
|
+
const files = [];
|
|
37
|
+
const walk = (dir) => {
|
|
38
|
+
for (const name of readdirSync(dir)) {
|
|
39
|
+
const path = join(dir, name);
|
|
40
|
+
if (statSync(path).isDirectory()) walk(path);
|
|
41
|
+
else if (/\.(md|json)$/.test(name)) files.push(path);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
for (const dir of ["src/content", "src/data", "galley/templates", "scripts/gallery"]) if (existsSync(join(ROOT, dir))) walk(join(ROOT, dir));
|
|
45
|
+
|
|
46
|
+
const used = new Map();
|
|
47
|
+
for (const file of files) {
|
|
48
|
+
const text = readFileSync(file, "utf8");
|
|
49
|
+
for (const match of text.matchAll(/\/images\/[\w/.-]+\.(?:webp|jpg|png|svg)/g)) {
|
|
50
|
+
if (!used.has(match[0])) used.set(match[0], new Set());
|
|
51
|
+
used.get(match[0]).add(file);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const problems = [];
|
|
55
|
+
const bySrc = new Map(shots.map((shot) => [`/${shot.file.replace(/^public\//, "")}`, shot]));
|
|
56
|
+
for (const [src, where] of used) {
|
|
57
|
+
if (!bySrc.has(src)) problems.push(`${src} is used in ${[...where].map((f) => relative(ROOT, f)).join(", ")} but is not in the shot list.`);
|
|
58
|
+
}
|
|
59
|
+
for (const [src, shot] of bySrc) {
|
|
60
|
+
if (!used.has(src)) {
|
|
61
|
+
problems.push(`${shot.id} (${src}) is in the shot list but nothing uses it.`);
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
// The alt text should travel with the picture: wherever content (not the
|
|
65
|
+
// gallery fixture) uses the file, the shot's alt should be written there too.
|
|
66
|
+
for (const file of used.get(src)) {
|
|
67
|
+
if (file.includes("scripts/gallery")) continue;
|
|
68
|
+
const text = readFileSync(file, "utf8");
|
|
69
|
+
if (!text.includes(shot.alt) && !text.includes(JSON.stringify(shot.alt).slice(1, -1))) {
|
|
70
|
+
problems.push(`${relative(ROOT, file)} uses ${src} without the shot list's alt text (“${shot.alt}”).`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return problems;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const problems = check();
|
|
78
|
+
for (const problem of problems) console.warn(` ! ${problem}`);
|
|
79
|
+
if (values.check) {
|
|
80
|
+
console.log(problems.length ? `${problems.length} problem(s).` : `Shot list and content agree: ${shots.length} shots.`);
|
|
81
|
+
process.exit(problems.length ? 1 : 0);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ── Paint ──────────────────────────────────────────────────────────────────
|
|
85
|
+
|
|
86
|
+
const manifest = existsSync(MANIFEST) ? JSON.parse(readFileSync(MANIFEST, "utf8")) : {};
|
|
87
|
+
const rgb = (name) => oklchToRgb(tokens[`placeholder-${name}`] ?? tokens["placeholder-mid"]);
|
|
88
|
+
const mix = (a, b, t) => ({ r: Math.round(a.r + (b.r - a.r) * t), g: Math.round(a.g + (b.g - a.g) * t), b: Math.round(a.b + (b.b - a.b) * t) });
|
|
89
|
+
const css = ({ r, g, b }) => `rgb(${r},${g},${b})`;
|
|
90
|
+
const lum = ({ r, g, b }) => (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;
|
|
91
|
+
const escape = (text) => text.replace(/[&<>]/g, (c) => ({ "&": "&", "<": "<", ">": ">" })[c]);
|
|
92
|
+
const hash = (buffer) => createHash("sha256").update(buffer).digest("hex");
|
|
93
|
+
|
|
94
|
+
/** A small deterministic random number generator, so the same shot always gets the same grain. */
|
|
95
|
+
function random(seed) {
|
|
96
|
+
let state = [...seed].reduce((sum, char) => (sum * 31 + char.charCodeAt(0)) >>> 0, 2166136261);
|
|
97
|
+
return () => {
|
|
98
|
+
state = (state + 0x6d2b79f5) >>> 0;
|
|
99
|
+
let t = state;
|
|
100
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
101
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
102
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function svg(shot) {
|
|
107
|
+
const { width: w, height: h } = shot;
|
|
108
|
+
const base = rgb(shot.tone ?? "mid");
|
|
109
|
+
const dark = lum(base) < 0.45;
|
|
110
|
+
const lit = mix(base, { r: 255, g: 250, b: 240 }, dark ? 0.16 : 0.32);
|
|
111
|
+
const shade = mix(base, rgb("dark"), dark ? 0.45 : 0.3);
|
|
112
|
+
const ink = dark ? mix(base, { r: 255, g: 255, b: 255 }, 0.72) : mix(base, rgb("dark"), 0.78);
|
|
113
|
+
const rand = random(shot.id);
|
|
114
|
+
// The sun comes from the side the prompt names; its hard shadow edge falls across the frame.
|
|
115
|
+
const fromLeft = /from (?:the window at )?frame left|windows on the left/.test(shot.prompt) || !/frame right|windows on the right/.test(shot.prompt);
|
|
116
|
+
const edge = 0.36 + rand() * 0.22;
|
|
117
|
+
const lean = (0.18 + rand() * 0.2) * w;
|
|
118
|
+
const x1 = (fromLeft ? edge : 1 - edge) * w;
|
|
119
|
+
const x2 = x1 + (fromLeft ? lean : -lean);
|
|
120
|
+
const shadow = fromLeft ? `M ${x1} 0 L ${w} 0 L ${w} ${h} L ${x2} ${h} Z` : `M 0 0 L ${x1} 0 L ${x2} ${h} L 0 ${h} Z`;
|
|
121
|
+
const band = Math.round(h * (0.62 + rand() * 0.18));
|
|
122
|
+
const size = Math.max(12, Math.round(Math.min(w, h) * 0.018));
|
|
123
|
+
const pad = Math.round(size * 2.2);
|
|
124
|
+
const corner = shot.labelCorner ?? "bottom-right";
|
|
125
|
+
const right = corner.endsWith("right");
|
|
126
|
+
const bottom = corner.startsWith("bottom");
|
|
127
|
+
const tx = right ? w - pad : pad;
|
|
128
|
+
// "upper-right": below where a header would sit over the picture.
|
|
129
|
+
const ty = corner.startsWith("upper") ? Math.round(h * 0.2) : bottom ? h - pad - size * 1.5 : pad + size;
|
|
130
|
+
const anchor = right ? "end" : "start";
|
|
131
|
+
const title = escape(shot.title.toUpperCase());
|
|
132
|
+
const meta = escape(`${shot.ratio} · ${w} × ${h}`);
|
|
133
|
+
|
|
134
|
+
return Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" width="${w}" height="${h}" viewBox="0 0 ${w} ${h}">
|
|
135
|
+
<defs>
|
|
136
|
+
<linearGradient id="sun" x1="${fromLeft ? 0 : 1}" y1="0" x2="${fromLeft ? 1 : 0}" y2="1">
|
|
137
|
+
<stop offset="0" stop-color="${css(lit)}"/>
|
|
138
|
+
<stop offset="1" stop-color="${css(base)}"/>
|
|
139
|
+
</linearGradient>
|
|
140
|
+
<linearGradient id="ground" x1="0" y1="0" x2="0" y2="1">
|
|
141
|
+
<stop offset="0" stop-color="${css(shade)}" stop-opacity="0"/>
|
|
142
|
+
<stop offset="1" stop-color="${css(shade)}" stop-opacity="0.35"/>
|
|
143
|
+
</linearGradient>
|
|
144
|
+
</defs>
|
|
145
|
+
<rect width="${w}" height="${h}" fill="url(#sun)"/>
|
|
146
|
+
<path d="${shadow}" fill="${css(shade)}" fill-opacity="0.55"/>
|
|
147
|
+
<rect y="${band}" width="${w}" height="${h - band}" fill="url(#ground)"/>
|
|
148
|
+
<line x1="0" y1="${band}" x2="${w}" y2="${band}" stroke="${css(shade)}" stroke-opacity="0.25" stroke-width="${Math.max(1, Math.round(h / 900))}"/>
|
|
149
|
+
<g font-family="Menlo, 'DejaVu Sans Mono', monospace" font-size="${size}" letter-spacing="${size * 0.12}" fill="${css(ink)}" text-anchor="${anchor}">
|
|
150
|
+
<text x="${tx}" y="${ty}">${title}</text>
|
|
151
|
+
<text x="${tx}" y="${ty + size * 1.5}" fill-opacity="0.7">${meta}</text>
|
|
152
|
+
</g>
|
|
153
|
+
</svg>`);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
async function grain(shot) {
|
|
157
|
+
// Grain at half resolution, scaled up: finer than it looks, and kinder to the encoder.
|
|
158
|
+
const gw = Math.ceil(shot.width / 2);
|
|
159
|
+
const gh = Math.ceil(shot.height / 2);
|
|
160
|
+
const rand = random(`${shot.id}-grain`);
|
|
161
|
+
const pixels = Buffer.alloc(gw * gh);
|
|
162
|
+
for (let i = 0; i < pixels.length; i++) pixels[i] = 128 + Math.round((rand() + rand() - 1) * 22);
|
|
163
|
+
return sharp(pixels, { raw: { width: gw, height: gh, channels: 1 } }).resize(shot.width, shot.height, { kernel: "cubic" }).toColourspace("b-w").png().toBuffer();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
let written = 0;
|
|
167
|
+
let kept = 0;
|
|
168
|
+
for (const shot of shots) {
|
|
169
|
+
const out = join(ROOT, shot.file);
|
|
170
|
+
const exists = existsSync(out);
|
|
171
|
+
const ours = exists && manifest[shot.file] === hash(readFileSync(out));
|
|
172
|
+
if (exists && !ours) {
|
|
173
|
+
kept++;
|
|
174
|
+
continue; // a real photograph: never overwritten
|
|
175
|
+
}
|
|
176
|
+
if (exists && ours && !values.force) continue;
|
|
177
|
+
|
|
178
|
+
const image = sharp(svg(shot)).composite([{ input: await grain(shot), blend: "soft-light" }]);
|
|
179
|
+
const buffer = shot.file.endsWith(".jpg") ? await image.jpeg({ quality: 78, mozjpeg: true }).toBuffer() : await image.webp({ quality: 58, effort: 6 }).toBuffer();
|
|
180
|
+
mkdirSync(dirname(out), { recursive: true });
|
|
181
|
+
writeFileSync(out, buffer);
|
|
182
|
+
manifest[shot.file] = hash(buffer);
|
|
183
|
+
written++;
|
|
184
|
+
console.log(` ${shot.file.padEnd(52)} ${String(shot.width).padStart(4)}×${String(shot.height).padEnd(4)} ${(buffer.length / 1024).toFixed(0).padStart(4)} kB`);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
writeFileSync(MANIFEST, `${JSON.stringify(Object.fromEntries(Object.entries(manifest).sort()), null, 2)}\n`);
|
|
188
|
+
console.log(`${written} placeholder(s) written, ${kept} real photograph(s) left alone, ${shots.length - written - kept} unchanged.`);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Smaller copies of the demo catalogue's photographs, for srcset: every
|
|
2
|
+
// picture the catalogue names gets a 640-pixel-wide WebP beside the
|
|
3
|
+
// original, in public/images/_sizes/. A store's own photographs don't need
|
|
4
|
+
// this — the store's image service makes sizes on request.
|
|
5
|
+
//
|
|
6
|
+
// npm run sizes
|
|
7
|
+
import { existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
8
|
+
import { dirname, join } from "node:path";
|
|
9
|
+
import sharp from "sharp";
|
|
10
|
+
|
|
11
|
+
const catalogue = JSON.parse(readFileSync("src/data/shop/catalogue.json", "utf8"));
|
|
12
|
+
const urls = new Set();
|
|
13
|
+
|
|
14
|
+
for (const product of catalogue.products) for (const image of product.images ?? []) urls.add(image.url);
|
|
15
|
+
for (const collection of catalogue.collections ?? []) if (collection.image) urls.add(collection.image.url);
|
|
16
|
+
let made = 0;
|
|
17
|
+
|
|
18
|
+
for (const url of urls) {
|
|
19
|
+
if (!url.startsWith("/images/")) continue;
|
|
20
|
+
const source = join("public", url);
|
|
21
|
+
const target = join("public", url.replace(/^\/images\//, "/images/_sizes/").replace(/\.(webp|jpe?g|png)$/, "-640.webp"));
|
|
22
|
+
|
|
23
|
+
if (!existsSync(source)) {
|
|
24
|
+
console.warn(`missing: ${source}`);
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
28
|
+
await sharp(source).resize({ width: 640 }).webp({ quality: 72 }).toFile(target);
|
|
29
|
+
made++;
|
|
30
|
+
}
|
|
31
|
+
console.log(`${made} smaller copies in public/images/_sizes/`);
|