This commit is contained in:
+130
-125
@@ -9,6 +9,8 @@ import Link from "next/link";
|
||||
|
||||
import { MotionFade } from "@/components/motion-fade";
|
||||
import { pickText, portfolioItems, productItems, resolveLocale } from "@/lib/site-data";
|
||||
import { Button } from "@/src/components/ui/button";
|
||||
import { Card, CardContent } from "@/src/components/ui/card";
|
||||
|
||||
type HomePageProps = {
|
||||
params: {
|
||||
@@ -61,145 +63,148 @@ export default function HomePage({ params: { locale } }: HomePageProps) {
|
||||
return (
|
||||
<div className="mx-auto flex w-full max-w-6xl flex-col gap-8 px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
|
||||
<MotionFade>
|
||||
<section className="grid gap-6 rounded-3xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-950 lg:grid-cols-[1.3fr_0.7fr] lg:p-10">
|
||||
<div className="space-y-5">
|
||||
<p className="inline-flex items-center gap-2 text-sm font-medium text-zinc-600 dark:text-zinc-300">
|
||||
<Sparkles className="h-4 w-4" />
|
||||
{copy.heroKicker}
|
||||
</p>
|
||||
<h1 className="text-3xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-100 sm:text-5xl">
|
||||
{copy.heroTitle}
|
||||
</h1>
|
||||
<p className="max-w-2xl text-base text-zinc-600 dark:text-zinc-300 sm:text-lg">
|
||||
{copy.heroText}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<Link
|
||||
href={`/${localeKey}/portfolio`}
|
||||
className="inline-flex items-center gap-2 rounded-lg bg-zinc-900 px-4 py-2.5 text-sm font-medium text-white transition hover:bg-zinc-700 dark:bg-zinc-100 dark:text-zinc-900 dark:hover:bg-zinc-300"
|
||||
>
|
||||
{copy.toPortfolio}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</Link>
|
||||
<Link
|
||||
href={`/${localeKey}/products`}
|
||||
className="inline-flex items-center gap-2 rounded-lg border border-zinc-300 px-4 py-2.5 text-sm font-medium text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-800"
|
||||
>
|
||||
{copy.toProducts}
|
||||
</Link>
|
||||
<Card>
|
||||
<CardContent className="grid gap-6 p-6 lg:grid-cols-[1.3fr_0.7fr] lg:p-10">
|
||||
<div className="space-y-5">
|
||||
<p className="inline-flex items-center gap-2 text-sm font-medium text-muted">
|
||||
<Sparkles className="h-4 w-4" />
|
||||
{copy.heroKicker}
|
||||
</p>
|
||||
<h1 className="text-3xl font-semibold tracking-tight text-fg sm:text-5xl">
|
||||
{copy.heroTitle}
|
||||
</h1>
|
||||
<p className="max-w-2xl text-base text-muted sm:text-lg">
|
||||
{copy.heroText}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<Button asChild>
|
||||
<Link href={`/${localeKey}/portfolio`}>
|
||||
{copy.toPortfolio}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
<Button asChild variant="outline">
|
||||
<Link href={`/${localeKey}/products`}>{copy.toProducts}</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="rounded-2xl border border-zinc-200 bg-zinc-50 p-5 dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<p className="mb-3 inline-flex items-center gap-2 text-sm font-medium text-zinc-600 dark:text-zinc-300">
|
||||
<BriefcaseBusiness className="h-4 w-4" />
|
||||
{copy.heroCardTitle}
|
||||
</p>
|
||||
<p className="text-sm leading-relaxed text-zinc-600 dark:text-zinc-300">
|
||||
{copy.heroCardText}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<div className="rounded-[var(--radius-input)] border border-border bg-muted p-5">
|
||||
<p className="mb-3 inline-flex items-center gap-2 text-sm font-medium text-muted">
|
||||
<BriefcaseBusiness className="h-4 w-4" />
|
||||
{copy.heroCardTitle}
|
||||
</p>
|
||||
<p className="text-sm leading-relaxed text-muted">
|
||||
{copy.heroCardText}
|
||||
</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</MotionFade>
|
||||
|
||||
<MotionFade delay={0.05}>
|
||||
<section className="rounded-3xl border border-zinc-200 bg-white p-6 dark:border-zinc-800 dark:bg-zinc-950 lg:p-8">
|
||||
<div className="mb-6 flex items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-2xl font-semibold text-zinc-900 dark:text-zinc-100">
|
||||
{copy.portfolioTitle}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
{copy.portfolioText}
|
||||
</p>
|
||||
<Card>
|
||||
<CardContent className="p-6 lg:p-8">
|
||||
<div className="mb-6 flex items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-2xl font-semibold text-fg">
|
||||
{copy.portfolioTitle}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm text-muted">
|
||||
{copy.portfolioText}
|
||||
</p>
|
||||
</div>
|
||||
<BriefcaseBusiness className="h-5 w-5 text-subtle" />
|
||||
</div>
|
||||
<BriefcaseBusiness className="h-5 w-5 text-zinc-500 dark:text-zinc-300" />
|
||||
</div>
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
{featuredProjects.map((item) => (
|
||||
<Link
|
||||
key={item.slug}
|
||||
href={`/${localeKey}/portfolio/${item.slug}`}
|
||||
className="group rounded-2xl border border-zinc-200 bg-zinc-50 p-4 transition hover:border-zinc-400 dark:border-zinc-800 dark:bg-zinc-900 dark:hover:border-zinc-600"
|
||||
>
|
||||
<p className="text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{pickText(item.category, localeKey)} - {item.year}
|
||||
</p>
|
||||
<h3 className="mt-2 text-lg font-semibold text-zinc-900 dark:text-zinc-100">
|
||||
{pickText(item.title, localeKey)}
|
||||
</h3>
|
||||
<p className="mt-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
{pickText(item.summary, localeKey)}
|
||||
</p>
|
||||
<span className="mt-4 inline-flex items-center gap-2 text-sm font-medium text-zinc-700 group-hover:text-zinc-900 dark:text-zinc-200 dark:group-hover:text-white">
|
||||
{copy.toPortfolio}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</span>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
{featuredProjects.map((item) => (
|
||||
<Card key={item.slug} className="bg-muted/85 transition hover:border-input">
|
||||
<CardContent className="p-4">
|
||||
<Link href={`/${localeKey}/portfolio/${item.slug}`} className="group block">
|
||||
<p className="text-sm text-subtle">
|
||||
{pickText(item.category, localeKey)} - {item.year}
|
||||
</p>
|
||||
<h3 className="mt-2 text-lg font-semibold text-fg">
|
||||
{pickText(item.title, localeKey)}
|
||||
</h3>
|
||||
<p className="mt-2 text-sm text-muted">
|
||||
{pickText(item.summary, localeKey)}
|
||||
</p>
|
||||
<span className="group-hover-fg mt-4 inline-flex items-center gap-2 text-sm font-medium text-muted-strong">
|
||||
{copy.toPortfolio}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</span>
|
||||
</Link>
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</MotionFade>
|
||||
|
||||
<MotionFade delay={0.1}>
|
||||
<section className="rounded-3xl border border-zinc-200 bg-white p-6 dark:border-zinc-800 dark:bg-zinc-950 lg:p-8">
|
||||
<div className="mb-6 flex items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-2xl font-semibold text-zinc-900 dark:text-zinc-100">
|
||||
{copy.productsTitle}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
{copy.productsText}
|
||||
</p>
|
||||
<Card>
|
||||
<CardContent className="p-6 lg:p-8">
|
||||
<div className="mb-6 flex items-center justify-between gap-4">
|
||||
<div>
|
||||
<h2 className="text-2xl font-semibold text-fg">
|
||||
{copy.productsTitle}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm text-muted">
|
||||
{copy.productsText}
|
||||
</p>
|
||||
</div>
|
||||
<Boxes className="h-5 w-5 text-subtle" />
|
||||
</div>
|
||||
<Boxes className="h-5 w-5 text-zinc-500 dark:text-zinc-300" />
|
||||
</div>
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
{featuredProducts.map((item) => (
|
||||
<Link
|
||||
key={item.slug}
|
||||
href={`/${localeKey}/products/${item.slug}`}
|
||||
className="group rounded-2xl border border-zinc-200 bg-zinc-50 p-4 transition hover:border-zinc-400 dark:border-zinc-800 dark:bg-zinc-900 dark:hover:border-zinc-600"
|
||||
>
|
||||
<p className="text-sm text-zinc-500 dark:text-zinc-400">
|
||||
{pickText(item.segment, localeKey)}
|
||||
</p>
|
||||
<h3 className="mt-2 text-lg font-semibold text-zinc-900 dark:text-zinc-100">
|
||||
{pickText(item.name, localeKey)}
|
||||
</h3>
|
||||
<p className="mt-2 text-sm text-zinc-600 dark:text-zinc-300">
|
||||
{pickText(item.summary, localeKey)}
|
||||
</p>
|
||||
<p className="mt-3 text-sm font-medium text-zinc-700 dark:text-zinc-200">
|
||||
{pickText(item.price, localeKey)}
|
||||
</p>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
{featuredProducts.map((item) => (
|
||||
<Card key={item.slug} className="bg-muted/85 transition hover:border-input">
|
||||
<CardContent className="p-4">
|
||||
<Link href={`/${localeKey}/products/${item.slug}`} className="group block">
|
||||
<p className="text-sm text-subtle">
|
||||
{pickText(item.segment, localeKey)}
|
||||
</p>
|
||||
<h3 className="mt-2 text-lg font-semibold text-fg">
|
||||
{pickText(item.name, localeKey)}
|
||||
</h3>
|
||||
<p className="mt-2 text-sm text-muted">
|
||||
{pickText(item.summary, localeKey)}
|
||||
</p>
|
||||
<p className="mt-3 text-sm font-medium text-muted-strong">
|
||||
{pickText(item.price, localeKey)}
|
||||
</p>
|
||||
</Link>
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</MotionFade>
|
||||
|
||||
<MotionFade delay={0.15}>
|
||||
<section className="rounded-3xl border border-zinc-200 bg-zinc-900 p-6 text-zinc-100 dark:border-zinc-700 dark:bg-zinc-100 dark:text-zinc-900 lg:p-8">
|
||||
<div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
|
||||
<div>
|
||||
<p className="inline-flex items-center gap-2 text-sm font-medium opacity-80">
|
||||
<Mail className="h-4 w-4" />
|
||||
{copy.ctaTitle}
|
||||
</p>
|
||||
<p className="mt-2 max-w-2xl text-sm opacity-90 sm:text-base">
|
||||
{copy.ctaText}
|
||||
</p>
|
||||
<Card className="bg-foreground text-background">
|
||||
<CardContent className="p-6 lg:p-8">
|
||||
<div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
|
||||
<div>
|
||||
<p className="inline-flex items-center gap-2 text-sm font-medium opacity-80">
|
||||
<Mail className="h-4 w-4" />
|
||||
{copy.ctaTitle}
|
||||
</p>
|
||||
<p className="mt-2 max-w-2xl text-sm opacity-90 sm:text-base">
|
||||
{copy.ctaText}
|
||||
</p>
|
||||
</div>
|
||||
<Button asChild variant="secondary">
|
||||
<Link href={`/${localeKey}/contact`}>
|
||||
{copy.toContact}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
<Link
|
||||
href={`/${localeKey}/contact`}
|
||||
className="inline-flex items-center justify-center gap-2 rounded-lg bg-white px-4 py-2.5 text-sm font-semibold text-zinc-900 transition hover:bg-zinc-200 dark:bg-zinc-900 dark:text-zinc-100 dark:hover:bg-zinc-700"
|
||||
>
|
||||
{copy.toContact}
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</Link>
|
||||
</div>
|
||||
</section>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</MotionFade>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user