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.
Files changed (249) hide show
  1. package/README.md +133 -36
  2. package/package.json +17 -4
  3. package/src/components/index.ts +18 -202
  4. package/src/components/lib/Galaxy3D.astro +249 -137
  5. package/src/components/lib/app/AppSidebar.astro +249 -0
  6. package/src/components/lib/app/AppTopbar.astro +284 -0
  7. package/src/components/lib/app/ArrivalsBoard.astro +176 -0
  8. package/src/components/lib/app/AuthCard.astro +213 -0
  9. package/src/components/lib/app/DataTable.astro +346 -0
  10. package/src/components/lib/app/GuestProfileCard.astro +133 -0
  11. package/src/components/lib/app/HousekeepingBoard.astro +189 -0
  12. package/src/components/lib/app/PageHeader.astro +157 -0
  13. package/src/components/lib/app/PlanUsageCard.astro +112 -0
  14. package/src/components/lib/app/RoomRack.astro +207 -0
  15. package/src/components/lib/app/SettingsSection.astro +96 -0
  16. package/src/components/lib/app/SwitchRow.astro +71 -0
  17. package/src/components/lib/app/TeamMembers.astro +190 -0
  18. package/src/components/lib/app/app-icons.ts +52 -0
  19. package/src/components/lib/app/index.ts +19 -0
  20. package/src/components/lib/buttons/NeonBorderButton.astro +162 -0
  21. package/src/components/lib/buttons/RippleButton.astro +199 -0
  22. package/src/components/lib/buttons/SlideRevealButton.astro +159 -0
  23. package/src/components/lib/buttons/index.ts +4 -0
  24. package/src/components/lib/cards/GithubRepoCard.astro +176 -0
  25. package/src/components/lib/cards/PricingCompareMiniCard.astro +196 -0
  26. package/src/components/lib/cards/StatsTrendCard.astro +149 -0
  27. package/src/components/lib/cards/index.ts +3 -0
  28. package/src/components/lib/charts/ActivityRings.astro +105 -0
  29. package/src/components/lib/charts/AreaChart.astro +4 -4
  30. package/src/components/lib/charts/BarChart.astro +3 -3
  31. package/src/components/lib/charts/BoxPlotChart.astro +109 -0
  32. package/src/components/lib/charts/BubbleChart.astro +101 -0
  33. package/src/components/lib/charts/BulletChart.astro +160 -0
  34. package/src/components/lib/charts/BumpChart.astro +92 -0
  35. package/src/components/lib/charts/CandlestickChart.astro +105 -0
  36. package/src/components/lib/charts/ChartFrame.astro +373 -0
  37. package/src/components/lib/charts/DivergingBarChart.astro +98 -0
  38. package/src/components/lib/charts/DonutChart.astro +2 -2
  39. package/src/components/lib/charts/DumbbellChart.astro +92 -0
  40. package/src/components/lib/charts/ForecastLineChart.astro +125 -0
  41. package/src/components/lib/charts/FunnelChart.astro +122 -0
  42. package/src/components/lib/charts/GaugeChart.astro +111 -0
  43. package/src/components/lib/charts/GoalProgressChart.astro +97 -0
  44. package/src/components/lib/charts/GroupedBarChart.astro +125 -0
  45. package/src/components/lib/charts/HeatmapChart.astro +131 -0
  46. package/src/components/lib/charts/HistogramChart.astro +111 -0
  47. package/src/components/lib/charts/HorizontalBarChart.astro +155 -0
  48. package/src/components/lib/charts/KpiStatTile.astro +116 -0
  49. package/src/components/lib/charts/KpiTrendGrid.astro +60 -0
  50. package/src/components/lib/charts/LineChart.astro +160 -0
  51. package/src/components/lib/charts/LinearProgressGauge.astro +136 -0
  52. package/src/components/lib/charts/LollipopChart.astro +100 -0
  53. package/src/components/lib/charts/MeterGauge.astro +122 -0
  54. package/src/components/lib/charts/MetricDeltaTable.astro +125 -0
  55. package/src/components/lib/charts/PieChart.astro +135 -0
  56. package/src/components/lib/charts/PolarAreaChart.astro +85 -0
  57. package/src/components/lib/charts/PopulationPyramid.astro +122 -0
  58. package/src/components/lib/charts/PunchCardChart.astro +89 -0
  59. package/src/components/lib/charts/RadarChart.astro +94 -0
  60. package/src/components/lib/charts/RadarMetricChart.astro +168 -0
  61. package/src/components/lib/charts/RadialBarChart.astro +124 -0
  62. package/src/components/lib/charts/RangeAreaChart.astro +113 -0
  63. package/src/components/lib/charts/RetentionCohortTable.astro +126 -0
  64. package/src/components/lib/charts/SankeyChart.astro +128 -0
  65. package/src/components/lib/charts/ScatterPlot.astro +139 -0
  66. package/src/components/lib/charts/SegmentedBarChart.astro +119 -0
  67. package/src/components/lib/charts/SlopeChart.astro +105 -0
  68. package/src/components/lib/charts/SparklineChart.astro +87 -0
  69. package/src/components/lib/charts/StackedAreaChart.astro +130 -0
  70. package/src/components/lib/charts/StackedBarChart.astro +136 -0
  71. package/src/components/lib/charts/SunburstChart.astro +103 -0
  72. package/src/components/lib/charts/TreemapChart.astro +94 -0
  73. package/src/components/lib/charts/WaffleChart.astro +121 -0
  74. package/src/components/lib/charts/WaterfallChart.astro +118 -0
  75. package/src/components/lib/charts/chart-tooltip.ts +75 -0
  76. package/src/components/lib/charts/chart-utils.ts +271 -0
  77. package/src/components/lib/charts/index.ts +46 -0
  78. package/src/components/lib/data/ActivityHeatmapGrid.astro +157 -0
  79. package/src/components/lib/data/MetricComparisonRow.astro +109 -0
  80. package/src/components/lib/data/StatusTimelineFeed.astro +168 -0
  81. package/src/components/lib/data/index.ts +3 -0
  82. package/src/components/lib/ecommerce/CartDrawer.astro +483 -0
  83. package/src/components/lib/ecommerce/CartPageList.astro +290 -0
  84. package/src/components/lib/ecommerce/CartToast.astro +276 -0
  85. package/src/components/lib/ecommerce/CategoryTiles.astro +143 -0
  86. package/src/components/lib/ecommerce/CheckoutForm.astro +423 -0
  87. package/src/components/lib/ecommerce/CountdownBanner.astro +230 -0
  88. package/src/components/lib/ecommerce/FilterBar.astro +278 -0
  89. package/src/components/lib/ecommerce/FilterSidebar.astro +405 -0
  90. package/src/components/lib/ecommerce/LiveActivityToast.astro +213 -0
  91. package/src/components/lib/ecommerce/OrderSummary.astro +295 -0
  92. package/src/components/lib/ecommerce/ProductBuyBox.astro +247 -0
  93. package/src/components/lib/ecommerce/ProductCardMinimal.astro +229 -0
  94. package/src/components/lib/ecommerce/ProductGallery.astro +145 -0
  95. package/src/components/lib/ecommerce/ProductGrid.astro +118 -0
  96. package/src/components/lib/ecommerce/ProductMedia.astro +113 -0
  97. package/src/components/lib/ecommerce/ProductRating.astro +78 -0
  98. package/src/components/lib/ecommerce/ProductToolbar.astro +93 -0
  99. package/src/components/lib/ecommerce/PromoBar.astro +145 -0
  100. package/src/components/lib/ecommerce/StockIndicator.astro +127 -0
  101. package/src/components/lib/ecommerce/StoreHeader.astro +446 -0
  102. package/src/components/lib/ecommerce/StoreHero.astro +260 -0
  103. package/src/components/lib/ecommerce/StoreProductCard.astro +307 -0
  104. package/src/components/lib/ecommerce/TrustBadges.astro +101 -0
  105. package/src/components/lib/ecommerce/VariantPicker.astro +145 -0
  106. package/src/components/lib/ecommerce/cart-store.ts +151 -0
  107. package/src/components/lib/ecommerce/catalog-filter.ts +62 -0
  108. package/src/components/lib/ecommerce/index.ts +34 -0
  109. package/src/components/lib/ecommerce/product-icons.ts +28 -0
  110. package/src/components/lib/ecommerce/types.ts +70 -0
  111. package/src/components/lib/feedback/ProgressRingCounter.astro +118 -0
  112. package/src/components/lib/feedback/ToastNotificationGroup.astro +173 -0
  113. package/src/components/lib/feedback/index.ts +2 -0
  114. package/src/components/lib/forms/AnimatedInput.astro +4 -2
  115. package/src/components/lib/forms/CustomRadioGroup.astro +3 -1
  116. package/src/components/lib/forms/GlassInlineToggleGroup.astro +161 -0
  117. package/src/components/lib/forms/PasswordStrengthInput.astro +242 -0
  118. package/src/components/lib/forms/PhoneCountryInput.astro +145 -0
  119. package/src/components/lib/forms/TagsAutocompleteInput.astro +249 -0
  120. package/src/components/lib/forms/index.ts +5 -0
  121. package/src/components/lib/index.ts +2 -0
  122. package/src/components/lib/layout/BentoGrid3.astro +6 -4
  123. package/src/components/lib/layout/CenterFixedBox.astro +2 -2
  124. package/src/components/lib/layout/CenteredContainer.astro +4 -2
  125. package/src/components/lib/layout/ClusterHorizontal.astro +2 -2
  126. package/src/components/lib/layout/DiagonalSectionDivider.astro +69 -0
  127. package/src/components/lib/layout/FeatureHero.astro +4 -2
  128. package/src/components/lib/layout/FooterCenteredMinimal.astro +4 -2
  129. package/src/components/lib/layout/FullBleedSection.astro +2 -2
  130. package/src/components/lib/layout/GalleryGrid4.astro +2 -2
  131. package/src/components/lib/layout/HolyGrailGrid.astro +127 -0
  132. package/src/components/lib/layout/LandingSectionSplit.astro +5 -3
  133. package/src/components/lib/layout/MasonryGrid.astro +2 -2
  134. package/src/components/lib/layout/MinimalFooterGrid.astro +1 -1
  135. package/src/components/lib/layout/ScrollSnapSection.astro +1 -1
  136. package/src/components/lib/layout/SidebarLayoutWrapper.astro +4 -2
  137. package/src/components/lib/layout/SplitScreenLayout.astro +3 -3
  138. package/src/components/lib/layout/StepLayoutVertical.astro +1 -1
  139. package/src/components/lib/layout/StickySidebarWrapper.astro +4 -2
  140. package/src/components/lib/layout/index.ts +3 -1
  141. package/src/components/lib/navigation/QuickJumpDock.astro +125 -0
  142. package/src/components/lib/navigation/StepBreadcrumbBar.astro +151 -0
  143. package/src/components/lib/navigation/SubNavbarPills.astro +102 -0
  144. package/src/components/lib/navigation/index.ts +3 -0
  145. package/src/components/lib/overlays/CookiePreferencesDrawer.astro +226 -0
  146. package/src/components/lib/overlays/FloatingFeedbackWidget.astro +203 -0
  147. package/src/components/lib/overlays/ImageCompareSlider.astro +172 -0
  148. package/src/components/lib/overlays/index.ts +3 -0
  149. package/src/components/lib/sections/AgencyContactBrief.astro +194 -0
  150. package/src/components/lib/sections/AgencyFooterCta.astro +94 -0
  151. package/src/components/lib/sections/AgencyHeader.astro +161 -0
  152. package/src/components/lib/sections/AgencyHeroKinetic.astro +172 -0
  153. package/src/components/lib/sections/AgencyServicesList.astro +113 -0
  154. package/src/components/lib/sections/AgencyTeamGrid.astro +111 -0
  155. package/src/components/lib/sections/AgencyWorkGrid.astro +147 -0
  156. package/src/components/lib/sections/BlogGridSection.astro +133 -0
  157. package/src/components/lib/sections/ButtonsShowcase.astro +20 -18
  158. package/src/components/lib/sections/CardsShowcase.astro +28 -26
  159. package/src/components/lib/sections/CareersOpenings.astro +141 -0
  160. package/src/components/lib/sections/ChangelogSection.astro +151 -0
  161. package/src/components/lib/sections/ContactGlassForm.astro +10 -8
  162. package/src/components/lib/sections/ContactSplitMap.astro +141 -0
  163. package/src/components/lib/sections/CtaAppDownload.astro +13 -11
  164. package/src/components/lib/sections/CtaGlowBanner.astro +12 -10
  165. package/src/components/lib/sections/CtaNewsletterSection.astro +165 -0
  166. package/src/components/lib/sections/CtaSplitImage.astro +149 -0
  167. package/src/components/lib/sections/DataShowcase.astro +23 -21
  168. package/src/components/lib/sections/FaqAccordionSection.astro +8 -8
  169. package/src/components/lib/sections/FaqTwoColumn.astro +121 -0
  170. package/src/components/lib/sections/FeatureAlternatingRows.astro +192 -0
  171. package/src/components/lib/sections/FeatureBentoGrid.astro +13 -11
  172. package/src/components/lib/sections/FeatureIconGrid.astro +155 -0
  173. package/src/components/lib/sections/FeatureTabsShowcase.astro +182 -0
  174. package/src/components/lib/sections/FeatureTimelineFlow.astro +8 -6
  175. package/src/components/lib/sections/FeedbackShowcase.astro +15 -13
  176. package/src/components/lib/sections/FooterMegaSection.astro +157 -0
  177. package/src/components/lib/sections/FormsShowcase.astro +22 -20
  178. package/src/components/lib/sections/HeroDashboardPreview.astro +182 -0
  179. package/src/components/lib/sections/HeroGlass.astro +22 -20
  180. package/src/components/lib/sections/HeroGradient.astro +15 -13
  181. package/src/components/lib/sections/HeroMinimalCentered.astro +175 -0
  182. package/src/components/lib/sections/HeroShowcaseSplit.astro +306 -0
  183. package/src/components/lib/sections/HeroSplit.astro +13 -11
  184. package/src/components/lib/sections/HeroTerminal.astro +253 -0
  185. package/src/components/lib/sections/HeroWaitlist.astro +231 -0
  186. package/src/components/lib/sections/HowItWorksSteps.astro +180 -0
  187. package/src/components/lib/sections/IntegrationsGrid.astro +167 -0
  188. package/src/components/lib/sections/LayoutShowcase.astro +21 -19
  189. package/src/components/lib/sections/LogoCloudSection.astro +96 -0
  190. package/src/components/lib/sections/LogoWallGrid.astro +93 -0
  191. package/src/components/lib/sections/NavigationShowcase.astro +15 -13
  192. package/src/components/lib/sections/OverlaysShowcase.astro +21 -19
  193. package/src/components/lib/sections/PricingComparisonMatrix.astro +15 -13
  194. package/src/components/lib/sections/PricingSinglePlan.astro +159 -0
  195. package/src/components/lib/sections/PricingTierCards.astro +11 -9
  196. package/src/components/lib/sections/PricingToggleCards.astro +171 -0
  197. package/src/components/lib/sections/ShopCategoryHero.astro +103 -0
  198. package/src/components/lib/sections/ShopCollectionMosaic.astro +131 -0
  199. package/src/components/lib/sections/ShopFooterWordmark.astro +100 -0
  200. package/src/components/lib/sections/ShopHeaderEditorial.astro +396 -0
  201. package/src/components/lib/sections/ShopHeroEditorial.astro +151 -0
  202. package/src/components/lib/sections/ShopLookbook.astro +250 -0
  203. package/src/components/lib/sections/ShopNewsletterEditorial.astro +128 -0
  204. package/src/components/lib/sections/ShopProductRail.astro +150 -0
  205. package/src/components/lib/sections/ShopReviewsEditorial.astro +133 -0
  206. package/src/components/lib/sections/ShopValuesMarquee.astro +91 -0
  207. package/src/components/lib/sections/StatsCounterBand.astro +124 -0
  208. package/src/components/lib/sections/StatsDashboardSection.astro +85 -0
  209. package/src/components/lib/sections/StatsMetricShowcase.astro +9 -7
  210. package/src/components/lib/sections/TeamGridSection.astro +12 -10
  211. package/src/components/lib/sections/TestimonialCarousel.astro +167 -0
  212. package/src/components/lib/sections/TestimonialFeatured.astro +122 -0
  213. package/src/components/lib/sections/TestimonialGridSection.astro +188 -0
  214. package/src/components/lib/sections/TestimonialWallGlass.astro +11 -9
  215. package/src/components/lib/sections/TypographyShowcase.astro +10 -8
  216. package/src/components/lib/sections/index.ts +39 -0
  217. package/src/components/lib/templates/ecommerce/StoreCategoryPage.astro +160 -0
  218. package/src/components/lib/templates/ecommerce/StoreCheckoutPage.astro +98 -0
  219. package/src/components/lib/templates/ecommerce/StoreHomePage.astro +191 -0
  220. package/src/components/lib/templates/ecommerce/StoreLayout.astro +169 -0
  221. package/src/components/lib/templates/ecommerce/StoreProductPage.astro +165 -0
  222. package/src/components/lib/templates/ecommerce/data.ts +187 -0
  223. package/src/components/lib/templates/ecommerce/index.ts +14 -0
  224. package/src/components/lib/templates/ecommerce-editorial/EditorialBagPage.astro +52 -0
  225. package/src/components/lib/templates/ecommerce-editorial/EditorialCheckoutPage.astro +123 -0
  226. package/src/components/lib/templates/ecommerce-editorial/EditorialHomePage.astro +102 -0
  227. package/src/components/lib/templates/ecommerce-editorial/EditorialLayout.astro +216 -0
  228. package/src/components/lib/templates/ecommerce-editorial/EditorialProductPage.astro +205 -0
  229. package/src/components/lib/templates/ecommerce-editorial/EditorialShopPage.astro +112 -0
  230. package/src/components/lib/templates/ecommerce-editorial/data.ts +125 -0
  231. package/src/components/lib/templates/ecommerce-editorial/index.ts +16 -0
  232. package/src/components/lib/templates/saas-hotel/AppLayout.astro +83 -0
  233. package/src/components/lib/templates/saas-hotel/DashboardPage.astro +66 -0
  234. package/src/components/lib/templates/saas-hotel/GuestsPage.astro +65 -0
  235. package/src/components/lib/templates/saas-hotel/LandingPage.astro +213 -0
  236. package/src/components/lib/templates/saas-hotel/ReportsPage.astro +63 -0
  237. package/src/components/lib/templates/saas-hotel/ReservationsPage.astro +49 -0
  238. package/src/components/lib/templates/saas-hotel/RoomsPage.astro +48 -0
  239. package/src/components/lib/templates/saas-hotel/SettingsPage.astro +115 -0
  240. package/src/components/lib/templates/saas-hotel/SignInPage.astro +50 -0
  241. package/src/components/lib/templates/saas-hotel/data.ts +229 -0
  242. package/src/components/lib/templates/saas-hotel/index.ts +19 -0
  243. package/src/components/lib/templates/saas-hotel/lobby-theme.css +90 -0
  244. package/src/components/lib/typography/AnimatedCounterText.astro +102 -0
  245. package/src/components/lib/typography/CurvedPathHeading.astro +86 -0
  246. package/src/components/lib/typography/GradientTextMarquee.astro +105 -0
  247. package/src/components/lib/typography/HackerDecodeText.astro +85 -0
  248. package/src/components/lib/typography/index.ts +4 -0
  249. package/src/styles/global.css +113 -1
