deploy / deploy (push) Successful in 1m24s
rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling replace the theme text toggle with animated sun/moon icons restructure the CRM API into config, middleware, models, routes, services and utils layers redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons update Docker/Nginx publishing, Makefile targets, shared UI polish and docs Co-authored-by: Gitea Actions <-[email protected]>
67 lines
2.6 KiB
TypeScript
67 lines
2.6 KiB
TypeScript
"use client";
|
|
|
|
import { useLanguage } from "../contexts/LanguageContext";
|
|
import type { Demo } from "../data/demos";
|
|
import { DemoMockup } from "./DemoMockup";
|
|
import { Section, SectionHeading } from "./Section";
|
|
|
|
export const Demos = ({ demos }: { demos: Demo[] }) => {
|
|
const { t, pick } = useLanguage();
|
|
|
|
return (
|
|
<Section id="demos">
|
|
<SectionHeading title={t("demos.title")} subtitle={t("demos.subtitle")} />
|
|
|
|
{/*
|
|
Sur mobile, les cartes défilent horizontalement : la région garde la
|
|
hauteur d'un écran au lieu d'empiler trois blocs. Dès `md`, on retrouve
|
|
la grille de trois colonnes.
|
|
*/}
|
|
<div className="-mx-4 flex snap-x snap-mandatory gap-4 overflow-x-auto px-4 pb-2 [scrollbar-width:none] sm:-mx-6 sm:px-6 md:mx-0 md:grid md:grid-cols-3 md:gap-6 md:overflow-visible md:px-0 md:pb-0">
|
|
{demos.map((demo, index) => (
|
|
<article
|
|
key={demo.slug}
|
|
data-reveal
|
|
data-reveal-delay={String(index * 0.08)}
|
|
className="glass flex w-[82%] max-w-xs shrink-0 snap-center flex-col overflow-hidden rounded-lg border border-border/60 shadow-sm md:w-auto md:max-w-none md:snap-align-none"
|
|
>
|
|
<DemoMockup variant={demo.mockup} />
|
|
|
|
<div className="flex flex-1 flex-col gap-3 p-4 sm:p-5">
|
|
<span className="font-display text-[0.625rem] font-semibold uppercase tracking-label text-accent-graphic">
|
|
{pick(demo.category)}
|
|
</span>
|
|
<h3 className="font-display text-lg font-bold uppercase tracking-display">
|
|
{demo.title}
|
|
</h3>
|
|
<p className="line-clamp-3 text-sm leading-relaxed text-muted-foreground">
|
|
{pick(demo.description)}
|
|
</p>
|
|
|
|
<ul className="flex flex-wrap gap-2">
|
|
{demo.tech.map((name) => (
|
|
<li
|
|
key={name}
|
|
className="rounded-full border border-border/60 px-2.5 py-1 text-[0.625rem] uppercase tracking-label text-subtle-foreground"
|
|
>
|
|
{name}
|
|
</li>
|
|
))}
|
|
</ul>
|
|
|
|
<a
|
|
href={demo.href}
|
|
target="_blank"
|
|
rel="noreferrer noopener"
|
|
className="mt-auto inline-flex items-center gap-1.5 pt-1 font-display text-xs font-semibold uppercase tracking-label text-foreground transition-colors hover:text-accent"
|
|
>
|
|
{t("demos.source")} <span aria-hidden="true">↗</span>
|
|
</a>
|
|
</div>
|
|
</article>
|
|
))}
|
|
</div>
|
|
</Section>
|
|
);
|
|
};
|