@shipsite.dev/components 0.1.0 → 0.2.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/package.json +7 -1
- package/src/blog/BlogArticle.tsx +14 -0
- package/src/blog/BlogCTA.tsx +19 -0
- package/src/blog/BlogCTABanner.tsx +25 -0
- package/src/blog/BlogFAQ.tsx +32 -0
- package/src/blog/BlogIndex.tsx +24 -0
- package/src/blog/BlogIntro.tsx +9 -0
- package/src/blog/BlogTable.tsx +27 -0
- package/src/blog/BlogTip.tsx +15 -0
- package/src/blog/StartFreeNowCTA.tsx +29 -0
- package/src/context/ShipSiteProvider.tsx +78 -0
- package/src/context/ThemeProvider.tsx +26 -0
- package/src/index.ts +63 -0
- package/src/layout/Footer.tsx +68 -0
- package/src/layout/Header.tsx +95 -0
- package/src/legal/LegalPage.tsx +35 -0
- package/src/lib/utils.ts +6 -0
- package/src/marketing/AlternatingFeatures.tsx +74 -0
- package/src/marketing/BannerCTA.tsx +43 -0
- package/src/marketing/BentoGrid.tsx +51 -0
- package/src/marketing/CalloutCard.tsx +25 -0
- package/src/marketing/CardGrid.tsx +29 -0
- package/src/marketing/Carousel.tsx +81 -0
- package/src/marketing/Companies.tsx +71 -0
- package/src/marketing/FAQ.tsx +50 -0
- package/src/marketing/Features.tsx +47 -0
- package/src/marketing/Gallery.tsx +55 -0
- package/src/marketing/Hero.tsx +60 -0
- package/src/marketing/PageHero.tsx +27 -0
- package/src/marketing/PricingSection.tsx +146 -0
- package/src/marketing/SocialProof.tsx +38 -0
- package/src/marketing/Stats.tsx +57 -0
- package/src/marketing/Steps.tsx +53 -0
- package/src/marketing/TabsSection.tsx +84 -0
- package/src/marketing/Testimonial.tsx +29 -0
- package/src/marketing/Testimonials.tsx +60 -0
- package/src/styles/utils.css +84 -0
- package/src/ui/accordion.tsx +66 -0
- package/src/ui/badge.tsx +55 -0
- package/src/ui/button.tsx +60 -0
- package/src/ui/card.tsx +75 -0
- package/src/ui/footer.tsx +51 -0
- package/src/ui/glow.tsx +48 -0
- package/src/ui/item.tsx +51 -0
- package/src/ui/mockup.tsx +64 -0
- package/src/ui/navbar.tsx +45 -0
- package/src/ui/section.tsx +15 -0
- package/src/ui/sheet.tsx +145 -0
- package/src/ui/theme-toggle.tsx +52 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
import { Button } from '../ui/button';
|
|
4
|
+
import Glow from '../ui/glow';
|
|
5
|
+
|
|
6
|
+
interface BannerCTAProps {
|
|
7
|
+
title: string;
|
|
8
|
+
buttonText: string;
|
|
9
|
+
buttonHref?: string;
|
|
10
|
+
subtext?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function BannerCTA({ title, buttonText, buttonHref, subtext, children }: BannerCTAProps) {
|
|
15
|
+
return (
|
|
16
|
+
<Section>
|
|
17
|
+
<div className="container-main">
|
|
18
|
+
<div className="relative overflow-hidden glass-4 rounded-3xl p-12 md:p-16 text-center">
|
|
19
|
+
<Glow variant="center" />
|
|
20
|
+
<div className="relative z-10">
|
|
21
|
+
<h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>
|
|
22
|
+
{subtext && <p className="text-muted-foreground mb-8 max-w-xl mx-auto">{subtext}</p>}
|
|
23
|
+
{buttonHref && (
|
|
24
|
+
<Button asChild size="lg">
|
|
25
|
+
<a href={buttonHref}>{buttonText}</a>
|
|
26
|
+
</Button>
|
|
27
|
+
)}
|
|
28
|
+
{children}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</Section>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function BannerFeature({ title, icon }: { title: string; icon?: string }) {
|
|
37
|
+
return (
|
|
38
|
+
<div className="flex items-center gap-2 text-muted-foreground text-sm">
|
|
39
|
+
{icon && <span>{icon}</span>}
|
|
40
|
+
<span>{title}</span>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
import { cn } from '../lib/utils';
|
|
4
|
+
|
|
5
|
+
interface BentoItemProps {
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
span?: 1 | 2;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function BentoItem({ title, description, image, span = 1, children }: BentoItemProps) {
|
|
14
|
+
return (
|
|
15
|
+
<div className={cn(
|
|
16
|
+
'glass-1 hover:glass-2 rounded-2xl p-6 md:p-8 transition-all overflow-hidden flex flex-col',
|
|
17
|
+
span === 2 && 'md:col-span-2',
|
|
18
|
+
)}>
|
|
19
|
+
<h3 className="text-lg font-semibold text-foreground mb-2">{title}</h3>
|
|
20
|
+
{description && <p className="text-sm text-muted-foreground mb-4 leading-relaxed">{description}</p>}
|
|
21
|
+
{image && (
|
|
22
|
+
<div className="mt-auto -mx-6 -mb-6 md:-mx-8 md:-mb-8">
|
|
23
|
+
<img src={image} alt={title} className="w-full" />
|
|
24
|
+
</div>
|
|
25
|
+
)}
|
|
26
|
+
{children}
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface BentoGridProps {
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function BentoGrid({ title, description, children }: BentoGridProps) {
|
|
38
|
+
return (
|
|
39
|
+
<Section>
|
|
40
|
+
<div className="container-main">
|
|
41
|
+
{(title || description) && (
|
|
42
|
+
<div className="text-center mb-12">
|
|
43
|
+
{title && <h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>}
|
|
44
|
+
{description && <p className="text-lg text-muted-foreground max-w-2xl mx-auto">{description}</p>}
|
|
45
|
+
</div>
|
|
46
|
+
)}
|
|
47
|
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 auto-rows-fr">{children}</div>
|
|
48
|
+
</div>
|
|
49
|
+
</Section>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { cn } from '../lib/utils';
|
|
3
|
+
|
|
4
|
+
interface CalloutCardProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
variant?: 'info' | 'success' | 'warning';
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function CalloutCard({ title, description, variant = 'info', children }: CalloutCardProps) {
|
|
12
|
+
const variantStyles = {
|
|
13
|
+
info: 'bg-primary/5 border-primary/20',
|
|
14
|
+
success: 'bg-emerald-50 border-emerald-200',
|
|
15
|
+
warning: 'bg-amber-50 border-amber-200',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div className={cn('rounded-xl border p-6 my-8', variantStyles[variant])}>
|
|
20
|
+
<h3 className="font-semibold text-foreground mb-2">{title}</h3>
|
|
21
|
+
<p className="text-sm text-muted-foreground">{description}</p>
|
|
22
|
+
{children}
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CardGridItemProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
href?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function CardGridItem({ title, description, icon, href }: CardGridItemProps) {
|
|
11
|
+
const Wrapper = href ? 'a' : 'div';
|
|
12
|
+
return (
|
|
13
|
+
<Wrapper {...(href ? { href } : {})} className="block p-6 rounded-xl glass-1 hover:glass-2 transition-all">
|
|
14
|
+
{icon && <div className="mb-3 text-primary">{icon}</div>}
|
|
15
|
+
<h3 className="font-semibold text-foreground mb-2">{title}</h3>
|
|
16
|
+
<p className="text-sm text-muted-foreground">{description}</p>
|
|
17
|
+
</Wrapper>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface CardGridProps {
|
|
22
|
+
columns?: 2 | 3 | 4;
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function CardGrid({ columns = 3, children }: CardGridProps) {
|
|
27
|
+
const gridCols = { 2: 'md:grid-cols-2', 3: 'md:grid-cols-3', 4: 'md:grid-cols-2 lg:grid-cols-4' };
|
|
28
|
+
return <div className={`grid grid-cols-1 ${gridCols[columns]} gap-6 py-8`}>{children}</div>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
5
|
+
import { Section } from '../ui/section';
|
|
6
|
+
import { cn } from '../lib/utils';
|
|
7
|
+
|
|
8
|
+
interface CarouselItemProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
image?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function CarouselItem({ title, description, image, children }: CarouselItemProps) {
|
|
16
|
+
return (
|
|
17
|
+
<div className="glass-1 rounded-2xl overflow-hidden flex-shrink-0 w-[85vw] max-w-[400px] snap-center">
|
|
18
|
+
{image && <img src={image} alt={title || ''} className="w-full aspect-video object-cover" />}
|
|
19
|
+
<div className="p-6">
|
|
20
|
+
{title && <h3 className="text-lg font-semibold text-foreground mb-2">{title}</h3>}
|
|
21
|
+
{description && <p className="text-sm text-muted-foreground leading-relaxed">{description}</p>}
|
|
22
|
+
{children}
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface CarouselProps {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function Carousel({ title, description, children }: CarouselProps) {
|
|
35
|
+
const scrollRef = useRef<HTMLDivElement>(null);
|
|
36
|
+
|
|
37
|
+
const scroll = (direction: 'left' | 'right') => {
|
|
38
|
+
if (!scrollRef.current) return;
|
|
39
|
+
const amount = scrollRef.current.offsetWidth * 0.8;
|
|
40
|
+
scrollRef.current.scrollBy({
|
|
41
|
+
left: direction === 'left' ? -amount : amount,
|
|
42
|
+
behavior: 'smooth',
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<Section>
|
|
48
|
+
<div className="container-main">
|
|
49
|
+
{(title || description) && (
|
|
50
|
+
<div className="text-center mb-12">
|
|
51
|
+
{title && <h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>}
|
|
52
|
+
{description && <p className="text-lg text-muted-foreground max-w-2xl mx-auto">{description}</p>}
|
|
53
|
+
</div>
|
|
54
|
+
)}
|
|
55
|
+
<div className="relative group">
|
|
56
|
+
<div
|
|
57
|
+
ref={scrollRef}
|
|
58
|
+
className="flex gap-6 overflow-x-auto snap-x snap-mandatory scrollbar-none pb-4 -mx-4 px-4"
|
|
59
|
+
style={{ scrollbarWidth: 'none' }}
|
|
60
|
+
>
|
|
61
|
+
{children}
|
|
62
|
+
</div>
|
|
63
|
+
<button
|
|
64
|
+
onClick={() => scroll('left')}
|
|
65
|
+
className="absolute left-2 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full glass-2 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity"
|
|
66
|
+
aria-label="Previous"
|
|
67
|
+
>
|
|
68
|
+
<ChevronLeft className="size-5 text-foreground" />
|
|
69
|
+
</button>
|
|
70
|
+
<button
|
|
71
|
+
onClick={() => scroll('right')}
|
|
72
|
+
className="absolute right-2 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full glass-2 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity"
|
|
73
|
+
aria-label="Next"
|
|
74
|
+
>
|
|
75
|
+
<ChevronRight className="size-5 text-foreground" />
|
|
76
|
+
</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</Section>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
import { Badge } from '../ui/badge';
|
|
4
|
+
import { cn } from '../lib/utils';
|
|
5
|
+
|
|
6
|
+
interface LogoItem {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
name?: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
badge?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface CompaniesProps {
|
|
16
|
+
title?: string;
|
|
17
|
+
logos: LogoItem[];
|
|
18
|
+
variant?: 'marquee' | 'inline';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function Companies({ title, logos, variant = 'marquee' }: CompaniesProps) {
|
|
22
|
+
if (variant === 'inline') {
|
|
23
|
+
return (
|
|
24
|
+
<Section className="py-12">
|
|
25
|
+
<div className="container-main flex flex-col items-center gap-8 text-center">
|
|
26
|
+
{title && <h2 className="text-base font-semibold sm:text-2xl text-foreground">{title}</h2>}
|
|
27
|
+
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
28
|
+
{logos.map((logo, i) => (
|
|
29
|
+
<div key={i} className="flex items-center gap-2 text-sm font-medium">
|
|
30
|
+
<img
|
|
31
|
+
src={logo.src}
|
|
32
|
+
alt={logo.alt}
|
|
33
|
+
width={logo.width || 32}
|
|
34
|
+
height={logo.width || 32}
|
|
35
|
+
className="h-6 w-6 object-contain opacity-70 dark:invert"
|
|
36
|
+
/>
|
|
37
|
+
{logo.name && <span className={cn(!logo.name && 'sr-only')}>{logo.name}</span>}
|
|
38
|
+
{logo.version && <span className="text-muted-foreground">{logo.version}</span>}
|
|
39
|
+
{logo.badge && (
|
|
40
|
+
<Badge variant="brand" className="text-xs px-1.5 py-0.5">{logo.badge}</Badge>
|
|
41
|
+
)}
|
|
42
|
+
</div>
|
|
43
|
+
))}
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</Section>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<Section className="py-12">
|
|
52
|
+
<div className="container-main">
|
|
53
|
+
{title && <p className="text-center text-sm text-muted-foreground mb-8">{title}</p>}
|
|
54
|
+
<div className="relative fade-x overflow-hidden">
|
|
55
|
+
<div className="flex gap-12 items-center" style={{ '--marquee-gap': '3rem' } as React.CSSProperties}>
|
|
56
|
+
<div className="flex gap-12 items-center animate-marquee">
|
|
57
|
+
{logos.map((logo, i) => (
|
|
58
|
+
<img key={i} src={logo.src} alt={logo.alt} width={logo.width || 120} className="h-8 w-auto object-contain grayscale opacity-60 hover:grayscale-0 hover:opacity-100 transition-all" />
|
|
59
|
+
))}
|
|
60
|
+
</div>
|
|
61
|
+
<div className="flex gap-12 items-center animate-marquee" aria-hidden>
|
|
62
|
+
{logos.map((logo, i) => (
|
|
63
|
+
<img key={i} src={logo.src} alt="" width={logo.width || 120} className="h-8 w-auto object-contain grayscale opacity-60" />
|
|
64
|
+
))}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</Section>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Section } from '../ui/section';
|
|
5
|
+
import {
|
|
6
|
+
Accordion,
|
|
7
|
+
AccordionItem,
|
|
8
|
+
AccordionTrigger,
|
|
9
|
+
AccordionContent,
|
|
10
|
+
} from '../ui/accordion';
|
|
11
|
+
|
|
12
|
+
interface FAQItemProps {
|
|
13
|
+
question: string;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function FAQItem({ question, children }: FAQItemProps) {
|
|
18
|
+
return (
|
|
19
|
+
<AccordionItem value={question}>
|
|
20
|
+
<AccordionTrigger>{question}</AccordionTrigger>
|
|
21
|
+
<AccordionContent>
|
|
22
|
+
<div className="text-muted-foreground leading-relaxed">{children}</div>
|
|
23
|
+
</AccordionContent>
|
|
24
|
+
</AccordionItem>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface FAQProps {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function FAQ({ title, description, children }: FAQProps) {
|
|
35
|
+
return (
|
|
36
|
+
<Section>
|
|
37
|
+
<div className="container-main max-w-3xl">
|
|
38
|
+
{(title || description) && (
|
|
39
|
+
<div className="text-center mb-12">
|
|
40
|
+
{title && <h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>}
|
|
41
|
+
{description && <p className="text-lg text-muted-foreground">{description}</p>}
|
|
42
|
+
</div>
|
|
43
|
+
)}
|
|
44
|
+
<Accordion type="single" collapsible>
|
|
45
|
+
{children}
|
|
46
|
+
</Accordion>
|
|
47
|
+
</div>
|
|
48
|
+
</Section>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
|
|
4
|
+
interface FeatureProps {
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function Feature({ icon, title, description }: FeatureProps) {
|
|
11
|
+
return (
|
|
12
|
+
<div className="flex flex-col items-start p-6 rounded-xl glass-1 hover:glass-2 transition-all">
|
|
13
|
+
{icon && (
|
|
14
|
+
<div className="w-10 h-10 flex items-center justify-center rounded-lg bg-primary/10 text-primary mb-4">
|
|
15
|
+
{icon}
|
|
16
|
+
</div>
|
|
17
|
+
)}
|
|
18
|
+
<h3 className="text-lg font-semibold text-foreground mb-2">{title}</h3>
|
|
19
|
+
<p className="text-sm text-muted-foreground leading-relaxed">{description}</p>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface FeaturesProps {
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
columns?: 2 | 3 | 4;
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function Features({ title, description, columns = 3, children }: FeaturesProps) {
|
|
32
|
+
const gridCols = { 2: 'md:grid-cols-2', 3: 'md:grid-cols-3', 4: 'md:grid-cols-2 lg:grid-cols-4' };
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Section>
|
|
36
|
+
<div className="container-main">
|
|
37
|
+
{(title || description) && (
|
|
38
|
+
<div className="text-center mb-12">
|
|
39
|
+
{title && <h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>}
|
|
40
|
+
{description && <p className="text-lg text-muted-foreground max-w-2xl mx-auto">{description}</p>}
|
|
41
|
+
</div>
|
|
42
|
+
)}
|
|
43
|
+
<div className={`grid grid-cols-1 ${gridCols[columns]} gap-6`}>{children}</div>
|
|
44
|
+
</div>
|
|
45
|
+
</Section>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
import { cn } from '../lib/utils';
|
|
4
|
+
|
|
5
|
+
interface GalleryItemProps {
|
|
6
|
+
src: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
caption?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function GalleryItem({ src, alt, caption }: GalleryItemProps) {
|
|
12
|
+
return (
|
|
13
|
+
<figure className="group overflow-hidden rounded-xl glass-1">
|
|
14
|
+
<div className="overflow-hidden">
|
|
15
|
+
<img
|
|
16
|
+
src={src}
|
|
17
|
+
alt={alt}
|
|
18
|
+
className="w-full h-auto object-cover transition-transform duration-300 group-hover:scale-105"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
{caption && (
|
|
22
|
+
<figcaption className="p-4 text-sm text-muted-foreground">{caption}</figcaption>
|
|
23
|
+
)}
|
|
24
|
+
</figure>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface GalleryProps {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
columns?: 2 | 3 | 4;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function Gallery({ title, description, columns = 3, children }: GalleryProps) {
|
|
36
|
+
const gridCols = {
|
|
37
|
+
2: 'md:grid-cols-2',
|
|
38
|
+
3: 'md:grid-cols-2 lg:grid-cols-3',
|
|
39
|
+
4: 'md:grid-cols-2 lg:grid-cols-4',
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<Section>
|
|
44
|
+
<div className="container-main">
|
|
45
|
+
{(title || description) && (
|
|
46
|
+
<div className="text-center mb-12">
|
|
47
|
+
{title && <h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">{title}</h2>}
|
|
48
|
+
{description && <p className="text-lg text-muted-foreground max-w-2xl mx-auto">{description}</p>}
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
<div className={cn('grid grid-cols-1 gap-6', gridCols[columns])}>{children}</div>
|
|
52
|
+
</div>
|
|
53
|
+
</Section>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { cn } from '../lib/utils';
|
|
3
|
+
import { Section } from '../ui/section';
|
|
4
|
+
import { Badge } from '../ui/badge';
|
|
5
|
+
import { Button } from '../ui/button';
|
|
6
|
+
import { Mockup } from '../ui/mockup';
|
|
7
|
+
import Glow from '../ui/glow';
|
|
8
|
+
|
|
9
|
+
interface HeroProps {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
primaryCta?: { label: string; href: string };
|
|
13
|
+
secondaryCta?: { label: string; href: string };
|
|
14
|
+
badge?: string;
|
|
15
|
+
image?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function Hero({ title, description, primaryCta, secondaryCta, badge, image, children }: HeroProps) {
|
|
20
|
+
return (
|
|
21
|
+
<Section className="relative overflow-hidden">
|
|
22
|
+
<Glow variant="top" />
|
|
23
|
+
<div className="container-main relative z-10">
|
|
24
|
+
<div className="max-w-3xl mx-auto text-center">
|
|
25
|
+
{badge && (
|
|
26
|
+
<Badge variant="outline" className="animate-appear mb-6">
|
|
27
|
+
{badge}
|
|
28
|
+
</Badge>
|
|
29
|
+
)}
|
|
30
|
+
<h1 className="text-4xl md:text-6xl font-bold tracking-tight text-foreground mb-6 animate-appear [animation-delay:100ms]">
|
|
31
|
+
{title}
|
|
32
|
+
</h1>
|
|
33
|
+
<p className="text-lg md:text-xl text-muted-foreground mb-8 max-w-2xl mx-auto animate-appear [animation-delay:200ms]">
|
|
34
|
+
{description}
|
|
35
|
+
</p>
|
|
36
|
+
<div className="flex items-center justify-center gap-4 animate-appear [animation-delay:300ms]">
|
|
37
|
+
{primaryCta && (
|
|
38
|
+
<Button asChild size="lg">
|
|
39
|
+
<a href={primaryCta.href}>{primaryCta.label}</a>
|
|
40
|
+
</Button>
|
|
41
|
+
)}
|
|
42
|
+
{secondaryCta && (
|
|
43
|
+
<Button asChild variant="glow" size="lg">
|
|
44
|
+
<a href={secondaryCta.href}>{secondaryCta.label}</a>
|
|
45
|
+
</Button>
|
|
46
|
+
)}
|
|
47
|
+
</div>
|
|
48
|
+
{children}
|
|
49
|
+
</div>
|
|
50
|
+
{image && (
|
|
51
|
+
<div className="mt-16 animate-appear-zoom [animation-delay:400ms]">
|
|
52
|
+
<Mockup type="responsive" className="shadow-mockup w-full">
|
|
53
|
+
<img src={image} alt="" className="w-full" />
|
|
54
|
+
</Mockup>
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
</Section>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Section } from '../ui/section';
|
|
3
|
+
import { Badge } from '../ui/badge';
|
|
4
|
+
|
|
5
|
+
interface PageHeroProps {
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
badge?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function PageHero({ title, description, badge, children }: PageHeroProps) {
|
|
13
|
+
return (
|
|
14
|
+
<Section className="py-16 md:py-24">
|
|
15
|
+
<div className="container-main text-center">
|
|
16
|
+
{badge && (
|
|
17
|
+
<Badge variant="outline" className="mb-4">
|
|
18
|
+
{badge}
|
|
19
|
+
</Badge>
|
|
20
|
+
)}
|
|
21
|
+
<h1 className="text-3xl md:text-5xl font-bold tracking-tight text-foreground mb-4">{title}</h1>
|
|
22
|
+
{description && <p className="text-lg text-muted-foreground max-w-2xl mx-auto">{description}</p>}
|
|
23
|
+
{children}
|
|
24
|
+
</div>
|
|
25
|
+
</Section>
|
|
26
|
+
);
|
|
27
|
+
}
|