astro-component-kit 0.1.1 → 0.3.0
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 +4 -4
- package/package.json +24 -10
- package/src/components/index.ts +15 -9
- package/src/components/lib/AnimatedGalaxy.astro +4 -2
- package/src/components/lib/Galaxy3D.astro +237 -185
- package/src/components/lib/LogoWithGalaxy.astro +2 -2
- package/src/components/lib/buttons/index.ts +4 -1
- package/src/components/lib/cards/index.ts +3 -0
- package/src/components/lib/charts/AreaChart.astro +210 -0
- package/src/components/lib/charts/BarChart.astro +190 -0
- package/src/components/lib/charts/DonutChart.astro +177 -0
- package/src/components/lib/charts/index.ts +6 -0
- package/src/components/lib/data/index.ts +3 -0
- package/src/components/lib/feedback/index.ts +3 -0
- package/src/components/lib/forms/index.ts +3 -0
- package/src/components/lib/index.ts +17 -6
- package/src/components/lib/layout/BentoGrid3.astro +79 -9
- package/src/components/lib/layout/CenterFixedBox.astro +52 -2
- package/src/components/lib/layout/CenteredContainer.astro +44 -5
- package/src/components/lib/layout/ClusterHorizontal.astro +36 -2
- package/src/components/lib/layout/FeatureHero.astro +119 -50
- package/src/components/lib/layout/FooterCenteredMinimal.astro +57 -9
- package/src/components/lib/layout/FullBleedSection.astro +44 -2
- package/src/components/lib/layout/GalleryGrid4.astro +35 -3
- package/src/components/lib/layout/GlassCardGrid.astro +24 -2
- package/src/components/lib/layout/GlassSectionHeader.astro +72 -11
- package/src/components/lib/layout/LandingSectionSplit.astro +83 -8
- package/src/components/lib/layout/MasonryGrid.astro +42 -3
- package/src/components/lib/layout/MinimalFooterGrid.astro +83 -11
- package/src/components/lib/layout/ScrollSnapSection.astro +37 -3
- package/src/components/lib/layout/SectionDividerText.astro +44 -4
- package/src/components/lib/layout/SidebarLayoutWrapper.astro +62 -7
- package/src/components/lib/layout/SplitScreenLayout.astro +62 -6
- package/src/components/lib/layout/StepLayoutVertical.astro +83 -10
- package/src/components/lib/layout/StickySidebarWrapper.astro +69 -6
- package/src/components/lib/layout/VerticalStack.astro +35 -5
- package/src/components/lib/layout/index.ts +17 -14
- package/src/components/lib/navigation/index.ts +3 -0
- package/src/components/lib/overlays/index.ts +3 -0
- package/src/components/lib/sections/ContactGlassForm.astro +361 -0
- package/src/components/lib/sections/CtaAppDownload.astro +258 -0
- package/src/components/lib/sections/CtaGlowBanner.astro +267 -0
- package/src/components/lib/sections/FaqAccordionSection.astro +349 -0
- package/src/components/lib/sections/FeatureBentoGrid.astro +449 -0
- package/src/components/lib/sections/FeatureTimelineFlow.astro +254 -0
- package/src/components/lib/sections/PricingComparisonMatrix.astro +468 -0
- package/src/components/lib/sections/PricingTierCards.astro +256 -0
- package/src/components/lib/sections/StatsMetricShowcase.astro +332 -0
- package/src/components/lib/sections/TeamGridSection.astro +333 -0
- package/src/components/lib/sections/TestimonialWallGlass.astro +406 -0
- package/src/components/lib/sections/index.ts +22 -0
- package/src/components/lib/typography/index.ts +3 -0
- package/src/components/lib/AnimatedInput.astro +0 -82
- package/src/components/lib/Badge.astro +0 -52
- package/src/components/lib/GlassButton.astro +0 -87
- package/src/components/lib/GlassCard.astro +0 -72
- package/src/components/lib/GlassNavbar.astro +0 -67
- package/src/components/lib/GlowButton.astro +0 -60
- /package/src/components/lib/buttons/{3dPushButton.astro → ThreeDPushButton.astro} +0 -0
|
@@ -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>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
// src/components/lib/GlassNavbar.astro
|
|
3
|
-
import LogoWithGalaxy from './LogoWithGalaxy.astro';
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
brandHref?: string;
|
|
7
|
-
}
|
|
8
|
-
const { brandHref = '/' } = Astro.props;
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
<header class="glass-nav">
|
|
12
|
-
<div class="glass-nav__inner">
|
|
13
|
-
<a href={brandHref} class="glass-nav__brand">
|
|
14
|
-
<LogoWithGalaxy size="small" />
|
|
15
|
-
</a>
|
|
16
|
-
<nav class="glass-nav__links">
|
|
17
|
-
<slot name="links" />
|
|
18
|
-
</nav>
|
|
19
|
-
<div class="glass-nav__actions">
|
|
20
|
-
<slot name="actions" />
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</header>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
.glass-nav {
|
|
27
|
-
background: rgba(10, 10, 20, 0.7);
|
|
28
|
-
backdrop-filter: blur(20px);
|
|
29
|
-
border: 1px solid rgba(255, 255, 255, 0.07);
|
|
30
|
-
border-radius: 14px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.glass-nav__inner {
|
|
34
|
-
padding: 0 1.5rem;
|
|
35
|
-
height: 70px;
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: 2rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.glass-nav__brand {
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.glass-nav__brand:hover {
|
|
49
|
-
opacity: 0.9;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.glass-nav__links {
|
|
53
|
-
display: flex; align-items: center; gap: 0.25rem; flex: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.glass-nav__links :global(a) {
|
|
57
|
-
padding: 0.4rem 0.8rem; font-size: 0.875rem; font-weight: 500;
|
|
58
|
-
color: #94a3b8; text-decoration: none; border-radius: 8px;
|
|
59
|
-
transition: color 0.2s ease, background 0.2s ease;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.glass-nav__links :global(a:hover) { color: #e2e8f0; background: rgba(255,255,255,0.06); }
|
|
63
|
-
|
|
64
|
-
.glass-nav__actions {
|
|
65
|
-
display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
|
|
66
|
-
}
|
|
67
|
-
</style>
|
|
@@ -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>
|
|
File without changes
|