@@ -0,0 +1,162 @@
1
+ ---
2
+ /**
3
+ * NeonBorderButton — Futuristic button wrapped in an animated rotating neon conic-gradient border.
4
+ *
5
+ * @param {string} color - Primary neon hue (e.g. '#fbbf24', '#38bdf8', '#a855f7'). Default is '#d4a017'.
6
+ * @param {'sm' | 'md' | 'lg'} size - Button size variant. Default is 'md'.
7
+ * @param {string} href - Optional link destination.
8
+ * @param {boolean} disabled - Whether the button is disabled.
9
+ * @param {string} className - Additional CSS class names.
10
+ */
11
+ interface Props {
12
+ color?: string;
13
+ size?: 'sm' | 'md' | 'lg';
14
+ href?: string;
15
+ disabled?: boolean;
16
+ className?: string;
17
+ }
18
+
19
+ const {
20
+ color = '#d4a017',
21
+ size = 'md',
22
+ href,
23
+ disabled = false,
24
+ className = '',
25
+ } = Astro.props;
26
+
27
+ const Tag = href ? 'a' : 'button';
28
+ ---
29
+
30
+ <Tag
31
+ href={href}
32
+ disabled={!href && disabled ? true : undefined}
33
+ aria-disabled={disabled ? 'true' : undefined}
34
+ class:list={['neon-border-btn', `neon-border-btn--${size}`, className]}
35
+ style={`--neon-accent: ${color};`}
36
+ >
37
+ <span class="neon-border-btn__glow" aria-hidden="true"></span>
38
+ <span class="neon-border-btn__border" aria-hidden="true"></span>
39
+ <span class="neon-border-btn__content">
40
+ <slot />
41
+ </span>
42
+ </Tag>
43
+
44
+ <style>
45
+ .neon-border-btn {
46
+ --neon-speed: 4s;
47
+ position: relative;
48
+ display: inline-flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ text-decoration: none;
52
+ border: none;
53
+ background: transparent;
54
+ border-radius: var(--r-md, 12px);
55
+ cursor: pointer;
56
+ user-select: none;
57
+ transition: transform 0.25s ease;
58
+ }
59
+
60
+ .neon-border-btn:hover {
61
+ transform: translateY(-2px);
62
+ }
63
+
64
+ .neon-border-btn:focus-visible {
65
+ outline: 2px solid var(--neon-accent);
66
+ outline-offset: 4px;
67
+ }
68
+
69
+ .neon-border-btn[disabled],
70
+ .neon-border-btn[aria-disabled="true"] {
71
+ opacity: 0.45;
72
+ cursor: not-allowed;
73
+ pointer-events: none;
74
+ }
75
+
76
+ /* Sizes */
77
+ .neon-border-btn--sm .neon-border-btn__content {
78
+ padding: 0.45rem 1rem;
79
+ font-size: 0.8rem;
80
+ }
81
+ .neon-border-btn--md .neon-border-btn__content {
82
+ padding: 0.75rem 1.6rem;
83
+ font-size: 0.92rem;
84
+ }
85
+ .neon-border-btn--lg .neon-border-btn__content {
86
+ padding: 1rem 2.2rem;
87
+ font-size: 1.05rem;
88
+ }
89
+
90
+ /* Border track & animated beam */
91
+ .neon-border-btn__border {
92
+ position: absolute;
93
+ inset: 0;
94
+ border-radius: inherit;
95
+ padding: 1.5px;
96
+ background: conic-gradient(
97
+ from 0deg,
98
+ transparent 0deg,
99
+ transparent 90deg,
100
+ var(--neon-accent) 180deg,
101
+ transparent 270deg,
102
+ transparent 360deg
103
+ );
104
+ mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
105
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
106
+ mask-composite: exclude;
107
+ -webkit-mask-composite: xor;
108
+ animation: neon-spin var(--neon-speed) linear infinite;
109
+ pointer-events: none;
110
+ }
111
+
112
+ .neon-border-btn__glow {
113
+ position: absolute;
114
+ inset: -3px;
115
+ border-radius: inherit;
116
+ background: radial-gradient(circle, var(--neon-accent), transparent 70%);
117
+ opacity: 0;
118
+ filter: blur(14px);
119
+ transition: opacity 0.3s ease;
120
+ pointer-events: none;
121
+ }
122
+
123
+ .neon-border-btn:hover .neon-border-btn__glow {
124
+ opacity: 0.5;
125
+ }
126
+
127
+ .neon-border-btn__content {
128
+ position: relative;
129
+ z-index: 2;
130
+ display: inline-flex;
131
+ align-items: center;
132
+ gap: var(--sp-2, 0.5rem);
133
+ width: 100%;
134
+ height: 100%;
135
+ background: rgba(10, 10, 12, 0.95);
136
+ border-radius: inherit;
137
+ color: var(--c-text-1, #ffffff);
138
+ font-family: var(--font-sans, system-ui, sans-serif);
139
+ font-weight: 700;
140
+ letter-spacing: 0.03em;
141
+ backdrop-filter: blur(16px);
142
+ transition: background 0.2s ease, color 0.2s ease;
143
+ }
144
+
145
+ .neon-border-btn:hover .neon-border-btn__content {
146
+ background: rgba(16, 16, 20, 0.98);
147
+ color: var(--neon-accent);
148
+ }
149
+
150
+ @keyframes neon-spin {
151
+ to {
152
+ transform: rotate(360deg);
153
+ }
154
+ }
155
+
156
+ @media (prefers-reduced-motion: reduce) {
157
+ .neon-border-btn__border {
158
+ animation: none;
159
+ background: var(--neon-accent);
160
+ }
161
+ }
162
+ </style>
@@ -0,0 +1,199 @@
1
+ ---
2
+ /**
3
+ * RippleButton — Interactive button featuring an expanding click ripple effect with glass styling.
4
+ *
5
+ * @param {'primary' | 'secondary' | 'ghost'} variant - Visual style variant. Default is 'primary'.
6
+ * @param {'sm' | 'md' | 'lg'} size - Button size variant. Default is 'md'.
7
+ * @param {string} href - Optional link destination.
8
+ * @param {boolean} disabled - Whether the button is disabled.
9
+ * @param {string} className - Additional CSS class names.
10
+ */
11
+ interface Props {
12
+ variant?: 'primary' | 'secondary' | 'ghost';
13
+ size?: 'sm' | 'md' | 'lg';
14
+ href?: string;
15
+ disabled?: boolean;
16
+ className?: string;
17
+ }
18
+
19
+ const {
20
+ variant = 'primary',
21
+ size = 'md',
22
+ href,
23
+ disabled = false,
24
+ className = '',
25
+ } = Astro.props;
26
+
27
+ const Tag = href ? 'a' : 'button';
28
+ ---
29
+
30
+ <Tag
31
+ href={href}
32
+ disabled={!href && disabled ? true : undefined}
33
+ aria-disabled={disabled ? 'true' : undefined}
34
+ class:list={['ripple-btn', `ripple-btn--${variant}`, `ripple-btn--${size}`, className]}
35
+ data-ripple-btn
36
+ >
37
+ <span class="ripple-btn__label"><slot /></span>
38
+ <span class="ripple-btn__container" aria-hidden="true"></span>
39
+ </Tag>
40
+
41
+ <style>
42
+ .ripple-btn {
43
+ --btn-primary-bg: linear-gradient(135deg, rgba(184, 134, 11, 0.9), rgba(212, 160, 23, 0.9));
44
+ --btn-primary-color: #050505;
45
+ --btn-secondary-bg: rgba(255, 255, 255, 0.05);
46
+ --btn-secondary-color: var(--c-text-1, #ffffff);
47
+ --btn-ghost-bg: transparent;
48
+ --btn-ghost-color: var(--c-primary-light, #d4a017);
49
+
50
+ position: relative;
51
+ display: inline-flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ overflow: hidden;
55
+ font-family: var(--font-sans, system-ui, sans-serif);
56
+ font-weight: 700;
57
+ text-decoration: none;
58
+ border-radius: var(--r-md, 12px);
59
+ border: 1px solid rgba(255, 255, 255, 0.1);
60
+ cursor: pointer;
61
+ user-select: none;
62
+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
63
+ }
64
+
65
+ .ripple-btn:focus-visible {
66
+ outline: 2px solid var(--c-primary-light, #d4a017);
67
+ outline-offset: 3px;
68
+ }
69
+
70
+ .ripple-btn[disabled],
71
+ .ripple-btn[aria-disabled="true"] {
72
+ opacity: 0.5;
73
+ cursor: not-allowed;
74
+ pointer-events: none;
75
+ }
76
+
77
+ /* Variants */
78
+ .ripple-btn--primary {
79
+ background: var(--btn-primary-bg);
80
+ color: var(--btn-primary-color);
81
+ box-shadow: 0 4px 20px rgba(184, 134, 11, 0.25);
82
+ }
83
+ .ripple-btn--primary:hover {
84
+ transform: translateY(-2px);
85
+ box-shadow: 0 8px 30px rgba(184, 134, 11, 0.4);
86
+ border-color: rgba(254, 243, 199, 0.4);
87
+ }
88
+
89
+ .ripple-btn--secondary {
90
+ background: var(--btn-secondary-bg);
91
+ color: var(--btn-secondary-color);
92
+ backdrop-filter: blur(12px);
93
+ }
94
+ .ripple-btn--secondary:hover {
95
+ background: rgba(255, 255, 255, 0.09);
96
+ border-color: rgba(184, 134, 11, 0.3);
97
+ transform: translateY(-2px);
98
+ }
99
+
100
+ .ripple-btn--ghost {
101
+ background: var(--btn-ghost-bg);
102
+ color: var(--btn-ghost-color);
103
+ border-color: transparent;
104
+ }
105
+ .ripple-btn--ghost:hover {
106
+ background: rgba(184, 134, 11, 0.1);
107
+ border-color: rgba(184, 134, 11, 0.2);
108
+ }
109
+
110
+ /* Sizes */
111
+ .ripple-btn--sm {
112
+ padding: 0.45rem 1rem;
113
+ font-size: 0.8rem;
114
+ letter-spacing: 0.02em;
115
+ }
116
+ .ripple-btn--md {
117
+ padding: 0.75rem 1.6rem;
118
+ font-size: 0.92rem;
119
+ letter-spacing: 0.02em;
120
+ }
121
+ .ripple-btn--lg {
122
+ padding: 1rem 2.2rem;
123
+ font-size: 1.05rem;
124
+ letter-spacing: 0.03em;
125
+ }
126
+
127
+ .ripple-btn__label {
128
+ position: relative;
129
+ z-index: 2;
130
+ display: inline-flex;
131
+ align-items: center;
132
+ gap: var(--sp-2, 0.5rem);
133
+ pointer-events: none;
134
+ }
135
+
136
+ .ripple-btn__container {
137
+ position: absolute;
138
+ inset: 0;
139
+ z-index: 1;
140
+ overflow: hidden;
141
+ pointer-events: none;
142
+ }
143
+
144
+ :global(.ripple-effect) {
145
+ position: absolute;
146
+ border-radius: 50%;
147
+ transform: scale(0);
148
+ animation: ripple-grow 0.6s cubic-bezier(0, 0, 0.2, 1) forwards;
149
+ background: rgba(255, 255, 255, 0.35);
150
+ pointer-events: none;
151
+ }
152
+
153
+ @keyframes ripple-grow {
154
+ to {
155
+ transform: scale(4);
156
+ opacity: 0;
157
+ }
158
+ }
159
+
160
+ @media (prefers-reduced-motion: reduce) {
161
+ .ripple-btn { transition: none; }
162
+ :global(.ripple-effect) { display: none; }
163
+ }
164
+ </style>
165
+
166
+ <script>
167
+ function setupRipples() {
168
+ const buttons = document.querySelectorAll('[data-ripple-btn]');
169
+ buttons.forEach((btn) => {
170
+ if (btn.getAttribute('data-ripple-init')) return;
171
+ btn.setAttribute('data-ripple-init', 'true');
172
+
173
+ btn.addEventListener('pointerdown', (e: Event) => {
174
+ const mouseEvent = e as MouseEvent;
175
+ const target = mouseEvent.currentTarget as HTMLElement;
176
+ const container = target.querySelector('.ripple-btn__container');
177
+ if (!container) return;
178
+
179
+ const rect = target.getBoundingClientRect();
180
+ const size = Math.max(rect.width, rect.height);
181
+ const x = mouseEvent.clientX - rect.left - size / 2;
182
+ const y = mouseEvent.clientY - rect.top - size / 2;
183
+
184
+ const ripple = document.createElement('span');
185
+ ripple.className = 'ripple-effect';
186
+ ripple.style.width = `${size}px`;
187
+ ripple.style.height = `${size}px`;
188
+ ripple.style.left = `${x}px`;
189
+ ripple.style.top = `${y}px`;
190
+
191
+ container.appendChild(ripple);
192
+ setTimeout(() => ripple.remove(), 650);
193
+ });
194
+ });
195
+ }
196
+
197
+ setupRipples();
198
+ document.addEventListener('astro:page-load', setupRipples);
199
+ </script>
@@ -0,0 +1,159 @@
1
+ ---
2
+ /**
3
+ * SlideRevealButton — Interactive action button with a sliding icon drawer and kinetic typography transition.
4
+ *
5
+ * @param {'primary' | 'secondary' | 'accent'} variant - Visual tone variant. Default is 'primary'.
6
+ * @param {'sm' | 'md' | 'lg'} size - Button size variant. Default is 'md'.
7
+ * @param {string} href - Optional link destination.
8
+ * @param {string} icon - SVG or character icon. Default is '→'.
9
+ * @param {boolean} disabled - Whether the button is disabled.
10
+ * @param {string} className - Additional CSS class names.
11
+ */
12
+ interface Props {
13
+ variant?: 'primary' | 'secondary' | 'accent';
14
+ size?: 'sm' | 'md' | 'lg';
15
+ href?: string;
16
+ icon?: string;
17
+ disabled?: boolean;
18
+ className?: string;
19
+ }
20
+
21
+ const {
22
+ variant = 'primary',
23
+ size = 'md',
24
+ href,
25
+ icon = '→',
26
+ disabled = false,
27
+ className = '',
28
+ } = Astro.props;
29
+
30
+ const Tag = href ? 'a' : 'button';
31
+ ---
32
+
33
+ <Tag
34
+ href={href}
35
+ disabled={!href && disabled ? true : undefined}
36
+ aria-disabled={disabled ? 'true' : undefined}
37
+ class:list={['slide-reveal-btn', `slide-reveal-btn--${variant}`, `slide-reveal-btn--${size}`, className]}
38
+ >
39
+ <span class="slide-reveal-btn__text">
40
+ <slot />
41
+ </span>
42
+ <span class="slide-reveal-btn__icon" aria-hidden="true">
43
+ {icon}
44
+ </span>
45
+ </Tag>
46
+
47
+ <style>
48
+ .slide-reveal-btn {
49
+ position: relative;
50
+ display: inline-flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ overflow: hidden;
54
+ font-family: var(--font-sans, system-ui, sans-serif);
55
+ font-weight: 700;
56
+ text-decoration: none;
57
+ border-radius: var(--r-md, 12px);
58
+ border: 1px solid rgba(255, 255, 255, 0.12);
59
+ cursor: pointer;
60
+ user-select: none;
61
+ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
62
+ }
63
+
64
+ .slide-reveal-btn:focus-visible {
65
+ outline: 2px solid var(--c-primary-light, #d4a017);
66
+ outline-offset: 3px;
67
+ }
68
+
69
+ .slide-reveal-btn[disabled],
70
+ .slide-reveal-btn[aria-disabled="true"] {
71
+ opacity: 0.5;
72
+ cursor: not-allowed;
73
+ pointer-events: none;
74
+ }
75
+
76
+ /* Variants */
77
+ .slide-reveal-btn--primary {
78
+ background: rgba(184, 134, 11, 0.15);
79
+ color: var(--c-accent, #fef3c7);
80
+ border-color: rgba(184, 134, 11, 0.35);
81
+ }
82
+ .slide-reveal-btn--primary:hover {
83
+ background: linear-gradient(135deg, #b8860b, #d4a017);
84
+ color: #050505;
85
+ box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
86
+ }
87
+
88
+ .slide-reveal-btn--secondary {
89
+ background: rgba(255, 255, 255, 0.04);
90
+ color: var(--c-text-1, #ffffff);
91
+ backdrop-filter: blur(12px);
92
+ }
93
+ .slide-reveal-btn--secondary:hover {
94
+ background: rgba(255, 255, 255, 0.1);
95
+ border-color: rgba(255, 255, 255, 0.25);
96
+ }
97
+
98
+ .slide-reveal-btn--accent {
99
+ background: rgba(56, 189, 248, 0.12);
100
+ color: #7dd3fc;
101
+ border-color: rgba(56, 189, 248, 0.3);
102
+ }
103
+ .slide-reveal-btn--accent:hover {
104
+ background: #0284c7;
105
+ color: #ffffff;
106
+ box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
107
+ }
108
+
109
+ /* Sizes */
110
+ .slide-reveal-btn--sm {
111
+ padding: 0.45rem 1.1rem;
112
+ font-size: 0.8rem;
113
+ }
114
+ .slide-reveal-btn--sm .slide-reveal-btn__icon {
115
+ font-size: 0.9rem;
116
+ }
117
+
118
+ .slide-reveal-btn--md {
119
+ padding: 0.75rem 1.6rem;
120
+ font-size: 0.92rem;
121
+ }
122
+ .slide-reveal-btn--md .slide-reveal-btn__icon {
123
+ font-size: 1.05rem;
124
+ }
125
+
126
+ .slide-reveal-btn--lg {
127
+ padding: 1rem 2.2rem;
128
+ font-size: 1.05rem;
129
+ }
130
+ .slide-reveal-btn--lg .slide-reveal-btn__icon {
131
+ font-size: 1.25rem;
132
+ }
133
+
134
+ /* Text & sliding icon */
135
+ .slide-reveal-btn__text {
136
+ display: inline-block;
137
+ transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
138
+ }
139
+
140
+ .slide-reveal-btn__icon {
141
+ display: inline-flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ position: absolute;
145
+ right: 1.2rem;
146
+ opacity: 0;
147
+ transform: translateX(-12px);
148
+ transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
149
+ }
150
+
151
+ .slide-reveal-btn:hover .slide-reveal-btn__text {
152
+ transform: translateX(-12px);
153
+ }
154
+
155
+ .slide-reveal-btn:hover .slide-reveal-btn__icon {
156
+ opacity: 1;
157
+ transform: translateX(0);
158
+ }
159
+ </style>
@@ -19,4 +19,8 @@ export { default as RetroShadowButton } from './RetroShadowButton.astro';
19
19
  export { default as ShimmerButton } from './ShimmerButton.astro';
20
20
  export { default as ShinyButton } from './ShinyButton.astro';
21
21
  export { default as TiltGlowButton } from './TiltGlowButton.astro';
22
+ export { default as NeonBorderButton } from './NeonBorderButton.astro';
23
+ export { default as RippleButton } from './RippleButton.astro';
24
+ export { default as SlideRevealButton } from './SlideRevealButton.astro';
22
25
  export { default as ThreeDPushButton } from './ThreeDPushButton.astro';
26
+
@@ -0,0 +1,176 @@
1
+ ---
2
+ /**
3
+ * GithubRepoCard — Dark glass card highlighting repository statistics, language dot, license, and stars.
4
+ *
5
+ * @param {string} repoName - Repository name (e.g. 'astro-components').
6
+ * @param {string} owner - Repo owner or organization (e.g. 'konstantinWDK').
7
+ * @param {string} description - Brief summary of the repo.
8
+ * @param {string} language - Primary programming language. Default is 'TypeScript'.
9
+ * @param {string} languageColor - Hex color for the language dot. Default is '#3178c6'.
10
+ * @param {number} stars - Star count figure. Default is 248.
11
+ * @param {number} forks - Fork count figure. Default is 32.
12
+ * @param {string} href - Link to the GitHub repository.
13
+ */
14
+ interface Props {
15
+ repoName: string;
16
+ owner?: string;
17
+ description?: string;
18
+ language?: string;
19
+ languageColor?: string;
20
+ stars?: number;
21
+ forks?: number;
22
+ href?: string;
23
+ }
24
+
25
+ const {
26
+ repoName = 'astro-components',
27
+ owner = 'konstantinWDK',
28
+ description = 'Premium open-source UI component library for Astro with glassmorphism and accessibility.',
29
+ language = 'TypeScript',
30
+ languageColor = '#3178c6',
31
+ stars = 248,
32
+ forks = 32,
33
+ href = '#',
34
+ } = Astro.props;
35
+ ---
36
+
37
+ <a href={href} target="_blank" rel="noopener noreferrer" class="gh-repo-card">
38
+ <div class="gh-repo-card__head">
39
+ <svg class="gh-repo-card__icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
40
+ <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z"/>
41
+ <path d="M6 6h10"/>
42
+ <path d="M6 10h10"/>
43
+ </svg>
44
+ <div class="gh-repo-card__title-wrap">
45
+ <span class="owner">{owner}/</span>
46
+ <h4 class="name">{repoName}</h4>
47
+ </div>
48
+ <span class="gh-repo-card__badge">Public</span>
49
+ </div>
50
+
51
+ <p class="gh-repo-card__desc">{description}</p>
52
+
53
+ <div class="gh-repo-card__meta">
54
+ <div class="gh-repo-card__lang">
55
+ <span class="lang-dot" style={`background-color: ${languageColor};`}></span>
56
+ <span>{language}</span>
57
+ </div>
58
+
59
+ <div class="gh-repo-card__stat">
60
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">
61
+ <polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
62
+ </svg>
63
+ <span>{stars.toLocaleString()}</span>
64
+ </div>
65
+
66
+ <div class="gh-repo-card__stat">
67
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
68
+ <line x1="6" y1="3" x2="6" y2="15"/>
69
+ <circle cx="18" cy="6" r="3"/>
70
+ <circle cx="6" cy="18" r="3"/>
71
+ <path d="M18 9a9 9 0 0 1-9 9"/>
72
+ </svg>
73
+ <span>{forks.toLocaleString()}</span>
74
+ </div>
75
+ </div>
76
+ </a>
77
+
78
+ <style>
79
+ .gh-repo-card {
80
+ display: flex;
81
+ flex-direction: column;
82
+ padding: var(--sp-6, 1.5rem);
83
+ background: rgba(255, 255, 255, 0.02);
84
+ backdrop-filter: blur(16px);
85
+ border: 1px solid rgba(255, 255, 255, 0.08);
86
+ border-radius: var(--r-xl, 20px);
87
+ text-decoration: none;
88
+ width: 100%;
89
+ max-width: 360px;
90
+ font-family: var(--font-sans, system-ui, sans-serif);
91
+ transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
92
+ }
93
+
94
+ .gh-repo-card:hover {
95
+ transform: translateY(-3px);
96
+ border-color: rgba(184, 134, 11, 0.4);
97
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
98
+ }
99
+
100
+ .gh-repo-card__head {
101
+ display: flex;
102
+ align-items: center;
103
+ gap: 8px;
104
+ margin-bottom: 8px;
105
+ }
106
+
107
+ .gh-repo-card__icon {
108
+ color: var(--c-primary-light, #d4a017);
109
+ flex-shrink: 0;
110
+ }
111
+
112
+ .gh-repo-card__title-wrap {
113
+ display: flex;
114
+ align-items: baseline;
115
+ gap: 2px;
116
+ overflow: hidden;
117
+ }
118
+
119
+ .gh-repo-card__title-wrap .owner {
120
+ font-size: 0.82rem;
121
+ color: var(--c-text-3, #737373);
122
+ }
123
+
124
+ .gh-repo-card__title-wrap .name {
125
+ font-size: 0.95rem;
126
+ font-weight: 700;
127
+ color: var(--c-primary-light, #d4a017);
128
+ margin: 0;
129
+ }
130
+
131
+ .gh-repo-card__badge {
132
+ margin-left: auto;
133
+ font-size: 0.65rem;
134
+ font-weight: 700;
135
+ color: var(--c-text-2, #a3a3a3);
136
+ background: rgba(255, 255, 255, 0.06);
137
+ border: 1px solid rgba(255, 255, 255, 0.1);
138
+ padding: 2px 8px;
139
+ border-radius: var(--r-full, 9999px);
140
+ }
141
+
142
+ .gh-repo-card__desc {
143
+ font-size: 0.82rem;
144
+ color: var(--c-text-2, #a3a3a3);
145
+ margin: 0 0 16px 0;
146
+ line-height: 1.5;
147
+ flex: 1;
148
+ }
149
+
150
+ .gh-repo-card__meta {
151
+ display: flex;
152
+ align-items: center;
153
+ gap: 16px;
154
+ font-size: 0.78rem;
155
+ color: var(--c-text-3, #737373);
156
+ }
157
+
158
+ .gh-repo-card__lang {
159
+ display: flex;
160
+ align-items: center;
161
+ gap: 6px;
162
+ }
163
+
164
+ .lang-dot {
165
+ width: 10px;
166
+ height: 10px;
167
+ border-radius: 50%;
168
+ }
169
+
170
+ .gh-repo-card__stat {
171
+ display: flex;
172
+ align-items: center;
173
+ gap: 5px;
174
+ color: var(--c-text-2, #a3a3a3);
175
+ }
176
+ </style>