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,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* PhoneCountryInput — Accessible phone input with country dial code selector and dark glass styling.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} id - HTML ID for the phone input.
|
|
6
|
+
* @param {string} label - Input label text. Default is 'Phone Number'.
|
|
7
|
+
* @param {string} name - Form field name. Default is 'phone'.
|
|
8
|
+
* @param {string} placeholder - Phone placeholder. Default is '612 345 678'.
|
|
9
|
+
* @param {boolean} required - HTML required field attribute.
|
|
10
|
+
*/
|
|
11
|
+
interface Props {
|
|
12
|
+
id: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
id = 'phone-number-input',
|
|
21
|
+
label = 'Phone Number',
|
|
22
|
+
name = 'phone',
|
|
23
|
+
placeholder = '612 345 678',
|
|
24
|
+
required = false,
|
|
25
|
+
} = Astro.props;
|
|
26
|
+
|
|
27
|
+
const countries = [
|
|
28
|
+
{ code: '+34', flag: '🇪🇸', name: 'ES' },
|
|
29
|
+
{ code: '+1', flag: '🇺🇸', name: 'US' },
|
|
30
|
+
{ code: '+44', flag: '🇬🇧', name: 'UK' },
|
|
31
|
+
{ code: '+49', flag: '🇩🇪', name: 'DE' },
|
|
32
|
+
{ code: '+33', flag: '🇫🇷', name: 'FR' },
|
|
33
|
+
{ code: '+52', flag: '🇲🇽', name: 'MX' },
|
|
34
|
+
{ code: '+54', flag: '🇦🇷', name: 'AR' },
|
|
35
|
+
];
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
<div class="phone-group">
|
|
39
|
+
<label for={id} class="phone-group__label">{label}</label>
|
|
40
|
+
|
|
41
|
+
<div class="phone-group__wrap">
|
|
42
|
+
<div class="phone-group__prefix">
|
|
43
|
+
<select class="phone-group__select" aria-label="Country calling code" name={`${name}_country`}>
|
|
44
|
+
{countries.map((c) => (
|
|
45
|
+
<option value={c.code}>
|
|
46
|
+
{c.flag} {c.code}
|
|
47
|
+
</option>
|
|
48
|
+
))}
|
|
49
|
+
</select>
|
|
50
|
+
<span class="phone-group__arrow" aria-hidden="true">▾</span>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<input
|
|
54
|
+
type="tel"
|
|
55
|
+
id={id}
|
|
56
|
+
name={name}
|
|
57
|
+
placeholder={placeholder}
|
|
58
|
+
required={required}
|
|
59
|
+
class="phone-group__input"
|
|
60
|
+
autocomplete="tel-national"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<style>
|
|
66
|
+
.phone-group {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--sp-2, 0.5rem);
|
|
70
|
+
width: 100%;
|
|
71
|
+
max-width: 380px;
|
|
72
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.phone-group__label {
|
|
76
|
+
font-size: 0.85rem;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
color: var(--c-text-1, #ffffff);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.phone-group__wrap {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
background: rgba(255, 255, 255, 0.03);
|
|
85
|
+
backdrop-filter: blur(12px);
|
|
86
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
87
|
+
border-radius: var(--r-md, 12px);
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.phone-group__wrap:focus-within {
|
|
93
|
+
border-color: rgba(184, 134, 11, 0.5);
|
|
94
|
+
box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.phone-group__prefix {
|
|
98
|
+
position: relative;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
102
|
+
background: rgba(255, 255, 255, 0.02);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.phone-group__select {
|
|
106
|
+
appearance: none;
|
|
107
|
+
-webkit-appearance: none;
|
|
108
|
+
background: transparent;
|
|
109
|
+
border: none;
|
|
110
|
+
color: var(--c-text-1, #ffffff);
|
|
111
|
+
font-size: 0.88rem;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
padding: 0.75rem 1.6rem 0.75rem 0.85rem;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
outline: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.phone-group__select option {
|
|
119
|
+
background: #111116;
|
|
120
|
+
color: #ffffff;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.phone-group__arrow {
|
|
124
|
+
position: absolute;
|
|
125
|
+
right: 0.5rem;
|
|
126
|
+
font-size: 0.7rem;
|
|
127
|
+
color: var(--c-text-3, #737373);
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.phone-group__input {
|
|
132
|
+
flex: 1;
|
|
133
|
+
background: transparent;
|
|
134
|
+
border: none;
|
|
135
|
+
padding: 0.75rem 1rem;
|
|
136
|
+
color: var(--c-text-1, #ffffff);
|
|
137
|
+
font-size: 0.92rem;
|
|
138
|
+
font-family: inherit;
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.phone-group__input::placeholder {
|
|
143
|
+
color: rgba(255, 255, 255, 0.3);
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* TagsAutocompleteInput — Tag entry field with pill badges, keyboard deletion, and suggestion dropdown.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} id - HTML ID for the tag input.
|
|
6
|
+
* @param {string} label - Input label. Default is 'Tags'.
|
|
7
|
+
* @param {string[]} initialTags - Pre-populated list of tags. Default is ['Astro', 'TypeScript'].
|
|
8
|
+
* @param {string[]} suggestions - Autocomplete candidate options.
|
|
9
|
+
* @param {string} placeholder - Input placeholder. Default is 'Add tag & press Enter...'.
|
|
10
|
+
*/
|
|
11
|
+
interface Props {
|
|
12
|
+
id: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
initialTags?: string[];
|
|
15
|
+
suggestions?: string[];
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
id = 'tags-autocomplete',
|
|
21
|
+
label = 'Tags',
|
|
22
|
+
initialTags = ['Astro', 'TypeScript'],
|
|
23
|
+
suggestions = ['React', 'Tailwind', 'Three.js', 'SSR', 'Vite', 'GraphQL'],
|
|
24
|
+
placeholder = 'Add tag & press Enter...',
|
|
25
|
+
} = Astro.props;
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
<div class="tags-field" data-tags-root>
|
|
29
|
+
<label for={id} class="tags-field__label">{label}</label>
|
|
30
|
+
|
|
31
|
+
<div class="tags-field__box" data-tags-box>
|
|
32
|
+
<div class="tags-field__list" data-tags-list>
|
|
33
|
+
{initialTags.map((tag) => (
|
|
34
|
+
<span class="tag-pill" data-tag={tag}>
|
|
35
|
+
<span class="tag-pill__name">{tag}</span>
|
|
36
|
+
<button type="button" class="tag-pill__remove" aria-label={`Remove tag ${tag}`} data-tag-remove>×</button>
|
|
37
|
+
</span>
|
|
38
|
+
))}
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<input
|
|
42
|
+
type="text"
|
|
43
|
+
id={id}
|
|
44
|
+
placeholder={placeholder}
|
|
45
|
+
class="tags-field__input"
|
|
46
|
+
data-tags-input
|
|
47
|
+
autocomplete="off"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="tags-field__suggestions" data-tags-suggestions hidden>
|
|
52
|
+
{suggestions.map((sug) => (
|
|
53
|
+
<button type="button" class="sug-item" data-sug-val={sug}>
|
|
54
|
+
+ {sug}
|
|
55
|
+
</button>
|
|
56
|
+
))}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<style>
|
|
61
|
+
.tags-field {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: var(--sp-2, 0.5rem);
|
|
65
|
+
width: 100%;
|
|
66
|
+
max-width: 440px;
|
|
67
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
68
|
+
position: relative;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tags-field__label {
|
|
72
|
+
font-size: 0.85rem;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
color: var(--c-text-1, #ffffff);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tags-field__box {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-wrap: wrap;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 6px;
|
|
82
|
+
padding: 0.5rem 0.75rem;
|
|
83
|
+
background: rgba(255, 255, 255, 0.03);
|
|
84
|
+
backdrop-filter: blur(12px);
|
|
85
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
86
|
+
border-radius: var(--r-md, 12px);
|
|
87
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
88
|
+
min-height: 44px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.tags-field__box:focus-within {
|
|
92
|
+
border-color: rgba(184, 134, 11, 0.5);
|
|
93
|
+
box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tags-field__list {
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
flex-wrap: wrap;
|
|
99
|
+
gap: 6px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.tag-pill {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 6px;
|
|
106
|
+
padding: 0.25rem 0.65rem;
|
|
107
|
+
background: rgba(184, 134, 11, 0.15);
|
|
108
|
+
border: 1px solid rgba(184, 134, 11, 0.35);
|
|
109
|
+
border-radius: var(--r-full, 9999px);
|
|
110
|
+
font-size: 0.75rem;
|
|
111
|
+
font-weight: 600;
|
|
112
|
+
color: var(--c-accent, #fef3c7);
|
|
113
|
+
user-select: none;
|
|
114
|
+
animation: pill-pop 0.2s ease-out;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes pill-pop {
|
|
118
|
+
from { transform: scale(0.8); opacity: 0; }
|
|
119
|
+
to { transform: scale(1); opacity: 1; }
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tag-pill__remove {
|
|
123
|
+
background: transparent;
|
|
124
|
+
border: none;
|
|
125
|
+
color: var(--c-accent, #fef3c7);
|
|
126
|
+
font-size: 1rem;
|
|
127
|
+
line-height: 1;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
padding: 0 2px;
|
|
130
|
+
opacity: 0.7;
|
|
131
|
+
transition: opacity 0.2s;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.tag-pill__remove:hover {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
color: #ef4444;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.tags-field__input {
|
|
140
|
+
flex: 1;
|
|
141
|
+
min-width: 140px;
|
|
142
|
+
background: transparent;
|
|
143
|
+
border: none;
|
|
144
|
+
color: var(--c-text-1, #ffffff);
|
|
145
|
+
font-size: 0.88rem;
|
|
146
|
+
outline: none;
|
|
147
|
+
padding: 0.2rem 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.tags-field__input::placeholder {
|
|
151
|
+
color: rgba(255, 255, 255, 0.3);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.tags-field__suggestions {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-wrap: wrap;
|
|
157
|
+
gap: 6px;
|
|
158
|
+
margin-top: 4px;
|
|
159
|
+
padding: 0.4rem;
|
|
160
|
+
background: rgba(12, 12, 16, 0.9);
|
|
161
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
162
|
+
border-radius: var(--r-sm, 8px);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.sug-item {
|
|
166
|
+
background: rgba(255, 255, 255, 0.04);
|
|
167
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
168
|
+
border-radius: var(--r-full, 9999px);
|
|
169
|
+
color: var(--c-text-2, #a3a3a3);
|
|
170
|
+
font-size: 0.72rem;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
padding: 0.2rem 0.6rem;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
transition: all 0.2s ease;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.sug-item:hover {
|
|
178
|
+
background: rgba(184, 134, 11, 0.2);
|
|
179
|
+
border-color: rgba(184, 134, 11, 0.4);
|
|
180
|
+
color: var(--c-text-1, #ffffff);
|
|
181
|
+
}
|
|
182
|
+
</style>
|
|
183
|
+
|
|
184
|
+
<script>
|
|
185
|
+
function setupTagsFields() {
|
|
186
|
+
document.querySelectorAll('[data-tags-root]').forEach((root) => {
|
|
187
|
+
const input = root.querySelector('[data-tags-input]') as HTMLInputElement;
|
|
188
|
+
const list = root.querySelector('[data-tags-list]') as HTMLElement;
|
|
189
|
+
const suggestions = root.querySelector('[data-tags-suggestions]') as HTMLElement;
|
|
190
|
+
if (!input || !list) return;
|
|
191
|
+
|
|
192
|
+
function addTag(text: string) {
|
|
193
|
+
const clean = text.trim();
|
|
194
|
+
if (!clean) return;
|
|
195
|
+
|
|
196
|
+
// Check duplicate
|
|
197
|
+
const exists = Array.from(list.querySelectorAll('.tag-pill__name')).some(
|
|
198
|
+
(el) => el.textContent?.toLowerCase() === clean.toLowerCase()
|
|
199
|
+
);
|
|
200
|
+
if (exists) return;
|
|
201
|
+
|
|
202
|
+
const pill = document.createElement('span');
|
|
203
|
+
pill.className = 'tag-pill';
|
|
204
|
+
pill.setAttribute('data-tag', clean);
|
|
205
|
+
pill.innerHTML = `
|
|
206
|
+
<span class="tag-pill__name">${clean}</span>
|
|
207
|
+
<button type="button" class="tag-pill__remove" aria-label="Remove tag ${clean}" data-tag-remove>×</button>
|
|
208
|
+
`;
|
|
209
|
+
list.appendChild(pill);
|
|
210
|
+
input.value = '';
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
list.addEventListener('click', (e) => {
|
|
214
|
+
const target = e.target as HTMLElement;
|
|
215
|
+
if (target.matches('[data-tag-remove]')) {
|
|
216
|
+
const pill = target.closest('.tag-pill');
|
|
217
|
+
if (pill) pill.remove();
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
input.addEventListener('keydown', (e) => {
|
|
222
|
+
if (e.key === 'Enter' || e.key === ',') {
|
|
223
|
+
e.preventDefault();
|
|
224
|
+
addTag(input.value);
|
|
225
|
+
} else if (e.key === 'Backspace' && !input.value) {
|
|
226
|
+
const last = list.querySelector('.tag-pill:last-child');
|
|
227
|
+
if (last) last.remove();
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
input.addEventListener('focus', () => {
|
|
232
|
+
if (suggestions) suggestions.hidden = false;
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
if (suggestions) {
|
|
236
|
+
suggestions.addEventListener('click', (e) => {
|
|
237
|
+
const btn = (e.target as HTMLElement).closest('[data-sug-val]') as HTMLElement;
|
|
238
|
+
if (btn) {
|
|
239
|
+
const val = btn.getAttribute('data-sug-val');
|
|
240
|
+
if (val) addTag(val);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
setupTagsFields();
|
|
248
|
+
document.addEventListener('astro:page-load', setupTagsFields);
|
|
249
|
+
</script>
|
|
@@ -21,3 +21,8 @@ export { default as SearchReveal } from './SearchReveal.astro';
|
|
|
21
21
|
export { default as SegmentedControl } from './SegmentedControl.astro';
|
|
22
22
|
export { default as SimpleFileInput } from './SimpleFileInput.astro';
|
|
23
23
|
export { default as StepperInput } from './StepperInput.astro';
|
|
24
|
+
export { default as GlassInlineToggleGroup } from './GlassInlineToggleGroup.astro';
|
|
25
|
+
export { default as PasswordStrengthInput } from './PasswordStrengthInput.astro';
|
|
26
|
+
export { default as PhoneCountryInput } from './PhoneCountryInput.astro';
|
|
27
|
+
export { default as TagsAutocompleteInput } from './TagsAutocompleteInput.astro';
|
|
28
|
+
|
|
@@ -3,6 +3,8 @@ export * from './buttons/index';
|
|
|
3
3
|
export * from './cards/index';
|
|
4
4
|
export * from './charts/index';
|
|
5
5
|
export * from './data/index';
|
|
6
|
+
export * from './ecommerce/index';
|
|
7
|
+
export * from './app/index';
|
|
6
8
|
export * from './feedback/index';
|
|
7
9
|
export * from './forms/index';
|
|
8
10
|
export * from './layout/index';
|
|
@@ -9,6 +9,7 @@ interface Props {
|
|
|
9
9
|
const { className = '' } = Astro.props;
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
+
<div class="cq-bento-grid3-cq">
|
|
12
13
|
<div class={`bento ${className}`}>
|
|
13
14
|
<div class="item wide">
|
|
14
15
|
<slot name="1">
|
|
@@ -35,8 +36,9 @@ const { className = '' } = Astro.props;
|
|
|
35
36
|
</slot>
|
|
36
37
|
</div>
|
|
37
38
|
</div>
|
|
38
|
-
|
|
39
|
+
</div>
|
|
39
40
|
<style>
|
|
41
|
+
.cq-bento-grid3-cq { container-type: inline-size; }
|
|
40
42
|
.bento {
|
|
41
43
|
display: grid;
|
|
42
44
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -45,8 +47,8 @@ const { className = '' } = Astro.props;
|
|
|
45
47
|
width: 100%;
|
|
46
48
|
}
|
|
47
49
|
.item {
|
|
48
|
-
background:
|
|
49
|
-
border: 1px solid
|
|
50
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.03);
|
|
51
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
|
|
50
52
|
border-radius: 16px;
|
|
51
53
|
padding: 1.25rem;
|
|
52
54
|
display: flex;
|
|
@@ -69,7 +71,7 @@ const { className = '' } = Astro.props;
|
|
|
69
71
|
.tall {
|
|
70
72
|
grid-row: span 2;
|
|
71
73
|
}
|
|
72
|
-
@
|
|
74
|
+
@container (max-width: 768px) {
|
|
73
75
|
.bento {
|
|
74
76
|
grid-template-columns: 1fr;
|
|
75
77
|
grid-auto-rows: auto;
|
|
@@ -28,7 +28,7 @@ const { className = '' } = Astro.props;
|
|
|
28
28
|
background: rgba(0, 0, 0, 0.2);
|
|
29
29
|
border-radius: var(--r-lg, 12px);
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
border: 1px dashed
|
|
31
|
+
border: 1px dashed rgb(var(--ink-rgb, 255 255 255) / 0.15);
|
|
32
32
|
}
|
|
33
33
|
.abs-center {
|
|
34
34
|
position: absolute;
|
|
@@ -40,7 +40,7 @@ const { className = '' } = Astro.props;
|
|
|
40
40
|
.abs-card {
|
|
41
41
|
padding: 1.25rem 2rem;
|
|
42
42
|
background: rgba(20, 20, 20, 0.85);
|
|
43
|
-
border: 1px solid
|
|
43
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
|
|
44
44
|
border-radius: 12px;
|
|
45
45
|
text-align: center;
|
|
46
46
|
}
|
|
@@ -25,11 +25,13 @@ interface Props {
|
|
|
25
25
|
const { maxWidth = '1200px', padding = '1.5rem', className = '' } = Astro.props;
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
+
<div class="cq-centered-container-cq">
|
|
28
29
|
<div class:list={['centered-container', className]} style={`--container-max: ${maxWidth}; --container-pad: ${padding}`}>
|
|
29
30
|
<slot />
|
|
30
31
|
</div>
|
|
31
|
-
|
|
32
|
+
</div>
|
|
32
33
|
<style>
|
|
34
|
+
.cq-centered-container-cq { container-type: inline-size; }
|
|
33
35
|
.centered-container {
|
|
34
36
|
width: 100%;
|
|
35
37
|
max-width: var(--container-max);
|
|
@@ -38,7 +40,7 @@ const { maxWidth = '1200px', padding = '1.5rem', className = '' } = Astro.props;
|
|
|
38
40
|
padding-right: var(--container-pad);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
@
|
|
43
|
+
@container (max-width: 640px) {
|
|
42
44
|
.centered-container {
|
|
43
45
|
padding-left: 1rem;
|
|
44
46
|
padding-right: 1rem;
|
|
@@ -31,8 +31,8 @@ const { gap = '0.75rem', align = 'center', className = '' } = Astro.props;
|
|
|
31
31
|
}
|
|
32
32
|
.cluster-tag {
|
|
33
33
|
padding: 0.4rem 0.8rem;
|
|
34
|
-
background:
|
|
35
|
-
border: 1px solid
|
|
34
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.05);
|
|
35
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
|
|
36
36
|
border-radius: 9999px;
|
|
37
37
|
font-size: 0.8rem;
|
|
38
38
|
color: #94a3b8;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
/**
|
|
3
|
+
* DiagonalSectionDivider — Angled SVG/clip-path section divider creating fluid diagonal page transitions.
|
|
4
|
+
*
|
|
5
|
+
* @param {'top' | 'bottom'} position - Attachment position. Default is 'bottom'.
|
|
6
|
+
* @param {'left-to-right' | 'right-to-left'} direction - Slant angle direction. Default is 'left-to-right'.
|
|
7
|
+
* @param {string} height - Height of the diagonal incline in pixels. Default is '60px'.
|
|
8
|
+
* @param {string} fillColor - Fill color for the divider polygon. Default is '#050505'.
|
|
9
|
+
*/
|
|
10
|
+
interface Props {
|
|
11
|
+
position?: 'top' | 'bottom';
|
|
12
|
+
direction?: 'left-to-right' | 'right-to-left';
|
|
13
|
+
height?: string;
|
|
14
|
+
fillColor?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
position = 'bottom',
|
|
19
|
+
direction = 'left-to-right',
|
|
20
|
+
height = '60px',
|
|
21
|
+
fillColor = '#050505',
|
|
22
|
+
} = Astro.props;
|
|
23
|
+
|
|
24
|
+
const isLtr = direction === 'left-to-right';
|
|
25
|
+
const points = isLtr
|
|
26
|
+
? position === 'bottom' ? '0,100 100,0 100,100' : '0,0 100,0 100,100'
|
|
27
|
+
: position === 'bottom' ? '0,0 0,100 100,100' : '0,0 100,0 0,100';
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
<div
|
|
31
|
+
class:list={['diagonal-divider', `diagonal-divider--${position}`]}
|
|
32
|
+
style={`--div-height: ${height}; --div-color: ${fillColor};`}
|
|
33
|
+
aria-hidden="true"
|
|
34
|
+
>
|
|
35
|
+
<svg
|
|
36
|
+
viewBox="0 0 100 100"
|
|
37
|
+
preserveAspectRatio="none"
|
|
38
|
+
class="diagonal-divider__svg"
|
|
39
|
+
>
|
|
40
|
+
<polygon points={points} fill={fillColor} />
|
|
41
|
+
</svg>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<style>
|
|
45
|
+
.diagonal-divider {
|
|
46
|
+
position: relative;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: var(--div-height);
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
line-height: 0;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
z-index: 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.diagonal-divider--bottom {
|
|
56
|
+
margin-bottom: calc(-1 * var(--div-height));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.diagonal-divider--top {
|
|
60
|
+
margin-top: calc(-1 * var(--div-height));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.diagonal-divider__svg {
|
|
64
|
+
position: relative;
|
|
65
|
+
display: block;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
@@ -39,6 +39,7 @@ const {
|
|
|
39
39
|
} = Astro.props;
|
|
40
40
|
---
|
|
41
41
|
|
|
42
|
+
<div class="cq-feature-hero-cq">
|
|
42
43
|
<section class:list={['feature-hero', className]}>
|
|
43
44
|
<div class="feature-hero__bg" aria-hidden="true">
|
|
44
45
|
<div class="feature-hero__gradient" style={`--gradient-from: ${gradientFrom}; --gradient-to: ${gradientTo}`}></div>
|
|
@@ -52,8 +53,9 @@ const {
|
|
|
52
53
|
</div>
|
|
53
54
|
</div>
|
|
54
55
|
</section>
|
|
55
|
-
|
|
56
|
+
</div>
|
|
56
57
|
<style>
|
|
58
|
+
.cq-feature-hero-cq { container-type: inline-size; }
|
|
57
59
|
.feature-hero {
|
|
58
60
|
position: relative;
|
|
59
61
|
padding: var(--sp-16) var(--sp-6);
|
|
@@ -142,7 +144,7 @@ const {
|
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
|
|
145
|
-
@
|
|
147
|
+
@container (max-width: 640px) {
|
|
146
148
|
.feature-hero {
|
|
147
149
|
padding: var(--sp-12) var(--sp-4);
|
|
148
150
|
}
|
|
@@ -21,6 +21,7 @@ interface Props {
|
|
|
21
21
|
const { copyright = '© 2026 Built with Astro Components Kit.', className = '' } = Astro.props;
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
<div class="cq-footer-centered-minimal-cq">
|
|
24
25
|
<footer class:list={['footer-centered', className]}>
|
|
25
26
|
<div class="footer-centered__inner">
|
|
26
27
|
<div class="footer-centered__logo">
|
|
@@ -29,8 +30,9 @@ const { copyright = '© 2026 Built with Astro Components Kit.', className = '' }
|
|
|
29
30
|
<p class="footer-centered__copy">{copyright}</p>
|
|
30
31
|
</div>
|
|
31
32
|
</footer>
|
|
32
|
-
|
|
33
|
+
</div>
|
|
33
34
|
<style>
|
|
35
|
+
.cq-footer-centered-minimal-cq { container-type: inline-size; }
|
|
34
36
|
.footer-centered {
|
|
35
37
|
border-top: 1px solid var(--c-border);
|
|
36
38
|
padding: var(--sp-10) var(--sp-6);
|
|
@@ -54,7 +56,7 @@ const { copyright = '© 2026 Built with Astro Components Kit.', className = '' }
|
|
|
54
56
|
margin: 0;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
@
|
|
59
|
+
@container (max-width: 640px) {
|
|
58
60
|
.footer-centered {
|
|
59
61
|
padding: var(--sp-8) var(--sp-4);
|
|
60
62
|
}
|
|
@@ -27,8 +27,8 @@ const { className = '' } = Astro.props;
|
|
|
27
27
|
margin-left: -50vw;
|
|
28
28
|
margin-right: -50vw;
|
|
29
29
|
background: rgba(30, 41, 59, 0.4);
|
|
30
|
-
border-top: 1px solid
|
|
31
|
-
border-bottom: 1px solid
|
|
30
|
+
border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
|
|
31
|
+
border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
|
|
32
32
|
padding: 3.5rem 1.5rem;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
}
|
|
@@ -28,8 +28,8 @@ const { className = '' } = Astro.props;
|
|
|
28
28
|
.gal-grid :global(> *), .gal-item {
|
|
29
29
|
aspect-ratio: 1;
|
|
30
30
|
border-radius: 12px;
|
|
31
|
-
background:
|
|
32
|
-
border: 1px solid
|
|
31
|
+
background: rgb(var(--ink-rgb, 255 255 255) / 0.04);
|
|
32
|
+
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
|
|
33
33
|
display: flex;
|
|
34
34
|
align-items: center;
|
|
35
35
|
justify-content: center;
|