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,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
color?: string;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const {
|
|
11
|
+
href,
|
|
12
|
+
type = 'button',
|
|
13
|
+
color = '#6366f1',
|
|
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={`push-btn push-btn--${size}`}
|
|
26
|
+
style={`--btn-color: ${color}`}
|
|
27
|
+
>
|
|
28
|
+
<span class="push-btn__shadow"></span>
|
|
29
|
+
<span class="push-btn__edge"></span>
|
|
30
|
+
<span class="push-btn__front">
|
|
31
|
+
<slot />
|
|
32
|
+
</span>
|
|
33
|
+
</Tag>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
.push-btn {
|
|
37
|
+
--depth: 8px;
|
|
38
|
+
position: relative;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
padding: 0;
|
|
41
|
+
padding-top: var(--depth); /* Space for the elevated front */
|
|
42
|
+
border: none;
|
|
43
|
+
background: transparent;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
outline-offset: 4px;
|
|
46
|
+
transition: filter 250ms;
|
|
47
|
+
user-select: none;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.push-btn__shadow {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: var(--depth); /* Align with base */
|
|
55
|
+
left: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: calc(100% - var(--depth));
|
|
58
|
+
border-radius: var(--r-md, 12px);
|
|
59
|
+
background: rgba(0, 0, 0, 0.4);
|
|
60
|
+
transform: translateY(2px);
|
|
61
|
+
filter: blur(4px);
|
|
62
|
+
transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.push-btn__edge {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: var(--depth); /* Align with base */
|
|
68
|
+
left: 0;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: calc(100% - var(--depth));
|
|
71
|
+
border-radius: var(--r-md, 12px);
|
|
72
|
+
background: linear-gradient(
|
|
73
|
+
to left,
|
|
74
|
+
color-mix(in srgb, var(--btn-color), black 30%) 0%,
|
|
75
|
+
color-mix(in srgb, var(--btn-color), black 15%) 8%,
|
|
76
|
+
color-mix(in srgb, var(--btn-color), black 15%) 92%,
|
|
77
|
+
color-mix(in srgb, var(--btn-color), black 30%) 100%
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.push-btn__front {
|
|
82
|
+
display: block;
|
|
83
|
+
position: relative;
|
|
84
|
+
padding: 12px 32px;
|
|
85
|
+
border-radius: var(--r-md, 12px);
|
|
86
|
+
font-size: 1rem;
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
color: white;
|
|
89
|
+
background: var(--btn-color);
|
|
90
|
+
transform: translateY(calc(var(--depth) * -1));
|
|
91
|
+
transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
|
|
92
|
+
font-family: var(--font-sans, inherit);
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.push-btn:hover:not(:disabled) {
|
|
98
|
+
filter: brightness(110%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.push-btn:hover:not(:disabled) .push-btn__front {
|
|
102
|
+
transform: translateY(calc(var(--depth) * -1.2));
|
|
103
|
+
transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.push-btn:hover:not(:disabled) .push-btn__shadow {
|
|
107
|
+
transform: translateY(4px);
|
|
108
|
+
transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.push-btn:active:not(:disabled) .push-btn__front {
|
|
112
|
+
transform: translateY(-2px);
|
|
113
|
+
transition: transform 34ms;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.push-btn:active:not(:disabled) .push-btn__shadow {
|
|
117
|
+
transform: translateY(1px);
|
|
118
|
+
transition: transform 34ms;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.push-btn:disabled {
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
filter: grayscale(1) opacity(0.5);
|
|
124
|
+
box-shadow: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Sizes */
|
|
128
|
+
.push-btn--sm { --depth: 5px; }
|
|
129
|
+
.push-btn--sm .push-btn__front { padding: 8px 18px; font-size: 0.85rem; }
|
|
130
|
+
|
|
131
|
+
.push-btn--md { --depth: 8px; }
|
|
132
|
+
.push-btn--md .push-btn__front { padding: 12px 32px; font-size: 1rem; }
|
|
133
|
+
|
|
134
|
+
.push-btn--lg { --depth: 12px; }
|
|
135
|
+
.push-btn--lg .push-btn__front { padding: 16px 42px; font-size: 1.15rem; }
|
|
136
|
+
</style>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
iconPos?: 'left' | 'right';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
variant = 'primary',
|
|
15
|
+
size = 'md',
|
|
16
|
+
iconPos = 'right',
|
|
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:list={[
|
|
28
|
+
"icon-anim-btn",
|
|
29
|
+
`icon-anim-btn--${variant}`,
|
|
30
|
+
`icon-anim-btn--${size}`,
|
|
31
|
+
`icon-anim-btn--${iconPos}`
|
|
32
|
+
]}
|
|
33
|
+
>
|
|
34
|
+
<span class="icon-anim-btn__inner">
|
|
35
|
+
{iconPos === 'left' && (
|
|
36
|
+
<span class="icon-anim-btn__icon">
|
|
37
|
+
<slot name="icon">
|
|
38
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
39
|
+
<polyline points="15 18 9 12 15 6"></polyline>
|
|
40
|
+
</svg>
|
|
41
|
+
</slot>
|
|
42
|
+
</span>
|
|
43
|
+
)}
|
|
44
|
+
<span class="icon-anim-btn__text"><slot /></span>
|
|
45
|
+
{iconPos === 'right' && (
|
|
46
|
+
<span class="icon-anim-btn__icon">
|
|
47
|
+
<slot name="icon">
|
|
48
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
49
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
50
|
+
</svg>
|
|
51
|
+
</slot>
|
|
52
|
+
</span>
|
|
53
|
+
)}
|
|
54
|
+
</span>
|
|
55
|
+
</Tag>
|
|
56
|
+
|
|
57
|
+
<style>
|
|
58
|
+
.icon-anim-btn {
|
|
59
|
+
--btn-bg: var(--c-primary, #6366f1);
|
|
60
|
+
--btn-color: #fff;
|
|
61
|
+
--btn-hover-bg: var(--c-primary-light, #818cf8);
|
|
62
|
+
|
|
63
|
+
position: relative;
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
background: var(--btn-bg);
|
|
68
|
+
color: var(--btn-color);
|
|
69
|
+
border: none;
|
|
70
|
+
border-radius: var(--r-md, 12px);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
user-select: none;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
font-family: var(--font-sans, inherit);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.icon-anim-btn__inner {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 0.6rem;
|
|
85
|
+
transition: transform 0.3s ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.icon-anim-btn__icon {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
width: 1.25em;
|
|
93
|
+
height: 1.25em;
|
|
94
|
+
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.icon-anim-btn__icon svg {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Hover Animations */
|
|
103
|
+
.icon-anim-btn--right:hover:not(:disabled) .icon-anim-btn__icon {
|
|
104
|
+
transform: translateX(4px) scale(1.1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.icon-anim-btn--left:hover:not(:disabled) .icon-anim-btn__icon {
|
|
108
|
+
transform: translateX(-4px) scale(1.1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.icon-anim-btn:hover:not(:disabled) {
|
|
112
|
+
background: var(--btn-hover-bg);
|
|
113
|
+
box-shadow: 0 4px 20px -5px color-mix(in srgb, var(--btn-bg), transparent 40%);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.icon-anim-btn:active:not(:disabled) {
|
|
117
|
+
transform: scale(0.97);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.icon-anim-btn:disabled {
|
|
121
|
+
opacity: 0.5;
|
|
122
|
+
cursor: not-allowed;
|
|
123
|
+
filter: grayscale(1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Variants */
|
|
127
|
+
.icon-anim-btn--secondary {
|
|
128
|
+
--btn-bg: rgba(255, 255, 255, 0.05);
|
|
129
|
+
--btn-color: var(--c-text-1, #f8fafc);
|
|
130
|
+
--btn-hover-bg: rgba(255, 255, 255, 0.1);
|
|
131
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.icon-anim-btn--ghost {
|
|
135
|
+
--btn-bg: transparent;
|
|
136
|
+
--btn-color: var(--c-primary-light, #818cf8);
|
|
137
|
+
--btn-hover-bg: rgba(99, 102, 241, 0.08);
|
|
138
|
+
border: 1px solid rgba(99, 102, 241, 0.2);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Sizes */
|
|
142
|
+
.icon-anim-btn--sm { padding: 0.45rem 1.2rem; font-size: 0.85rem; }
|
|
143
|
+
.icon-anim-btn--md { padding: 0.75rem 1.8rem; font-size: 1rem; }
|
|
144
|
+
.icon-anim-btn--lg { padding: 1rem 2.5rem; font-size: 1.15rem; }
|
|
145
|
+
</style>
|
|
146
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
color?: string;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const {
|
|
11
|
+
href,
|
|
12
|
+
type = 'button',
|
|
13
|
+
color = '#6366f1',
|
|
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={`draw-btn draw-btn--${size}`}
|
|
26
|
+
style={`--btn-color: ${color}`}
|
|
27
|
+
>
|
|
28
|
+
<span class="draw-btn__text"><slot /></span>
|
|
29
|
+
</Tag>
|
|
30
|
+
|
|
31
|
+
<style>
|
|
32
|
+
.draw-btn {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
background: transparent;
|
|
38
|
+
color: var(--c-text-2, #94a3b8);
|
|
39
|
+
border: 2px solid rgba(255, 255, 255, 0.05);
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
user-select: none;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
font-family: var(--font-sans, inherit);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.draw-btn__text {
|
|
50
|
+
position: relative;
|
|
51
|
+
z-index: 2;
|
|
52
|
+
transition: color 0.5s ease;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.draw-btn::before,
|
|
56
|
+
.draw-btn::after {
|
|
57
|
+
content: '';
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: 0;
|
|
60
|
+
height: 0;
|
|
61
|
+
border: 2px solid transparent;
|
|
62
|
+
z-index: 1;
|
|
63
|
+
transition: width 0.2s 0.2s ease-out, height 0.2s ease-out, border-color 0.1s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.draw-btn::before {
|
|
67
|
+
top: -2px;
|
|
68
|
+
left: -2px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.draw-btn::after {
|
|
72
|
+
bottom: -2px;
|
|
73
|
+
right: -2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.draw-btn:hover:not(:disabled) {
|
|
77
|
+
color: #fff;
|
|
78
|
+
border-color: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.draw-btn:hover:not(:disabled)::before {
|
|
82
|
+
width: calc(100% + 4px);
|
|
83
|
+
height: calc(100% + 4px);
|
|
84
|
+
border-top-color: var(--btn-color);
|
|
85
|
+
border-right-color: var(--btn-color);
|
|
86
|
+
transition: width 0.2s ease-out, height 0.2s 0.2s ease-out;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.draw-btn:hover:not(:disabled)::after {
|
|
90
|
+
width: calc(100% + 4px);
|
|
91
|
+
height: calc(100% + 4px);
|
|
92
|
+
border-bottom-color: var(--btn-color);
|
|
93
|
+
border-left-color: var(--btn-color);
|
|
94
|
+
transition: width 0.2s ease-out, height 0.2s 0.2s ease-out;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.draw-btn:active:not(:disabled) {
|
|
98
|
+
transform: scale(0.98);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.draw-btn:disabled {
|
|
102
|
+
opacity: 0.5;
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
filter: grayscale(1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Sizes */
|
|
108
|
+
.draw-btn--sm { padding: 0.45rem 1.2rem; font-size: 0.85rem; }
|
|
109
|
+
.draw-btn--md { padding: 0.75rem 1.8rem; font-size: 1rem; }
|
|
110
|
+
.draw-btn--lg { padding: 1.1rem 2.5rem; font-size: 1.2rem; }
|
|
111
|
+
</style>
|
|
112
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
primaryColor?: string;
|
|
6
|
+
secondaryColor?: string;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
label?: string; // Used for glitch effect text
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
primaryColor = '#ff003c',
|
|
15
|
+
secondaryColor = '#00e0ff',
|
|
16
|
+
size = 'md',
|
|
17
|
+
label = "READY"
|
|
18
|
+
} = Astro.props;
|
|
19
|
+
|
|
20
|
+
const Tag = href ? 'a' : 'button';
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<Tag
|
|
24
|
+
href={href}
|
|
25
|
+
type={href ? undefined : type}
|
|
26
|
+
class={`cyber-btn cyber-btn--${size}`}
|
|
27
|
+
style={`--primary-color: ${primaryColor}; --secondary-color: ${secondaryColor};`}
|
|
28
|
+
data-text={label}
|
|
29
|
+
>
|
|
30
|
+
<span class="cyber-btn__inner">
|
|
31
|
+
<slot>{label}</slot>
|
|
32
|
+
</span>
|
|
33
|
+
<span class="cyber-btn__glitch"></span>
|
|
34
|
+
<span class="cyber-btn__tag">R25</span>
|
|
35
|
+
</Tag>
|
|
36
|
+
|
|
37
|
+
<style>
|
|
38
|
+
.cyber-btn {
|
|
39
|
+
--glitch-width: 4px;
|
|
40
|
+
position: relative;
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
background: var(--primary-color);
|
|
45
|
+
color: #fff;
|
|
46
|
+
border: none;
|
|
47
|
+
font-family: var(--font-sans, 'Inter', sans-serif);
|
|
48
|
+
font-weight: 800;
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
font-style: italic;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
transition: all 0.2s;
|
|
54
|
+
clip-path: polygon(-10% 0, 100% 0, 100% 65%, 90% 103%, 0 103%, -10% 70%);
|
|
55
|
+
user-select: none;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cyber-btn__inner {
|
|
60
|
+
position: relative;
|
|
61
|
+
z-index: 2;
|
|
62
|
+
padding: 0.8rem 2.2rem;
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Glitch Layers */
|
|
67
|
+
.cyber-btn::before,
|
|
68
|
+
.cyber-btn::after,
|
|
69
|
+
.cyber-btn__glitch {
|
|
70
|
+
content: attr(data-text);
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
opacity: 0;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cyber-btn::before {
|
|
84
|
+
background: var(--secondary-color);
|
|
85
|
+
clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
|
|
86
|
+
transform: translate(-4px, -2px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cyber-btn::after {
|
|
90
|
+
background: #f3f3f3;
|
|
91
|
+
clip-path: polygon(0 95%, 100% 95%, 100% 100%, 0 100%);
|
|
92
|
+
transform: translate(4px, 2px);
|
|
93
|
+
color: #000;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cyber-btn__tag {
|
|
97
|
+
position: absolute;
|
|
98
|
+
padding: 1px 4px;
|
|
99
|
+
letter-spacing: 1px;
|
|
100
|
+
line-height: 1;
|
|
101
|
+
bottom: -2px;
|
|
102
|
+
right: 5%;
|
|
103
|
+
font-weight: 400;
|
|
104
|
+
font-size: 0.6rem;
|
|
105
|
+
background: #000;
|
|
106
|
+
color: var(--secondary-color);
|
|
107
|
+
z-index: 3;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Hover Animations */
|
|
112
|
+
.cyber-btn:hover {
|
|
113
|
+
transform: scale(1.03);
|
|
114
|
+
background: var(--primary-color);
|
|
115
|
+
box-shadow: 10px 0px 0px var(--secondary-color);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cyber-btn:hover::before,
|
|
119
|
+
.cyber-btn:hover::after,
|
|
120
|
+
.cyber-btn:hover .cyber-btn__glitch {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
animation: glitch 0.3s infinite;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.cyber-btn:hover::before {
|
|
126
|
+
animation-direction: alternate-reverse;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cyber-btn:active {
|
|
130
|
+
transform: scale(0.98);
|
|
131
|
+
filter: brightness(1.2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes glitch {
|
|
135
|
+
0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(0); }
|
|
136
|
+
20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); transform: translate(-5px); }
|
|
137
|
+
40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(5px); }
|
|
138
|
+
60% { clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%); transform: translate(-5px); }
|
|
139
|
+
80% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); transform: translate(5px); }
|
|
140
|
+
100% { clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); transform: translate(0); }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Sizes */
|
|
144
|
+
.cyber-btn--sm .cyber-btn__inner { padding: 0.5rem 1.4rem; font-size: 0.85rem; }
|
|
145
|
+
.cyber-btn--md .cyber-btn__inner { padding: 0.8rem 2.2rem; font-size: 1.05rem; }
|
|
146
|
+
.cyber-btn--lg .cyber-btn__inner { padding: 1.1rem 3rem; font-size: 1.25rem; }
|
|
147
|
+
</style>
|
|
148
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
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={`double-border-btn double-border-btn--${variant} double-border-btn--${size}`}
|
|
26
|
+
>
|
|
27
|
+
<span class="double-border-btn__content"><slot /></span>
|
|
28
|
+
</Tag>
|
|
29
|
+
|
|
30
|
+
<style>
|
|
31
|
+
.double-border-btn {
|
|
32
|
+
--offset: 5px;
|
|
33
|
+
--border-color: rgba(255, 255, 255, 0.4);
|
|
34
|
+
--hover-color: #fff;
|
|
35
|
+
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
padding: 0;
|
|
41
|
+
background: transparent;
|
|
42
|
+
color: #fff;
|
|
43
|
+
border: 1px solid var(--border-color);
|
|
44
|
+
border-radius: var(--r-sm, 4px);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
48
|
+
z-index: 1;
|
|
49
|
+
user-select: none;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
font-family: var(--font-sans, inherit);
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.double-border-btn__content {
|
|
56
|
+
display: block;
|
|
57
|
+
padding: 0.6rem 1.6rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.double-border-btn::before {
|
|
61
|
+
content: '';
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: var(--offset);
|
|
64
|
+
left: var(--offset);
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
border: 1px solid var(--border-color);
|
|
68
|
+
border-radius: inherit;
|
|
69
|
+
z-index: -1;
|
|
70
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
71
|
+
opacity: 0.5;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.double-border-btn:hover:not(:disabled) {
|
|
75
|
+
color: var(--hover-color);
|
|
76
|
+
border-color: var(--hover-color);
|
|
77
|
+
transform: translate(calc(var(--offset) * -0.5), calc(var(--offset) * -0.5));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.double-border-btn:hover:not(:disabled)::before {
|
|
81
|
+
top: calc(var(--offset) * 1.5);
|
|
82
|
+
left: calc(var(--offset) * 1.5);
|
|
83
|
+
border-color: var(--hover-color);
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.double-border-btn:active:not(:disabled) {
|
|
88
|
+
transform: translate(0, 0);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.double-border-btn:active:not(:disabled)::before {
|
|
92
|
+
top: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.double-border-btn:disabled {
|
|
97
|
+
opacity: 0.5;
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
filter: grayscale(1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Variants */
|
|
103
|
+
.double-border-btn--primary {
|
|
104
|
+
--border-color: rgba(99, 102, 241, 0.5);
|
|
105
|
+
--hover-color: #818cf8;
|
|
106
|
+
color: #818cf8;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.double-border-btn--secondary {
|
|
110
|
+
--border-color: rgba(255, 255, 255, 0.3);
|
|
111
|
+
--hover-color: #fff;
|
|
112
|
+
color: #fff;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.double-border-btn--ghost {
|
|
116
|
+
--border-color: rgba(255, 255, 255, 0.1);
|
|
117
|
+
--hover-color: rgba(255, 255, 255, 0.8);
|
|
118
|
+
color: rgba(255, 255, 255, 0.6);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Sizes */
|
|
122
|
+
.double-border-btn--sm { --offset: 3px; }
|
|
123
|
+
.double-border-btn--sm .double-border-btn__content { padding: 0.45rem 1rem; font-size: 0.85rem; }
|
|
124
|
+
|
|
125
|
+
.double-border-btn--md { --offset: 5px; }
|
|
126
|
+
.double-border-btn--md .double-border-btn__content { padding: 0.65rem 1.6rem; font-size: 1rem; }
|
|
127
|
+
|
|
128
|
+
.double-border-btn--lg { --offset: 8px; }
|
|
129
|
+
.double-border-btn--lg .double-border-btn__content { padding: 0.85rem 2.2rem; font-size: 1.15rem; }
|
|
130
|
+
</style>
|
|
131
|
+
|