astro-component-kit 0.3.1 → 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 +133 -36
- package/package.json +17 -4
- package/src/components/index.ts +18 -202
- 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/buttons/NeonBorderButton.astro +162 -0
- package/src/components/lib/buttons/RippleButton.astro +199 -0
- package/src/components/lib/buttons/SlideRevealButton.astro +159 -0
- package/src/components/lib/buttons/index.ts +4 -0
- package/src/components/lib/cards/GithubRepoCard.astro +176 -0
- package/src/components/lib/cards/PricingCompareMiniCard.astro +196 -0
- package/src/components/lib/cards/StatsTrendCard.astro +149 -0
- package/src/components/lib/cards/index.ts +3 -0
- package/src/components/lib/charts/ActivityRings.astro +105 -0
- package/src/components/lib/charts/AreaChart.astro +4 -4
- package/src/components/lib/charts/BarChart.astro +3 -3
- package/src/components/lib/charts/BoxPlotChart.astro +109 -0
- package/src/components/lib/charts/BubbleChart.astro +101 -0
- package/src/components/lib/charts/BulletChart.astro +160 -0
- package/src/components/lib/charts/BumpChart.astro +92 -0
- package/src/components/lib/charts/CandlestickChart.astro +105 -0
- package/src/components/lib/charts/ChartFrame.astro +373 -0
- package/src/components/lib/charts/DivergingBarChart.astro +98 -0
- package/src/components/lib/charts/DonutChart.astro +2 -2
- package/src/components/lib/charts/DumbbellChart.astro +92 -0
- package/src/components/lib/charts/ForecastLineChart.astro +125 -0
- package/src/components/lib/charts/FunnelChart.astro +122 -0
- package/src/components/lib/charts/GaugeChart.astro +111 -0
- package/src/components/lib/charts/GoalProgressChart.astro +97 -0
- package/src/components/lib/charts/GroupedBarChart.astro +125 -0
- package/src/components/lib/charts/HeatmapChart.astro +131 -0
- package/src/components/lib/charts/HistogramChart.astro +111 -0
- package/src/components/lib/charts/HorizontalBarChart.astro +155 -0
- package/src/components/lib/charts/KpiStatTile.astro +116 -0
- package/src/components/lib/charts/KpiTrendGrid.astro +60 -0
- package/src/components/lib/charts/LineChart.astro +160 -0
- package/src/components/lib/charts/LinearProgressGauge.astro +136 -0
- package/src/components/lib/charts/LollipopChart.astro +100 -0
- package/src/components/lib/charts/MeterGauge.astro +122 -0
- package/src/components/lib/charts/MetricDeltaTable.astro +125 -0
- package/src/components/lib/charts/PieChart.astro +135 -0
- package/src/components/lib/charts/PolarAreaChart.astro +85 -0
- package/src/components/lib/charts/PopulationPyramid.astro +122 -0
- package/src/components/lib/charts/PunchCardChart.astro +89 -0
- package/src/components/lib/charts/RadarChart.astro +94 -0
- package/src/components/lib/charts/RadarMetricChart.astro +168 -0
- package/src/components/lib/charts/RadialBarChart.astro +124 -0
- package/src/components/lib/charts/RangeAreaChart.astro +113 -0
- package/src/components/lib/charts/RetentionCohortTable.astro +126 -0
- package/src/components/lib/charts/SankeyChart.astro +128 -0
- package/src/components/lib/charts/ScatterPlot.astro +139 -0
- package/src/components/lib/charts/SegmentedBarChart.astro +119 -0
- package/src/components/lib/charts/SlopeChart.astro +105 -0
- package/src/components/lib/charts/SparklineChart.astro +87 -0
- package/src/components/lib/charts/StackedAreaChart.astro +130 -0
- package/src/components/lib/charts/StackedBarChart.astro +136 -0
- package/src/components/lib/charts/SunburstChart.astro +103 -0
- package/src/components/lib/charts/TreemapChart.astro +94 -0
- package/src/components/lib/charts/WaffleChart.astro +121 -0
- package/src/components/lib/charts/WaterfallChart.astro +118 -0
- package/src/components/lib/charts/chart-tooltip.ts +75 -0
- package/src/components/lib/charts/chart-utils.ts +271 -0
- package/src/components/lib/charts/index.ts +46 -0
- package/src/components/lib/data/ActivityHeatmapGrid.astro +157 -0
- package/src/components/lib/data/MetricComparisonRow.astro +109 -0
- package/src/components/lib/data/StatusTimelineFeed.astro +168 -0
- package/src/components/lib/data/index.ts +3 -0
- 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/feedback/ProgressRingCounter.astro +118 -0
- package/src/components/lib/feedback/ToastNotificationGroup.astro +173 -0
- package/src/components/lib/feedback/index.ts +2 -0
- package/src/components/lib/forms/AnimatedInput.astro +4 -2
- package/src/components/lib/forms/CustomRadioGroup.astro +3 -1
- package/src/components/lib/forms/GlassInlineToggleGroup.astro +161 -0
- package/src/components/lib/forms/PasswordStrengthInput.astro +242 -0
- package/src/components/lib/forms/PhoneCountryInput.astro +145 -0
- package/src/components/lib/forms/TagsAutocompleteInput.astro +249 -0
- package/src/components/lib/forms/index.ts +5 -0
- 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/DiagonalSectionDivider.astro +69 -0
- 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 +127 -0
- 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/layout/index.ts +3 -1
- package/src/components/lib/navigation/QuickJumpDock.astro +125 -0
- package/src/components/lib/navigation/StepBreadcrumbBar.astro +151 -0
- package/src/components/lib/navigation/SubNavbarPills.astro +102 -0
- package/src/components/lib/navigation/index.ts +3 -0
- package/src/components/lib/overlays/CookiePreferencesDrawer.astro +226 -0
- package/src/components/lib/overlays/FloatingFeedbackWidget.astro +203 -0
- package/src/components/lib/overlays/ImageCompareSlider.astro +172 -0
- package/src/components/lib/overlays/index.ts +3 -0
- 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 +133 -0
- 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 +141 -0
- package/src/components/lib/sections/ChangelogSection.astro +151 -0
- package/src/components/lib/sections/ContactGlassForm.astro +10 -8
- package/src/components/lib/sections/ContactSplitMap.astro +141 -0
- 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 +165 -0
- package/src/components/lib/sections/CtaSplitImage.astro +149 -0
- 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 +121 -0
- package/src/components/lib/sections/FeatureAlternatingRows.astro +192 -0
- package/src/components/lib/sections/FeatureBentoGrid.astro +13 -11
- package/src/components/lib/sections/FeatureIconGrid.astro +155 -0
- package/src/components/lib/sections/FeatureTabsShowcase.astro +182 -0
- 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 +157 -0
- package/src/components/lib/sections/FormsShowcase.astro +22 -20
- package/src/components/lib/sections/HeroDashboardPreview.astro +182 -0
- 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 +175 -0
- package/src/components/lib/sections/HeroShowcaseSplit.astro +306 -0
- package/src/components/lib/sections/HeroSplit.astro +13 -11
- package/src/components/lib/sections/HeroTerminal.astro +253 -0
- package/src/components/lib/sections/HeroWaitlist.astro +231 -0
- package/src/components/lib/sections/HowItWorksSteps.astro +180 -0
- package/src/components/lib/sections/IntegrationsGrid.astro +167 -0
- package/src/components/lib/sections/LayoutShowcase.astro +21 -19
- package/src/components/lib/sections/LogoCloudSection.astro +96 -0
- package/src/components/lib/sections/LogoWallGrid.astro +93 -0
- 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 +159 -0
- package/src/components/lib/sections/PricingTierCards.astro +11 -9
- package/src/components/lib/sections/PricingToggleCards.astro +171 -0
- 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 +124 -0
- package/src/components/lib/sections/StatsDashboardSection.astro +85 -0
- 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 +167 -0
- package/src/components/lib/sections/TestimonialFeatured.astro +122 -0
- package/src/components/lib/sections/TestimonialGridSection.astro +188 -0
- 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 +39 -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/components/lib/typography/AnimatedCounterText.astro +102 -0
- package/src/components/lib/typography/CurvedPathHeading.astro +86 -0
- package/src/components/lib/typography/GradientTextMarquee.astro +105 -0
- package/src/components/lib/typography/HackerDecodeText.astro +85 -0
- package/src/components/lib/typography/index.ts +4 -0
- package/src/styles/global.css +113 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* HeroMinimalCentered — Typography-first centered hero with an announcement pill,
|
|
4
|
+
* two CTAs and a row of trust signals. No imagery, loads instantly.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} announcement - Text in the top pill (empty to hide).
|
|
7
|
+
* @param {string} announcementHref - Link for the pill.
|
|
8
|
+
* @param {string} title - Main headline. Wrap a word in *asterisks* to highlight it.
|
|
9
|
+
* @param {string} subtitle - Supporting paragraph.
|
|
10
|
+
* @param {{label: string, href: string}} primary - Primary CTA.
|
|
11
|
+
* @param {{label: string, href: string}} secondary - Secondary CTA.
|
|
12
|
+
* @param {string[]} trust - Short trust signals under the CTAs.
|
|
13
|
+
* @param {string} variant - Background treatment (default|glow|grid).
|
|
14
|
+
* @param {string} size - Vertical rhythm (sm|md|lg).
|
|
15
|
+
* @param {string} className - Extra CSS class.
|
|
16
|
+
*/
|
|
17
|
+
interface Props {
|
|
18
|
+
announcement?: string;
|
|
19
|
+
announcementHref?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
primary?: { label: string; href: string };
|
|
23
|
+
secondary?: { label: string; href: string };
|
|
24
|
+
trust?: string[];
|
|
25
|
+
variant?: 'default' | 'glow' | 'grid';
|
|
26
|
+
size?: 'sm' | 'md' | 'lg';
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const {
|
|
31
|
+
announcement = 'New: 50 sections & 45 SVG charts',
|
|
32
|
+
announcementHref = '#',
|
|
33
|
+
title = 'Build landing pages that *feel* expensive',
|
|
34
|
+
subtitle = 'Accessible, zero-dependency Astro components with a dark, refined aesthetic. Copy, paste, ship.',
|
|
35
|
+
primary = { label: 'Browse components', href: '#' },
|
|
36
|
+
secondary = { label: 'Read the docs', href: '#' },
|
|
37
|
+
trust = ['MIT licensed', 'WCAG AA', 'No runtime JS required'],
|
|
38
|
+
variant = 'glow',
|
|
39
|
+
size = 'lg',
|
|
40
|
+
className = '',
|
|
41
|
+
} = Astro.props;
|
|
42
|
+
|
|
43
|
+
const id = `hmc-${Math.random().toString(36).slice(2, 8)}`;
|
|
44
|
+
const parts = title.split(/\*(.+?)\*/);
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<section class={`hmc hmc--${variant} hmc--${size} ${className}`} aria-labelledby={id}>
|
|
48
|
+
<div class="hmc__bg" aria-hidden="true"></div>
|
|
49
|
+
<div class="hmc__inner">
|
|
50
|
+
{announcement && (
|
|
51
|
+
<a class="hmc__pill" href={announcementHref}>
|
|
52
|
+
<span class="hmc__dot" aria-hidden="true"></span>
|
|
53
|
+
{announcement}
|
|
54
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6" /></svg>
|
|
55
|
+
</a>
|
|
56
|
+
)}
|
|
57
|
+
<h1 id={id} class="hmc__title">
|
|
58
|
+
{parts.map((p, i) => (i % 2 ? <em>{p}</em> : p))}
|
|
59
|
+
</h1>
|
|
60
|
+
<p class="hmc__subtitle">{subtitle}</p>
|
|
61
|
+
<div class="hmc__actions">
|
|
62
|
+
<a class="hmc__btn hmc__btn--primary" href={primary.href}>{primary.label}</a>
|
|
63
|
+
<a class="hmc__btn hmc__btn--ghost" href={secondary.href}>{secondary.label}</a>
|
|
64
|
+
</div>
|
|
65
|
+
{trust.length > 0 && (
|
|
66
|
+
<ul class="hmc__trust">
|
|
67
|
+
{trust.map((t) => (
|
|
68
|
+
<li>
|
|
69
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>
|
|
70
|
+
{t}
|
|
71
|
+
</li>
|
|
72
|
+
))}
|
|
73
|
+
</ul>
|
|
74
|
+
)}
|
|
75
|
+
</div>
|
|
76
|
+
</section>
|
|
77
|
+
|
|
78
|
+
<style>
|
|
79
|
+
.hmc {
|
|
80
|
+
--hmc-py: 6rem;
|
|
81
|
+
position: relative;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
padding: var(--hmc-py) var(--sp-6, 1.5rem);
|
|
84
|
+
background: var(--c-bg, #050505);
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
.hmc--sm { --hmc-py: 4rem; }
|
|
88
|
+
.hmc--lg { --hmc-py: 8rem; }
|
|
89
|
+
.hmc__bg { position: absolute; inset: 0; pointer-events: none; }
|
|
90
|
+
.hmc--glow .hmc__bg {
|
|
91
|
+
background:
|
|
92
|
+
radial-gradient(ellipse 60% 50% at 50% 0%, var(--c-primary-glow, color-mix(in srgb, var(--c-primary, #b8860b) 14%, transparent)), transparent 70%),
|
|
93
|
+
radial-gradient(ellipse 40% 30% at 50% 100%, rgba(57, 135, 229, 0.08), transparent 70%);
|
|
94
|
+
}
|
|
95
|
+
.hmc--grid .hmc__bg {
|
|
96
|
+
background-image:
|
|
97
|
+
linear-gradient(rgb(var(--ink-rgb, 255 255 255) / 0.04) 1px, transparent 1px),
|
|
98
|
+
linear-gradient(90deg, rgb(var(--ink-rgb, 255 255 255) / 0.04) 1px, transparent 1px);
|
|
99
|
+
background-size: 48px 48px;
|
|
100
|
+
mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
|
|
101
|
+
}
|
|
102
|
+
.hmc__inner { position: relative; max-width: 820px; margin: 0 auto; }
|
|
103
|
+
.hmc__pill {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 0.5rem;
|
|
107
|
+
min-height: 36px;
|
|
108
|
+
padding: 0.35rem 0.9rem;
|
|
109
|
+
border-radius: var(--r-full, 999px);
|
|
110
|
+
border: 1px solid var(--c-border, rgb(var(--ink-rgb, 255 255 255) / 0.08));
|
|
111
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.03);
|
|
112
|
+
color: var(--c-text-2, #a3a3a3);
|
|
113
|
+
font-size: 0.8125rem;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
transition: border-color 0.2s ease, color 0.2s ease;
|
|
116
|
+
}
|
|
117
|
+
.hmc__pill:hover { border-color: rgb(var(--ink-rgb, 255 255 255) / 0.2); color: var(--c-text-1, #fff); }
|
|
118
|
+
.hmc__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary-light, #d4a017); box-shadow: 0 0 10px var(--c-primary-light, #d4a017); }
|
|
119
|
+
.hmc__title {
|
|
120
|
+
margin: 1.75rem 0 1.25rem;
|
|
121
|
+
font-size: clamp(2.5rem, 6vw, 4.5rem);
|
|
122
|
+
font-weight: 800;
|
|
123
|
+
line-height: 1.04;
|
|
124
|
+
letter-spacing: -0.035em;
|
|
125
|
+
color: var(--c-text-1, #fff);
|
|
126
|
+
text-wrap: balance;
|
|
127
|
+
}
|
|
128
|
+
.hmc__title em {
|
|
129
|
+
font-style: normal;
|
|
130
|
+
background: linear-gradient(120deg, var(--c-accent, #fef3c7), var(--c-primary-light, #d4a017));
|
|
131
|
+
-webkit-background-clip: text;
|
|
132
|
+
background-clip: text;
|
|
133
|
+
color: transparent;
|
|
134
|
+
}
|
|
135
|
+
.hmc__subtitle {
|
|
136
|
+
max-width: 600px;
|
|
137
|
+
margin: 0 auto 2.25rem;
|
|
138
|
+
font-size: clamp(1rem, 2vw, 1.1875rem);
|
|
139
|
+
line-height: 1.6;
|
|
140
|
+
color: var(--c-text-2, #a3a3a3);
|
|
141
|
+
}
|
|
142
|
+
.hmc__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
|
|
143
|
+
.hmc__btn {
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
min-height: 48px;
|
|
148
|
+
padding: 0 1.5rem;
|
|
149
|
+
border-radius: var(--r-md, 12px);
|
|
150
|
+
font-weight: 650;
|
|
151
|
+
font-size: 0.9375rem;
|
|
152
|
+
text-decoration: none;
|
|
153
|
+
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
|
|
154
|
+
}
|
|
155
|
+
.hmc__btn:hover { transform: translateY(-1px); }
|
|
156
|
+
.hmc__btn:focus-visible, .hmc__pill:focus-visible { outline: 2px solid var(--c-primary-light, #d4a017); outline-offset: 3px; }
|
|
157
|
+
.hmc__btn--primary { background: var(--c-primary-light, #d4a017); color: var(--c-on-primary, #0a0a0a); }
|
|
158
|
+
.hmc__btn--primary:hover { background: var(--c-accent, #fef3c7); color: var(--c-on-primary, #0a0a0a); }
|
|
159
|
+
.hmc__btn--ghost { border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.14); color: var(--c-text-1, #fff); }
|
|
160
|
+
.hmc__btn--ghost:hover { border-color: rgb(var(--ink-rgb, 255 255 255) / 0.32); color: var(--c-text-1, #fff); }
|
|
161
|
+
.hmc__trust {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
gap: 0.75rem 1.75rem;
|
|
166
|
+
margin: 2.5rem 0 0;
|
|
167
|
+
padding: 0;
|
|
168
|
+
list-style: none;
|
|
169
|
+
font-size: 0.875rem;
|
|
170
|
+
color: var(--c-text-2, #a3a3a3);
|
|
171
|
+
}
|
|
172
|
+
.hmc__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
|
|
173
|
+
.hmc__trust svg { color: var(--chart-pos, #34c38f); }
|
|
174
|
+
@media (prefers-reduced-motion: reduce) { .hmc__btn { transition: none; } }
|
|
175
|
+
</style>
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* HeroShowcaseSplit — Two-column modern landing hero section with install command, action CTAs, and interactive preview widget.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} badge - Header lead badge. Default is 'NEW: ASTRO 5 SUITE'.
|
|
6
|
+
* @param {string} title - Primary headline string.
|
|
7
|
+
* @param {string} subtitle - Subtitle paragraph text.
|
|
8
|
+
* @param {string} primaryCtaText - Primary CTA button text.
|
|
9
|
+
* @param {string} primaryCtaHref - Primary CTA link.
|
|
10
|
+
* @param {string} secondaryCtaText - Secondary button text.
|
|
11
|
+
* @param {string} secondaryCtaHref - Secondary link.
|
|
12
|
+
*/
|
|
13
|
+
interface Props {
|
|
14
|
+
badge?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
primaryCtaText?: string;
|
|
18
|
+
primaryCtaHref?: string;
|
|
19
|
+
secondaryCtaText?: string;
|
|
20
|
+
secondaryCtaHref?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const {
|
|
24
|
+
badge = 'NEW: ASTRO 5 PRODUCTION SUITE',
|
|
25
|
+
title = 'Craft stunning web apps at lightspeed',
|
|
26
|
+
subtitle = 'A cohesive collection of 150+ dark-mode first, accessible Astro components. Zero dependencies, pure vanilla CSS, full TypeScript support.',
|
|
27
|
+
primaryCtaText = 'Explore Components',
|
|
28
|
+
primaryCtaHref = '/docs/glass-button',
|
|
29
|
+
secondaryCtaText = 'View on GitHub',
|
|
30
|
+
secondaryCtaHref = 'https://github.com/konstantinWDK/astro-components',
|
|
31
|
+
} = Astro.props;
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
<div class="cq-hero-showcase-split-cq">
|
|
35
|
+
<section class="split-hero">
|
|
36
|
+
<div class="split-hero__inner">
|
|
37
|
+
<div class="split-hero__content">
|
|
38
|
+
<div class="split-hero__badge">
|
|
39
|
+
<span class="dot"></span>
|
|
40
|
+
<span>{badge}</span>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<h1 class="split-hero__title">{title}</h1>
|
|
44
|
+
<p class="split-hero__subtitle">{subtitle}</p>
|
|
45
|
+
|
|
46
|
+
<div class="split-hero__actions">
|
|
47
|
+
<a href={primaryCtaHref} class="btn btn--primary">
|
|
48
|
+
{primaryCtaText}
|
|
49
|
+
<span aria-hidden="true">→</span>
|
|
50
|
+
</a>
|
|
51
|
+
<a href={secondaryCtaHref} target="_blank" rel="noopener" class="btn btn--secondary">
|
|
52
|
+
{secondaryCtaText}
|
|
53
|
+
</a>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div class="split-hero__install">
|
|
57
|
+
<span class="prompt">$</span>
|
|
58
|
+
<code>npm install astro-component-kit</code>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="split-hero__visual">
|
|
63
|
+
<div class="glass-device">
|
|
64
|
+
<div class="glass-device__bar">
|
|
65
|
+
<span class="d-dot d-dot--red"></span>
|
|
66
|
+
<span class="d-dot d-dot--yellow"></span>
|
|
67
|
+
<span class="d-dot d-dot--green"></span>
|
|
68
|
+
<span class="glass-device__url">astrocomponents.dev/preview</span>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="glass-device__body">
|
|
71
|
+
<slot>
|
|
72
|
+
<div class="mock-widget">
|
|
73
|
+
<span class="mock-icon">⚡</span>
|
|
74
|
+
<h4>Production SSR Ready</h4>
|
|
75
|
+
<p>Zero JavaScript hydration overhead by default.</p>
|
|
76
|
+
<div class="mock-metrics">
|
|
77
|
+
<div><span>Score</span><strong>100</strong></div>
|
|
78
|
+
<div><span>A11y</span><strong>AA</strong></div>
|
|
79
|
+
<div><span>Speed</span><strong>0.2s</strong></div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</slot>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</section>
|
|
88
|
+
</div>
|
|
89
|
+
<style>
|
|
90
|
+
.cq-hero-showcase-split-cq { container-type: inline-size; }
|
|
91
|
+
.split-hero {
|
|
92
|
+
position: relative;
|
|
93
|
+
padding: 6rem 1.5rem;
|
|
94
|
+
width: 100%;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.split-hero__inner {
|
|
100
|
+
max-width: 1240px;
|
|
101
|
+
margin: 0 auto;
|
|
102
|
+
display: grid;
|
|
103
|
+
grid-template-columns: 1.1fr 0.9fr;
|
|
104
|
+
gap: 4rem;
|
|
105
|
+
align-items: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.split-hero__content {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
align-items: flex-start;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.split-hero__badge {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 8px;
|
|
118
|
+
padding: 0.35rem 0.85rem;
|
|
119
|
+
background: color-mix(in srgb, var(--c-primary, #b8860b) 12%, transparent);
|
|
120
|
+
border: 1px solid color-mix(in srgb, var(--c-primary, #b8860b) 35%, transparent);
|
|
121
|
+
border-radius: var(--r-full, 9999px);
|
|
122
|
+
font-size: 0.75rem;
|
|
123
|
+
font-weight: 800;
|
|
124
|
+
color: var(--c-accent, #fef3c7);
|
|
125
|
+
margin-bottom: 1.5rem;
|
|
126
|
+
letter-spacing: 0.05em;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.split-hero__badge .dot {
|
|
130
|
+
width: 6px;
|
|
131
|
+
height: 6px;
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
background: #d4a017;
|
|
134
|
+
box-shadow: 0 0 8px #d4a017;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.split-hero__title {
|
|
138
|
+
font-size: clamp(2.4rem, 5vw, 3.8rem);
|
|
139
|
+
font-weight: 900;
|
|
140
|
+
line-height: 1.1;
|
|
141
|
+
letter-spacing: -0.04em;
|
|
142
|
+
color: var(--c-text-1, #ffffff);
|
|
143
|
+
margin: 0 0 1.25rem 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.split-hero__subtitle {
|
|
147
|
+
font-size: 1.05rem;
|
|
148
|
+
color: var(--c-text-2, #a3a3a3);
|
|
149
|
+
line-height: 1.65;
|
|
150
|
+
margin: 0 0 2rem 0;
|
|
151
|
+
max-width: 540px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.split-hero__actions {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-wrap: wrap;
|
|
157
|
+
gap: 12px;
|
|
158
|
+
margin-bottom: 2rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.btn {
|
|
162
|
+
display: inline-flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
gap: 8px;
|
|
165
|
+
padding: 0.85rem 1.8rem;
|
|
166
|
+
font-size: 0.92rem;
|
|
167
|
+
font-weight: 700;
|
|
168
|
+
border-radius: var(--r-md, 12px);
|
|
169
|
+
text-decoration: none;
|
|
170
|
+
transition: all 0.25s ease;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.btn--primary {
|
|
174
|
+
background: linear-gradient(135deg, #d4a017, #b8860b);
|
|
175
|
+
color: #050505;
|
|
176
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--c-primary, #b8860b) 35%, transparent);
|
|
177
|
+
}
|
|
178
|
+
.btn--primary:hover {
|
|
179
|
+
transform: translateY(-2px);
|
|
180
|
+
box-shadow: 0 8px 30px color-mix(in srgb, var(--c-primary, #b8860b) 50%, transparent);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.btn--secondary {
|
|
184
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.04);
|
|
185
|
+
backdrop-filter: blur(12px);
|
|
186
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
|
|
187
|
+
color: var(--c-text-1, #ffffff);
|
|
188
|
+
}
|
|
189
|
+
.btn--secondary:hover {
|
|
190
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.08);
|
|
191
|
+
border-color: rgb(var(--ink-rgb, 255 255 255) / 0.2);
|
|
192
|
+
transform: translateY(-2px);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.split-hero__install {
|
|
196
|
+
display: inline-flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
gap: 10px;
|
|
199
|
+
padding: 0.6rem 1.1rem;
|
|
200
|
+
background: rgba(0, 0, 0, 0.4);
|
|
201
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
|
|
202
|
+
border-radius: var(--r-md, 10px);
|
|
203
|
+
font-family: var(--font-mono, monospace);
|
|
204
|
+
font-size: 0.85rem;
|
|
205
|
+
color: var(--c-primary-light, #d4a017);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.split-hero__install .prompt {
|
|
209
|
+
color: var(--c-text-3, #737373);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Visual mock preview container */
|
|
213
|
+
.glass-device {
|
|
214
|
+
background: rgba(14, 14, 18, 0.85);
|
|
215
|
+
backdrop-filter: blur(24px);
|
|
216
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.12);
|
|
217
|
+
border-radius: var(--r-xl, 24px);
|
|
218
|
+
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.glass-device__bar {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 6px;
|
|
226
|
+
padding: 0.8rem 1rem;
|
|
227
|
+
background: rgba(0, 0, 0, 0.3);
|
|
228
|
+
border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.d-dot { width: 10px; height: 10px; border-radius: 50%; }
|
|
232
|
+
.d-dot--red { background: #ef4444; }
|
|
233
|
+
.d-dot--yellow { background: #f59e0b; }
|
|
234
|
+
.d-dot--green { background: #10b981; }
|
|
235
|
+
|
|
236
|
+
.glass-device__url {
|
|
237
|
+
margin-left: auto;
|
|
238
|
+
font-size: 0.75rem;
|
|
239
|
+
color: var(--c-text-3, #737373);
|
|
240
|
+
font-family: var(--font-mono, monospace);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.glass-device__body {
|
|
244
|
+
padding: 2.5rem;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.mock-widget {
|
|
248
|
+
text-align: center;
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 12px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.mock-icon {
|
|
256
|
+
font-size: 2.5rem;
|
|
257
|
+
background: color-mix(in srgb, var(--c-primary, #b8860b) 15%, transparent);
|
|
258
|
+
border: 1px solid color-mix(in srgb, var(--c-primary, #b8860b) 30%, transparent);
|
|
259
|
+
width: 64px;
|
|
260
|
+
height: 64px;
|
|
261
|
+
border-radius: 50%;
|
|
262
|
+
display: grid;
|
|
263
|
+
place-items: center;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.mock-widget h4 {
|
|
267
|
+
font-size: 1.25rem;
|
|
268
|
+
font-weight: 800;
|
|
269
|
+
color: var(--c-text-1, #ffffff);
|
|
270
|
+
margin: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.mock-widget p {
|
|
274
|
+
font-size: 0.85rem;
|
|
275
|
+
color: var(--c-text-2, #a3a3a3);
|
|
276
|
+
margin: 0;
|
|
277
|
+
max-width: 280px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.mock-metrics {
|
|
281
|
+
display: flex;
|
|
282
|
+
gap: 24px;
|
|
283
|
+
margin-top: 1rem;
|
|
284
|
+
padding-top: 1rem;
|
|
285
|
+
border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
|
|
286
|
+
width: 100%;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.mock-metrics div {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
align-items: center;
|
|
294
|
+
gap: 2px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.mock-metrics span { font-size: 0.7rem; color: var(--c-text-3, #737373); text-transform: uppercase; }
|
|
298
|
+
.mock-metrics strong { font-size: 1.1rem; color: var(--c-primary-light, #d4a017); }
|
|
299
|
+
|
|
300
|
+
@container (max-width: 900px) {
|
|
301
|
+
.split-hero__inner {
|
|
302
|
+
grid-template-columns: 1fr;
|
|
303
|
+
gap: 3rem;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
</style>
|
|
@@ -11,6 +11,7 @@ const {
|
|
|
11
11
|
} = Astro.props;
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
<div class="cq-hero-split-cq">
|
|
14
15
|
<section class="hero-split">
|
|
15
16
|
<div class="hero-split__content">
|
|
16
17
|
<span class="hero-split__badge">Open Source · MIT</span>
|
|
@@ -57,8 +58,9 @@ const {
|
|
|
57
58
|
</div>
|
|
58
59
|
</div>
|
|
59
60
|
</section>
|
|
60
|
-
|
|
61
|
+
</div>
|
|
61
62
|
<style>
|
|
63
|
+
.cq-hero-split-cq { container-type: inline-size; }
|
|
62
64
|
.hero-split {
|
|
63
65
|
display: grid;
|
|
64
66
|
grid-template-columns: 1fr 1fr;
|
|
@@ -83,8 +85,8 @@ const {
|
|
|
83
85
|
text-transform: uppercase;
|
|
84
86
|
letter-spacing: 0.1em;
|
|
85
87
|
color: var(--c-primary-light);
|
|
86
|
-
background:
|
|
87
|
-
border: 1px solid
|
|
88
|
+
background: color-mix(in srgb, var(--c-primary, #b8860b) 10%, transparent);
|
|
89
|
+
border: 1px solid color-mix(in srgb, var(--c-primary, #b8860b) 25%, transparent);
|
|
88
90
|
border-radius: var(--r-full);
|
|
89
91
|
}
|
|
90
92
|
.hero-split__title {
|
|
@@ -122,13 +124,13 @@ const {
|
|
|
122
124
|
}
|
|
123
125
|
.hero-split__btn--primary {
|
|
124
126
|
background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
|
|
125
|
-
color: #0a0a0a;
|
|
127
|
+
color: var(--c-on-primary, #0a0a0a);
|
|
126
128
|
border: none;
|
|
127
|
-
box-shadow: 0 4px 20px
|
|
129
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--c-primary, #b8860b) 25%, transparent);
|
|
128
130
|
}
|
|
129
131
|
.hero-split__btn--primary:hover {
|
|
130
132
|
transform: translateY(-2px);
|
|
131
|
-
box-shadow: 0 8px 30px
|
|
133
|
+
box-shadow: 0 8px 30px color-mix(in srgb, var(--c-primary, #b8860b) 40%, transparent);
|
|
132
134
|
}
|
|
133
135
|
.hero-split__btn--ghost {
|
|
134
136
|
background: transparent;
|
|
@@ -168,7 +170,7 @@ const {
|
|
|
168
170
|
max-width: 500px;
|
|
169
171
|
}
|
|
170
172
|
.hero-split__mock-card {
|
|
171
|
-
background:
|
|
173
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.03);
|
|
172
174
|
border: 1px solid var(--c-border);
|
|
173
175
|
border-radius: var(--r-lg);
|
|
174
176
|
overflow: hidden;
|
|
@@ -178,7 +180,7 @@ const {
|
|
|
178
180
|
.hero-split__mock-line {
|
|
179
181
|
height: 8px;
|
|
180
182
|
border-radius: 4px;
|
|
181
|
-
background:
|
|
183
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.06);
|
|
182
184
|
margin-bottom: var(--sp-3);
|
|
183
185
|
}
|
|
184
186
|
.hero-split__mock-line--wide { width: 80%; }
|
|
@@ -193,11 +195,11 @@ const {
|
|
|
193
195
|
.hero-split__mock-box {
|
|
194
196
|
height: 60px;
|
|
195
197
|
border-radius: var(--r-sm);
|
|
196
|
-
background:
|
|
197
|
-
border: 1px solid
|
|
198
|
+
background: color-mix(in srgb, var(--c-primary, #b8860b) 8%, transparent);
|
|
199
|
+
border: 1px solid color-mix(in srgb, var(--c-primary, #b8860b) 15%, transparent);
|
|
198
200
|
}
|
|
199
201
|
|
|
200
|
-
@
|
|
202
|
+
@container (max-width: 768px) {
|
|
201
203
|
.hero-split {
|
|
202
204
|
grid-template-columns: 1fr;
|
|
203
205
|
gap: var(--sp-8);
|