astro-component-kit 0.4.0 → 0.4.1
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 +105 -27
- package/package.json +16 -3
- package/src/components/index.ts +2 -0
- package/src/components/lib/Galaxy3D.astro +249 -137
- package/src/components/lib/app/AppSidebar.astro +249 -0
- package/src/components/lib/app/AppTopbar.astro +284 -0
- package/src/components/lib/app/ArrivalsBoard.astro +176 -0
- package/src/components/lib/app/AuthCard.astro +213 -0
- package/src/components/lib/app/DataTable.astro +346 -0
- package/src/components/lib/app/GuestProfileCard.astro +133 -0
- package/src/components/lib/app/HousekeepingBoard.astro +189 -0
- package/src/components/lib/app/PageHeader.astro +157 -0
- package/src/components/lib/app/PlanUsageCard.astro +112 -0
- package/src/components/lib/app/RoomRack.astro +207 -0
- package/src/components/lib/app/SettingsSection.astro +96 -0
- package/src/components/lib/app/SwitchRow.astro +71 -0
- package/src/components/lib/app/TeamMembers.astro +190 -0
- package/src/components/lib/app/app-icons.ts +52 -0
- package/src/components/lib/app/index.ts +19 -0
- package/src/components/lib/charts/AreaChart.astro +4 -4
- package/src/components/lib/charts/BarChart.astro +3 -3
- package/src/components/lib/charts/ChartFrame.astro +10 -10
- package/src/components/lib/charts/DonutChart.astro +2 -2
- package/src/components/lib/charts/DumbbellChart.astro +1 -1
- package/src/components/lib/charts/ForecastLineChart.astro +1 -1
- package/src/components/lib/charts/GaugeChart.astro +1 -1
- package/src/components/lib/charts/HeatmapChart.astro +1 -1
- package/src/components/lib/charts/HorizontalBarChart.astro +2 -2
- package/src/components/lib/charts/KpiStatTile.astro +4 -4
- package/src/components/lib/charts/LinearProgressGauge.astro +4 -4
- package/src/components/lib/charts/MetricDeltaTable.astro +3 -3
- package/src/components/lib/charts/RadarMetricChart.astro +4 -4
- package/src/components/lib/charts/RadialBarChart.astro +1 -1
- package/src/components/lib/charts/RetentionCohortTable.astro +2 -2
- package/src/components/lib/charts/TreemapChart.astro +1 -1
- package/src/components/lib/ecommerce/CartDrawer.astro +483 -0
- package/src/components/lib/ecommerce/CartPageList.astro +290 -0
- package/src/components/lib/ecommerce/CartToast.astro +276 -0
- package/src/components/lib/ecommerce/CategoryTiles.astro +143 -0
- package/src/components/lib/ecommerce/CheckoutForm.astro +423 -0
- package/src/components/lib/ecommerce/CountdownBanner.astro +230 -0
- package/src/components/lib/ecommerce/FilterBar.astro +278 -0
- package/src/components/lib/ecommerce/FilterSidebar.astro +405 -0
- package/src/components/lib/ecommerce/LiveActivityToast.astro +213 -0
- package/src/components/lib/ecommerce/OrderSummary.astro +295 -0
- package/src/components/lib/ecommerce/ProductBuyBox.astro +247 -0
- package/src/components/lib/ecommerce/ProductCardMinimal.astro +229 -0
- package/src/components/lib/ecommerce/ProductGallery.astro +145 -0
- package/src/components/lib/ecommerce/ProductGrid.astro +118 -0
- package/src/components/lib/ecommerce/ProductMedia.astro +113 -0
- package/src/components/lib/ecommerce/ProductRating.astro +78 -0
- package/src/components/lib/ecommerce/ProductToolbar.astro +93 -0
- package/src/components/lib/ecommerce/PromoBar.astro +145 -0
- package/src/components/lib/ecommerce/StockIndicator.astro +127 -0
- package/src/components/lib/ecommerce/StoreHeader.astro +446 -0
- package/src/components/lib/ecommerce/StoreHero.astro +260 -0
- package/src/components/lib/ecommerce/StoreProductCard.astro +307 -0
- package/src/components/lib/ecommerce/TrustBadges.astro +101 -0
- package/src/components/lib/ecommerce/VariantPicker.astro +145 -0
- package/src/components/lib/ecommerce/cart-store.ts +151 -0
- package/src/components/lib/ecommerce/catalog-filter.ts +62 -0
- package/src/components/lib/ecommerce/index.ts +34 -0
- package/src/components/lib/ecommerce/product-icons.ts +28 -0
- package/src/components/lib/ecommerce/types.ts +70 -0
- package/src/components/lib/forms/AnimatedInput.astro +4 -2
- package/src/components/lib/forms/CustomRadioGroup.astro +3 -1
- package/src/components/lib/index.ts +2 -0
- package/src/components/lib/layout/BentoGrid3.astro +6 -4
- package/src/components/lib/layout/CenterFixedBox.astro +2 -2
- package/src/components/lib/layout/CenteredContainer.astro +4 -2
- package/src/components/lib/layout/ClusterHorizontal.astro +2 -2
- package/src/components/lib/layout/FeatureHero.astro +4 -2
- package/src/components/lib/layout/FooterCenteredMinimal.astro +4 -2
- package/src/components/lib/layout/FullBleedSection.astro +2 -2
- package/src/components/lib/layout/GalleryGrid4.astro +2 -2
- package/src/components/lib/layout/HolyGrailGrid.astro +11 -9
- package/src/components/lib/layout/LandingSectionSplit.astro +5 -3
- package/src/components/lib/layout/MasonryGrid.astro +2 -2
- package/src/components/lib/layout/MinimalFooterGrid.astro +1 -1
- package/src/components/lib/layout/ScrollSnapSection.astro +1 -1
- package/src/components/lib/layout/SidebarLayoutWrapper.astro +4 -2
- package/src/components/lib/layout/SplitScreenLayout.astro +3 -3
- package/src/components/lib/layout/StepLayoutVertical.astro +1 -1
- package/src/components/lib/layout/StickySidebarWrapper.astro +4 -2
- package/src/components/lib/sections/AgencyContactBrief.astro +194 -0
- package/src/components/lib/sections/AgencyFooterCta.astro +94 -0
- package/src/components/lib/sections/AgencyHeader.astro +161 -0
- package/src/components/lib/sections/AgencyHeroKinetic.astro +172 -0
- package/src/components/lib/sections/AgencyServicesList.astro +113 -0
- package/src/components/lib/sections/AgencyTeamGrid.astro +111 -0
- package/src/components/lib/sections/AgencyWorkGrid.astro +147 -0
- package/src/components/lib/sections/BlogGridSection.astro +9 -7
- package/src/components/lib/sections/ButtonsShowcase.astro +20 -18
- package/src/components/lib/sections/CardsShowcase.astro +28 -26
- package/src/components/lib/sections/CareersOpenings.astro +10 -8
- package/src/components/lib/sections/ChangelogSection.astro +14 -7
- package/src/components/lib/sections/ContactGlassForm.astro +10 -8
- package/src/components/lib/sections/ContactSplitMap.astro +11 -9
- package/src/components/lib/sections/CtaAppDownload.astro +13 -11
- package/src/components/lib/sections/CtaGlowBanner.astro +12 -10
- package/src/components/lib/sections/CtaNewsletterSection.astro +13 -11
- package/src/components/lib/sections/CtaSplitImage.astro +13 -11
- package/src/components/lib/sections/DataShowcase.astro +23 -21
- package/src/components/lib/sections/FaqAccordionSection.astro +8 -8
- package/src/components/lib/sections/FaqTwoColumn.astro +9 -7
- package/src/components/lib/sections/FeatureAlternatingRows.astro +10 -8
- package/src/components/lib/sections/FeatureBentoGrid.astro +13 -11
- package/src/components/lib/sections/FeatureIconGrid.astro +6 -6
- package/src/components/lib/sections/FeatureTabsShowcase.astro +13 -11
- package/src/components/lib/sections/FeatureTimelineFlow.astro +8 -6
- package/src/components/lib/sections/FeedbackShowcase.astro +15 -13
- package/src/components/lib/sections/FooterMegaSection.astro +13 -11
- package/src/components/lib/sections/FormsShowcase.astro +22 -20
- package/src/components/lib/sections/HeroDashboardPreview.astro +11 -9
- package/src/components/lib/sections/HeroGlass.astro +22 -20
- package/src/components/lib/sections/HeroGradient.astro +15 -13
- package/src/components/lib/sections/HeroMinimalCentered.astro +10 -10
- package/src/components/lib/sections/HeroShowcaseSplit.astro +18 -16
- package/src/components/lib/sections/HeroSplit.astro +13 -11
- package/src/components/lib/sections/HeroTerminal.astro +14 -12
- package/src/components/lib/sections/HeroWaitlist.astro +10 -8
- package/src/components/lib/sections/HowItWorksSteps.astro +12 -10
- package/src/components/lib/sections/IntegrationsGrid.astro +7 -7
- package/src/components/lib/sections/LayoutShowcase.astro +21 -19
- package/src/components/lib/sections/LogoCloudSection.astro +4 -4
- package/src/components/lib/sections/LogoWallGrid.astro +6 -4
- package/src/components/lib/sections/NavigationShowcase.astro +15 -13
- package/src/components/lib/sections/OverlaysShowcase.astro +21 -19
- package/src/components/lib/sections/PricingComparisonMatrix.astro +15 -13
- package/src/components/lib/sections/PricingSinglePlan.astro +13 -11
- package/src/components/lib/sections/PricingTierCards.astro +11 -9
- package/src/components/lib/sections/PricingToggleCards.astro +13 -13
- package/src/components/lib/sections/ShopCategoryHero.astro +103 -0
- package/src/components/lib/sections/ShopCollectionMosaic.astro +131 -0
- package/src/components/lib/sections/ShopFooterWordmark.astro +100 -0
- package/src/components/lib/sections/ShopHeaderEditorial.astro +396 -0
- package/src/components/lib/sections/ShopHeroEditorial.astro +151 -0
- package/src/components/lib/sections/ShopLookbook.astro +250 -0
- package/src/components/lib/sections/ShopNewsletterEditorial.astro +128 -0
- package/src/components/lib/sections/ShopProductRail.astro +150 -0
- package/src/components/lib/sections/ShopReviewsEditorial.astro +133 -0
- package/src/components/lib/sections/ShopValuesMarquee.astro +91 -0
- package/src/components/lib/sections/StatsCounterBand.astro +9 -7
- package/src/components/lib/sections/StatsDashboardSection.astro +4 -2
- package/src/components/lib/sections/StatsMetricShowcase.astro +9 -7
- package/src/components/lib/sections/TeamGridSection.astro +12 -10
- package/src/components/lib/sections/TestimonialCarousel.astro +10 -8
- package/src/components/lib/sections/TestimonialFeatured.astro +7 -5
- package/src/components/lib/sections/TestimonialGridSection.astro +7 -7
- package/src/components/lib/sections/TestimonialWallGlass.astro +11 -9
- package/src/components/lib/sections/TypographyShowcase.astro +10 -8
- package/src/components/lib/sections/index.ts +10 -0
- package/src/components/lib/templates/ecommerce/StoreCategoryPage.astro +160 -0
- package/src/components/lib/templates/ecommerce/StoreCheckoutPage.astro +98 -0
- package/src/components/lib/templates/ecommerce/StoreHomePage.astro +191 -0
- package/src/components/lib/templates/ecommerce/StoreLayout.astro +169 -0
- package/src/components/lib/templates/ecommerce/StoreProductPage.astro +165 -0
- package/src/components/lib/templates/ecommerce/data.ts +187 -0
- package/src/components/lib/templates/ecommerce/index.ts +14 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialBagPage.astro +52 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialCheckoutPage.astro +123 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialHomePage.astro +102 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialLayout.astro +216 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialProductPage.astro +205 -0
- package/src/components/lib/templates/ecommerce-editorial/EditorialShopPage.astro +112 -0
- package/src/components/lib/templates/ecommerce-editorial/data.ts +125 -0
- package/src/components/lib/templates/ecommerce-editorial/index.ts +16 -0
- package/src/components/lib/templates/saas-hotel/AppLayout.astro +83 -0
- package/src/components/lib/templates/saas-hotel/DashboardPage.astro +66 -0
- package/src/components/lib/templates/saas-hotel/GuestsPage.astro +65 -0
- package/src/components/lib/templates/saas-hotel/LandingPage.astro +213 -0
- package/src/components/lib/templates/saas-hotel/ReportsPage.astro +63 -0
- package/src/components/lib/templates/saas-hotel/ReservationsPage.astro +49 -0
- package/src/components/lib/templates/saas-hotel/RoomsPage.astro +48 -0
- package/src/components/lib/templates/saas-hotel/SettingsPage.astro +115 -0
- package/src/components/lib/templates/saas-hotel/SignInPage.astro +50 -0
- package/src/components/lib/templates/saas-hotel/data.ts +229 -0
- package/src/components/lib/templates/saas-hotel/index.ts +19 -0
- package/src/components/lib/templates/saas-hotel/lobby-theme.css +90 -0
- package/src/styles/global.css +95 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* ShopCollectionMosaic — Asymmetric collection grid: one tall feature tile and smaller tiles,
|
|
4
|
+
* each with an index number, title, item count and an underline link.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} eyebrow - Small label. Default 'Collections'.
|
|
7
|
+
* @param {string} title - Section heading. Default 'Shop by *intention*'.
|
|
8
|
+
* @param {Array<{title: string, text?: string, href: string, count?: number, icon?: string, hue?: number, image?: string}>} items - 2–5 tiles; the first one is featured.
|
|
9
|
+
* @param {string} linkLabel - Tile link text. Default 'Explore'.
|
|
10
|
+
* @param {string} countLabel - Suffix after counts. Default 'pieces'.
|
|
11
|
+
* @param {string} variant - Layout (feature-left|feature-right). Default 'feature-left'.
|
|
12
|
+
* @param {string} size - Tile height (sm|md|lg). Default 'md'.
|
|
13
|
+
* @param {string} className - Extra class.
|
|
14
|
+
*
|
|
15
|
+
* Accessibility: each tile is one link with a heading inside; art is decorative.
|
|
16
|
+
*/
|
|
17
|
+
import ProductMedia from '../ecommerce/ProductMedia.astro';
|
|
18
|
+
|
|
19
|
+
interface Tile { title: string; text?: string; href: string; count?: number; icon?: string; hue?: number; image?: string }
|
|
20
|
+
interface Props {
|
|
21
|
+
eyebrow?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
items?: Tile[];
|
|
24
|
+
linkLabel?: string;
|
|
25
|
+
countLabel?: string;
|
|
26
|
+
variant?: 'feature-left' | 'feature-right';
|
|
27
|
+
size?: 'sm' | 'md' | 'lg';
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const {
|
|
32
|
+
eyebrow = 'Collections',
|
|
33
|
+
title = 'Shop by *intention*',
|
|
34
|
+
items = [
|
|
35
|
+
{ title: 'The wardrobe', text: 'Overshirts, knitwear and coats in natural fibres.', href: '#', count: 24, icon: 'jacket', hue: 22 },
|
|
36
|
+
{ title: 'At the table', text: 'Stoneware made by hand.', href: '#', count: 12, icon: 'mug', hue: 14 },
|
|
37
|
+
{ title: 'Light & air', text: 'Lamps and living things.', href: '#', count: 9, icon: 'plant', hue: 110 },
|
|
38
|
+
{ title: 'To carry', text: 'Bags that soften with age.', href: '#', count: 8, icon: 'bag', hue: 34 },
|
|
39
|
+
],
|
|
40
|
+
linkLabel = 'Explore',
|
|
41
|
+
countLabel = 'pieces',
|
|
42
|
+
variant = 'feature-left',
|
|
43
|
+
size = 'md',
|
|
44
|
+
className = '',
|
|
45
|
+
} = Astro.props;
|
|
46
|
+
|
|
47
|
+
const parts = title.split(/\*(.+?)\*/g);
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
<section class:list={['scm', `scm--${variant}`, `scm--${size}`, className]}>
|
|
51
|
+
<header class="scm__head">
|
|
52
|
+
{eyebrow && <p class="scm__eyebrow">{eyebrow}</p>}
|
|
53
|
+
<h2 class="scm__title">{parts.map((p, i) => (i % 2 ? <em>{p}</em> : p))}</h2>
|
|
54
|
+
</header>
|
|
55
|
+
<ul class="scm__grid">
|
|
56
|
+
{items.slice(0, 5).map((t, i) => (
|
|
57
|
+
<li class:list={['scm__item', { 'scm__item--feature': i === 0 }]}>
|
|
58
|
+
<a class="scm__tile" href={t.href}>
|
|
59
|
+
<span class="scm__art"><ProductMedia image={t.image} alt="" icon={t.icon} hue={t.hue} ratio="auto" variant="soft" size={i === 0 ? 'lg' : 'md'} /></span>
|
|
60
|
+
<span class="scm__num" aria-hidden="true">{String(i + 1).padStart(2, '0')}</span>
|
|
61
|
+
<span class="scm__body">
|
|
62
|
+
<h3 class="scm__name">{t.title}</h3>
|
|
63
|
+
{t.text && <span class="scm__text">{t.text}</span>}
|
|
64
|
+
<span class="scm__link">{t.count !== undefined ? `${linkLabel} · ${t.count} ${countLabel}` : linkLabel}</span>
|
|
65
|
+
</span>
|
|
66
|
+
</a>
|
|
67
|
+
</li>
|
|
68
|
+
))}
|
|
69
|
+
</ul>
|
|
70
|
+
</section>
|
|
71
|
+
|
|
72
|
+
<style>
|
|
73
|
+
.scm { container-type: inline-size; --scm-h: 300px; color: var(--c-text-1, #fff); }
|
|
74
|
+
.scm--sm { --scm-h: 230px; }
|
|
75
|
+
.scm--lg { --scm-h: 380px; }
|
|
76
|
+
.scm__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4, 1rem); margin-bottom: var(--sp-6, 1.5rem); padding-bottom: var(--sp-3, 0.75rem); border-bottom: 1px solid currentColor; }
|
|
77
|
+
.scm__eyebrow { order: 2; margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-text-2, #a3a3a3); }
|
|
78
|
+
.scm__title { margin: 0; font-family: var(--font-display, Georgia, 'Times New Roman', serif); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
|
|
79
|
+
.scm__title em { font-style: italic; color: var(--shop-accent, var(--c-primary-light, #d4a017)); }
|
|
80
|
+
|
|
81
|
+
.scm__grid {
|
|
82
|
+
display: grid;
|
|
83
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
84
|
+
grid-auto-rows: var(--scm-h);
|
|
85
|
+
gap: var(--sp-3, 0.75rem);
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
list-style: none;
|
|
89
|
+
}
|
|
90
|
+
.scm__item--feature { grid-column: span 2; grid-row: span 2; }
|
|
91
|
+
.scm--feature-right .scm__item--feature { grid-column: 3 / span 2; grid-row: 1 / span 2; }
|
|
92
|
+
.scm__item:nth-child(4):last-child { grid-column: span 2; }
|
|
93
|
+
|
|
94
|
+
.scm__tile {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
justify-content: flex-end;
|
|
99
|
+
height: 100%;
|
|
100
|
+
padding: var(--sp-5, 1.25rem);
|
|
101
|
+
color: inherit;
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
isolation: isolate;
|
|
105
|
+
border-radius: var(--r-sm, 2px);
|
|
106
|
+
}
|
|
107
|
+
.scm__art { position: absolute; inset: 0; z-index: -1; }
|
|
108
|
+
.scm__art :global(.p-media) { height: 100%; aspect-ratio: auto; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
|
|
109
|
+
.scm__art :global(.p-media__art) { width: auto; height: 42%; margin-bottom: 22%; }
|
|
110
|
+
.scm__tile:hover .scm__art :global(.p-media) { transform: scale(1.04); }
|
|
111
|
+
.scm__tile::after { content: ''; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(transparent, rgb(var(--paper-rgb, 5 5 5) / 0.9)); }
|
|
112
|
+
.scm__num { position: absolute; top: var(--sp-4, 1rem); left: var(--sp-5, 1.25rem); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
|
|
113
|
+
.scm__body { display: grid; gap: 4px; }
|
|
114
|
+
.scm__name { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
|
|
115
|
+
.scm__item--feature .scm__name { font-size: clamp(2rem, 3.5vw, 3rem); }
|
|
116
|
+
.scm__text { max-width: 24rem; font-size: 0.88rem; color: var(--c-text-2, #a3a3a3); }
|
|
117
|
+
.scm__link { width: fit-content; margin-top: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
|
|
118
|
+
.scm__tile:hover .scm__link { color: var(--shop-accent, var(--c-primary-light, #d4a017)); }
|
|
119
|
+
.scm__tile:focus-visible { outline: 2px solid var(--shop-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }
|
|
120
|
+
|
|
121
|
+
@container (max-width: 900px) {
|
|
122
|
+
.scm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
|
|
123
|
+
.scm__item--feature, .scm--feature-right .scm__item--feature { grid-column: 1 / -1; grid-row: span 2; }
|
|
124
|
+
.scm__item:nth-child(4):last-child { grid-column: auto; }
|
|
125
|
+
}
|
|
126
|
+
@container (max-width: 480px) {
|
|
127
|
+
.scm__grid { grid-template-columns: 1fr; }
|
|
128
|
+
.scm__item--feature, .scm--feature-right .scm__item--feature { grid-row: span 1; }
|
|
129
|
+
}
|
|
130
|
+
@media (prefers-reduced-motion: reduce) { .scm__art :global(.p-media) { transition: none; } }
|
|
131
|
+
</style>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* ShopFooterWordmark — Store footer with link columns, contact block, payment labels and a
|
|
4
|
+
* giant edge-to-edge wordmark at the bottom.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} brand - Wordmark. Default 'Forma'.
|
|
7
|
+
* @param {string} brandHref - Wordmark link. Default '/'.
|
|
8
|
+
* @param {Array<{title: string, links: {label: string, href: string}[]}>} columns - Link columns.
|
|
9
|
+
* @param {{title: string, lines: string[]}} contact - Contact block (optional).
|
|
10
|
+
* @param {string[]} payments - Payment method labels. Default Visa · Mastercard · PayPal · Apple Pay.
|
|
11
|
+
* @param {string} copyright - Bottom-left text.
|
|
12
|
+
* @param {string} variant - Style (plain|inverted). Default 'plain'.
|
|
13
|
+
* @param {string} className - Extra class.
|
|
14
|
+
*
|
|
15
|
+
* Accessibility: footer landmark with a visually hidden heading; columns are nav lists; the
|
|
16
|
+
* wordmark is decorative (aria-hidden) and duplicated by the visible brand link.
|
|
17
|
+
*/
|
|
18
|
+
interface Props {
|
|
19
|
+
brand?: string;
|
|
20
|
+
brandHref?: string;
|
|
21
|
+
columns?: Array<{ title: string; links: Array<{ label: string; href: string }> }>;
|
|
22
|
+
contact?: { title: string; lines: string[] };
|
|
23
|
+
payments?: string[];
|
|
24
|
+
copyright?: string;
|
|
25
|
+
variant?: 'plain' | 'inverted';
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const {
|
|
30
|
+
brand = 'Forma',
|
|
31
|
+
brandHref = '/',
|
|
32
|
+
columns = [
|
|
33
|
+
{ title: 'Shop', links: [{ label: 'Clothing', href: '#' }, { label: 'Shoes', href: '#' }, { label: 'Bags', href: '#' }, { label: 'Objects', href: '#' }] },
|
|
34
|
+
{ title: 'Care', links: [{ label: 'Shipping', href: '#' }, { label: 'Returns', href: '#' }, { label: 'Repairs', href: '#' }, { label: 'Size guide', href: '#' }] },
|
|
35
|
+
{ title: 'Studio', links: [{ label: 'About', href: '#' }, { label: 'Journal', href: '#' }, { label: 'Stockists', href: '#' }] },
|
|
36
|
+
],
|
|
37
|
+
contact = { title: 'Visit', lines: ['Calle del Pez 14, Madrid', 'Tue–Sat · 11:00–20:00', 'hello@forma.studio'] },
|
|
38
|
+
payments = ['Visa', 'Mastercard', 'PayPal', 'Apple Pay'],
|
|
39
|
+
copyright = `© ${new Date().getFullYear()} Forma Studio`,
|
|
40
|
+
variant = 'plain',
|
|
41
|
+
className = '',
|
|
42
|
+
} = Astro.props;
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
<footer class:list={['sfw', `sfw--${variant}`, className]} aria-labelledby="sfw-title">
|
|
46
|
+
<h2 id="sfw-title" class="sr-only">Site footer</h2>
|
|
47
|
+
<div class="sfw__top">
|
|
48
|
+
<a class="sfw__brand" href={brandHref}>{brand}</a>
|
|
49
|
+
{columns.map((c) => (
|
|
50
|
+
<nav class="sfw__col" aria-label={c.title}>
|
|
51
|
+
<p class="sfw__col-title">{c.title}</p>
|
|
52
|
+
<ul>{c.links.map((l) => <li><a href={l.href}>{l.label}</a></li>)}</ul>
|
|
53
|
+
</nav>
|
|
54
|
+
))}
|
|
55
|
+
{contact && (
|
|
56
|
+
<div class="sfw__col">
|
|
57
|
+
<p class="sfw__col-title">{contact.title}</p>
|
|
58
|
+
<address>{contact.lines.map((l) => <span>{l}</span>)}</address>
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
<div class="sfw__bottom">
|
|
63
|
+
<p>{copyright}</p>
|
|
64
|
+
{payments.length > 0 && <ul class="sfw__pay" aria-label="Payment methods">{payments.map((p) => <li>{p}</li>)}</ul>}
|
|
65
|
+
</div>
|
|
66
|
+
<p class="sfw__wordmark" aria-hidden="true">{brand}<span>°</span></p>
|
|
67
|
+
</footer>
|
|
68
|
+
|
|
69
|
+
<style>
|
|
70
|
+
.sfw { container-type: inline-size; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--c-text-1, #fff); color: var(--c-text-1, #fff); overflow: hidden; }
|
|
71
|
+
.sfw--inverted { background: var(--c-text-1, #fff); color: var(--c-bg, #050505); border-top: 0; }
|
|
72
|
+
.sfw__top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--sp-8, 2rem); max-width: 1440px; margin: 0 auto; }
|
|
73
|
+
.sfw__brand { font-family: var(--font-display, Georgia, 'Times New Roman', serif); font-size: 1.8rem; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
|
|
74
|
+
.sfw__col-title { margin: 0 0 var(--sp-3, 0.75rem); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
|
|
75
|
+
.sfw__col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
|
|
76
|
+
.sfw__col a { display: inline-flex; align-items: center; min-height: 34px; color: inherit; text-decoration: none; font-size: 0.95rem; }
|
|
77
|
+
.sfw__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
|
|
78
|
+
.sfw__col address { display: grid; gap: 6px; font-style: normal; font-size: 0.95rem; line-height: 1.5; }
|
|
79
|
+
.sfw a:focus-visible { outline: 2px solid var(--shop-accent, var(--c-primary-light, #d4a017)); outline-offset: 3px; }
|
|
80
|
+
.sfw__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4, 1rem); max-width: 1440px; margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding-top: var(--sp-4, 1rem); border-top: 1px solid var(--c-border, rgba(255, 255, 255, 0.12)); font-size: 0.8rem; opacity: 0.75; }
|
|
81
|
+
.sfw__bottom p { margin: 0; }
|
|
82
|
+
.sfw__pay { display: flex; flex-wrap: wrap; gap: var(--sp-2, 0.5rem); margin: 0; padding: 0; list-style: none; }
|
|
83
|
+
.sfw__pay li { padding: 0.15rem 0.55rem; border: 1px solid currentColor; border-radius: var(--r-sm, 2px); font-size: 0.7rem; letter-spacing: 0.04em; }
|
|
84
|
+
.sfw__wordmark {
|
|
85
|
+
margin: clamp(1rem, 3vw, 2rem) 0 -0.18em;
|
|
86
|
+
font-family: var(--font-display, Georgia, 'Times New Roman', serif);
|
|
87
|
+
font-size: clamp(5rem, 24vw, 22rem);
|
|
88
|
+
line-height: 0.8;
|
|
89
|
+
letter-spacing: -0.06em;
|
|
90
|
+
text-align: center;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
}
|
|
93
|
+
.sfw__wordmark span { color: var(--shop-accent, var(--c-primary-light, #d4a017)); }
|
|
94
|
+
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
95
|
+
|
|
96
|
+
@container (max-width: 900px) {
|
|
97
|
+
.sfw__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
98
|
+
.sfw__brand { grid-column: 1 / -1; }
|
|
99
|
+
}
|
|
100
|
+
</style>
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* ShopHeaderEditorial — Editorial store header: thin announcement line, left menu, centred
|
|
4
|
+
* wordmark, right utilities (search, theme toggle, bag count) and a full-width mega menu.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} brand - Wordmark text. Default 'Forma'.
|
|
7
|
+
* @param {string} brandHref - Wordmark link. Default '/'.
|
|
8
|
+
* @param {string} announcement - Top line text (empty hides it).
|
|
9
|
+
* @param {Array} links - `{ label, href, columns?: { title, links: {label, href}[] }[], feature?: { title, text, href, icon?, hue? } }`.
|
|
10
|
+
* @param {string} searchHref - Search page URL (empty hides the icon). Default '#'.
|
|
11
|
+
* @param {string} bagHref - Bag page URL. When empty, the bag button opens a CartDrawer instead.
|
|
12
|
+
* @param {string} cartKey - Cart storage key for the live count. Default 'ack-cart'.
|
|
13
|
+
* @param {boolean} themeToggle - Show a light/dark toggle (html[data-theme]). Default true.
|
|
14
|
+
* @param {string} currentHref - Marks the active link.
|
|
15
|
+
* @param {boolean} sticky - Stick to the top on scroll. Default true.
|
|
16
|
+
* @param {string} variant - Style (paper|transparent|inverted). Default 'paper'.
|
|
17
|
+
* @param {string} size - Height (sm|md|lg). Default 'md'.
|
|
18
|
+
* @param {string} id - Base id. Default 'shop-header'.
|
|
19
|
+
* @param {string} className - Extra class.
|
|
20
|
+
*
|
|
21
|
+
* Accessibility: mega menus are disclosure buttons (aria-expanded) that close on Escape/outside
|
|
22
|
+
* click; the mobile menu is a disclosure too; the bag link label includes the live count.
|
|
23
|
+
*/
|
|
24
|
+
import ProductMedia from '../ecommerce/ProductMedia.astro';
|
|
25
|
+
|
|
26
|
+
interface Col { title: string; links: Array<{ label: string; href: string }> }
|
|
27
|
+
interface Feature { title: string; text?: string; href: string; icon?: string; hue?: number }
|
|
28
|
+
interface NavLink { label: string; href: string; columns?: Col[]; feature?: Feature }
|
|
29
|
+
|
|
30
|
+
interface Props {
|
|
31
|
+
brand?: string;
|
|
32
|
+
brandHref?: string;
|
|
33
|
+
announcement?: string;
|
|
34
|
+
links?: NavLink[];
|
|
35
|
+
searchHref?: string;
|
|
36
|
+
bagHref?: string;
|
|
37
|
+
cartKey?: string;
|
|
38
|
+
themeToggle?: boolean;
|
|
39
|
+
currentHref?: string;
|
|
40
|
+
sticky?: boolean;
|
|
41
|
+
variant?: 'paper' | 'transparent' | 'inverted';
|
|
42
|
+
size?: 'sm' | 'md' | 'lg';
|
|
43
|
+
id?: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const {
|
|
48
|
+
brand = 'Forma',
|
|
49
|
+
brandHref = '/',
|
|
50
|
+
announcement = 'Complimentary shipping over €150 · Free returns within 30 days',
|
|
51
|
+
links = [
|
|
52
|
+
{
|
|
53
|
+
label: 'Shop',
|
|
54
|
+
href: '#',
|
|
55
|
+
columns: [
|
|
56
|
+
{ title: 'Clothing', links: [{ label: 'Overshirts', href: '#' }, { label: 'Knitwear', href: '#' }, { label: 'Outerwear', href: '#' }] },
|
|
57
|
+
{ title: 'Objects', links: [{ label: 'Ceramics', href: '#' }, { label: 'Lighting', href: '#' }, { label: 'Plants', href: '#' }] },
|
|
58
|
+
{ title: 'Accessories', links: [{ label: 'Bags', href: '#' }, { label: 'Eyewear', href: '#' }, { label: 'Watches', href: '#' }] },
|
|
59
|
+
],
|
|
60
|
+
feature: { title: 'The Autumn edit', text: 'Twelve pieces in warm, quiet tones.', href: '#', icon: 'jacket', hue: 22 },
|
|
61
|
+
},
|
|
62
|
+
{ label: 'New in', href: '#' },
|
|
63
|
+
{ label: 'Journal', href: '#' },
|
|
64
|
+
],
|
|
65
|
+
searchHref = '#',
|
|
66
|
+
bagHref = '#',
|
|
67
|
+
cartKey = 'ack-cart',
|
|
68
|
+
themeToggle = true,
|
|
69
|
+
currentHref,
|
|
70
|
+
sticky = true,
|
|
71
|
+
variant = 'paper',
|
|
72
|
+
size = 'md',
|
|
73
|
+
id = 'shop-header',
|
|
74
|
+
className = '',
|
|
75
|
+
} = Astro.props;
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
<header class:list={['she', `she--${variant}`, `she--${size}`, { 'she--sticky': sticky }, className]} data-shop-header data-key={cartKey}>
|
|
79
|
+
{announcement && <p class="she__announce">{announcement}</p>}
|
|
80
|
+
<div class="she__bar">
|
|
81
|
+
<div class="she__left">
|
|
82
|
+
<button class="she__icon she__burger" type="button" aria-expanded="false" aria-controls={`${id}-nav`} aria-label="Menu" data-burger>
|
|
83
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><path d="M3 8h18M3 16h18"/></svg>
|
|
84
|
+
</button>
|
|
85
|
+
<nav class="she__nav" id={`${id}-nav`} aria-label="Main" data-nav>
|
|
86
|
+
<ul>
|
|
87
|
+
{links.map((link, i) => (
|
|
88
|
+
<li>
|
|
89
|
+
{link.columns?.length ? (
|
|
90
|
+
<>
|
|
91
|
+
<button class="she__link she__link--desk" type="button" aria-expanded="false" aria-controls={`${id}-mega-${i}`} data-mega-toggle>{link.label}</button>
|
|
92
|
+
<a class="she__link she__link--mob" href={link.href}>{link.label}</a>
|
|
93
|
+
<ul class="she__sub">
|
|
94
|
+
{link.columns.flatMap((c) => c.links).map((l) => <li><a href={l.href}>{l.label}</a></li>)}
|
|
95
|
+
</ul>
|
|
96
|
+
</>
|
|
97
|
+
) : (
|
|
98
|
+
<a class="she__link" href={link.href} aria-current={currentHref === link.href ? 'page' : undefined}>{link.label}</a>
|
|
99
|
+
)}
|
|
100
|
+
</li>
|
|
101
|
+
))}
|
|
102
|
+
</ul>
|
|
103
|
+
</nav>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<a class="she__brand" href={brandHref}>{brand}</a>
|
|
107
|
+
|
|
108
|
+
<div class="she__right">
|
|
109
|
+
{searchHref && (
|
|
110
|
+
<a class="she__icon" href={searchHref} aria-label="Search">
|
|
111
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
|
|
112
|
+
</a>
|
|
113
|
+
)}
|
|
114
|
+
{themeToggle && (
|
|
115
|
+
<button class="she__icon" type="button" aria-label="Switch theme" data-theme-btn>
|
|
116
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><circle cx="12" cy="12" r="8"/><path d="M12 4a8 8 0 0 1 0 16z" fill="currentColor"/></svg>
|
|
117
|
+
</button>
|
|
118
|
+
)}
|
|
119
|
+
{bagHref ? (
|
|
120
|
+
<a class="she__bag" href={bagHref} aria-label="Bag" data-bag-link>
|
|
121
|
+
Bag <span class="she__count" data-count>0</span>
|
|
122
|
+
</a>
|
|
123
|
+
) : (
|
|
124
|
+
<button class="she__bag" type="button" aria-label="Bag" data-bag-link data-cart-open data-cart-key={cartKey}>
|
|
125
|
+
Bag <span class="she__count" data-count>0</span>
|
|
126
|
+
</button>
|
|
127
|
+
)}
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
{links.map((link, i) => link.columns?.length ? (
|
|
132
|
+
<div class="she__mega" id={`${id}-mega-${i}`} hidden data-mega>
|
|
133
|
+
<div class="she__mega-inner">
|
|
134
|
+
{link.columns.map((col) => (
|
|
135
|
+
<div class="she__col">
|
|
136
|
+
<p class="she__col-title">{col.title}</p>
|
|
137
|
+
<ul>{col.links.map((l) => <li><a href={l.href}>{l.label}</a></li>)}</ul>
|
|
138
|
+
</div>
|
|
139
|
+
))}
|
|
140
|
+
<a class="she__col she__col--all" href={link.href}>View everything <span aria-hidden="true">→</span></a>
|
|
141
|
+
{link.feature && (
|
|
142
|
+
<a class="she__feature" href={link.feature.href}>
|
|
143
|
+
<ProductMedia icon={link.feature.icon} hue={link.feature.hue} ratio="4 / 3" variant="soft" size="lg" />
|
|
144
|
+
<span class="she__feature-title">{link.feature.title}</span>
|
|
145
|
+
{link.feature.text && <span class="she__feature-text">{link.feature.text}</span>}
|
|
146
|
+
</a>
|
|
147
|
+
)}
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
) : null)}
|
|
151
|
+
</header>
|
|
152
|
+
|
|
153
|
+
<script>
|
|
154
|
+
import { createCart } from '../ecommerce/cart-store';
|
|
155
|
+
|
|
156
|
+
document.querySelectorAll<HTMLElement>('[data-shop-header]:not([data-bound])').forEach((header) => {
|
|
157
|
+
header.dataset.bound = '';
|
|
158
|
+
const toggles = Array.from(header.querySelectorAll<HTMLButtonElement>('[data-mega-toggle]'));
|
|
159
|
+
const panelOf = (b: HTMLButtonElement) => document.getElementById(b.getAttribute('aria-controls') || '');
|
|
160
|
+
const closeAll = (except?: HTMLButtonElement) => toggles.forEach((b) => {
|
|
161
|
+
if (b === except) return;
|
|
162
|
+
b.setAttribute('aria-expanded', 'false');
|
|
163
|
+
const p = panelOf(b);
|
|
164
|
+
if (p) p.hidden = true;
|
|
165
|
+
});
|
|
166
|
+
toggles.forEach((b) => b.addEventListener('click', () => {
|
|
167
|
+
const open = b.getAttribute('aria-expanded') !== 'true';
|
|
168
|
+
closeAll(b);
|
|
169
|
+
b.setAttribute('aria-expanded', String(open));
|
|
170
|
+
const p = panelOf(b);
|
|
171
|
+
if (p) p.hidden = !open;
|
|
172
|
+
}));
|
|
173
|
+
document.addEventListener('click', (e) => { if (!header.contains(e.target as Node)) closeAll(); });
|
|
174
|
+
document.addEventListener('keydown', (e) => {
|
|
175
|
+
if (e.key !== 'Escape') return;
|
|
176
|
+
const open = toggles.find((b) => b.getAttribute('aria-expanded') === 'true');
|
|
177
|
+
closeAll();
|
|
178
|
+
open?.focus();
|
|
179
|
+
const burger = header.querySelector<HTMLButtonElement>('[data-burger]');
|
|
180
|
+
if (burger?.getAttribute('aria-expanded') === 'true') { burger.click(); burger.focus(); }
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
const burger = header.querySelector<HTMLButtonElement>('[data-burger]');
|
|
184
|
+
const nav = header.querySelector<HTMLElement>('[data-nav]');
|
|
185
|
+
burger?.addEventListener('click', () => {
|
|
186
|
+
const open = burger.getAttribute('aria-expanded') !== 'true';
|
|
187
|
+
burger.setAttribute('aria-expanded', String(open));
|
|
188
|
+
nav?.classList.toggle('is-open', open);
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
header.querySelector('[data-theme-btn]')?.addEventListener('click', () => {
|
|
192
|
+
const root = document.documentElement;
|
|
193
|
+
const next = root.dataset.theme === 'dark' ? 'light' : 'dark';
|
|
194
|
+
root.dataset.theme = next;
|
|
195
|
+
try { window.localStorage.setItem('ack-theme', next); } catch { /* ignore */ }
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
const bag = header.querySelector<HTMLElement>('[data-bag-link]');
|
|
199
|
+
const count = header.querySelector<HTMLElement>('[data-count]');
|
|
200
|
+
if (bag && count) {
|
|
201
|
+
const cart = createCart(header.dataset.key);
|
|
202
|
+
const render = () => {
|
|
203
|
+
const n = cart.count();
|
|
204
|
+
count.textContent = String(n);
|
|
205
|
+
bag.setAttribute('aria-label', `Bag, ${n} ${n === 1 ? 'item' : 'items'}`);
|
|
206
|
+
};
|
|
207
|
+
render();
|
|
208
|
+
cart.subscribe(() => {
|
|
209
|
+
render();
|
|
210
|
+
count.classList.remove('is-bump');
|
|
211
|
+
void count.offsetWidth;
|
|
212
|
+
count.classList.add('is-bump');
|
|
213
|
+
});
|
|
214
|
+
if (bag.tagName === 'BUTTON') {
|
|
215
|
+
bag.addEventListener('click', () => document.dispatchEvent(new CustomEvent('ack:cart-open', { detail: { key: cart.key, trigger: bag } })));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
</script>
|
|
220
|
+
|
|
221
|
+
<style>
|
|
222
|
+
.she {
|
|
223
|
+
container-type: inline-size;
|
|
224
|
+
--she-h: 72px;
|
|
225
|
+
position: relative;
|
|
226
|
+
z-index: 50;
|
|
227
|
+
color: var(--c-text-1, #fff);
|
|
228
|
+
background: var(--c-bg, #050505);
|
|
229
|
+
border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.1));
|
|
230
|
+
}
|
|
231
|
+
.she--sm { --she-h: 60px; }
|
|
232
|
+
.she--lg { --she-h: 88px; }
|
|
233
|
+
.she--sticky { position: sticky; top: 0; }
|
|
234
|
+
.she--transparent { background: transparent; border-bottom-color: transparent; }
|
|
235
|
+
.she--inverted { background: var(--c-text-1, #fff); color: var(--c-bg, #050505); }
|
|
236
|
+
|
|
237
|
+
.she__announce {
|
|
238
|
+
margin: 0;
|
|
239
|
+
padding: 0.5rem var(--sp-4, 1rem);
|
|
240
|
+
border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.1));
|
|
241
|
+
font-size: 0.72rem;
|
|
242
|
+
letter-spacing: 0.12em;
|
|
243
|
+
text-align: center;
|
|
244
|
+
text-transform: uppercase;
|
|
245
|
+
color: var(--c-text-2, #a3a3a3);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.she__bar {
|
|
249
|
+
display: grid;
|
|
250
|
+
grid-template-columns: 1fr auto 1fr;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: var(--sp-4, 1rem);
|
|
253
|
+
max-width: 1440px;
|
|
254
|
+
height: var(--she-h);
|
|
255
|
+
margin: 0 auto;
|
|
256
|
+
padding: 0 clamp(1rem, 3vw, 2.5rem);
|
|
257
|
+
}
|
|
258
|
+
.she__left, .she__right { display: flex; align-items: center; gap: var(--sp-1, 0.25rem); }
|
|
259
|
+
.she__right { justify-content: flex-end; }
|
|
260
|
+
.she__brand {
|
|
261
|
+
font-family: var(--font-display, Georgia, 'Times New Roman', serif);
|
|
262
|
+
font-size: clamp(1.6rem, 3vw, 2.1rem);
|
|
263
|
+
font-weight: 400;
|
|
264
|
+
letter-spacing: -0.03em;
|
|
265
|
+
color: inherit;
|
|
266
|
+
text-decoration: none;
|
|
267
|
+
}
|
|
268
|
+
.she__brand::after { content: '°'; color: var(--shop-accent, var(--c-primary-light, #d4a017)); }
|
|
269
|
+
|
|
270
|
+
.she__nav ul { display: flex; gap: var(--sp-1, 0.25rem); margin: 0; padding: 0; list-style: none; }
|
|
271
|
+
.she__link {
|
|
272
|
+
position: relative;
|
|
273
|
+
display: inline-flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
min-height: 44px;
|
|
276
|
+
padding: 0 0.75rem;
|
|
277
|
+
border: 0;
|
|
278
|
+
background: none;
|
|
279
|
+
color: inherit;
|
|
280
|
+
font: inherit;
|
|
281
|
+
font-size: 0.82rem;
|
|
282
|
+
font-weight: 500;
|
|
283
|
+
letter-spacing: 0.08em;
|
|
284
|
+
text-transform: uppercase;
|
|
285
|
+
text-decoration: none;
|
|
286
|
+
cursor: pointer;
|
|
287
|
+
}
|
|
288
|
+
.she__link::after {
|
|
289
|
+
content: '';
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 0.75rem;
|
|
292
|
+
right: 0.75rem;
|
|
293
|
+
bottom: 10px;
|
|
294
|
+
height: 1px;
|
|
295
|
+
background: currentColor;
|
|
296
|
+
transform: scaleX(0);
|
|
297
|
+
transform-origin: left;
|
|
298
|
+
transition: transform 0.3s ease;
|
|
299
|
+
}
|
|
300
|
+
.she__link:hover::after, .she__link[aria-expanded='true']::after, .she__link[aria-current='page']::after { transform: scaleX(1); }
|
|
301
|
+
|
|
302
|
+
.she__icon, .she__bag {
|
|
303
|
+
display: inline-grid;
|
|
304
|
+
place-items: center;
|
|
305
|
+
min-width: 44px;
|
|
306
|
+
height: 44px;
|
|
307
|
+
border: 0;
|
|
308
|
+
background: none;
|
|
309
|
+
color: inherit;
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
text-decoration: none;
|
|
312
|
+
}
|
|
313
|
+
.she__bag { display: inline-flex; align-items: center; gap: 6px; padding: 0 0.5rem; font: inherit; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
314
|
+
.she__count {
|
|
315
|
+
display: inline-grid;
|
|
316
|
+
place-items: center;
|
|
317
|
+
min-width: 22px;
|
|
318
|
+
height: 22px;
|
|
319
|
+
padding: 0 6px;
|
|
320
|
+
border-radius: 999px;
|
|
321
|
+
background: var(--c-text-1, #fff);
|
|
322
|
+
color: var(--c-bg, #050505);
|
|
323
|
+
font-size: 0.7rem;
|
|
324
|
+
font-weight: 700;
|
|
325
|
+
letter-spacing: 0;
|
|
326
|
+
}
|
|
327
|
+
.she--inverted .she__count { background: var(--c-bg, #050505); color: var(--c-text-1, #fff); }
|
|
328
|
+
.she__count.is-bump { animation: she-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
|
|
329
|
+
@keyframes she-bump { 40% { transform: scale(1.3); background: var(--shop-accent, var(--c-primary-light, #d4a017)); } }
|
|
330
|
+
.she :is(a, button):focus-visible { outline: 2px solid var(--shop-accent, var(--c-primary-light, #d4a017)); outline-offset: 2px; }
|
|
331
|
+
.she__burger { display: none; }
|
|
332
|
+
.she__link--mob, .she__sub { display: none !important; }
|
|
333
|
+
|
|
334
|
+
.she__mega {
|
|
335
|
+
position: absolute;
|
|
336
|
+
left: 0;
|
|
337
|
+
right: 0;
|
|
338
|
+
top: 100%;
|
|
339
|
+
background: var(--c-bg, #050505);
|
|
340
|
+
border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.1));
|
|
341
|
+
box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.5);
|
|
342
|
+
animation: she-drop 0.25s ease-out;
|
|
343
|
+
}
|
|
344
|
+
.she__mega[hidden] { display: none; }
|
|
345
|
+
.she__mega-inner {
|
|
346
|
+
display: grid;
|
|
347
|
+
grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.8fr) minmax(0, 1.4fr);
|
|
348
|
+
gap: var(--sp-8, 2rem);
|
|
349
|
+
max-width: 1440px;
|
|
350
|
+
margin: 0 auto;
|
|
351
|
+
padding: var(--sp-8, 2rem) clamp(1rem, 3vw, 2.5rem) var(--sp-10, 2.5rem);
|
|
352
|
+
}
|
|
353
|
+
.she__col-title { margin: 0 0 var(--sp-3, 0.75rem); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-2, #a3a3a3); }
|
|
354
|
+
.she__col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
|
|
355
|
+
.she__col a { display: inline-flex; min-height: 36px; align-items: center; font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; color: var(--c-text-1, #fff); text-decoration: none; }
|
|
356
|
+
.she__col a:hover { color: var(--shop-accent, var(--c-primary-light, #d4a017)); }
|
|
357
|
+
.she__col--all { align-self: end; font-family: inherit !important; font-size: 0.85rem !important; text-decoration: underline !important; text-underline-offset: 4px; }
|
|
358
|
+
.she__feature { display: grid; gap: 6px; color: inherit; text-decoration: none; }
|
|
359
|
+
.she__feature :global(.p-media) { border-radius: var(--r-sm, 2px); }
|
|
360
|
+
.she__feature-title { font-family: var(--font-display, Georgia, serif); font-size: 1.2rem; color: var(--c-text-1, #fff); }
|
|
361
|
+
.she__feature-text { font-size: 0.85rem; color: var(--c-text-2, #a3a3a3); }
|
|
362
|
+
@keyframes she-drop { from { opacity: 0; transform: translateY(-6px); } }
|
|
363
|
+
|
|
364
|
+
@container (max-width: 900px) {
|
|
365
|
+
.she__burger { display: inline-grid; }
|
|
366
|
+
.she__nav {
|
|
367
|
+
position: absolute;
|
|
368
|
+
left: 0;
|
|
369
|
+
right: 0;
|
|
370
|
+
top: 100%;
|
|
371
|
+
display: none;
|
|
372
|
+
padding: var(--sp-4, 1rem) clamp(1rem, 3vw, 2.5rem) var(--sp-6, 1.5rem);
|
|
373
|
+
background: var(--c-bg, #050505);
|
|
374
|
+
border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.1));
|
|
375
|
+
}
|
|
376
|
+
.she__nav.is-open { display: block; }
|
|
377
|
+
.she__nav ul { flex-direction: column; }
|
|
378
|
+
.she__link { width: 100%; min-height: 52px; padding: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.6rem; letter-spacing: -0.01em; text-transform: none; }
|
|
379
|
+
.she__link::after { display: none; }
|
|
380
|
+
.she__mega-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
381
|
+
.she__feature { grid-column: 1 / -1; }
|
|
382
|
+
.she__right [aria-label='Search'] { display: none; }
|
|
383
|
+
.she__link--desk, .she__mega { display: none !important; }
|
|
384
|
+
.she__link--mob { display: inline-flex !important; }
|
|
385
|
+
.she__sub { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 0 1rem !important; padding-bottom: var(--sp-3, 0.75rem) !important; }
|
|
386
|
+
.she__sub a { display: inline-flex; min-height: 40px; align-items: center; font-size: 0.9rem; color: var(--c-text-2, #a3a3a3); text-decoration: none; }
|
|
387
|
+
}
|
|
388
|
+
@container (max-width: 480px) {
|
|
389
|
+
.she__bag { font-size: 0; gap: 0; }
|
|
390
|
+
.she__count { font-size: 0.7rem; }
|
|
391
|
+
}
|
|
392
|
+
@media (prefers-reduced-motion: reduce) {
|
|
393
|
+
.she__mega, .she__count.is-bump { animation: none; }
|
|
394
|
+
.she__link::after { transition: none; }
|
|
395
|
+
}
|
|
396
|
+
</style>
|