Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

feat: add features carousel and refactor about page components (#257)

Vlad Sazonau194416dd1ec6
diff --git a/.claude/launch.json b/.claude/launch.json
new file mode 100644
index 0000000..c248f49
--- /dev/null
+++ b/.claude/launch.json
@@ -0,0 +1,11 @@
+{
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "next-dev",
+ "runtimeExecutable": "pnpm",
+ "runtimeArgs": ["dev"],
+ "port": 3000
+ }
+ ]
+}
diff --git a/messages/de.json b/messages/de.json
index 05df2d5..a423594 100644
--- a/messages/de.json
+++ b/messages/de.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Mehrere Sprachen & Währungen",
- "description": "Erstellen Sie Rechnungen in zehn Sprachen (Englisch, Polnisch, Deutsch, Spanisch, Portugiesisch, Russisch, Ukrainisch, Französisch, Italienisch, Niederländisch) mit Unterstützung für alle wichtigen Währungen und automatischer Formatierung."
+ "description": "Erstellen Sie Rechnungen in zehn Sprachen mit Unterstützung für alle wichtigen Währungen und automatischer Formatierung."
},
"taxSupport": {
"title": "Flexibles Steuersystem",
@@ -83,7 +83,9 @@
"switchLanguage": "Sprache wechseln",
"shareFeedback": "Feedback teilen",
"app": "App",
- "startInvoicing": "Zur App gehen"
+ "startInvoicing": "Zur App gehen",
+ "previousFeature": "Vorherige Funktion",
+ "nextFeature": "Nächste Funktion"
}
},
"FAQ": {
diff --git a/messages/en.json b/messages/en.json
index db00d7b..19631e5 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Multiple Languages & Currencies",
- "description": "Create invoices in ten languages (English, Polish, German, Spanish, Portuguese, Russian, Ukrainian, French, Italian, Dutch) with support for all major currencies and automatic formatting."
+ "description": "Create invoices in ten languages with support for all major currencies and automatic formatting."
},
"taxSupport": {
"title": "Flexible Tax System Support",
@@ -83,7 +83,9 @@
"switchLanguage": "Switch language",
"shareFeedback": "Share feedback",
"app": "App",
- "startInvoicing": "Start Invoicing"
+ "startInvoicing": "Start Invoicing",
+ "previousFeature": "Previous feature",
+ "nextFeature": "Next feature"
}
},
"FAQ": {
diff --git a/messages/es.json b/messages/es.json
index 976e88f..1720a59 100644
--- a/messages/es.json
+++ b/messages/es.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Múltiples Idiomas y Monedas",
- "description": "Cree facturas en diez idiomas (inglés, polaco, alemán, español, portugués, ruso, ucraniano, francés, italiano, holandés) con soporte para todas las principales monedas y formato automático."
+ "description": "Cree facturas en diez idiomas con soporte para todas las principales monedas y formato automático."
},
"taxSupport": {
"title": "Sistema Fiscal Flexible",
@@ -83,7 +83,9 @@
"switchLanguage": "Cambiar idioma",
"shareFeedback": "Compartir comentarios",
"app": "Aplicación",
- "startInvoicing": "Comenzar a facturar"
+ "startInvoicing": "Comenzar a facturar",
+ "previousFeature": "Característica anterior",
+ "nextFeature": "Característica siguiente"
}
},
"FAQ": {
diff --git a/messages/fr.json b/messages/fr.json
index 091e81c..76ae094 100644
--- a/messages/fr.json
+++ b/messages/fr.json
@@ -25,7 +25,7 @@
},
"multiLanguage": {
"title": "Langues et Devises Multiples",
- "description": "Créez des factures en dix langues (anglais, polonais, allemand, espagnol, portugais, russe, ukrainien, français, italien, néerlandais) avec prise en charge de toutes les principales devises et formatage automatique."
+ "description": "Créez des factures en dix langues avec prise en charge de toutes les principales devises et formatage automatique."
},
"taxSupport": {
"title": "Système Fiscal Flexible",
@@ -75,7 +75,9 @@
"switchLanguage": "Changer de langue",
"shareFeedback": "Partager un avis",
"app": "Application",
- "startInvoicing": "Commencer la facturation"
+ "startInvoicing": "Commencer la facturation",
+ "previousFeature": "Fonctionnalité précédente",
+ "nextFeature": "Fonctionnalité suivante"
}
},
"Metadata": {
diff --git a/messages/it.json b/messages/it.json
index 80a5a2d..5a3364a 100644
--- a/messages/it.json
+++ b/messages/it.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Lingue e Valute Multiple",
- "description": "Crea fatture in dieci lingue (inglese, polacco, tedesco, spagnolo, portoghese, russo, ucraino, francese, italiano, olandese) con supporto per tutte le principali valute e formattazione automatica."
+ "description": "Crea fatture in dieci lingue con supporto per tutte le principali valute e formattazione automatica."
},
"taxSupport": {
"title": "Sistema Fiscale Flessibile",
@@ -83,7 +83,9 @@
"switchLanguage": "Cambia lingua",
"shareFeedback": "Condividi feedback",
"app": "App",
- "startInvoicing": "Inizia fatturazione"
+ "startInvoicing": "Inizia fatturazione",
+ "previousFeature": "Funzionalità precedente",
+ "nextFeature": "Funzionalità successiva"
}
},
"FAQ": {
diff --git a/messages/nl.json b/messages/nl.json
index 42c7dea..bcb3c21 100644
--- a/messages/nl.json
+++ b/messages/nl.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Meerdere Talen & Valuta's",
- "description": "Maak facturen in tien talen (Engels, Pools, Duits, Spaans, Portugees, Russisch, Oekraïens, Frans, Italiaans, Nederlands) met ondersteuning voor alle belangrijke valuta's en automatische opmaak."
+ "description": "Maak facturen in tien talen met ondersteuning voor alle belangrijke valuta's en automatische opmaak."
},
"taxSupport": {
"title": "Flexibel Belastingsysteem",
@@ -83,7 +83,9 @@
"switchLanguage": "Verander taal",
"shareFeedback": "Feedback delen",
"app": "App",
- "startInvoicing": "Begin met factureren"
+ "startInvoicing": "Begin met factureren",
+ "previousFeature": "Vorige functie",
+ "nextFeature": "Volgende functie"
}
},
"FAQ": {
diff --git a/messages/pl.json b/messages/pl.json
index 11e8b4f..678286b 100644
--- a/messages/pl.json
+++ b/messages/pl.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Wiele języków i walut",
- "description": "Twórz faktury w dziesięciu językach (angielski, polski, niemiecki, hiszpański, portugalski, rosyjski, ukraiński, francuski, włoski, holenderski) z obsługą wszystkich głównych walut i automatycznym formatowaniem."
+ "description": "Twórz faktury w dziesięciu językach z obsługą wszystkich głównych walut i automatycznym formatowaniem."
},
"taxSupport": {
"title": "Elastyczny System Podatkowy",
@@ -83,7 +83,9 @@
"switchLanguage": "Zmień język",
"shareFeedback": "Podziel się opinią",
"app": "Aplikacja",
- "startInvoicing": "Rozpocznij fakturowanie"
+ "startInvoicing": "Rozpocznij fakturowanie",
+ "previousFeature": "Poprzednia funkcja",
+ "nextFeature": "Następna funkcja"
}
},
"FAQ": {
diff --git a/messages/pt.json b/messages/pt.json
index 35a2c07..cbc4f2c 100644
--- a/messages/pt.json
+++ b/messages/pt.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Múltiplos Idiomas e Moedas",
- "description": "Crie faturas em dez idiomas (inglês, polonês, alemão, espanhol, português, russo, ucraniano, francês, italiano, holandês) com suporte para todas as principais moedas e formatação automática."
+ "description": "Crie faturas em dez idiomas com suporte para todas as principais moedas e formatação automática."
},
"taxSupport": {
"title": "Sistema Fiscal Flexível",
@@ -83,7 +83,9 @@
"switchLanguage": "Mudar idioma",
"shareFeedback": "Compartilhar feedback",
"app": "App",
- "startInvoicing": "Começar a faturar"
+ "startInvoicing": "Começar a faturar",
+ "previousFeature": "Recurso anterior",
+ "nextFeature": "Próximo recurso"
}
},
"FAQ": {
diff --git a/messages/ru.json b/messages/ru.json
index 4b9d00a..447e186 100644
--- a/messages/ru.json
+++ b/messages/ru.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Множество языков и валют",
- "description": "Создавайте инвойсы на десяти языках (английский, польский, немецкий, испанский, португальский, русский, украинский, французский, итальянский, голландский) с поддержкой всех основных валют и автоматическим форматированием."
+ "description": "Создавайте инвойсы на десяти языках с поддержкой всех основных валют и автоматическим форматированием."
},
"taxSupport": {
"title": "Гибкая Налоговая Система",
@@ -83,7 +83,9 @@
"switchLanguage": "Изменить язык",
"shareFeedback": "Поделиться отзывом",
"app": "Приложение",
- "startInvoicing": "Перейти в приложение"
+ "startInvoicing": "Перейти в приложение",
+ "previousFeature": "Предыдущая возможность",
+ "nextFeature": "Следующая возможность"
}
},
"FAQ": {
diff --git a/messages/uk.json b/messages/uk.json
index 439164b..7a1cba6 100644
--- a/messages/uk.json
+++ b/messages/uk.json
@@ -33,7 +33,7 @@
},
"multiLanguage": {
"title": "Багато мов та валют",
- "description": "Створюйте рахунки десятьма мовами (англійська, польська, німецька, іспанська, португальська, російська, українська, французька, італійська, голландська) з підтримкою всіх основних валют та автоматичним форматуванням."
+ "description": "Створюйте рахунки десятьма мовами з підтримкою всіх основних валют та автоматичним форматуванням."
},
"taxSupport": {
"title": "Гнучка Податкова Система",
@@ -83,7 +83,9 @@
"switchLanguage": "Змінити мову",
"shareFeedback": "Поділитися відгуком",
"app": "Додаток",
- "startInvoicing": "Перейти до додатку"
+ "startInvoicing": "Перейти до додатку",
+ "previousFeature": "Попередня можливість",
+ "nextFeature": "Наступна можливість"
}
},
"FAQ": {
diff --git a/src/app/(components)/header/header-skeleton.tsx b/src/app/(components)/header/header-skeleton.tsx
index ae14f1e..ce2514e 100644
--- a/src/app/(components)/header/header-skeleton.tsx
+++ b/src/app/(components)/header/header-skeleton.tsx
@@ -4,42 +4,58 @@ import { Skeleton } from "@/components/ui/skeleton";
* Header skeleton component for loading state.
* Displays placeholder skeletons while the actual header content is loading.
* Matches the layout and structure of the Header component.
+ *
+ * The outer chrome (sticky offset, pill container, ring and blur) is the real
+ * header's, so only the contents fade in when the header itself is ready.
*/
export function HeaderSkeleton() {
return (
- <header className="sticky top-0 z-50 w-full border-b bg-white shadow-sm">
+ <header className="sticky top-4 z-50 w-full px-2 md:px-6">
<div className="flex items-center justify-center">
- <div className="container h-auto px-4 py-2 sm:h-16 sm:py-0 md:px-6">
- <div className="flex h-full flex-row flex-wrap items-center justify-between gap-2">
- <div className="w-[53%] sm:w-auto">
+ <div className="container h-16 rounded-3xl bg-gradient-to-r from-white/90 to-white/95 px-4 shadow-sm ring-1 ring-stone-200 backdrop-blur-md md:px-6">
+ <div className="flex h-full items-center justify-between gap-4">
+ {/* Placeholder for the app logo */}
+ <div>
<div className="flex items-center gap-1.5 md:gap-2">
- {/* Placeholder for logo icon*/}
- <div className="flex items-center justify-center rounded-md">
- <Skeleton className="size-6 md:size-7" />
- </div>
- {/* Placeholder for app name and description on desktop */}
+ <Skeleton className="size-6 rounded-lg md:size-7" />
+
+ {/* Placeholder for app name and tagline on desktop */}
<div className="hidden sm:block">
- <div className="flex flex-col space-y-1">
- {/* Placeholder for app name */}
- <Skeleton className="h-6 w-36 lg:w-40" />
- {/* Placeholder for app description */}
- <Skeleton className="mt-1.5 h-3 w-48 rounded" />
+ <div className="flex flex-col gap-1.5">
+ <Skeleton className="h-5 w-[148px] lg:h-6 lg:w-[172px]" />
+ <Skeleton className="h-3 w-[196px] sm:w-[210px]" />
</div>
</div>
- {/* Placeholder for app name on mobile */}
+
+ {/* Placeholder for app name on mobile (the tagline is hidden there) */}
<div className="block sm:hidden">
- {/* Placeholder for app name on mobile*/}
- <Skeleton className="h-7 w-28" />
+ <Skeleton className="h-5 w-[125px]" />
</div>
</div>
</div>
- <div className="flex items-center gap-1 sm:gap-2">
- {/* Placeholder for language switcher on desktop */}
- <Skeleton className="hidden h-9 w-[100px] rounded-md sm:block" />
- {/* Placeholder for language switcher on mobile */}
- <Skeleton className="h-9 w-9 rounded-md" />
- {/* Placeholder for go to app button */}
- <Skeleton className="h-9 min-w-[110px] max-w-[110px] rounded-md" />
+
+ {/* Placeholders for the right side actions */}
+ <div className="flex items-center gap-1">
+ {/* Desktop nav: GitHub star pill, About, Changelog, Terms of Service */}
+ <div className="hidden items-center justify-end gap-1 lg:flex">
+ <Skeleton className="h-8 w-[156px] rounded-md" />
+ <Skeleton className="h-8 w-[82px] rounded-md" />
+ <Skeleton className="h-8 w-[92px] rounded-md" />
+ <Skeleton className="h-8 w-[128px] rounded-md" />
+ </div>
+
+ {/* Language switcher -- desktop only */}
+ <div className="hidden min-w-[36px] lg:block">
+ <Skeleton className="size-9 rounded-full" />
+ </div>
+
+ {/* CTA button, which is tighter on mobile (`px-3 sm:px-8`) */}
+ <Skeleton className="h-10 w-[116px] rounded-lg sm:w-[156px]" />
+
+ {/* Mobile menu toggle */}
+ <div className="relative lg:hidden">
+ <Skeleton className="size-9 rounded-full" />
+ </div>
</div>
</div>
</div>
diff --git a/src/app/[locale]/about/components/about-footer.tsx b/src/app/[locale]/about/components/about-footer.tsx
new file mode 100644
index 0000000..0ba7319
--- /dev/null
+++ b/src/app/[locale]/about/components/about-footer.tsx
@@ -0,0 +1,106 @@
+import { Footer, FooterLinkGroup } from "@/app/(components)/footer";
+import {
+ DISCORD_COMMUNITY_URL,
+ GITHUB_URL,
+ PRODUCT_TWITTER_URL,
+ REDDIT_COMMUNITY_URL,
+} from "@/config";
+import { useLocale, useTranslations } from "next-intl";
+import Link from "next/link";
+
+/**
+ * Footer of the about page.
+ *
+ * Shared by the page and its loading state: the footer is fully static, so the
+ * loading state renders the real thing instead of a placeholder, and keeping it
+ * in one place is what guarantees both render the exact same links and height.
+ */
+export function AboutFooter() {
+ const locale = useLocale();
+ const t = useTranslations("About");
+
+ return (
+ <Footer
+ translations={{
+ tagline: t("tagline"),
+ aboutHeading: t("footer.headings.about"),
+ solutionsHeading: t("footer.headings.solutions"),
+ footerDescription: t.rich("footer.description", {
+ br: () => <br />,
+ tosLink: (chunks) => (
+ <Link
+ href="/tos"
+ className="text-slate-700 underline hover:text-slate-900"
+ >
+ {chunks}
+ </Link>
+ ),
+ }),
+ footerCreatedBy: t("footer.createdBy"),
+ resources: t("footer.links.resources"),
+ }}
+ links={
+ <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
+ <FooterLinkGroup
+ heading={t("footer.headings.product")}
+ links={[
+ {
+ href: "/?template=default",
+ label: t("footer.links.invoiceGenerator"),
+ },
+ {
+ href: GITHUB_URL,
+ label: t("footer.links.github"),
+ external: true,
+ },
+ { href: "#features", label: t("footer.links.features") },
+ { href: "#faq", label: "FAQ" },
+ {
+ href: "/how-it-works",
+ label: t("footer.links.howItWorks"),
+ },
+ { href: "/changelog", label: t("footer.links.changelog") },
+ { href: "/llms.txt", label: "llms.txt" },
+ ]}
+ />
+ <FooterLinkGroup
+ heading={t("footer.headings.company")}
+ links={[
+ {
+ href: `/${locale}/about`,
+ label: t("buttons.home"),
+ },
+ { href: "/founder", label: t("footer.links.founder") },
+ { href: "/tos", label: t("footer.links.termsOfService") },
+ ]}
+ />
+ <FooterLinkGroup
+ heading={t("footer.headings.community")}
+ links={[
+ {
+ href: DISCORD_COMMUNITY_URL,
+ label: t("buttons.shareFeedback"),
+ external: true,
+ },
+ {
+ href: DISCORD_COMMUNITY_URL,
+ label: "Discord",
+ external: true,
+ },
+ {
+ href: REDDIT_COMMUNITY_URL,
+ label: "Reddit",
+ external: true,
+ },
+ {
+ href: PRODUCT_TWITTER_URL,
+ label: "X (Twitter)",
+ external: true,
+ },
+ ]}
+ />
+ </div>
+ }
+ />
+ );
+}
diff --git a/src/app/[locale]/about/components/feature-card.tsx b/src/app/[locale]/about/components/feature-card.tsx
new file mode 100644
index 0000000..4b64f81
--- /dev/null
+++ b/src/app/[locale]/about/components/feature-card.tsx
@@ -0,0 +1,86 @@
+import { AutoPlayVideo, ManualPlayVideo } from "@/components/video";
+import { cn } from "@/lib/utils";
+
+export interface FeatureCardProps {
+ title: string;
+ description: string;
+ videoSrc: string;
+ videoFallbackImg: string;
+ videoDescription: string;
+ /**
+ * Used to build the video `data-testid`, e.g. `livePreview-demo-video`
+ */
+ translationKey: string;
+ className?: string;
+}
+
+/**
+ * A single marketing feature card: title, description and a demo video
+ * inside a Mac OS like browser frame.
+ */
+export function FeatureCard({
+ title,
+ description,
+ videoSrc,
+ videoFallbackImg,
+ videoDescription,
+ translationKey,
+ className,
+}: FeatureCardProps) {
+ const testId = `${translationKey}-demo-video`;
+
+ return (
+ <div
+ className={cn(
+ "flex h-full w-full flex-col items-start gap-2 rounded-xl bg-white shadow-sm ring-1 ring-slate-200 sm:min-h-[465px] md:items-center md:rounded-2xl",
+ className,
+ )}
+ >
+ {/* text content */}
+ <div className="max-w-[700px] flex-1 px-6 pb-4 pt-5 sm:px-8 sm:pb-4 sm:pt-6">
+ <h3 className="text-balance pb-2 text-xl font-semibold leading-tight tracking-tight text-slate-900 sm:pb-4 sm:text-2xl">
+ {title}
+ </h3>
+ <p className="text-pretty text-base leading-relaxed text-slate-600 sm:text-lg sm:leading-7">
+ {description}
+ </p>
+ </div>
+
+ {/* video container */}
+ <div className="relative w-full max-w-[800px]">
+ {/* Mac OS Frame around the video */}
+ <div className="relative overflow-hidden rounded-xl border border-b-0 border-l-0 border-r-0 border-slate-200 bg-white md:rounded-2xl">
+ {/* Browser chrome bar */}
+ <div className="h-8 w-full rounded-t-xl bg-gradient-to-b from-[#F3F3F3] to-[#E9E9E9] px-4 shadow-sm md:h-12 md:rounded-t-2xl">
+ <div className="flex h-full items-center">
+ <div className="flex space-x-2">
+ <div className="h-2.5 w-2.5 rounded-full bg-[#FF5F57] md:h-3 md:w-3"></div>
+ <div className="h-2.5 w-2.5 rounded-full bg-[#FEBC2E] md:h-3 md:w-3"></div>
+ <div className="h-2.5 w-2.5 rounded-full bg-[#28C840] md:h-3 md:w-3"></div>
+ </div>
+ </div>
+ </div>
+ {/* Video container */}
+ <div className="relative aspect-[16.6/8.9] h-full w-full lg:aspect-[16.99/9.1]">
+ {/* Auto play video for desktop */}
+ <AutoPlayVideo
+ className="hidden xl:block"
+ src={videoSrc}
+ posterImg={videoFallbackImg}
+ description={videoDescription}
+ testId={testId}
+ />
+ {/* Manual play video for mobile for better UX */}
+ <ManualPlayVideo
+ className="xl:hidden"
+ src={videoSrc}
+ posterImg={videoFallbackImg}
+ description={videoDescription}
+ testId={testId}
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/src/app/[locale]/about/components/features-carousel.tsx b/src/app/[locale]/about/components/features-carousel.tsx
new file mode 100644
index 0000000..59e2b11
--- /dev/null
+++ b/src/app/[locale]/about/components/features-carousel.tsx
@@ -0,0 +1,139 @@
+"use client";
+
+import { ChevronLeft, ChevronRight } from "lucide-react";
+import { useCallback, useEffect, useState } from "react";
+
+import {
+ Carousel,
+ CarouselContent,
+ CarouselItem,
+ type CarouselApi,
+} from "@/components/ui/carousel";
+import { cn } from "@/lib/utils";
+import { FeatureCard, type FeatureCardProps } from "./feature-card";
+
+interface FeaturesCarouselProps {
+ features: Omit<FeatureCardProps, "className">[];
+ translations: {
+ /** Accessible name for the carousel region, e.g. "Product features" */
+ label: string;
+ previousFeature: string;
+ nextFeature: string;
+ };
+}
+
+/**
+ * Carousel with the marketing feature demos: one card per view on mobile,
+ * two per view from `lg` up (same as the grid it replaced).
+ *
+ * Loops, so the previous/next buttons stay enabled and wrap around at both ends.
+ */
+export function FeaturesCarousel({
+ features,
+ translations,
+}: FeaturesCarouselProps) {
+ const [api, setApi] = useState<CarouselApi>();
+ const [selectedIndex, setSelectedIndex] = useState(0);
+
+ useEffect(() => {
+ if (!api) return;
+
+ function syncSelectedIndex(carouselApi: CarouselApi) {
+ if (carouselApi) setSelectedIndex(carouselApi.selectedScrollSnap());
+ }
+
+ syncSelectedIndex(api);
+ api.on("select", syncSelectedIndex);
+ api.on("reInit", syncSelectedIndex);
+
+ return () => {
+ api.off("select", syncSelectedIndex);
+ api.off("reInit", syncSelectedIndex);
+ };
+ }, [api]);
+
+ const scrollTo = useCallback((index: number) => api?.scrollTo(index), [api]);
+
+ return (
+ <Carousel
+ setApi={setApi}
+ opts={{ loop: true, align: "start" }}
+ aria-label={translations.label}
+ className="pt-10 sm:px-4 lg:px-0"
+ data-testid="features-carousel"
+ >
+ {/* The negative margins cancel the `p-2` of the carousel viewport plus each slide's
+ own gutter, so the cards run edge to edge on mobile, and from `sm` up they open
+ the gutter between slides. On mobile `-ml-6` = 8px (viewport padding) + 16px
+ (the slide's `pl-4`), which parks the gutter off-screen: a card still fills the
+ full width at rest, and the 16px only becomes visible mid-swipe, between cards.
+ Cards stretch to the tallest one at every breakpoint, so swiping never changes
+ the height of the carousel. */}
+ <CarouselContent className="-ml-6 -mr-2 items-stretch sm:-ml-4 sm:mr-0 lg:-ml-6 xl:-ml-10">
+ {features.map((feature) => (
+ <CarouselItem
+ key={feature.translationKey}
+ // one card per view on mobile, two from `lg` up. Mobile takes the full
+ // width so the demo video is as large as it can be; the arrows and dots
+ // below carry the "there is more" affordance that the peeking card did.
+ // The `pl-4` that `CarouselItem` hardcodes is the gutter between cards; the
+ // track's `-ml-6` pulls it off-screen so it only shows while scrolling
+ className="basis-full sm:basis-[70%] md:basis-[55%] lg:basis-1/2 lg:pl-6 xl:pl-10"
+ >
+ <FeatureCard {...feature} />
+ </CarouselItem>
+ ))}
+ </CarouselContent>
+
+ {/* Controls: previous/next arrows and one dot per feature */}
+ <div className="flex items-center justify-center gap-2 pt-6 lg:gap-4">
+ <button
+ type="button"
+ aria-label={translations.previousFeature}
+ onClick={() => api?.scrollPrev()}
+ className={arrowButtonClassName}
+ >
+ <ChevronLeft className="size-5" aria-hidden="true" />
+ </button>
+
+ <div role="group" className="flex items-center gap-2">
+ {features.map((feature, index) => (
+ <button
+ key={feature.translationKey}
+ type="button"
+ // the feature title keeps the label localized, unlike a hardcoded "Go to slide N"
+ aria-label={feature.title}
+ aria-current={index === selectedIndex}
+ onClick={() => scrollTo(index)}
+ className="rounded-full p-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900 focus-visible:ring-offset-2"
+ >
+ <span
+ aria-hidden="true"
+ className={cn(
+ "block size-2 rounded-full bg-slate-300 transition-colors",
+ index === selectedIndex && "bg-slate-900",
+ )}
+ />
+ </button>
+ ))}
+ </div>
+
+ <button
+ type="button"
+ aria-label={translations.nextFeature}
+ onClick={() => api?.scrollNext()}
+ className={arrowButtonClassName}
+ >
+ <ChevronRight className="size-5" aria-hidden="true" />
+ </button>
+ </div>
+ </Carousel>
+ );
+}
+
+const arrowButtonClassName = cn(
+ "inline-flex size-10 shrink-0 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-700 shadow-sm transition-colors",
+ "hover:border-slate-300 hover:bg-slate-50 hover:text-slate-900",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900 focus-visible:ring-offset-2",
+ "active:scale-[98%] active:transition-transform",
+);
diff --git a/src/app/[locale]/about/loading.tsx b/src/app/[locale]/about/loading.tsx
index 9d758b5..cf2e770 100644
--- a/src/app/[locale]/about/loading.tsx
+++ b/src/app/[locale]/about/loading.tsx
@@ -1,94 +1,429 @@
-import { Footer } from "@/app/(components)/footer";
+import { AboutFooter } from "@/app/[locale]/about/components/about-footer";
import { HeaderSkeleton } from "@/app/(components)/header/header-skeleton";
import { Skeleton } from "@/components/ui/skeleton";
+import { cn } from "@/lib/utils";
+/**
+ * Loading state for the about page.
+ *
+ * It mirrors `page.tsx` section by section: every wrapper keeps the real
+ * section's padding, grid and frame, and only the parts that wait on data or
+ * translations (headings, copy, buttons, demo videos) become skeletons. Each
+ * skeleton reserves the exact line box or fixed size of what replaces it, so
+ * the page does not move when the real content takes over.
+ */
export default function AboutLoading() {
return (
<div className="flex min-h-screen flex-col bg-slate-50">
<HeaderSkeleton />
<main>
- {/* Hero Section */}
- <section className="flex w-full items-center justify-center bg-white py-12 md:py-24 lg:py-32 lg:pb-44">
- <div className="container px-4 md:px-6">
- <div className="grid gap-6 lg:grid-cols-2">
- <div className="flex flex-col justify-center space-y-4">
- <div className="space-y-2">
- <Skeleton className="h-12 w-[80%] sm:h-14" />
- <Skeleton className="h-16 w-[60%]" />
- </div>
- <div className="flex flex-col gap-2 md:flex-row">
- <Skeleton className="h-11 w-[160px]" />
- <Skeleton className="h-11 w-[160px]" />
- </div>
- <Skeleton className="h-4 w-[200px]" />
+ <HeroSectionSkeleton />
+ <FeaturesSectionSkeleton />
+
+ {/* GitHub star CTA */}
+ <div className="flex justify-center py-8 pb-10 lg:py-6 lg:pb-16">
+ <Skeleton className="h-12 w-[235px] rounded-full" />
+ </div>
+
+ <FaqSectionSkeleton />
+ <CtaSectionSkeleton />
+ </main>
+
+ {/* The footer is static, so the loading state renders the real one */}
+ <AboutFooter />
+ </div>
+ );
+}
+
+function HeroSectionSkeleton() {
+ return (
+ <section className="flex w-full items-center justify-center overflow-hidden bg-gradient-to-b from-white to-slate-50 py-10 md:py-16 xl:py-24">
+ {/* Background decorative elements */}
+ <div
+ className="pointer-events-none absolute inset-0 overflow-hidden"
+ data-info="background-decorative-elements"
+ >
+ <div className="absolute -right-40 -top-40 h-80 w-80 rounded-full bg-indigo-50/50 blur-3xl" />
+ <div className="absolute bottom-0 left-1/4 h-64 w-64 rounded-full bg-emerald-50/40 blur-3xl" />
+ </div>
+
+ {/* Blur transition overlay between header and hero */}
+ <div
+ data-info="blur-transition-overlay"
+ className="pointer-events-none absolute left-0 right-0 top-[25px] h-32 bg-gradient-to-b from-slate-100 to-slate-50 blur-2xl"
+ />
+
+ <div className="container relative z-10 px-4 md:px-6">
+ <div className="grid gap-6 md:gap-8 lg:gap-12 xl:grid-cols-2 xl:gap-6">
+ {/* Left column start (text and CTA buttons) */}
+ <div className="flex flex-col justify-center space-y-5 md:space-y-6">
+ <div className="space-y-3 md:space-y-4">
+ {/* Title: two lines of `text-4xl sm:text-5xl md:text-6xl` */}
+ <div>
+ <TextLineSkeleton
+ className="h-10 justify-center sm:h-12 md:h-[60px] xl:justify-start"
+ barClassName="w-[88%] max-w-[540px]"
+ />
+ <TextLineSkeleton
+ className="h-10 justify-center sm:h-12 md:h-[60px] xl:justify-start"
+ barClassName="w-[62%] max-w-[400px]"
+ />
</div>
- <div className="aspect-video w-full">
- <Skeleton className="h-full w-full rounded-lg" />
+
+ {/* Description: five lines on mobile, three from `sm` up where the
+ container widens, and `text-lg` line boxes from `md` up */}
+ <div className="flex justify-center xl:justify-start">
+ <div className="w-full px-4 md:max-w-[500px] lg:px-0">
+ <TextLineSkeleton
+ className="h-6 justify-center md:h-7 xl:justify-start"
+ barClassName="w-full"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center md:h-7 xl:justify-start"
+ barClassName="w-[95%]"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center md:h-7 xl:justify-start"
+ barClassName="w-[90%] sm:w-[70%]"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:hidden"
+ barClassName="w-[92%]"
+ />
+ {/* <TextLineSkeleton
+ className="h-6 justify-center sm:hidden"
+ barClassName="w-[55%]"
+ /> */}
+ </div>
</div>
</div>
+
+ {/* CTA Buttons (Go to app and GitHub). They only sit side by side
+ from `lg` up; below that each one takes the full width. */}
+ <div className="flex w-full flex-col justify-center gap-3 sm:flex-row sm:flex-wrap xl:justify-start">
+ <Skeleton className="h-[50px] w-full rounded-lg lg:w-[270px]" />
+ <Skeleton className="h-[50px] w-full rounded-lg lg:w-[270px]" />
+ </div>
</div>
- </section>
-
- {/* Features Section */}
- <section className="flex w-full items-center justify-center bg-slate-50 py-12 md:py-24">
- <div className="container px-4 md:px-6">
- <div className="flex flex-col items-center justify-center space-y-4 text-center">
- <Skeleton className="h-8 w-32" />
- <div className="space-y-2">
- <Skeleton className="mx-auto h-10 w-[60%]" />
- <Skeleton className="mx-auto h-16 w-[80%]" />
+ {/* Left column end */}
+
+ {/* Right column start (video) */}
+ <div className="relative mx-auto w-full max-w-[950px] xl:mx-0">
+ {/* Mac OS Frame around the video */}
+ <div className="relative overflow-hidden rounded-xl border border-slate-200 bg-white shadow-lg md:rounded-2xl md:shadow-xl">
+ <BrowserChromeBar />
+ <div className="relative aspect-video w-full">
+ <Skeleton className="size-full rounded-none" />
</div>
</div>
- <div className="mx-auto grid max-w-5xl items-center gap-6 pt-10 md:grid-cols-2 md:gap-10 lg:grid-cols-3">
- {Array.from({ length: 6 }).map((_, i) => (
+ </div>
+ {/* Right column end */}
+ </div>
+ </div>
+ </section>
+ );
+}
+
+function FeaturesSectionSkeleton() {
+ return (
+ <section className="mt-6 flex w-full items-center justify-center bg-slate-50 py-4 lg:py-8 xl:mt-16 xl:py-16">
+ <div className="container lg:max-w-[53rem] xl:max-w-[1280px] 2xl:max-w-[1536px]">
+ {/* Features section title and description */}
+ <div className="flex w-full flex-col items-center justify-center space-y-8 px-4 text-center md:px-6">
+ <div className="w-full space-y-5">
+ {/* Title: `text-3xl sm:text-4xl md:text-5xl`, one line from `xl` up */}
+ <div>
+ <TextLineSkeleton
+ className="h-9 justify-center sm:h-10 md:h-12"
+ barClassName="w-[85%] max-w-[900px]"
+ />
+ <TextLineSkeleton
+ className="h-9 justify-center sm:h-10 md:h-12 xl:hidden"
+ barClassName="w-[60%] max-w-[640px]"
+ />
+ </div>
+
+ {/* Description: `text-base sm:text-lg md:text-xl` */}
+ <div className="mx-auto max-w-[700px]">
+ <TextLineSkeleton
+ className="h-6 justify-center sm:h-7"
+ barClassName="w-full"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:h-7"
+ barClassName="w-[88%] sm:w-[70%]"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:hidden"
+ barClassName="w-[55%]"
+ />
+ </div>
+ </div>
+
+ {/* "coming soon" badge. The two bars add up to the width of the real
+ label, so they wrap onto a second line exactly where it does. */}
+ <div className="inline-flex flex-wrap items-center justify-center gap-x-1 rounded-md border border-amber-200 bg-amber-100 px-3 py-1 shadow-sm">
+ <Skeleton className="h-5 w-[220px] max-w-full bg-amber-200" />
+ <Skeleton className="h-5 w-[110px] max-w-full bg-amber-200" />
+ </div>
+ </div>
+
+ {/* Features cards: the carousel at rest, with the same track, gutters and
+ card frame as `<FeaturesCarousel />`. Two slides is all that is ever
+ visible, and the track clips whatever would follow them. */}
+ <div className="pt-10 sm:px-4 lg:px-0">
+ <div className="overflow-hidden p-2">
+ <div className="-ml-6 -mr-2 flex items-stretch sm:-ml-4 sm:mr-0 lg:-ml-6 xl:-ml-10">
+ {Array.from({ length: 2 }).map((_, index) => (
<div
- key={i}
- className="flex h-full flex-col items-start gap-4 rounded-lg border border-slate-100 bg-white p-6"
+ key={index}
+ className="min-w-0 shrink-0 grow-0 basis-full pl-4 sm:basis-[70%] md:basis-[55%] lg:basis-1/2 lg:pl-6 xl:pl-10"
>
- <Skeleton className="h-10 w-10" />
- <div className="w-full space-y-2">
- <Skeleton className="h-6 w-[70%]" />
- <Skeleton className="h-20 w-full" />
- </div>
+ <FeatureCardSkeleton />
</div>
))}
</div>
</div>
- </section>
-
- {/* FAQ Section */}
- <section className="flex w-full items-center justify-center bg-white py-12 md:py-24">
- <div className="container px-4 md:px-6">
- <div className="flex flex-col items-center justify-center space-y-4 text-center">
- <div className="w-full space-y-2">
- <Skeleton className="mx-auto h-10 w-[60%]" />
- <Skeleton className="mx-auto h-16 w-[80%]" />
- </div>
- <div className="w-full max-w-md">
- <Skeleton className="h-10 w-full" />
- </div>
+
+ {/* Controls: previous/next arrows and one dot per feature */}
+ <div className="flex items-center justify-center gap-2 pt-6 lg:gap-4">
+ <Skeleton className="size-10 shrink-0 rounded-full" />
+ <div className="flex items-center gap-2">
+ {Array.from({ length: 6 }).map((_, index) => (
+ <div key={index} className="p-1.5">
+ <Skeleton className="size-2 rounded-full" />
+ </div>
+ ))}
+ </div>
+ <Skeleton className="size-10 shrink-0 rounded-full" />
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+}
+
+function FeatureCardSkeleton() {
+ return (
+ <div className="flex h-full w-full flex-col items-start gap-2 rounded-xl bg-white shadow-sm ring-1 ring-slate-200 sm:min-h-[465px] md:items-center md:rounded-2xl">
+ {/* text content */}
+ <div className="w-full max-w-[700px] flex-1 px-6 pb-4 pt-5 sm:px-8 sm:pb-4 sm:pt-6">
+ {/* Title: `text-xl leading-tight sm:text-2xl`, one line except between
+ `lg` and `xl`, where the cards are at their narrowest two-up */}
+ <div className="pb-2 sm:pb-4">
+ <TextLineSkeleton
+ className="h-[25px] sm:h-8"
+ barClassName="w-[70%]"
+ />
+ <TextLineSkeleton
+ className="hidden h-8 lg:flex xl:hidden"
+ barClassName="w-[40%]"
+ />
+ </div>
+
+ {/* Description: `text-base leading-relaxed sm:text-lg sm:leading-7` */}
+ <div>
+ <TextLineSkeleton className="h-[26px] sm:h-7" barClassName="w-full" />
+ <TextLineSkeleton
+ className="h-[26px] sm:h-7"
+ barClassName="w-[95%] xl:w-[65%]"
+ />
+ <TextLineSkeleton
+ className="h-[26px] sm:h-7 xl:hidden"
+ barClassName="w-[60%]"
+ />
+ </div>
+ </div>
+
+ {/* video container */}
+ <div className="relative w-full max-w-[800px]">
+ {/* Mac OS Frame around the video */}
+ <div className="relative overflow-hidden rounded-xl border border-b-0 border-l-0 border-r-0 border-slate-200 bg-white md:rounded-2xl">
+ <BrowserChromeBar />
+ <div className="relative aspect-[16.6/8.9] h-full w-full lg:aspect-[16.99/9.1]">
+ <Skeleton className="size-full rounded-none" />
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/**
+ * Each FAQ question, as the two runs of text it breaks into.
+ *
+ * The runs add up to the width the real question renders at, so a question
+ * drops onto a second line exactly where the real one does, and the list keeps
+ * its height on narrow screens as well as wide ones.
+ */
+const FAQ_QUESTION_RUNS = [
+ ["w-[114px]", "w-[67px]"],
+ ["w-[139px]", "w-[82px]"],
+ ["w-[286px]", "w-[134px]"],
+ ["w-[256px]", "w-[120px]"],
+ ["w-[169px]", "w-[101px]"],
+ ["w-[174px]", "w-[104px]"],
+ ["w-[149px]", "w-[88px]"],
+ ["w-[126px]", "w-[74px]"],
+ ["w-[136px]", "w-[80px]"],
+] as const;
+
+function FaqSectionSkeleton() {
+ return (
+ <section className="flex w-full items-center justify-center bg-white py-12 md:py-20">
+ <div className="container px-4 md:px-6">
+ <div className="flex flex-col items-center justify-center space-y-4 text-center">
+ <div className="w-full space-y-5">
+ {/* Title: `text-3xl sm:text-4xl md:text-5xl`, one line from `sm` up */}
+ <div>
+ <TextLineSkeleton
+ className="h-9 justify-center sm:h-10 md:h-12"
+ barClassName="w-[80%] max-w-[420px]"
+ />
+ <TextLineSkeleton
+ className="h-9 justify-center sm:hidden"
+ barClassName="w-[50%]"
+ />
+ </div>
+
+ {/* Description: `text-base sm:text-lg md:text-xl` */}
+ <div className="mx-auto max-w-[700px]">
+ <TextLineSkeleton
+ className="h-6 justify-center sm:h-7"
+ barClassName="w-full"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:h-7"
+ barClassName="w-[92%] sm:w-[62%]"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:hidden"
+ barClassName="w-[96%]"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:hidden"
+ barClassName="w-[45%]"
+ />
</div>
</div>
- </section>
-
- {/* CTA Section */}
- <section className="flex w-full items-center justify-center bg-slate-900 py-12 md:py-24 lg:py-32">
- <div className="container px-4 md:px-6">
- <div className="flex flex-col items-center justify-center space-y-4">
- <Skeleton className="h-4 w-[200px]" />
- <div className="flex w-full flex-col items-center justify-center gap-6">
- <div className="flex gap-2">
- <Skeleton className="h-11 w-[160px]" />
- <Skeleton className="h-11 w-[160px]" />
+ </div>
+
+ <div className="mx-auto mt-14 max-w-3xl">
+ <div className="space-y-2">
+ {FAQ_QUESTION_RUNS.map((runs, index) => (
+ <div
+ key={index}
+ className="border-b border-dashed border-stone-300 last:border-b-0"
+ >
+ <div className="flex items-center justify-between gap-2 py-3">
+ {/* Question: one `text-base` line box per run that fits */}
+ <div className="flex flex-wrap gap-x-1">
+ {runs.map((width) => (
+ <div
+ key={width}
+ className={cn(
+ "flex h-6 max-w-full shrink-0 items-center",
+ width,
+ )}
+ >
+ <Skeleton className="h-3.5 w-full" />
+ </div>
+ ))}
+ </div>
+ {/* The plus icon that expands the answer */}
+ <Skeleton className="size-5 shrink-0 rounded-md" />
</div>
</div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+}
+
+function CtaSectionSkeleton() {
+ return (
+ <section className="flex w-full items-center justify-center bg-slate-900 py-12 md:py-24 lg:py-32">
+ <div className="container px-4 md:px-6">
+ <div className="flex flex-col items-center justify-center space-y-7 text-center">
+ <div className="flex w-full flex-col items-center justify-center space-y-2">
+ {/* Title: `text-3xl md:text-5xl/tight`, one line from `md` up */}
+ <div className="w-full">
+ <TextLineSkeleton
+ className="h-9 justify-center md:h-[60px]"
+ barClassName="w-[80%] max-w-[620px] bg-slate-700"
+ />
+ <TextLineSkeleton
+ className="h-9 justify-center sm:hidden"
+ barClassName="w-[55%] bg-slate-700"
+ />
+ </div>
+
+ {/* Description: `text-base md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed` */}
+ <div className="w-full max-w-[600px]">
+ <TextLineSkeleton
+ className="h-6 justify-center md:h-[32.5px] lg:h-[26px] xl:h-[32.5px]"
+ barClassName="w-full bg-slate-700"
+ />
+ <TextLineSkeleton
+ className="h-6 justify-center sm:hidden md:flex md:h-[32.5px] lg:hidden lg:h-[26px] xl:flex xl:h-[32.5px]"
+ barClassName="w-[72%] bg-slate-700"
+ />
</div>
</div>
- </section>
- </main>
- <Footer />
+ <div className="flex w-full flex-col items-center justify-center gap-6">
+ <div className="flex w-full flex-col justify-center gap-2 md:flex-row">
+ <Skeleton className="h-[50px] w-full rounded-lg bg-slate-700 lg:w-[300px]" />
+ <Skeleton className="h-[50px] w-full rounded-lg bg-slate-700 lg:w-[300px]" />
+ </div>
+ {/* "No sign-up required" note: one line of `text-sm` */}
+ <TextLineSkeleton
+ className="h-5 justify-center"
+ barClassName="w-[307px] max-w-full bg-slate-700"
+ />
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+}
+
+/**
+ * One line of placeholder text.
+ *
+ * `className` sizes the wrapper to the exact line box of the copy it stands in
+ * for (`h-[60px]` for a line of `text-6xl`, and so on), so the real text drops
+ * in without moving anything below it, while the bar inside stays shorter than
+ * the line box, the way a run of text sits inside its own.
+ */
+function TextLineSkeleton({
+ className,
+ barClassName,
+}: {
+ className?: string;
+ barClassName?: string;
+}) {
+ return (
+ <div className={cn("flex w-full items-center", className)}>
+ <Skeleton className={cn("h-3/5 w-full", barClassName)} />
+ </div>
+ );
+}
+
+/** The Mac OS like browser chrome bar that sits on top of every demo video */
+function BrowserChromeBar() {
+ return (
+ <div className="h-8 w-full rounded-t-xl bg-gradient-to-b from-[#F3F3F3] to-[#E9E9E9] px-4 shadow-sm md:h-12 md:rounded-t-2xl">
+ <div className="flex h-full items-center">
+ <div className="flex space-x-2">
+ <div className="h-2.5 w-2.5 rounded-full bg-[#FF5F57] md:h-3 md:w-3" />
+ <div className="h-2.5 w-2.5 rounded-full bg-[#FEBC2E] md:h-3 md:w-3" />
+ <div className="h-2.5 w-2.5 rounded-full bg-[#28C840] md:h-3 md:w-3" />
+ </div>
+ </div>
</div>
);
}
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index fa0ea16..684ef3f 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -1,5 +1,4 @@
import { GithubIcon } from "@/components/etc/github-logo";
-import { Footer, FooterLinkGroup } from "@/app/(components)/footer";
import {
BlackGoToAppButton,
GoToAppButton,
@@ -8,13 +7,10 @@ import { Button } from "@/components/ui/button";
import { FaqAccordion, FaqAccordionItem } from "@/components/ui/faq-accordion";
import { TooltipProvider } from "@/components/ui/tooltip";
-import { AutoPlayVideo, ManualPlayVideo } from "@/components/video";
+import { AutoPlayVideo } from "@/components/video";
import {
- DISCORD_COMMUNITY_URL,
GITHUB_URL,
MARKETING_FEATURES_CARDS,
- PRODUCT_TWITTER_URL,
- REDDIT_COMMUNITY_URL,
VIDEO_DEMO_FALLBACK_IMG,
VIDEO_DEMO_URL,
} from "@/config";
@@ -24,6 +20,8 @@ import { setRequestLocale } from "next-intl/server";
import Link from "next/link";
import { ABOUT_FAQ_ITEM_KEYS } from "@/app/[locale]/about/about-faq-item-keys";
import { GithubStarCtaMarketingPageBody } from "@/app/[locale]/about/components/github-star-cta-body";
+import { FeaturesCarousel } from "@/app/[locale]/about/components/features-carousel";
+import { AboutFooter } from "@/app/[locale]/about/components/about-footer";
import { type HeaderProps, Header } from "@/app/(components)/header";
// statically generate the pages for all locales
@@ -82,88 +80,7 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {
<FaqSection />
<CtaSection />
</main>
- <Footer
- translations={{
- tagline: t("tagline"),
- aboutHeading: t("footer.headings.about"),
- solutionsHeading: t("footer.headings.solutions"),
- footerDescription: t.rich("footer.description", {
- br: () => <br />,
- tosLink: (chunks) => (
- <Link
- href="/tos"
- className="text-slate-700 underline hover:text-slate-900"
- >
- {chunks}
- </Link>
- ),
- }),
- footerCreatedBy: t("footer.createdBy"),
- resources: t("footer.links.resources"),
- }}
- links={
- <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
- <FooterLinkGroup
- heading={t("footer.headings.product")}
- links={[
- {
- href: "/?template=default",
- label: t("footer.links.invoiceGenerator"),
- },
- {
- href: GITHUB_URL,
- label: t("footer.links.github"),
- external: true,
- },
- { href: "#features", label: t("footer.links.features") },
- { href: "#faq", label: "FAQ" },
- {
- href: "/how-it-works",
- label: t("footer.links.howItWorks"),
- },
- { href: "/changelog", label: t("footer.links.changelog") },
- { href: "/llms.txt", label: "llms.txt" },
- ]}
- />
- <FooterLinkGroup
- heading={t("footer.headings.company")}
- links={[
- {
- href: `/${locale}/about`,
- label: t("buttons.home"),
- },
- { href: "/founder", label: t("footer.links.founder") },
- { href: "/tos", label: t("footer.links.termsOfService") },
- ]}
- />
- <FooterLinkGroup
- heading={t("footer.headings.community")}
- links={[
- {
- href: DISCORD_COMMUNITY_URL,
- label: t("buttons.shareFeedback"),
- external: true,
- },
- {
- href: DISCORD_COMMUNITY_URL,
- label: "Discord",
- external: true,
- },
- {
- href: REDDIT_COMMUNITY_URL,
- label: "Reddit",
- external: true,
- },
- {
- href: PRODUCT_TWITTER_URL,
- label: "X (Twitter)",
- external: true,
- },
- ]}
- />
- </div>
- }
- />
+ <AboutFooter />
</div>
</TooltipProvider>
);
@@ -302,6 +219,15 @@ function HeroSection() {
function FeaturesSection() {
const t = useTranslations("About");
+ const features = MARKETING_FEATURES_CARDS.map((feature) => ({
+ translationKey: feature.translationKey,
+ videoSrc: feature.videoSrc,
+ videoFallbackImg: feature.videoFallbackImg,
+ videoDescription: feature.videoDescription,
+ title: t(`features.items.${feature.translationKey}.title`),
+ description: t(`features.items.${feature.translationKey}.description`),
+ }));
+
return (
<section
id="features"
@@ -327,67 +253,14 @@ function FeaturesSection() {
</div>
{/* Features cards */}
- <div className="grid grid-cols-1 gap-6 pt-10 md:gap-10 lg:grid-cols-2">
- {MARKETING_FEATURES_CARDS.map((feature) => {
- const title = t(`features.items.${feature.translationKey}.title`);
- const description = t(
- `features.items.${feature.translationKey}.description`,
- );
-
- return (
- <div
- key={feature.translationKey}
- className="flex h-full w-full flex-col items-start gap-2 rounded-xl bg-white shadow-sm ring-1 ring-slate-200 md:items-center md:rounded-2xl"
- >
- {/* text content */}
- <div className="max-w-[700px] flex-1 px-8 py-4 pt-6">
- <h3 className="text-balance pb-4 text-xl font-semibold leading-tight tracking-tight text-slate-900 sm:text-2xl">
- {title}
- </h3>
- <p className="text-pretty text-base leading-relaxed text-slate-600 sm:text-lg sm:leading-7">
- {description}
- </p>
- </div>
-
- {/* video container */}
- <div className="relative w-full max-w-[800px]">
- {/* Mac OS Frame around the video */}
- <div className="relative overflow-hidden rounded-xl border border-b-0 border-l-0 border-r-0 border-slate-200 bg-white shadow-lg md:rounded-2xl md:shadow-xl">
- {/* Browser chrome bar */}
- <div className="h-8 w-full rounded-t-xl bg-gradient-to-b from-[#F3F3F3] to-[#E9E9E9] px-4 shadow-sm md:h-12 md:rounded-t-2xl">
- <div className="flex h-full items-center">
- <div className="flex space-x-2">
- <div className="h-2.5 w-2.5 rounded-full bg-[#FF5F57] md:h-3 md:w-3"></div>
- <div className="h-2.5 w-2.5 rounded-full bg-[#FEBC2E] md:h-3 md:w-3"></div>
- <div className="h-2.5 w-2.5 rounded-full bg-[#28C840] md:h-3 md:w-3"></div>
- </div>
- </div>
- </div>
- {/* Video container */}
- <div className="relative aspect-[16.6/8.9] h-full w-full lg:aspect-[16.99/9.1]">
- {/* Auto play video for desktop */}
- <AutoPlayVideo
- className="hidden xl:block"
- src={feature.videoSrc}
- posterImg={feature.videoFallbackImg}
- description={feature.videoDescription}
- testId={`${feature.translationKey}-demo-video`}
- />
- {/* Manual play video for mobile for better UX */}
- <ManualPlayVideo
- className="xl:hidden"
- src={feature.videoSrc}
- posterImg={feature.videoFallbackImg}
- description={feature.videoDescription}
- testId={`${feature.translationKey}-demo-video`}
- />
- </div>
- </div>
- </div>
- </div>
- );
- })}
- </div>
+ <FeaturesCarousel
+ features={features}
+ translations={{
+ label: t("features.title"),
+ previousFeature: t("buttons.previousFeature"),
+ nextFeature: t("buttons.nextFeature"),
+ }}
+ />
</div>
</section>
);
diff --git a/src/app/schema/i18n-schema.ts b/src/app/schema/i18n-schema.ts
index 0a202b0..633b176 100644
--- a/src/app/schema/i18n-schema.ts
+++ b/src/app/schema/i18n-schema.ts
@@ -94,6 +94,8 @@ const aboutSchema = z
app: z.string(),
startInvoicing: z.string(),
home: z.string(),
+ previousFeature: z.string(),
+ nextFeature: z.string(),
})
.strict(),
})
diff --git a/src/components/ui/carousel.tsx b/src/components/ui/carousel.tsx
index 05d9230..0398bb1 100644
--- a/src/components/ui/carousel.tsx
+++ b/src/components/ui/carousel.tsx
@@ -145,7 +145,7 @@ const CarouselContent = React.forwardRef<
const { carouselRef, orientation } = useCarousel();
return (
- <div ref={carouselRef} className="overflow-hidden">
+ <div ref={carouselRef} className="overflow-hidden p-2">
<div
ref={ref}
className={cn(