astro-component-kit 0.0.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/LICENSE +21 -0
- package/README.md +262 -0
- package/dist/AnimatedInput.astro +82 -0
- package/dist/Badge.astro +52 -0
- package/dist/GlassButton.astro +87 -0
- package/dist/GlassCard.astro +72 -0
- package/dist/GlassNavbar.astro +65 -0
- package/dist/GlowButton.astro +60 -0
- package/dist/buttons/3dPushButton.astro +136 -0
- package/dist/buttons/AnimatedIconButton.astro +146 -0
- package/dist/buttons/BorderDrawButton.astro +112 -0
- package/dist/buttons/CyberpunkButton.astro +148 -0
- package/dist/buttons/DoubleBorderButton.astro +131 -0
- package/dist/buttons/GhostOutlineButton.astro +109 -0
- package/dist/buttons/GlassButton.astro +165 -0
- package/dist/buttons/GlowButton.astro +119 -0
- package/dist/buttons/LiquidButton.astro +167 -0
- package/dist/buttons/LoadingButton.astro +148 -0
- package/dist/buttons/MagneticButton.astro +134 -0
- package/dist/buttons/MinimalPillButton.astro +102 -0
- package/dist/buttons/NeumorphicButton.astro +158 -0
- package/dist/buttons/PulseButton.astro +111 -0
- package/dist/buttons/RetroArcadeButton.astro +105 -0
- package/dist/buttons/RetroShadowButton.astro +82 -0
- package/dist/buttons/ShimmerButton.astro +113 -0
- package/dist/buttons/ShinyButton.astro +121 -0
- package/dist/buttons/TiltGlowButton.astro +145 -0
- package/dist/buttons/index.mjs +19 -0
- package/dist/buttons/index.ts +19 -0
- package/dist/cards/BlogHorizontalCard.astro +18 -0
- package/dist/cards/CyberFeatureCard.astro +12 -0
- package/dist/cards/EcommerceProductCard.astro +24 -0
- package/dist/cards/GlassCard.astro +17 -0
- package/dist/cards/GlassEventCard.astro +19 -0
- package/dist/cards/GlowPortfolioCard.astro +16 -0
- package/dist/cards/InteractiveTiltCard.astro +25 -0
- package/dist/cards/KanbanItemCard.astro +15 -0
- package/dist/cards/MinimalLinkCard.astro +12 -0
- package/dist/cards/MusicPlayerMini.astro +21 -0
- package/dist/cards/NeumorphicCard.astro +6 -0
- package/dist/cards/NotificationCard.astro +15 -0
- package/dist/cards/PricingCard.astro +17 -0
- package/dist/cards/ProfileCard.astro +17 -0
- package/dist/cards/RetroGameCard.astro +15 -0
- package/dist/cards/StatCard.astro +15 -0
- package/dist/cards/TaskKanbanCard.astro +18 -0
- package/dist/cards/TestimonialCardClean.astro +20 -0
- package/dist/cards/WeatherWidgetCard.astro +17 -0
- package/dist/cards/index.mjs +19 -0
- package/dist/cards/index.ts +19 -0
- package/dist/data/AccordionGroupGlass.astro +21 -0
- package/dist/data/AvatarGroupStack.astro +15 -0
- package/dist/data/CalendarGridView.astro +18 -0
- package/dist/data/DataChipsGroup.astro +16 -0
- package/dist/data/DescriptionListHoriz.astro +14 -0
- package/dist/data/FileTreeView.astro +22 -0
- package/dist/data/GanttChartMinimal.astro +12 -0
- package/dist/data/GlassTable.astro +23 -0
- package/dist/data/KeyValuePillGroup.astro +12 -0
- package/dist/data/PriceCompareTable.astro +22 -0
- package/dist/data/ProgressListSmall.astro +17 -0
- package/dist/data/RatingBreakdownBar.astro +13 -0
- package/dist/data/SparklineStatCard.astro +16 -0
- package/dist/data/StatsGridDashboard.astro +16 -0
- package/dist/data/StepperDataVertical.astro +15 -0
- package/dist/data/TagCloudData.astro +14 -0
- package/dist/data/TimelineHorizSteps.astro +18 -0
- package/dist/data/TreeItemInteractive.astro +18 -0
- package/dist/data/UserDirectoryItem.astro +15 -0
- package/dist/data/VerticalTimeline.astro +21 -0
- package/dist/data/index.mjs +20 -0
- package/dist/data/index.ts +20 -0
- package/dist/feedback/AnimatedCheckmark.astro +13 -0
- package/dist/feedback/Badge.astro +19 -0
- package/dist/feedback/CircleProgress.astro +22 -0
- package/dist/feedback/ConfettiFeedback.astro +18 -0
- package/dist/feedback/CyberGlitchAlert.astro +11 -0
- package/dist/feedback/EmptyStateCard.astro +13 -0
- package/dist/feedback/GlassAlert.astro +20 -0
- package/dist/feedback/GlassModal.astro +19 -0
- package/dist/feedback/GlassProgress.astro +10 -0
- package/dist/feedback/IndicatorBadgeMinimal.astro +10 -0
- package/dist/feedback/NeonSpinner.astro +7 -0
- package/dist/feedback/PulseDot.astro +12 -0
- package/dist/feedback/RatingPill.astro +13 -0
- package/dist/feedback/ShakeErrorGroup.astro +7 -0
- package/dist/feedback/SimpleTooltip.astro +10 -0
- package/dist/feedback/SkeletonList.astro +20 -0
- package/dist/feedback/Spotlight.astro +9 -0
- package/dist/feedback/StepProgress.astro +14 -0
- package/dist/feedback/ToastNotif.astro +11 -0
- package/dist/feedback/TypingIndicator.astro +12 -0
- package/dist/feedback/index.mjs +20 -0
- package/dist/feedback/index.ts +20 -0
- package/dist/forms/AnimatedInput.astro +16 -0
- package/dist/forms/ChipInput.astro +13 -0
- package/dist/forms/ColorPickerInput.astro +13 -0
- package/dist/forms/CurrencyInput.astro +11 -0
- package/dist/forms/CustomRadioGroup.astro +13 -0
- package/dist/forms/CyberpunkCheckbox.astro +15 -0
- package/dist/forms/DragDropUpload.astro +12 -0
- package/dist/forms/ErrorInput.astro +11 -0
- package/dist/forms/FloatingPassword.astro +20 -0
- package/dist/forms/FormGroupVertical.astro +14 -0
- package/dist/forms/GlassSlider.astro +7 -0
- package/dist/forms/GlassTextarea.astro +14 -0
- package/dist/forms/ModernSelect.astro +16 -0
- package/dist/forms/NeumorphicSwitch.astro +55 -0
- package/dist/forms/OTPInput.astro +22 -0
- package/dist/forms/RatingStars.astro +15 -0
- package/dist/forms/SearchReveal.astro +13 -0
- package/dist/forms/SegmentedControl.astro +13 -0
- package/dist/forms/SimpleFileInput.astro +11 -0
- package/dist/forms/StepperInput.astro +14 -0
- package/dist/forms/index.mjs +20 -0
- package/dist/forms/index.ts +20 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/layout/BentoGrid3.astro +14 -0
- package/dist/layout/CenterFixedBox.astro +6 -0
- package/dist/layout/CenteredContainer.astro +8 -0
- package/dist/layout/ClusterHorizontal.astro +6 -0
- package/dist/layout/FeatureHero.astro +17 -0
- package/dist/layout/FooterCenteredMinimal.astro +11 -0
- package/dist/layout/FullBleedSection.astro +6 -0
- package/dist/layout/GalleryGrid4.astro +7 -0
- package/dist/layout/GlassCardGrid.astro +6 -0
- package/dist/layout/GlassSectionHeader.astro +15 -0
- package/dist/layout/LandingSectionSplit.astro +13 -0
- package/dist/layout/MasonryGrid.astro +7 -0
- package/dist/layout/MinimalFooterGrid.astro +20 -0
- package/dist/layout/ScrollSnapSection.astro +7 -0
- package/dist/layout/SectionDividerText.astro +7 -0
- package/dist/layout/SidebarLayoutWrapper.astro +11 -0
- package/dist/layout/SplitScreenLayout.astro +11 -0
- package/dist/layout/StepLayoutVertical.astro +21 -0
- package/dist/layout/StickySidebarWrapper.astro +10 -0
- package/dist/layout/VerticalStack.astro +8 -0
- package/dist/layout/index.mjs +20 -0
- package/dist/layout/index.ts +20 -0
- package/dist/navigation/AnchorSideNav.astro +13 -0
- package/dist/navigation/BottomNavMobile.astro +13 -0
- package/dist/navigation/BreadcrumbsMinimal.astro +16 -0
- package/dist/navigation/BurgerMorphIcon.astro +12 -0
- package/dist/navigation/CommandPaletteUI.astro +17 -0
- package/dist/navigation/DotNavigationSlider.astro +13 -0
- package/dist/navigation/FloatingTabBar.astro +12 -0
- package/dist/navigation/GlassNavbar.astro +19 -0
- package/dist/navigation/LangSwitcherPill.astro +17 -0
- package/dist/navigation/MegaMenuGlass.astro +25 -0
- package/dist/navigation/MinimalSidebar.astro +18 -0
- package/dist/navigation/PaginationGlass.astro +20 -0
- package/dist/navigation/PaginationInfiniteUI.astro +11 -0
- package/dist/navigation/RadialIconMenu.astro +15 -0
- package/dist/navigation/RetroArcadeMenu.astro +12 -0
- package/dist/navigation/ScrollProgressTop.astro +15 -0
- package/dist/navigation/SimpleFooterGlass.astro +21 -0
- package/dist/navigation/TabUnderline.astro +14 -0
- package/dist/navigation/UserProfileNav.astro +21 -0
- package/dist/navigation/VerticalTabs.astro +14 -0
- package/dist/navigation/index.mjs +20 -0
- package/dist/navigation/index.ts +20 -0
- package/dist/overlays/AgeVerificationOverlay.astro +20 -0
- package/dist/overlays/BackdropBlurMask.astro +6 -0
- package/dist/overlays/BottomSheetMobile.astro +16 -0
- package/dist/overlays/CommandDialog.astro +19 -0
- package/dist/overlays/ContextMenuOverlay.astro +17 -0
- package/dist/overlays/CookieBannerGlass.astro +14 -0
- package/dist/overlays/ExitIntentOverlay.astro +19 -0
- package/dist/overlays/FloatingTrayActions.astro +13 -0
- package/dist/overlays/HelpBubbleOverlay.astro +11 -0
- package/dist/overlays/LightboxOverlay.astro +13 -0
- package/dist/overlays/LoadingOverlayFull.astro +10 -0
- package/dist/overlays/MobileNavOverlay.astro +18 -0
- package/dist/overlays/OverlayModal.astro +24 -0
- package/dist/overlays/PopoverMenuGlass.astro +17 -0
- package/dist/overlays/SearchOverlayFullscreen.astro +15 -0
- package/dist/overlays/SideDrawerRight.astro +16 -0
- package/dist/overlays/SplashIntroOverlay.astro +11 -0
- package/dist/overlays/SpotlightIndicator.astro +6 -0
- package/dist/overlays/ToastStackOverlay.astro +12 -0
- package/dist/overlays/TooltipActionTray.astro +14 -0
- package/dist/overlays/index.mjs +20 -0
- package/dist/overlays/index.ts +20 -0
- package/dist/styles/global.css +142 -0
- package/dist/typography/AnimatedUnderlineLink.astro +10 -0
- package/dist/typography/BackgroundClipMask.astro +7 -0
- package/dist/typography/CodeInlineGlass.astro +6 -0
- package/dist/typography/CyberpunkGlitchText.astro +20 -0
- package/dist/typography/DropCapParagraph.astro +7 -0
- package/dist/typography/FadedVerticalText.astro +6 -0
- package/dist/typography/FloatingTextLabel.astro +10 -0
- package/dist/typography/GlassBlockQuote.astro +13 -0
- package/dist/typography/GlassTextReveal.astro +7 -0
- package/dist/typography/GradientHeading.astro +9 -0
- package/dist/typography/GradientUnderlineLink.astro +7 -0
- package/dist/typography/KbdIndicator.astro +6 -0
- package/dist/typography/LetterSpacingWide.astro +6 -0
- package/dist/typography/MinimalListMarkers.astro +10 -0
- package/dist/typography/MonospaceStatLine.astro +6 -0
- package/dist/typography/NeonTextHighlight.astro +6 -0
- package/dist/typography/ShadowRevealText.astro +7 -0
- package/dist/typography/StrokeHeadingOutline.astro +8 -0
- package/dist/typography/Text3DLayer.astro +7 -0
- package/dist/typography/TypewriterText.astro +15 -0
- package/dist/typography/index.mjs +20 -0
- package/dist/typography/index.ts +20 -0
- package/dist/utilities/AspectRatioBox.astro +11 -0
- package/dist/utilities/BackgroundDotPattern.astro +6 -0
- package/dist/utilities/CircularMask.astro +7 -0
- package/dist/utilities/ClickRippleWrapper.astro +7 -0
- package/dist/utilities/FadeInWrapper.astro +11 -0
- package/dist/utilities/FixedRatioImage.astro +7 -0
- package/dist/utilities/GlassBlurLayer.astro +6 -0
- package/dist/utilities/GradientBorderMask.astro +7 -0
- package/dist/utilities/HoverLift.astro +7 -0
- package/dist/utilities/ResponsiveSpacer.astro +15 -0
- package/dist/utilities/ResponsiveVisToggle.astro +11 -0
- package/dist/utilities/ScrollLockParent.astro +11 -0
- package/dist/utilities/ScrollMarginTarget.astro +10 -0
- package/dist/utilities/SlideUpReveal.astro +7 -0
- package/dist/utilities/SmoothAnchorLink.astro +22 -0
- package/dist/utilities/StackLayering.astro +12 -0
- package/dist/utilities/StickyObserver.astro +8 -0
- package/dist/utilities/TextTruncate.astro +10 -0
- package/dist/utilities/TruncateSingleLine.astro +6 -0
- package/dist/utilities/VisuallyHidden.astro +6 -0
- package/dist/utilities/index.mjs +20 -0
- package/dist/utilities/index.ts +20 -0
- package/package.json +108 -0
- package/src/components/lib/AnimatedInput.astro +82 -0
- package/src/components/lib/Badge.astro +52 -0
- package/src/components/lib/GlassButton.astro +87 -0
- package/src/components/lib/GlassCard.astro +72 -0
- package/src/components/lib/GlassNavbar.astro +65 -0
- package/src/components/lib/GlowButton.astro +60 -0
- package/src/components/lib/buttons/3dPushButton.astro +136 -0
- package/src/components/lib/buttons/AnimatedIconButton.astro +146 -0
- package/src/components/lib/buttons/BorderDrawButton.astro +112 -0
- package/src/components/lib/buttons/CyberpunkButton.astro +148 -0
- package/src/components/lib/buttons/DoubleBorderButton.astro +131 -0
- package/src/components/lib/buttons/GhostOutlineButton.astro +109 -0
- package/src/components/lib/buttons/GlassButton.astro +165 -0
- package/src/components/lib/buttons/GlowButton.astro +119 -0
- package/src/components/lib/buttons/LiquidButton.astro +167 -0
- package/src/components/lib/buttons/LoadingButton.astro +148 -0
- package/src/components/lib/buttons/MagneticButton.astro +134 -0
- package/src/components/lib/buttons/MinimalPillButton.astro +102 -0
- package/src/components/lib/buttons/NeumorphicButton.astro +158 -0
- package/src/components/lib/buttons/PulseButton.astro +111 -0
- package/src/components/lib/buttons/RetroArcadeButton.astro +105 -0
- package/src/components/lib/buttons/RetroShadowButton.astro +82 -0
- package/src/components/lib/buttons/ShimmerButton.astro +113 -0
- package/src/components/lib/buttons/ShinyButton.astro +121 -0
- package/src/components/lib/buttons/TiltGlowButton.astro +145 -0
- package/src/components/lib/buttons/index.ts +19 -0
- package/src/components/lib/cards/BlogHorizontalCard.astro +18 -0
- package/src/components/lib/cards/CyberFeatureCard.astro +12 -0
- package/src/components/lib/cards/EcommerceProductCard.astro +24 -0
- package/src/components/lib/cards/GlassCard.astro +17 -0
- package/src/components/lib/cards/GlassEventCard.astro +19 -0
- package/src/components/lib/cards/GlowPortfolioCard.astro +16 -0
- package/src/components/lib/cards/InteractiveTiltCard.astro +25 -0
- package/src/components/lib/cards/KanbanItemCard.astro +15 -0
- package/src/components/lib/cards/MinimalLinkCard.astro +12 -0
- package/src/components/lib/cards/MusicPlayerMini.astro +21 -0
- package/src/components/lib/cards/NeumorphicCard.astro +6 -0
- package/src/components/lib/cards/NotificationCard.astro +15 -0
- package/src/components/lib/cards/PricingCard.astro +17 -0
- package/src/components/lib/cards/ProfileCard.astro +17 -0
- package/src/components/lib/cards/RetroGameCard.astro +15 -0
- package/src/components/lib/cards/StatCard.astro +15 -0
- package/src/components/lib/cards/TaskKanbanCard.astro +18 -0
- package/src/components/lib/cards/TestimonialCardClean.astro +20 -0
- package/src/components/lib/cards/WeatherWidgetCard.astro +17 -0
- package/src/components/lib/cards/index.ts +19 -0
- package/src/components/lib/data/AccordionGroupGlass.astro +21 -0
- package/src/components/lib/data/AvatarGroupStack.astro +15 -0
- package/src/components/lib/data/CalendarGridView.astro +18 -0
- package/src/components/lib/data/DataChipsGroup.astro +16 -0
- package/src/components/lib/data/DescriptionListHoriz.astro +14 -0
- package/src/components/lib/data/FileTreeView.astro +22 -0
- package/src/components/lib/data/GanttChartMinimal.astro +12 -0
- package/src/components/lib/data/GlassTable.astro +23 -0
- package/src/components/lib/data/KeyValuePillGroup.astro +12 -0
- package/src/components/lib/data/PriceCompareTable.astro +22 -0
- package/src/components/lib/data/ProgressListSmall.astro +17 -0
- package/src/components/lib/data/RatingBreakdownBar.astro +13 -0
- package/src/components/lib/data/SparklineStatCard.astro +16 -0
- package/src/components/lib/data/StatsGridDashboard.astro +16 -0
- package/src/components/lib/data/StepperDataVertical.astro +15 -0
- package/src/components/lib/data/TagCloudData.astro +14 -0
- package/src/components/lib/data/TimelineHorizSteps.astro +18 -0
- package/src/components/lib/data/TreeItemInteractive.astro +18 -0
- package/src/components/lib/data/UserDirectoryItem.astro +15 -0
- package/src/components/lib/data/VerticalTimeline.astro +21 -0
- package/src/components/lib/data/index.ts +20 -0
- package/src/components/lib/feedback/AnimatedCheckmark.astro +13 -0
- package/src/components/lib/feedback/Badge.astro +19 -0
- package/src/components/lib/feedback/CircleProgress.astro +22 -0
- package/src/components/lib/feedback/ConfettiFeedback.astro +18 -0
- package/src/components/lib/feedback/CyberGlitchAlert.astro +11 -0
- package/src/components/lib/feedback/EmptyStateCard.astro +13 -0
- package/src/components/lib/feedback/GlassAlert.astro +20 -0
- package/src/components/lib/feedback/GlassModal.astro +19 -0
- package/src/components/lib/feedback/GlassProgress.astro +10 -0
- package/src/components/lib/feedback/IndicatorBadgeMinimal.astro +10 -0
- package/src/components/lib/feedback/NeonSpinner.astro +7 -0
- package/src/components/lib/feedback/PulseDot.astro +12 -0
- package/src/components/lib/feedback/RatingPill.astro +13 -0
- package/src/components/lib/feedback/ShakeErrorGroup.astro +7 -0
- package/src/components/lib/feedback/SimpleTooltip.astro +10 -0
- package/src/components/lib/feedback/SkeletonList.astro +20 -0
- package/src/components/lib/feedback/Spotlight.astro +9 -0
- package/src/components/lib/feedback/StepProgress.astro +14 -0
- package/src/components/lib/feedback/ToastNotif.astro +11 -0
- package/src/components/lib/feedback/TypingIndicator.astro +12 -0
- package/src/components/lib/feedback/index.ts +20 -0
- package/src/components/lib/forms/AnimatedInput.astro +16 -0
- package/src/components/lib/forms/ChipInput.astro +13 -0
- package/src/components/lib/forms/ColorPickerInput.astro +13 -0
- package/src/components/lib/forms/CurrencyInput.astro +11 -0
- package/src/components/lib/forms/CustomRadioGroup.astro +13 -0
- package/src/components/lib/forms/CyberpunkCheckbox.astro +15 -0
- package/src/components/lib/forms/DragDropUpload.astro +12 -0
- package/src/components/lib/forms/ErrorInput.astro +11 -0
- package/src/components/lib/forms/FloatingPassword.astro +20 -0
- package/src/components/lib/forms/FormGroupVertical.astro +14 -0
- package/src/components/lib/forms/GlassSlider.astro +7 -0
- package/src/components/lib/forms/GlassTextarea.astro +14 -0
- package/src/components/lib/forms/ModernSelect.astro +16 -0
- package/src/components/lib/forms/NeumorphicSwitch.astro +55 -0
- package/src/components/lib/forms/OTPInput.astro +22 -0
- package/src/components/lib/forms/RatingStars.astro +15 -0
- package/src/components/lib/forms/SearchReveal.astro +13 -0
- package/src/components/lib/forms/SegmentedControl.astro +13 -0
- package/src/components/lib/forms/SimpleFileInput.astro +11 -0
- package/src/components/lib/forms/StepperInput.astro +14 -0
- package/src/components/lib/forms/index.ts +20 -0
- package/src/components/lib/index.ts +6 -0
- package/src/components/lib/layout/BentoGrid3.astro +14 -0
- package/src/components/lib/layout/CenterFixedBox.astro +6 -0
- package/src/components/lib/layout/CenteredContainer.astro +8 -0
- package/src/components/lib/layout/ClusterHorizontal.astro +6 -0
- package/src/components/lib/layout/FeatureHero.astro +17 -0
- package/src/components/lib/layout/FooterCenteredMinimal.astro +11 -0
- package/src/components/lib/layout/FullBleedSection.astro +6 -0
- package/src/components/lib/layout/GalleryGrid4.astro +7 -0
- package/src/components/lib/layout/GlassCardGrid.astro +6 -0
- package/src/components/lib/layout/GlassSectionHeader.astro +15 -0
- package/src/components/lib/layout/LandingSectionSplit.astro +13 -0
- package/src/components/lib/layout/MasonryGrid.astro +7 -0
- package/src/components/lib/layout/MinimalFooterGrid.astro +20 -0
- package/src/components/lib/layout/ScrollSnapSection.astro +7 -0
- package/src/components/lib/layout/SectionDividerText.astro +7 -0
- package/src/components/lib/layout/SidebarLayoutWrapper.astro +11 -0
- package/src/components/lib/layout/SplitScreenLayout.astro +11 -0
- package/src/components/lib/layout/StepLayoutVertical.astro +21 -0
- package/src/components/lib/layout/StickySidebarWrapper.astro +10 -0
- package/src/components/lib/layout/VerticalStack.astro +8 -0
- package/src/components/lib/layout/index.ts +20 -0
- package/src/components/lib/navigation/AnchorSideNav.astro +13 -0
- package/src/components/lib/navigation/BottomNavMobile.astro +13 -0
- package/src/components/lib/navigation/BreadcrumbsMinimal.astro +16 -0
- package/src/components/lib/navigation/BurgerMorphIcon.astro +12 -0
- package/src/components/lib/navigation/CommandPaletteUI.astro +17 -0
- package/src/components/lib/navigation/DotNavigationSlider.astro +13 -0
- package/src/components/lib/navigation/FloatingTabBar.astro +12 -0
- package/src/components/lib/navigation/GlassNavbar.astro +19 -0
- package/src/components/lib/navigation/LangSwitcherPill.astro +17 -0
- package/src/components/lib/navigation/MegaMenuGlass.astro +25 -0
- package/src/components/lib/navigation/MinimalSidebar.astro +18 -0
- package/src/components/lib/navigation/PaginationGlass.astro +20 -0
- package/src/components/lib/navigation/PaginationInfiniteUI.astro +11 -0
- package/src/components/lib/navigation/RadialIconMenu.astro +15 -0
- package/src/components/lib/navigation/RetroArcadeMenu.astro +12 -0
- package/src/components/lib/navigation/ScrollProgressTop.astro +15 -0
- package/src/components/lib/navigation/SimpleFooterGlass.astro +21 -0
- package/src/components/lib/navigation/TabUnderline.astro +14 -0
- package/src/components/lib/navigation/UserProfileNav.astro +21 -0
- package/src/components/lib/navigation/VerticalTabs.astro +14 -0
- package/src/components/lib/navigation/index.ts +20 -0
- package/src/components/lib/overlays/AgeVerificationOverlay.astro +20 -0
- package/src/components/lib/overlays/BackdropBlurMask.astro +6 -0
- package/src/components/lib/overlays/BottomSheetMobile.astro +16 -0
- package/src/components/lib/overlays/CommandDialog.astro +19 -0
- package/src/components/lib/overlays/ContextMenuOverlay.astro +17 -0
- package/src/components/lib/overlays/CookieBannerGlass.astro +14 -0
- package/src/components/lib/overlays/ExitIntentOverlay.astro +19 -0
- package/src/components/lib/overlays/FloatingTrayActions.astro +13 -0
- package/src/components/lib/overlays/HelpBubbleOverlay.astro +11 -0
- package/src/components/lib/overlays/LightboxOverlay.astro +13 -0
- package/src/components/lib/overlays/LoadingOverlayFull.astro +10 -0
- package/src/components/lib/overlays/MobileNavOverlay.astro +18 -0
- package/src/components/lib/overlays/OverlayModal.astro +24 -0
- package/src/components/lib/overlays/PopoverMenuGlass.astro +17 -0
- package/src/components/lib/overlays/SearchOverlayFullscreen.astro +15 -0
- package/src/components/lib/overlays/SideDrawerRight.astro +16 -0
- package/src/components/lib/overlays/SplashIntroOverlay.astro +11 -0
- package/src/components/lib/overlays/SpotlightIndicator.astro +6 -0
- package/src/components/lib/overlays/ToastStackOverlay.astro +12 -0
- package/src/components/lib/overlays/TooltipActionTray.astro +14 -0
- package/src/components/lib/overlays/index.ts +20 -0
- package/src/components/lib/typography/AnimatedUnderlineLink.astro +10 -0
- package/src/components/lib/typography/BackgroundClipMask.astro +7 -0
- package/src/components/lib/typography/CodeInlineGlass.astro +6 -0
- package/src/components/lib/typography/CyberpunkGlitchText.astro +20 -0
- package/src/components/lib/typography/DropCapParagraph.astro +7 -0
- package/src/components/lib/typography/FadedVerticalText.astro +6 -0
- package/src/components/lib/typography/FloatingTextLabel.astro +10 -0
- package/src/components/lib/typography/GlassBlockQuote.astro +13 -0
- package/src/components/lib/typography/GlassTextReveal.astro +7 -0
- package/src/components/lib/typography/GradientHeading.astro +9 -0
- package/src/components/lib/typography/GradientUnderlineLink.astro +7 -0
- package/src/components/lib/typography/KbdIndicator.astro +6 -0
- package/src/components/lib/typography/LetterSpacingWide.astro +6 -0
- package/src/components/lib/typography/MinimalListMarkers.astro +10 -0
- package/src/components/lib/typography/MonospaceStatLine.astro +6 -0
- package/src/components/lib/typography/NeonTextHighlight.astro +6 -0
- package/src/components/lib/typography/ShadowRevealText.astro +7 -0
- package/src/components/lib/typography/StrokeHeadingOutline.astro +8 -0
- package/src/components/lib/typography/Text3DLayer.astro +7 -0
- package/src/components/lib/typography/TypewriterText.astro +15 -0
- package/src/components/lib/typography/index.ts +20 -0
- package/src/components/lib/utilities/AspectRatioBox.astro +11 -0
- package/src/components/lib/utilities/BackgroundDotPattern.astro +6 -0
- package/src/components/lib/utilities/CircularMask.astro +7 -0
- package/src/components/lib/utilities/ClickRippleWrapper.astro +7 -0
- package/src/components/lib/utilities/FadeInWrapper.astro +11 -0
- package/src/components/lib/utilities/FixedRatioImage.astro +7 -0
- package/src/components/lib/utilities/GlassBlurLayer.astro +6 -0
- package/src/components/lib/utilities/GradientBorderMask.astro +7 -0
- package/src/components/lib/utilities/HoverLift.astro +7 -0
- package/src/components/lib/utilities/ResponsiveSpacer.astro +15 -0
- package/src/components/lib/utilities/ResponsiveVisToggle.astro +11 -0
- package/src/components/lib/utilities/ScrollLockParent.astro +11 -0
- package/src/components/lib/utilities/ScrollMarginTarget.astro +10 -0
- package/src/components/lib/utilities/SlideUpReveal.astro +7 -0
- package/src/components/lib/utilities/SmoothAnchorLink.astro +22 -0
- package/src/components/lib/utilities/StackLayering.astro +12 -0
- package/src/components/lib/utilities/StickyObserver.astro +8 -0
- package/src/components/lib/utilities/TextTruncate.astro +10 -0
- package/src/components/lib/utilities/TruncateSingleLine.astro +6 -0
- package/src/components/lib/utilities/VisuallyHidden.astro +6 -0
- package/src/components/lib/utilities/index.ts +20 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
strength?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
variant = 'secondary',
|
|
15
|
+
size = 'md',
|
|
16
|
+
strength = 0.5,
|
|
17
|
+
disabled = false
|
|
18
|
+
} = Astro.props;
|
|
19
|
+
|
|
20
|
+
const Tag = href ? 'a' : 'button';
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Tag
|
|
24
|
+
href={href}
|
|
25
|
+
type={href ? undefined : type}
|
|
26
|
+
disabled={disabled}
|
|
27
|
+
class={`magnetic-btn magnetic-btn--${variant} magnetic-btn--${size}`}
|
|
28
|
+
data-strength={strength}
|
|
29
|
+
>
|
|
30
|
+
<span class="magnetic-btn__inner">
|
|
31
|
+
<slot />
|
|
32
|
+
</span>
|
|
33
|
+
</Tag>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
.magnetic-btn {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
padding: 0;
|
|
41
|
+
border: none;
|
|
42
|
+
border-radius: var(--r-full, 9999px);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
position: relative;
|
|
46
|
+
transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
|
|
47
|
+
user-select: none;
|
|
48
|
+
font-family: var(--font-sans, inherit);
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.magnetic-btn__inner {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Variants */
|
|
64
|
+
.magnetic-btn--primary {
|
|
65
|
+
background: var(--c-primary, #6366f1);
|
|
66
|
+
color: #fff;
|
|
67
|
+
box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.magnetic-btn--secondary {
|
|
71
|
+
background: rgba(255, 255, 255, 0.05);
|
|
72
|
+
backdrop-filter: blur(12px);
|
|
73
|
+
color: var(--c-text-1, #f8fafc);
|
|
74
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.magnetic-btn--ghost {
|
|
78
|
+
background: transparent;
|
|
79
|
+
color: var(--c-primary-light, #818cf8);
|
|
80
|
+
border: 1px solid rgba(99, 102, 241, 0.3);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.magnetic-btn:hover:not(:disabled) {
|
|
84
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.magnetic-btn:disabled {
|
|
88
|
+
opacity: 0.5;
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
filter: grayscale(1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Sizes */
|
|
94
|
+
.magnetic-btn--sm { min-width: 80px; min-height: 40px; }
|
|
95
|
+
.magnetic-btn--sm .magnetic-btn__inner { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
|
|
96
|
+
|
|
97
|
+
.magnetic-btn--md { min-width: 120px; min-height: 50px; }
|
|
98
|
+
.magnetic-btn--md .magnetic-btn__inner { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
|
|
99
|
+
|
|
100
|
+
.magnetic-btn--lg { min-width: 160px; min-height: 64px; }
|
|
101
|
+
.magnetic-btn--lg .magnetic-btn__inner { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
|
|
102
|
+
</style>
|
|
103
|
+
|
|
104
|
+
<script>
|
|
105
|
+
function initMagnetic() {
|
|
106
|
+
const btns = document.querySelectorAll('.magnetic-btn:not([data-magnetic-init])');
|
|
107
|
+
|
|
108
|
+
btns.forEach(btn => {
|
|
109
|
+
btn.setAttribute('data-magnetic-init', 'true');
|
|
110
|
+
const inner = btn.querySelector('.magnetic-btn__inner') as HTMLElement;
|
|
111
|
+
const strengthAttr = btn.getAttribute('data-strength');
|
|
112
|
+
const strength = strengthAttr ? parseFloat(strengthAttr) : 0.5;
|
|
113
|
+
|
|
114
|
+
btn.addEventListener('mousemove', (e: any) => {
|
|
115
|
+
const rect = btn.getBoundingClientRect();
|
|
116
|
+
const x = (e.clientX - rect.left - rect.width / 2) * strength;
|
|
117
|
+
const y = (e.clientY - rect.top - rect.height / 2) * strength;
|
|
118
|
+
|
|
119
|
+
(btn as HTMLElement).style.transform = `translate(${x}px, ${y}px)`;
|
|
120
|
+
if (inner) inner.style.transform = `translate(${x * 0.4}px, ${y * 0.4}px)`;
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
btn.addEventListener('mouseleave', () => {
|
|
124
|
+
(btn as HTMLElement).style.transform = `translate(0px, 0px)`;
|
|
125
|
+
if (inner) inner.style.transform = `translate(0px, 0px)`;
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Initial and view transition support
|
|
131
|
+
initMagnetic();
|
|
132
|
+
document.addEventListener('astro:after-swap', initMagnetic);
|
|
133
|
+
</script>
|
|
134
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const {
|
|
11
|
+
href,
|
|
12
|
+
type = 'button',
|
|
13
|
+
variant = 'primary',
|
|
14
|
+
size = 'md',
|
|
15
|
+
disabled = false
|
|
16
|
+
} = Astro.props;
|
|
17
|
+
|
|
18
|
+
const Tag = href ? 'a' : 'button';
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<Tag
|
|
22
|
+
href={href}
|
|
23
|
+
type={href ? undefined : type}
|
|
24
|
+
disabled={disabled}
|
|
25
|
+
class={`pill-btn pill-btn--${variant} pill-btn--${size}`}
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</Tag>
|
|
29
|
+
|
|
30
|
+
<style>
|
|
31
|
+
.pill-btn {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
padding: 0.5rem 1.5rem;
|
|
37
|
+
border-radius: var(--r-full, 9999px);
|
|
38
|
+
font-size: 0.85rem;
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
43
|
+
user-select: none;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
border: 1px solid transparent;
|
|
46
|
+
font-family: var(--font-sans, inherit);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pill-btn:hover:not(:disabled) {
|
|
50
|
+
transform: translateY(-1px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pill-btn:active:not(:disabled) {
|
|
54
|
+
transform: translateY(0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.pill-btn:disabled {
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
filter: grayscale(1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Variants */
|
|
64
|
+
.pill-btn--primary {
|
|
65
|
+
background: rgba(255, 255, 255, 0.05);
|
|
66
|
+
color: var(--c-text-2, #94a3b8);
|
|
67
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
68
|
+
}
|
|
69
|
+
.pill-btn--primary:hover:not(:disabled) {
|
|
70
|
+
background: #fff;
|
|
71
|
+
color: #000;
|
|
72
|
+
border-color: #fff;
|
|
73
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pill-btn--secondary {
|
|
77
|
+
background: var(--c-primary, #6366f1);
|
|
78
|
+
color: #fff;
|
|
79
|
+
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
|
|
80
|
+
}
|
|
81
|
+
.pill-btn--secondary:hover:not(:disabled) {
|
|
82
|
+
background: var(--c-primary-light, #818cf8);
|
|
83
|
+
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.pill-btn--ghost {
|
|
87
|
+
background: transparent;
|
|
88
|
+
color: var(--c-text-2, #94a3b8);
|
|
89
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
90
|
+
}
|
|
91
|
+
.pill-btn--ghost:hover:not(:disabled) {
|
|
92
|
+
background: rgba(255, 255, 255, 0.05);
|
|
93
|
+
color: #fff;
|
|
94
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Sizes */
|
|
98
|
+
.pill-btn--sm { padding: 0.35rem 1.2rem; font-size: 0.75rem; }
|
|
99
|
+
.pill-btn--md { padding: 0.55rem 1.6rem; font-size: 0.85rem; }
|
|
100
|
+
.pill-btn--lg { padding: 0.8rem 2.2rem; font-size: 1rem; }
|
|
101
|
+
</style>
|
|
102
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
baseColor?: string;
|
|
6
|
+
variant?: 'convex' | 'concave';
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
baseColor = 'var(--c-bg-2, #111827)',
|
|
15
|
+
variant = 'convex',
|
|
16
|
+
size = 'md',
|
|
17
|
+
disabled = false
|
|
18
|
+
} = Astro.props;
|
|
19
|
+
|
|
20
|
+
const Tag = href ? 'a' : 'button';
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Tag
|
|
24
|
+
href={href}
|
|
25
|
+
type={href ? undefined : type}
|
|
26
|
+
disabled={disabled}
|
|
27
|
+
class={`neu-btn neu-btn--${size} neu-btn--${variant}`}
|
|
28
|
+
style={`--base-color: ${baseColor}`}
|
|
29
|
+
>
|
|
30
|
+
<span class="neu-btn__surface">
|
|
31
|
+
<slot />
|
|
32
|
+
</span>
|
|
33
|
+
</Tag>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
.neu-btn {
|
|
37
|
+
/* Design Tokens */
|
|
38
|
+
--distance: 8px;
|
|
39
|
+
--blur: 16px;
|
|
40
|
+
--shadow-opacity: 0.4;
|
|
41
|
+
--highlight-opacity: 0.05;
|
|
42
|
+
|
|
43
|
+
/* Derived Colors */
|
|
44
|
+
--shadow-dark: rgba(0, 0, 0, var(--shadow-opacity));
|
|
45
|
+
--shadow-light: rgba(255, 255, 255, var(--highlight-opacity));
|
|
46
|
+
--surface-light: color-mix(in srgb, var(--base-color), white 4%);
|
|
47
|
+
--surface-dark: color-mix(in srgb, var(--base-color), black 4%);
|
|
48
|
+
|
|
49
|
+
position: relative;
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
padding: 0;
|
|
54
|
+
border: none;
|
|
55
|
+
background: transparent;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
59
|
+
font-family: var(--font-sans, inherit);
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
letter-spacing: 0.3px;
|
|
62
|
+
color: var(--c-text-1, #f1f5f9);
|
|
63
|
+
border-radius: var(--r-xl, 20px);
|
|
64
|
+
user-select: none;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
outline: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.neu-btn__surface {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
padding: inherit;
|
|
77
|
+
border-radius: inherit;
|
|
78
|
+
background: linear-gradient(145deg, var(--surface-light), var(--surface-dark));
|
|
79
|
+
z-index: 2;
|
|
80
|
+
transition: background 0.4s ease, box-shadow 0.4s ease;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Rim Light highlight */
|
|
84
|
+
.neu-btn__surface::before {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0.5px;
|
|
88
|
+
border-radius: inherit;
|
|
89
|
+
padding: 1px;
|
|
90
|
+
background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%, rgba(0,0,0,0.1));
|
|
91
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
92
|
+
mask-composite: exclude;
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Convex Variant (Default) */
|
|
97
|
+
.neu-btn--convex {
|
|
98
|
+
box-shadow:
|
|
99
|
+
var(--distance) var(--distance) var(--blur) var(--shadow-dark),
|
|
100
|
+
calc(var(--distance) * -0.6) calc(var(--distance) * -0.6) var(--blur) var(--shadow-light);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Concave Variant */
|
|
104
|
+
.neu-btn--concave .neu-btn__surface {
|
|
105
|
+
background: var(--base-color);
|
|
106
|
+
box-shadow:
|
|
107
|
+
inset var(--distance) var(--distance) var(--blur) var(--shadow-dark),
|
|
108
|
+
inset calc(var(--distance) * -0.5) calc(var(--distance) * -0.5) var(--blur) var(--shadow-light);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Hover States */
|
|
112
|
+
.neu-btn:hover:not(:disabled) {
|
|
113
|
+
transform: translateY(-2px);
|
|
114
|
+
filter: brightness(1.08);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.neu-btn--convex:hover:not(:disabled) {
|
|
118
|
+
box-shadow:
|
|
119
|
+
calc(var(--distance) * 1.4) calc(var(--distance) * 1.4) calc(var(--blur) * 1.4) var(--shadow-dark),
|
|
120
|
+
calc(var(--distance) * -0.8) calc(var(--distance) * -0.8) calc(var(--blur) * 1.4) var(--shadow-light);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Active/Pressed States */
|
|
124
|
+
.neu-btn:active:not(:disabled) {
|
|
125
|
+
transform: translateY(0) scale(0.97);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.neu-btn--convex:active:not(:disabled) .neu-btn__surface {
|
|
129
|
+
background: var(--base-color);
|
|
130
|
+
box-shadow:
|
|
131
|
+
inset calc(var(--distance) * 0.5) calc(var(--distance) * 0.5) calc(var(--blur) * 0.5) var(--shadow-dark),
|
|
132
|
+
inset calc(var(--distance) * -0.3) calc(var(--distance) * -0.3) calc(var(--blur) * 0.5) var(--shadow-light);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.neu-btn:disabled {
|
|
136
|
+
opacity: 0.4;
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
filter: grayscale(1);
|
|
139
|
+
box-shadow: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Sizes */
|
|
143
|
+
.neu-btn--sm { padding: 0.5rem 1.4rem; font-size: 0.85rem; --distance: 4px; --blur: 8px; }
|
|
144
|
+
.neu-btn--md { padding: 0.85rem 2.4rem; font-size: 1rem; }
|
|
145
|
+
.neu-btn--lg { padding: 1.2rem 3.5rem; font-size: 1.2rem; --distance: 12px; --blur: 24px; }
|
|
146
|
+
|
|
147
|
+
/* Color scheme adjustments */
|
|
148
|
+
@media (prefers-color-scheme: light) {
|
|
149
|
+
.neu-btn {
|
|
150
|
+
--shadow-opacity: 0.15;
|
|
151
|
+
--highlight-opacity: 0.8;
|
|
152
|
+
--shadow-dark: rgba(163, 177, 198, var(--shadow-opacity));
|
|
153
|
+
--shadow-light: rgba(255, 255, 255, var(--highlight-opacity));
|
|
154
|
+
color: #374151;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
</style>
|
|
158
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
variant = 'primary',
|
|
15
|
+
size = 'md',
|
|
16
|
+
color = '#8b5cf6',
|
|
17
|
+
disabled = false
|
|
18
|
+
} = Astro.props;
|
|
19
|
+
|
|
20
|
+
const Tag = href ? 'a' : 'button';
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Tag
|
|
24
|
+
href={href}
|
|
25
|
+
type={href ? undefined : type}
|
|
26
|
+
disabled={disabled}
|
|
27
|
+
class={`pulse-btn pulse-btn--${variant} pulse-btn--${size}`}
|
|
28
|
+
style={`--pulse-color: ${color}`}
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</Tag>
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
.pulse-btn {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
padding: 0.7rem 1.6rem;
|
|
40
|
+
background: var(--pulse-color);
|
|
41
|
+
color: white;
|
|
42
|
+
border: none;
|
|
43
|
+
border-radius: var(--r-full, 9999px);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
48
|
+
user-select: none;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
font-family: var(--font-sans, inherit);
|
|
51
|
+
isolation: isolate;
|
|
52
|
+
box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--pulse-color), black 10%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pulse-btn::after {
|
|
56
|
+
content: '';
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset: 0;
|
|
59
|
+
border-radius: inherit;
|
|
60
|
+
box-shadow: 0 0 0 0 var(--pulse-color);
|
|
61
|
+
animation: pulse-ring 2s infinite;
|
|
62
|
+
z-index: -1;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes pulse-ring {
|
|
67
|
+
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-color), transparent 30%); }
|
|
68
|
+
70% { box-shadow: 0 0 0 15px color-mix(in srgb, var(--pulse-color), transparent 100%); }
|
|
69
|
+
100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-color), transparent 100%); }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pulse-btn:hover:not(:disabled) {
|
|
73
|
+
transform: scale(1.05);
|
|
74
|
+
filter: brightness(110%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.pulse-btn:active:not(:disabled) {
|
|
78
|
+
transform: scale(0.98);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pulse-btn:disabled {
|
|
82
|
+
opacity: 0.5;
|
|
83
|
+
cursor: not-allowed;
|
|
84
|
+
animation: none;
|
|
85
|
+
filter: grayscale(1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.pulse-btn:disabled::after {
|
|
89
|
+
animation: none;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Variants */
|
|
94
|
+
.pulse-btn--secondary {
|
|
95
|
+
background: #0f172a;
|
|
96
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
97
|
+
box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.95);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pulse-btn--ghost {
|
|
101
|
+
background: transparent;
|
|
102
|
+
border: 1px solid var(--pulse-color);
|
|
103
|
+
color: var(--pulse-color);
|
|
104
|
+
box-shadow: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Sizes */
|
|
108
|
+
.pulse-btn--sm { padding: 0.4rem 1.1rem; font-size: 0.8rem; }
|
|
109
|
+
.pulse-btn--md { padding: 0.7rem 1.6rem; font-size: 0.95rem; }
|
|
110
|
+
.pulse-btn--lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'yellow' | 'red' | 'blue' | 'green';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const {
|
|
11
|
+
href,
|
|
12
|
+
type = 'button',
|
|
13
|
+
variant = 'yellow',
|
|
14
|
+
size = 'md',
|
|
15
|
+
disabled = false
|
|
16
|
+
} = Astro.props;
|
|
17
|
+
|
|
18
|
+
const Tag = href ? 'a' : 'button';
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<Tag
|
|
22
|
+
href={href}
|
|
23
|
+
type={href ? undefined : type}
|
|
24
|
+
disabled={disabled}
|
|
25
|
+
class={`retro-arcade-btn retro-arcade-btn--${variant} retro-arcade-btn--${size}`}
|
|
26
|
+
>
|
|
27
|
+
<span class="retro-arcade-btn__inner">
|
|
28
|
+
<slot />
|
|
29
|
+
</span>
|
|
30
|
+
</Tag>
|
|
31
|
+
|
|
32
|
+
<style>
|
|
33
|
+
.retro-arcade-btn {
|
|
34
|
+
--pixel-size: 4px;
|
|
35
|
+
--main-color: #facc15;
|
|
36
|
+
--shadow-color: #a16207;
|
|
37
|
+
|
|
38
|
+
position: relative;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
padding: 0;
|
|
41
|
+
background: #000;
|
|
42
|
+
border: none;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
box-shadow:
|
|
46
|
+
var(--pixel-size) 0 #000,
|
|
47
|
+
calc(var(--pixel-size) * -1) 0 #000,
|
|
48
|
+
0 var(--pixel-size) #000,
|
|
49
|
+
0 calc(var(--pixel-size) * -1) #000;
|
|
50
|
+
transition: transform 0.1s;
|
|
51
|
+
user-select: none;
|
|
52
|
+
margin: var(--pixel-size);
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.retro-arcade-btn__inner {
|
|
57
|
+
display: block;
|
|
58
|
+
padding: 0.6rem 1.4rem;
|
|
59
|
+
background: var(--main-color);
|
|
60
|
+
color: #000;
|
|
61
|
+
font-family: 'Courier New', monospace;
|
|
62
|
+
font-weight: 900;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
box-shadow:
|
|
65
|
+
inset calc(var(--pixel-size) * -1) calc(var(--pixel-size) * -1) var(--shadow-color);
|
|
66
|
+
transition: all 0.1s;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Interaction */
|
|
70
|
+
.retro-arcade-btn:hover:not(:disabled) .retro-arcade-btn__inner {
|
|
71
|
+
filter: brightness(110%);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.retro-arcade-btn:active:not(:disabled) {
|
|
75
|
+
transform: translate(calc(var(--pixel-size) / 2), calc(var(--pixel-size) / 2));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.retro-arcade-btn:active:not(:disabled) .retro-arcade-btn__inner {
|
|
79
|
+
box-shadow:
|
|
80
|
+
inset var(--pixel-size) var(--pixel-size) var(--shadow-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.retro-arcade-btn:disabled {
|
|
84
|
+
opacity: 0.6;
|
|
85
|
+
cursor: not-allowed;
|
|
86
|
+
filter: grayscale(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Variants */
|
|
90
|
+
.retro-arcade-btn--yellow { --main-color: #facc15; --shadow-color: #a16207; }
|
|
91
|
+
.retro-arcade-btn--red { --main-color: #ef4444; --shadow-color: #991b1b; }
|
|
92
|
+
.retro-arcade-btn--blue { --main-color: #3b82f6; --shadow-color: #1e3a8a; }
|
|
93
|
+
.retro-arcade-btn--green { --main-color: #22c55e; --shadow-color: #14532d; }
|
|
94
|
+
|
|
95
|
+
/* Sizes */
|
|
96
|
+
.retro-arcade-btn--sm { --pixel-size: 2px; }
|
|
97
|
+
.retro-arcade-btn--sm .retro-arcade-btn__inner { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
|
|
98
|
+
|
|
99
|
+
.retro-arcade-btn--md { --pixel-size: 4px; }
|
|
100
|
+
.retro-arcade-btn--md .retro-arcade-btn__inner { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
|
|
101
|
+
|
|
102
|
+
.retro-arcade-btn--lg { --pixel-size: 6px; }
|
|
103
|
+
.retro-arcade-btn--lg .retro-arcade-btn__inner { padding: 1rem 2rem; font-size: 1.1rem; }
|
|
104
|
+
</style>
|
|
105
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'pink' | 'cyan' | 'yellow' | 'lime';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const {
|
|
11
|
+
href,
|
|
12
|
+
type = 'button',
|
|
13
|
+
variant = 'pink',
|
|
14
|
+
size = 'md',
|
|
15
|
+
disabled = false
|
|
16
|
+
} = Astro.props;
|
|
17
|
+
|
|
18
|
+
const Tag = href ? 'a' : 'button';
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<Tag
|
|
22
|
+
href={href}
|
|
23
|
+
type={href ? undefined : type}
|
|
24
|
+
disabled={disabled}
|
|
25
|
+
class={`retro-shadow-btn retro-shadow-btn--${variant} retro-shadow-btn--${size}`}
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</Tag>
|
|
29
|
+
|
|
30
|
+
<style>
|
|
31
|
+
.retro-shadow-btn {
|
|
32
|
+
--btn-bg: #ff7eb3;
|
|
33
|
+
--shadow-color: #000;
|
|
34
|
+
--shadow-offset: 6px;
|
|
35
|
+
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
background: var(--btn-bg);
|
|
41
|
+
color: #000;
|
|
42
|
+
border: 3px solid #000;
|
|
43
|
+
font-family: var(--font-sans, inherit);
|
|
44
|
+
font-weight: 800;
|
|
45
|
+
text-transform: uppercase;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
transition: all 0.1s;
|
|
49
|
+
box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
|
|
50
|
+
user-select: none;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.retro-shadow-btn:hover:not(:disabled) {
|
|
55
|
+
transform: translate(calc(var(--shadow-offset) * -0.2), calc(var(--shadow-offset) * -0.2));
|
|
56
|
+
box-shadow: calc(var(--shadow-offset) * 1.2) calc(var(--shadow-offset) * 1.2) 0 var(--shadow-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.retro-shadow-btn:active:not(:disabled) {
|
|
60
|
+
transform: translate(calc(var(--shadow-offset) * 0.5), calc(var(--shadow-offset) * 0.5));
|
|
61
|
+
box-shadow: calc(var(--shadow-offset) * 0.5) calc(var(--shadow-offset) * 0.5) 0 var(--shadow-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.retro-shadow-btn:disabled {
|
|
65
|
+
opacity: 0.6;
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
filter: grayscale(0.5);
|
|
68
|
+
box-shadow: 2px 2px 0 var(--shadow-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Variants (90s Palette) */
|
|
72
|
+
.retro-shadow-btn--pink { --btn-bg: #ff7eb3; }
|
|
73
|
+
.retro-shadow-btn--cyan { --btn-bg: #00f5ff; }
|
|
74
|
+
.retro-shadow-btn--yellow { --btn-bg: #fff01f; }
|
|
75
|
+
.retro-shadow-btn--lime { --btn-bg: #bfff00; }
|
|
76
|
+
|
|
77
|
+
/* Sizes */
|
|
78
|
+
.retro-shadow-btn--sm { padding: 0.4rem 1rem; font-size: 0.85rem; --shadow-offset: 4px; border-width: 2px; }
|
|
79
|
+
.retro-shadow-btn--md { padding: 0.7rem 1.6rem; font-size: 1rem; --shadow-offset: 6px; border-width: 3px; }
|
|
80
|
+
.retro-shadow-btn--lg { padding: 1rem 2.2rem; font-size: 1.2rem; --shadow-offset: 8px; border-width: 4px; }
|
|
81
|
+
</style>
|
|
82
|
+
|