astro-component-kit 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +218 -119
- package/package.json +28 -55
- package/src/components/index.ts +207 -0
- package/src/components/lib/AnimatedGalaxy.astro +185 -0
- package/src/components/lib/Galaxy3D.astro +308 -0
- package/src/components/lib/GlassNavbar.astro +13 -11
- package/src/components/lib/LogoWithGalaxy.astro +63 -0
- package/src/components/lib/buttons/3dPushButton.astro +9 -0
- package/src/components/lib/buttons/AnimatedIconButton.astro +10 -0
- package/src/components/lib/buttons/BorderDrawButton.astro +9 -0
- package/src/components/lib/buttons/CyberpunkButton.astro +10 -0
- package/src/components/lib/buttons/DoubleBorderButton.astro +9 -0
- package/src/components/lib/buttons/GhostOutlineButton.astro +10 -0
- package/src/components/lib/buttons/GlassButton.astro +13 -32
- package/src/components/lib/buttons/GlowButton.astro +9 -0
- package/src/components/lib/buttons/LiquidButton.astro +9 -0
- package/src/components/lib/buttons/LoadingButton.astro +10 -0
- package/src/components/lib/buttons/MagneticButton.astro +10 -0
- package/src/components/lib/buttons/MinimalPillButton.astro +9 -0
- package/src/components/lib/buttons/NeumorphicButton.astro +10 -0
- package/src/components/lib/buttons/PulseButton.astro +10 -0
- package/src/components/lib/buttons/RetroArcadeButton.astro +9 -0
- package/src/components/lib/buttons/RetroShadowButton.astro +9 -0
- package/src/components/lib/buttons/ShimmerButton.astro +9 -0
- package/src/components/lib/buttons/ShinyButton.astro +9 -0
- package/src/components/lib/buttons/TiltGlowButton.astro +10 -0
- package/src/components/lib/cards/BlogHorizontalCard.astro +46 -13
- package/src/components/lib/cards/CyberFeatureCard.astro +50 -6
- package/src/components/lib/cards/EcommerceProductCard.astro +69 -16
- package/src/components/lib/cards/GlassCard.astro +8 -0
- package/src/components/lib/cards/GlassEventCard.astro +53 -12
- package/src/components/lib/cards/GlowPortfolioCard.astro +46 -9
- package/src/components/lib/cards/InteractiveTiltCard.astro +47 -7
- package/src/components/lib/cards/KanbanItemCard.astro +40 -9
- package/src/components/lib/cards/MinimalLinkCard.astro +37 -7
- package/src/components/lib/cards/MusicPlayerMini.astro +54 -14
- package/src/components/lib/cards/NeumorphicCard.astro +32 -2
- package/src/components/lib/cards/NotificationCard.astro +44 -9
- package/src/components/lib/cards/PricingCard.astro +47 -9
- package/src/components/lib/cards/ProfileCard.astro +50 -11
- package/src/components/lib/cards/RetroGameCard.astro +37 -9
- package/src/components/lib/cards/StatCard.astro +43 -8
- package/src/components/lib/cards/TaskKanbanCard.astro +50 -11
- package/src/components/lib/cards/TestimonialCardClean.astro +43 -12
- package/src/components/lib/cards/WeatherWidgetCard.astro +36 -10
- package/src/components/lib/feedback/AnimatedCheckmark.astro +58 -9
- package/src/components/lib/feedback/Badge.astro +47 -12
- package/src/components/lib/feedback/CircleProgress.astro +56 -13
- package/src/components/lib/feedback/ConfettiFeedback.astro +74 -11
- package/src/components/lib/feedback/CyberGlitchAlert.astro +69 -6
- package/src/components/lib/feedback/EmptyStateCard.astro +55 -7
- package/src/components/lib/feedback/GlassAlert.astro +59 -13
- package/src/components/lib/feedback/GlassModal.astro +99 -14
- package/src/components/lib/feedback/GlassProgress.astro +39 -5
- package/src/components/lib/feedback/IndicatorBadgeMinimal.astro +56 -3
- package/src/components/lib/feedback/NeonSpinner.astro +40 -3
- package/src/components/lib/feedback/PulseDot.astro +51 -7
- package/src/components/lib/feedback/RatingPill.astro +38 -8
- package/src/components/lib/feedback/ShakeErrorGroup.astro +44 -3
- package/src/components/lib/feedback/SimpleTooltip.astro +53 -4
- package/src/components/lib/feedback/SkeletonList.astro +59 -13
- package/src/components/lib/feedback/Spotlight.astro +49 -4
- package/src/components/lib/feedback/StepProgress.astro +96 -9
- package/src/components/lib/feedback/ToastNotif.astro +60 -6
- package/src/components/lib/feedback/TypingIndicator.astro +52 -7
- package/src/components/lib/forms/AnimatedInput.astro +47 -5
- package/src/components/lib/forms/ChipInput.astro +116 -8
- package/src/components/lib/forms/ColorPickerInput.astro +53 -6
- package/src/components/lib/forms/CurrencyInput.astro +59 -6
- package/src/components/lib/forms/CustomRadioGroup.astro +61 -9
- package/src/components/lib/forms/CyberpunkCheckbox.astro +64 -8
- package/src/components/lib/forms/DragDropUpload.astro +87 -7
- package/src/components/lib/forms/ErrorInput.astro +31 -4
- package/src/components/lib/forms/FloatingPassword.astro +48 -10
- package/src/components/lib/forms/FormGroupVertical.astro +63 -9
- package/src/components/lib/forms/GlassSlider.astro +84 -3
- package/src/components/lib/forms/GlassTextarea.astro +39 -6
- package/src/components/lib/forms/ModernSelect.astro +66 -10
- package/src/components/lib/forms/NeumorphicSwitch.astro +54 -26
- package/src/components/lib/forms/OTPInput.astro +84 -12
- package/src/components/lib/forms/RatingStars.astro +66 -10
- package/src/components/lib/forms/SearchReveal.astro +44 -6
- package/src/components/lib/forms/SegmentedControl.astro +61 -7
- package/src/components/lib/forms/SimpleFileInput.astro +57 -6
- package/src/components/lib/forms/StepperInput.astro +101 -9
- package/src/components/lib/layout/FeatureHero.astro +70 -6
- package/src/components/lib/layout/FooterCenteredMinimal.astro +5 -2
- package/src/components/lib/navigation/GlassNavbar.astro +10 -5
- package/src/components/lib/navigation/MinimalSidebar.astro +6 -3
- package/src/components/lib/navigation/SimpleFooterGlass.astro +6 -2
- package/src/components/lib/overlays/SplashIntroOverlay.astro +6 -3
- package/src/components/lib/sections/ButtonsShowcase.astro +182 -0
- package/src/components/lib/sections/CardsShowcase.astro +376 -0
- package/src/components/lib/sections/DataShowcase.astro +329 -0
- package/src/components/lib/sections/FeedbackShowcase.astro +320 -0
- package/src/components/lib/sections/FormsShowcase.astro +347 -0
- package/src/components/lib/sections/HeroGlass.astro +202 -0
- package/src/components/lib/sections/HeroGradient.astro +143 -0
- package/src/components/lib/sections/HeroSplit.astro +210 -0
- package/src/components/lib/sections/LayoutShowcase.astro +317 -0
- package/src/components/lib/sections/NavigationShowcase.astro +285 -0
- package/src/components/lib/sections/OverlaysShowcase.astro +373 -0
- package/src/components/lib/sections/TypographyShowcase.astro +239 -0
- package/src/components/lib/sections/index.ts +6 -0
- package/src/components/types.d.ts +6 -0
- package/{dist → src}/styles/global.css +5 -5
- package/dist/AnimatedInput.astro +0 -82
- package/dist/Badge.astro +0 -52
- package/dist/GlassButton.astro +0 -87
- package/dist/GlassCard.astro +0 -72
- package/dist/GlassNavbar.astro +0 -65
- package/dist/GlowButton.astro +0 -60
- package/dist/buttons/3dPushButton.astro +0 -136
- package/dist/buttons/AnimatedIconButton.astro +0 -146
- package/dist/buttons/BorderDrawButton.astro +0 -112
- package/dist/buttons/CyberpunkButton.astro +0 -148
- package/dist/buttons/DoubleBorderButton.astro +0 -131
- package/dist/buttons/GhostOutlineButton.astro +0 -109
- package/dist/buttons/GlassButton.astro +0 -165
- package/dist/buttons/GlowButton.astro +0 -119
- package/dist/buttons/LiquidButton.astro +0 -167
- package/dist/buttons/LoadingButton.astro +0 -148
- package/dist/buttons/MagneticButton.astro +0 -134
- package/dist/buttons/MinimalPillButton.astro +0 -102
- package/dist/buttons/NeumorphicButton.astro +0 -158
- package/dist/buttons/PulseButton.astro +0 -111
- package/dist/buttons/RetroArcadeButton.astro +0 -105
- package/dist/buttons/RetroShadowButton.astro +0 -82
- package/dist/buttons/ShimmerButton.astro +0 -113
- package/dist/buttons/ShinyButton.astro +0 -121
- package/dist/buttons/TiltGlowButton.astro +0 -145
- package/dist/buttons/index.mjs +0 -19
- package/dist/buttons/index.ts +0 -19
- package/dist/cards/BlogHorizontalCard.astro +0 -18
- package/dist/cards/CyberFeatureCard.astro +0 -12
- package/dist/cards/EcommerceProductCard.astro +0 -24
- package/dist/cards/GlassCard.astro +0 -17
- package/dist/cards/GlassEventCard.astro +0 -19
- package/dist/cards/GlowPortfolioCard.astro +0 -16
- package/dist/cards/InteractiveTiltCard.astro +0 -25
- package/dist/cards/KanbanItemCard.astro +0 -15
- package/dist/cards/MinimalLinkCard.astro +0 -12
- package/dist/cards/MusicPlayerMini.astro +0 -21
- package/dist/cards/NeumorphicCard.astro +0 -6
- package/dist/cards/NotificationCard.astro +0 -15
- package/dist/cards/PricingCard.astro +0 -17
- package/dist/cards/ProfileCard.astro +0 -17
- package/dist/cards/RetroGameCard.astro +0 -15
- package/dist/cards/StatCard.astro +0 -15
- package/dist/cards/TaskKanbanCard.astro +0 -18
- package/dist/cards/TestimonialCardClean.astro +0 -20
- package/dist/cards/WeatherWidgetCard.astro +0 -17
- package/dist/cards/index.mjs +0 -19
- package/dist/cards/index.ts +0 -19
- package/dist/data/AccordionGroupGlass.astro +0 -21
- package/dist/data/AvatarGroupStack.astro +0 -15
- package/dist/data/CalendarGridView.astro +0 -18
- package/dist/data/DataChipsGroup.astro +0 -16
- package/dist/data/DescriptionListHoriz.astro +0 -14
- package/dist/data/FileTreeView.astro +0 -22
- package/dist/data/GanttChartMinimal.astro +0 -12
- package/dist/data/GlassTable.astro +0 -23
- package/dist/data/KeyValuePillGroup.astro +0 -12
- package/dist/data/PriceCompareTable.astro +0 -22
- package/dist/data/ProgressListSmall.astro +0 -17
- package/dist/data/RatingBreakdownBar.astro +0 -13
- package/dist/data/SparklineStatCard.astro +0 -16
- package/dist/data/StatsGridDashboard.astro +0 -16
- package/dist/data/StepperDataVertical.astro +0 -15
- package/dist/data/TagCloudData.astro +0 -14
- package/dist/data/TimelineHorizSteps.astro +0 -18
- package/dist/data/TreeItemInteractive.astro +0 -18
- package/dist/data/UserDirectoryItem.astro +0 -15
- package/dist/data/VerticalTimeline.astro +0 -21
- package/dist/data/index.mjs +0 -20
- package/dist/data/index.ts +0 -20
- package/dist/feedback/AnimatedCheckmark.astro +0 -13
- package/dist/feedback/Badge.astro +0 -19
- package/dist/feedback/CircleProgress.astro +0 -22
- package/dist/feedback/ConfettiFeedback.astro +0 -18
- package/dist/feedback/CyberGlitchAlert.astro +0 -11
- package/dist/feedback/EmptyStateCard.astro +0 -13
- package/dist/feedback/GlassAlert.astro +0 -20
- package/dist/feedback/GlassModal.astro +0 -19
- package/dist/feedback/GlassProgress.astro +0 -10
- package/dist/feedback/IndicatorBadgeMinimal.astro +0 -10
- package/dist/feedback/NeonSpinner.astro +0 -7
- package/dist/feedback/PulseDot.astro +0 -12
- package/dist/feedback/RatingPill.astro +0 -13
- package/dist/feedback/ShakeErrorGroup.astro +0 -7
- package/dist/feedback/SimpleTooltip.astro +0 -10
- package/dist/feedback/SkeletonList.astro +0 -20
- package/dist/feedback/Spotlight.astro +0 -9
- package/dist/feedback/StepProgress.astro +0 -14
- package/dist/feedback/ToastNotif.astro +0 -11
- package/dist/feedback/TypingIndicator.astro +0 -12
- package/dist/feedback/index.mjs +0 -20
- package/dist/feedback/index.ts +0 -20
- package/dist/forms/AnimatedInput.astro +0 -16
- package/dist/forms/ChipInput.astro +0 -13
- package/dist/forms/ColorPickerInput.astro +0 -13
- package/dist/forms/CurrencyInput.astro +0 -11
- package/dist/forms/CustomRadioGroup.astro +0 -13
- package/dist/forms/CyberpunkCheckbox.astro +0 -15
- package/dist/forms/DragDropUpload.astro +0 -12
- package/dist/forms/ErrorInput.astro +0 -11
- package/dist/forms/FloatingPassword.astro +0 -20
- package/dist/forms/FormGroupVertical.astro +0 -14
- package/dist/forms/GlassSlider.astro +0 -7
- package/dist/forms/GlassTextarea.astro +0 -14
- package/dist/forms/ModernSelect.astro +0 -16
- package/dist/forms/NeumorphicSwitch.astro +0 -55
- package/dist/forms/OTPInput.astro +0 -22
- package/dist/forms/RatingStars.astro +0 -15
- package/dist/forms/SearchReveal.astro +0 -13
- package/dist/forms/SegmentedControl.astro +0 -13
- package/dist/forms/SimpleFileInput.astro +0 -11
- package/dist/forms/StepperInput.astro +0 -14
- package/dist/forms/index.mjs +0 -20
- package/dist/forms/index.ts +0 -20
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
- package/dist/layout/BentoGrid3.astro +0 -14
- package/dist/layout/CenterFixedBox.astro +0 -6
- package/dist/layout/CenteredContainer.astro +0 -8
- package/dist/layout/ClusterHorizontal.astro +0 -6
- package/dist/layout/FeatureHero.astro +0 -17
- package/dist/layout/FooterCenteredMinimal.astro +0 -11
- package/dist/layout/FullBleedSection.astro +0 -6
- package/dist/layout/GalleryGrid4.astro +0 -7
- package/dist/layout/GlassCardGrid.astro +0 -6
- package/dist/layout/GlassSectionHeader.astro +0 -15
- package/dist/layout/LandingSectionSplit.astro +0 -13
- package/dist/layout/MasonryGrid.astro +0 -7
- package/dist/layout/MinimalFooterGrid.astro +0 -20
- package/dist/layout/ScrollSnapSection.astro +0 -7
- package/dist/layout/SectionDividerText.astro +0 -7
- package/dist/layout/SidebarLayoutWrapper.astro +0 -11
- package/dist/layout/SplitScreenLayout.astro +0 -11
- package/dist/layout/StepLayoutVertical.astro +0 -21
- package/dist/layout/StickySidebarWrapper.astro +0 -10
- package/dist/layout/VerticalStack.astro +0 -8
- package/dist/layout/index.mjs +0 -20
- package/dist/layout/index.ts +0 -20
- package/dist/navigation/AnchorSideNav.astro +0 -13
- package/dist/navigation/BottomNavMobile.astro +0 -13
- package/dist/navigation/BreadcrumbsMinimal.astro +0 -16
- package/dist/navigation/BurgerMorphIcon.astro +0 -12
- package/dist/navigation/CommandPaletteUI.astro +0 -17
- package/dist/navigation/DotNavigationSlider.astro +0 -13
- package/dist/navigation/FloatingTabBar.astro +0 -12
- package/dist/navigation/GlassNavbar.astro +0 -19
- package/dist/navigation/LangSwitcherPill.astro +0 -17
- package/dist/navigation/MegaMenuGlass.astro +0 -25
- package/dist/navigation/MinimalSidebar.astro +0 -18
- package/dist/navigation/PaginationGlass.astro +0 -20
- package/dist/navigation/PaginationInfiniteUI.astro +0 -11
- package/dist/navigation/RadialIconMenu.astro +0 -15
- package/dist/navigation/RetroArcadeMenu.astro +0 -12
- package/dist/navigation/ScrollProgressTop.astro +0 -15
- package/dist/navigation/SimpleFooterGlass.astro +0 -21
- package/dist/navigation/TabUnderline.astro +0 -14
- package/dist/navigation/UserProfileNav.astro +0 -21
- package/dist/navigation/VerticalTabs.astro +0 -14
- package/dist/navigation/index.mjs +0 -20
- package/dist/navigation/index.ts +0 -20
- package/dist/overlays/AgeVerificationOverlay.astro +0 -20
- package/dist/overlays/BackdropBlurMask.astro +0 -6
- package/dist/overlays/BottomSheetMobile.astro +0 -16
- package/dist/overlays/CommandDialog.astro +0 -19
- package/dist/overlays/ContextMenuOverlay.astro +0 -17
- package/dist/overlays/CookieBannerGlass.astro +0 -14
- package/dist/overlays/ExitIntentOverlay.astro +0 -19
- package/dist/overlays/FloatingTrayActions.astro +0 -13
- package/dist/overlays/HelpBubbleOverlay.astro +0 -11
- package/dist/overlays/LightboxOverlay.astro +0 -13
- package/dist/overlays/LoadingOverlayFull.astro +0 -10
- package/dist/overlays/MobileNavOverlay.astro +0 -18
- package/dist/overlays/OverlayModal.astro +0 -24
- package/dist/overlays/PopoverMenuGlass.astro +0 -17
- package/dist/overlays/SearchOverlayFullscreen.astro +0 -15
- package/dist/overlays/SideDrawerRight.astro +0 -16
- package/dist/overlays/SplashIntroOverlay.astro +0 -11
- package/dist/overlays/SpotlightIndicator.astro +0 -6
- package/dist/overlays/ToastStackOverlay.astro +0 -12
- package/dist/overlays/TooltipActionTray.astro +0 -14
- package/dist/overlays/index.mjs +0 -20
- package/dist/overlays/index.ts +0 -20
- package/dist/typography/AnimatedUnderlineLink.astro +0 -10
- package/dist/typography/BackgroundClipMask.astro +0 -7
- package/dist/typography/CodeInlineGlass.astro +0 -6
- package/dist/typography/CyberpunkGlitchText.astro +0 -20
- package/dist/typography/DropCapParagraph.astro +0 -7
- package/dist/typography/FadedVerticalText.astro +0 -6
- package/dist/typography/FloatingTextLabel.astro +0 -10
- package/dist/typography/GlassBlockQuote.astro +0 -13
- package/dist/typography/GlassTextReveal.astro +0 -7
- package/dist/typography/GradientHeading.astro +0 -9
- package/dist/typography/GradientUnderlineLink.astro +0 -7
- package/dist/typography/KbdIndicator.astro +0 -6
- package/dist/typography/LetterSpacingWide.astro +0 -6
- package/dist/typography/MinimalListMarkers.astro +0 -10
- package/dist/typography/MonospaceStatLine.astro +0 -6
- package/dist/typography/NeonTextHighlight.astro +0 -6
- package/dist/typography/ShadowRevealText.astro +0 -7
- package/dist/typography/StrokeHeadingOutline.astro +0 -8
- package/dist/typography/Text3DLayer.astro +0 -7
- package/dist/typography/TypewriterText.astro +0 -15
- package/dist/typography/index.mjs +0 -20
- package/dist/typography/index.ts +0 -20
- package/dist/utilities/AspectRatioBox.astro +0 -11
- package/dist/utilities/BackgroundDotPattern.astro +0 -6
- package/dist/utilities/CircularMask.astro +0 -7
- package/dist/utilities/ClickRippleWrapper.astro +0 -7
- package/dist/utilities/FadeInWrapper.astro +0 -11
- package/dist/utilities/FixedRatioImage.astro +0 -7
- package/dist/utilities/GlassBlurLayer.astro +0 -6
- package/dist/utilities/GradientBorderMask.astro +0 -7
- package/dist/utilities/HoverLift.astro +0 -7
- package/dist/utilities/ResponsiveSpacer.astro +0 -15
- package/dist/utilities/ResponsiveVisToggle.astro +0 -11
- package/dist/utilities/ScrollLockParent.astro +0 -11
- package/dist/utilities/ScrollMarginTarget.astro +0 -10
- package/dist/utilities/SlideUpReveal.astro +0 -7
- package/dist/utilities/SmoothAnchorLink.astro +0 -22
- package/dist/utilities/StackLayering.astro +0 -12
- package/dist/utilities/StickyObserver.astro +0 -8
- package/dist/utilities/TextTruncate.astro +0 -10
- package/dist/utilities/TruncateSingleLine.astro +0 -6
- package/dist/utilities/VisuallyHidden.astro +0 -6
- package/dist/utilities/index.mjs +0 -20
- package/dist/utilities/index.ts +0 -20
- package/src/components/lib/utilities/AspectRatioBox.astro +0 -11
- package/src/components/lib/utilities/BackgroundDotPattern.astro +0 -6
- package/src/components/lib/utilities/CircularMask.astro +0 -7
- package/src/components/lib/utilities/ClickRippleWrapper.astro +0 -7
- package/src/components/lib/utilities/FadeInWrapper.astro +0 -11
- package/src/components/lib/utilities/FixedRatioImage.astro +0 -7
- package/src/components/lib/utilities/GlassBlurLayer.astro +0 -6
- package/src/components/lib/utilities/GradientBorderMask.astro +0 -7
- package/src/components/lib/utilities/HoverLift.astro +0 -7
- package/src/components/lib/utilities/ResponsiveSpacer.astro +0 -15
- package/src/components/lib/utilities/ResponsiveVisToggle.astro +0 -11
- package/src/components/lib/utilities/ScrollLockParent.astro +0 -11
- package/src/components/lib/utilities/ScrollMarginTarget.astro +0 -10
- package/src/components/lib/utilities/SlideUpReveal.astro +0 -7
- package/src/components/lib/utilities/SmoothAnchorLink.astro +0 -22
- package/src/components/lib/utilities/StackLayering.astro +0 -12
- package/src/components/lib/utilities/StickyObserver.astro +0 -8
- package/src/components/lib/utilities/TextTruncate.astro +0 -10
- package/src/components/lib/utilities/TruncateSingleLine.astro +0 -6
- package/src/components/lib/utilities/VisuallyHidden.astro +0 -6
- package/src/components/lib/utilities/index.ts +0 -20
package/dist/AnimatedInput.astro
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/AnimatedInput.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
label: string;
|
|
5
|
-
id: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
name?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
label,
|
|
14
|
-
id,
|
|
15
|
-
type = 'text',
|
|
16
|
-
placeholder = ' ',
|
|
17
|
-
required = false,
|
|
18
|
-
name,
|
|
19
|
-
} = Astro.props;
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
<div class="anim-input-wrap">
|
|
23
|
-
<input
|
|
24
|
-
{id}
|
|
25
|
-
{name}
|
|
26
|
-
{type}
|
|
27
|
-
{placeholder}
|
|
28
|
-
{required}
|
|
29
|
-
class="anim-input"
|
|
30
|
-
autocomplete="off"
|
|
31
|
-
/>
|
|
32
|
-
<label for={id} class="anim-input-label">{label}</label>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
.anim-input-wrap {
|
|
37
|
-
position: relative;
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.anim-input {
|
|
42
|
-
width: 100%;
|
|
43
|
-
padding: 1.1rem 1rem 0.5rem;
|
|
44
|
-
font-family: inherit;
|
|
45
|
-
font-size: 0.95rem;
|
|
46
|
-
color: #e2e8f0;
|
|
47
|
-
background: rgba(255, 255, 255, 0.04);
|
|
48
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
49
|
-
border-radius: 12px;
|
|
50
|
-
outline: none;
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
transition: border-color 0.25s ease, background 0.25s ease;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.anim-input::placeholder { color: transparent; }
|
|
56
|
-
|
|
57
|
-
.anim-input:focus {
|
|
58
|
-
background: rgba(99, 102, 241, 0.06);
|
|
59
|
-
border-color: rgba(99, 102, 241, 0.5);
|
|
60
|
-
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.anim-input-label {
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 0.9rem;
|
|
66
|
-
left: 1rem;
|
|
67
|
-
font-size: 0.9rem;
|
|
68
|
-
color: #64748b;
|
|
69
|
-
pointer-events: none;
|
|
70
|
-
transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.anim-input:focus ~ .anim-input-label,
|
|
74
|
-
.anim-input:not(:placeholder-shown) ~ .anim-input-label {
|
|
75
|
-
top: 0.28rem;
|
|
76
|
-
font-size: 0.68rem;
|
|
77
|
-
color: #818cf8;
|
|
78
|
-
font-weight: 600;
|
|
79
|
-
letter-spacing: 0.04em;
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
}
|
|
82
|
-
</style>
|
package/dist/Badge.astro
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/Badge.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
variant?: 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
5
|
-
dot?: boolean;
|
|
6
|
-
pulse?: boolean;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const { variant = 'default', dot = false, pulse = false } = Astro.props;
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<span class:list={['badge', `badge--${variant}`]}>
|
|
13
|
-
{dot && <span class:list={['badge__dot', { 'badge__dot--pulse': pulse }]}></span>}
|
|
14
|
-
<slot />
|
|
15
|
-
</span>
|
|
16
|
-
|
|
17
|
-
<style>
|
|
18
|
-
.badge {
|
|
19
|
-
display: inline-flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: 0.4rem;
|
|
22
|
-
padding: 0.25rem 0.7rem;
|
|
23
|
-
border-radius: 100px;
|
|
24
|
-
font-size: 0.72rem;
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
letter-spacing: 0.05em;
|
|
27
|
-
text-transform: uppercase;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.badge--default { background: rgba(100,116,139,0.18); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }
|
|
32
|
-
.badge--success { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
|
|
33
|
-
.badge--warning { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
|
|
34
|
-
.badge--danger { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
|
|
35
|
-
.badge--info { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
|
|
36
|
-
|
|
37
|
-
.badge__dot {
|
|
38
|
-
width: 6px; height: 6px;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
background: currentColor;
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.badge__dot--pulse {
|
|
45
|
-
animation: dot-pulse 1.8s ease-in-out infinite;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@keyframes dot-pulse {
|
|
49
|
-
0%, 100% { opacity: 1; transform: scale(1); }
|
|
50
|
-
50% { opacity: 0.4; transform: scale(0.7); }
|
|
51
|
-
}
|
|
52
|
-
</style>
|
package/dist/GlassButton.astro
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/GlassButton.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
href?: string;
|
|
5
|
-
variant?: 'primary' | 'secondary' | 'ghost';
|
|
6
|
-
size?: 'sm' | 'md' | 'lg';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const { href, variant = 'primary', size = 'md', disabled = false } = Astro.props;
|
|
11
|
-
const Tag = href ? 'a' : 'button';
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<Tag
|
|
15
|
-
href={href}
|
|
16
|
-
disabled={disabled}
|
|
17
|
-
class={`glass-btn glass-btn--${variant} glass-btn--${size}`}
|
|
18
|
-
>
|
|
19
|
-
<slot />
|
|
20
|
-
</Tag>
|
|
21
|
-
|
|
22
|
-
<style>
|
|
23
|
-
.glass-btn {
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
gap: 0.5rem;
|
|
28
|
-
font-family: inherit;
|
|
29
|
-
font-weight: 600;
|
|
30
|
-
letter-spacing: 0.02em;
|
|
31
|
-
border-radius: 12px;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
text-decoration: none;
|
|
34
|
-
border: 1px solid transparent;
|
|
35
|
-
position: relative;
|
|
36
|
-
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.glass-btn::before {
|
|
41
|
-
content: '';
|
|
42
|
-
position: absolute;
|
|
43
|
-
inset: -1px;
|
|
44
|
-
border-radius: inherit;
|
|
45
|
-
padding: 1px;
|
|
46
|
-
background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
|
|
47
|
-
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
48
|
-
-webkit-mask-composite: xor;
|
|
49
|
-
mask-composite: exclude;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.glass-btn:hover:not(:disabled) {
|
|
53
|
-
transform: translateY(-2px);
|
|
54
|
-
box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.glass-btn:active:not(:disabled) { transform: translateY(0); }
|
|
58
|
-
.glass-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
59
|
-
|
|
60
|
-
.glass-btn--primary {
|
|
61
|
-
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
62
|
-
color: #fff;
|
|
63
|
-
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.glass-btn--secondary {
|
|
67
|
-
background: rgba(255, 255, 255, 0.08);
|
|
68
|
-
backdrop-filter: blur(12px);
|
|
69
|
-
color: #e2e8f0;
|
|
70
|
-
border-color: rgba(255, 255, 255, 0.12);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.glass-btn--ghost {
|
|
74
|
-
background: transparent;
|
|
75
|
-
color: #a5b4fc;
|
|
76
|
-
border-color: rgba(99, 102, 241, 0.4);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.glass-btn--ghost:hover:not(:disabled) {
|
|
80
|
-
background: rgba(99, 102, 241, 0.12);
|
|
81
|
-
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.glass-btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
|
|
85
|
-
.glass-btn--md { padding: 0.65rem 1.4rem; font-size: 0.9rem; }
|
|
86
|
-
.glass-btn--lg { padding: 0.85rem 1.9rem; font-size: 1rem; }
|
|
87
|
-
</style>
|
package/dist/GlassCard.astro
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/GlassCard.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
title?: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
hoverable?: boolean;
|
|
7
|
-
padding?: 'sm' | 'md' | 'lg';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const { title, subtitle, hoverable = true, padding = 'md' } = Astro.props;
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<div class:list={['glass-card', `glass-card--p${padding}`, { 'glass-card--hoverable': hoverable }]}>
|
|
14
|
-
{title && (
|
|
15
|
-
<div class="glass-card__header">
|
|
16
|
-
<h3 class="glass-card__title">{title}</h3>
|
|
17
|
-
{subtitle && <p class="glass-card__subtitle">{subtitle}</p>}
|
|
18
|
-
</div>
|
|
19
|
-
)}
|
|
20
|
-
<div class="glass-card__body">
|
|
21
|
-
<slot />
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.glass-card {
|
|
27
|
-
background: rgba(255, 255, 255, 0.04);
|
|
28
|
-
backdrop-filter: blur(16px);
|
|
29
|
-
border: 1px solid rgba(255, 255, 255, 0.09);
|
|
30
|
-
border-radius: 20px;
|
|
31
|
-
position: relative;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.glass-card::before {
|
|
37
|
-
content: '';
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: 0; left: 0; right: 0;
|
|
40
|
-
height: 1px;
|
|
41
|
-
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.glass-card--hoverable:hover {
|
|
45
|
-
transform: translateY(-4px);
|
|
46
|
-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.2);
|
|
47
|
-
border-color: rgba(99, 102, 241, 0.25);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.glass-card__header {
|
|
51
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
52
|
-
margin-bottom: 1rem;
|
|
53
|
-
padding-bottom: 0.75rem;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.glass-card__title {
|
|
57
|
-
margin: 0 0 0.25rem;
|
|
58
|
-
font-size: 1.05rem;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
color: #f1f5f9;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.glass-card__subtitle {
|
|
64
|
-
margin: 0;
|
|
65
|
-
font-size: 0.82rem;
|
|
66
|
-
color: #64748b;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.glass-card--psm { padding: 1rem; }
|
|
70
|
-
.glass-card--pmd { padding: 1.5rem; }
|
|
71
|
-
.glass-card--plg { padding: 2rem; }
|
|
72
|
-
</style>
|
package/dist/GlassNavbar.astro
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/GlassNavbar.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
brand?: string;
|
|
5
|
-
brandHref?: string;
|
|
6
|
-
}
|
|
7
|
-
const { brand = 'Astro Components', brandHref = '/' } = Astro.props;
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
<header class="glass-nav">
|
|
11
|
-
<div class="glass-nav__inner">
|
|
12
|
-
<a href={brandHref} class="glass-nav__brand">{brand}</a>
|
|
13
|
-
<nav class="glass-nav__links">
|
|
14
|
-
<slot name="links" />
|
|
15
|
-
</nav>
|
|
16
|
-
<div class="glass-nav__actions">
|
|
17
|
-
<slot name="actions" />
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</header>
|
|
21
|
-
|
|
22
|
-
<style>
|
|
23
|
-
.glass-nav {
|
|
24
|
-
background: rgba(10, 10, 20, 0.7);
|
|
25
|
-
backdrop-filter: blur(20px);
|
|
26
|
-
border: 1px solid rgba(255, 255, 255, 0.07);
|
|
27
|
-
border-radius: 14px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.glass-nav__inner {
|
|
31
|
-
padding: 0 1.5rem;
|
|
32
|
-
height: 56px;
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
gap: 2rem;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.glass-nav__brand {
|
|
39
|
-
font-size: 1rem;
|
|
40
|
-
font-weight: 800;
|
|
41
|
-
color: #f1f5f9;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
background: linear-gradient(135deg, #818cf8, #c084fc);
|
|
44
|
-
-webkit-background-clip: text;
|
|
45
|
-
-webkit-text-fill-color: transparent;
|
|
46
|
-
background-clip: text;
|
|
47
|
-
flex-shrink: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.glass-nav__links {
|
|
51
|
-
display: flex; align-items: center; gap: 0.25rem; flex: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.glass-nav__links :global(a) {
|
|
55
|
-
padding: 0.4rem 0.8rem; font-size: 0.875rem; font-weight: 500;
|
|
56
|
-
color: #94a3b8; text-decoration: none; border-radius: 8px;
|
|
57
|
-
transition: color 0.2s ease, background 0.2s ease;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.glass-nav__links :global(a:hover) { color: #e2e8f0; background: rgba(255,255,255,0.06); }
|
|
61
|
-
|
|
62
|
-
.glass-nav__actions {
|
|
63
|
-
display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
|
|
64
|
-
}
|
|
65
|
-
</style>
|
package/dist/GlowButton.astro
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/GlowButton.astro
|
|
3
|
-
interface Props {
|
|
4
|
-
color?: string;
|
|
5
|
-
href?: string;
|
|
6
|
-
}
|
|
7
|
-
const { color = '#6366f1', href } = Astro.props;
|
|
8
|
-
const Tag = href ? 'a' : 'button';
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
<Tag href={href} class="glow-btn" style={`--glow-color: ${color}`}>
|
|
12
|
-
<slot />
|
|
13
|
-
</Tag>
|
|
14
|
-
|
|
15
|
-
<style>
|
|
16
|
-
.glow-btn {
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
padding: 0.7rem 1.6rem;
|
|
21
|
-
font-family: inherit;
|
|
22
|
-
font-size: 0.9rem;
|
|
23
|
-
font-weight: 700;
|
|
24
|
-
letter-spacing: 0.05em;
|
|
25
|
-
text-transform: uppercase;
|
|
26
|
-
color: #fff;
|
|
27
|
-
background: var(--glow-color);
|
|
28
|
-
border: none;
|
|
29
|
-
border-radius: 10px;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
position: relative;
|
|
33
|
-
transition: transform 0.2s ease;
|
|
34
|
-
box-shadow: 0 0 20px color-mix(in srgb, var(--glow-color) 60%, transparent);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.glow-btn::after {
|
|
38
|
-
content: '';
|
|
39
|
-
position: absolute;
|
|
40
|
-
inset: -3px;
|
|
41
|
-
border-radius: 13px;
|
|
42
|
-
background: var(--glow-color);
|
|
43
|
-
opacity: 0;
|
|
44
|
-
filter: blur(16px);
|
|
45
|
-
transition: opacity 0.3s ease;
|
|
46
|
-
z-index: -1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.glow-btn:hover { transform: translateY(-2px); }
|
|
50
|
-
|
|
51
|
-
.glow-btn:hover::after {
|
|
52
|
-
opacity: 0.5;
|
|
53
|
-
animation: pulse-glow 1.5s ease-in-out infinite;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes pulse-glow {
|
|
57
|
-
0%, 100% { opacity: 0.4; }
|
|
58
|
-
50% { opacity: 0.8; }
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
@@ -1,136 +0,0 @@
|
|
|
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>
|
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
|