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,20 @@
|
|
|
1
|
+
export { default as AspectRatioBox } from './AspectRatioBox.astro';
|
|
2
|
+
export { default as BackgroundDotPattern } from './BackgroundDotPattern.astro';
|
|
3
|
+
export { default as CircularMask } from './CircularMask.astro';
|
|
4
|
+
export { default as ClickRippleWrapper } from './ClickRippleWrapper.astro';
|
|
5
|
+
export { default as FadeInWrapper } from './FadeInWrapper.astro';
|
|
6
|
+
export { default as FixedRatioImage } from './FixedRatioImage.astro';
|
|
7
|
+
export { default as GlassBlurLayer } from './GlassBlurLayer.astro';
|
|
8
|
+
export { default as GradientBorderMask } from './GradientBorderMask.astro';
|
|
9
|
+
export { default as HoverLift } from './HoverLift.astro';
|
|
10
|
+
export { default as ResponsiveSpacer } from './ResponsiveSpacer.astro';
|
|
11
|
+
export { default as ResponsiveVisToggle } from './ResponsiveVisToggle.astro';
|
|
12
|
+
export { default as ScrollLockParent } from './ScrollLockParent.astro';
|
|
13
|
+
export { default as ScrollMarginTarget } from './ScrollMarginTarget.astro';
|
|
14
|
+
export { default as SlideUpReveal } from './SlideUpReveal.astro';
|
|
15
|
+
export { default as SmoothAnchorLink } from './SmoothAnchorLink.astro';
|
|
16
|
+
export { default as StackLayering } from './StackLayering.astro';
|
|
17
|
+
export { default as StickyObserver } from './StickyObserver.astro';
|
|
18
|
+
export { default as TextTruncate } from './TextTruncate.astro';
|
|
19
|
+
export { default as TruncateSingleLine } from './TruncateSingleLine.astro';
|
|
20
|
+
export { default as VisuallyHidden } from './VisuallyHidden.astro';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { default as AspectRatioBox } from './AspectRatioBox.astro';
|
|
2
|
+
export { default as BackgroundDotPattern } from './BackgroundDotPattern.astro';
|
|
3
|
+
export { default as CircularMask } from './CircularMask.astro';
|
|
4
|
+
export { default as ClickRippleWrapper } from './ClickRippleWrapper.astro';
|
|
5
|
+
export { default as FadeInWrapper } from './FadeInWrapper.astro';
|
|
6
|
+
export { default as FixedRatioImage } from './FixedRatioImage.astro';
|
|
7
|
+
export { default as GlassBlurLayer } from './GlassBlurLayer.astro';
|
|
8
|
+
export { default as GradientBorderMask } from './GradientBorderMask.astro';
|
|
9
|
+
export { default as HoverLift } from './HoverLift.astro';
|
|
10
|
+
export { default as ResponsiveSpacer } from './ResponsiveSpacer.astro';
|
|
11
|
+
export { default as ResponsiveVisToggle } from './ResponsiveVisToggle.astro';
|
|
12
|
+
export { default as ScrollLockParent } from './ScrollLockParent.astro';
|
|
13
|
+
export { default as ScrollMarginTarget } from './ScrollMarginTarget.astro';
|
|
14
|
+
export { default as SlideUpReveal } from './SlideUpReveal.astro';
|
|
15
|
+
export { default as SmoothAnchorLink } from './SmoothAnchorLink.astro';
|
|
16
|
+
export { default as StackLayering } from './StackLayering.astro';
|
|
17
|
+
export { default as StickyObserver } from './StickyObserver.astro';
|
|
18
|
+
export { default as TextTruncate } from './TextTruncate.astro';
|
|
19
|
+
export { default as TruncateSingleLine } from './TruncateSingleLine.astro';
|
|
20
|
+
export { default as VisuallyHidden } from './VisuallyHidden.astro';
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "astro-component-kit",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A premium, open-source accessible UI component library for Astro",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./buttons": {
|
|
15
|
+
"types": "./dist/types/buttons/index.d.ts",
|
|
16
|
+
"import": "./dist/buttons/index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./cards": {
|
|
19
|
+
"types": "./dist/types/cards/index.d.ts",
|
|
20
|
+
"import": "./dist/cards/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./data": {
|
|
23
|
+
"types": "./dist/types/data/index.d.ts",
|
|
24
|
+
"import": "./dist/data/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./feedback": {
|
|
27
|
+
"types": "./dist/types/feedback/index.d.ts",
|
|
28
|
+
"import": "./dist/feedback/index.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./forms": {
|
|
31
|
+
"types": "./dist/types/forms/index.d.ts",
|
|
32
|
+
"import": "./dist/forms/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./layout": {
|
|
35
|
+
"types": "./dist/types/layout/index.d.ts",
|
|
36
|
+
"import": "./dist/layout/index.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./navigation": {
|
|
39
|
+
"types": "./dist/types/navigation/index.d.ts",
|
|
40
|
+
"import": "./dist/navigation/index.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./overlays": {
|
|
43
|
+
"types": "./dist/types/overlays/index.d.ts",
|
|
44
|
+
"import": "./dist/overlays/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./typography": {
|
|
47
|
+
"types": "./dist/types/typography/index.d.ts",
|
|
48
|
+
"import": "./dist/typography/index.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./utilities": {
|
|
51
|
+
"types": "./dist/types/utilities/index.d.ts",
|
|
52
|
+
"import": "./dist/utilities/index.mjs"
|
|
53
|
+
},
|
|
54
|
+
"./global.css": "./dist/styles/global.css"
|
|
55
|
+
},
|
|
56
|
+
"files": [
|
|
57
|
+
"dist/",
|
|
58
|
+
"src/components/lib/"
|
|
59
|
+
],
|
|
60
|
+
"sideEffects": false,
|
|
61
|
+
"scripts": {
|
|
62
|
+
"dev": "astro dev",
|
|
63
|
+
"build": "astro build",
|
|
64
|
+
"build:lib": "node scripts/build-lib.mjs",
|
|
65
|
+
"preview": "astro preview",
|
|
66
|
+
"astro": "astro",
|
|
67
|
+
"typecheck": "tsc --noEmit",
|
|
68
|
+
"prepublishOnly": "npm run build:lib",
|
|
69
|
+
"deploy:ftp": "node scripts/deploy-ftp.mjs"
|
|
70
|
+
},
|
|
71
|
+
"keywords": [
|
|
72
|
+
"astro",
|
|
73
|
+
"astro-component",
|
|
74
|
+
"ui",
|
|
75
|
+
"components",
|
|
76
|
+
"accessible",
|
|
77
|
+
"a11y",
|
|
78
|
+
"glassmorphism",
|
|
79
|
+
"frontend",
|
|
80
|
+
"web"
|
|
81
|
+
],
|
|
82
|
+
"author": "konstantinwdk <entiplay@gmail.com>",
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"repository": {
|
|
85
|
+
"type": "git",
|
|
86
|
+
"url": "https://github.com/konstantinwdk/astro-components"
|
|
87
|
+
},
|
|
88
|
+
"bugs": {
|
|
89
|
+
"url": "https://github.com/konstantinwdk/astro-components/issues"
|
|
90
|
+
},
|
|
91
|
+
"homepage": "https://astrocomponents.dev",
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"astro": ">=5.0.0"
|
|
94
|
+
},
|
|
95
|
+
"publishConfig": {
|
|
96
|
+
"access": "public"
|
|
97
|
+
},
|
|
98
|
+
"engines": {
|
|
99
|
+
"node": ">=22.12.0"
|
|
100
|
+
},
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"astro": ">=5.0.0"
|
|
103
|
+
},
|
|
104
|
+
"devDependencies": {
|
|
105
|
+
"basic-ftp": "^5.3.0",
|
|
106
|
+
"fs-extra": "^11.3.4"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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>
|
|
@@ -0,0 +1,52 @@
|
|
|
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>
|
|
@@ -0,0 +1,87 @@
|
|
|
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>
|
|
@@ -0,0 +1,72 @@
|
|
|
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>
|
|
@@ -0,0 +1,65 @@
|
|
|
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>
|
|
@@ -0,0 +1,60 @@
|
|
|
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>
|