add BlogCTASection and BlogSubForm components with translations for blog subscription

This commit is contained in:
2026-06-02 19:32:50 +02:00
parent a8c8b61a3f
commit 77f3c4ddbd
6 changed files with 261 additions and 0 deletions
+14
View File
@@ -1,6 +1,9 @@
import { getAllArticles } from "@/lib/blog/get-articles";
import { BlogHero } from "@/app/[locale]/blog/_components/BlogHero";
import { BlogCTASection } from "@/app/[locale]/blog/_components/BlogCTASection";
import { ArticleList } from "@/app/[locale]/blog/[slug]/_components/ArticleList";
import { getTranslations } from "next-intl/server";
import { BlogSubFormController } from '@/components/ui/BlogSubFormController';
type props = {
params: Promise<{ locale: string }>;
@@ -8,11 +11,22 @@ type props = {
export default async function BlogPage({ params }: props) {
const { locale } = await params;
const t = await getTranslations('blogPage.blogSubscription');
const articles = getAllArticles(locale);
return (
<main className="bg-brand-beige">
<BlogSubFormController />
<BlogHero />
<BlogCTASection
locale={locale}
title={t("title")}
text={t("text")}
cta={t("cta")}
/>
<ArticleList locale={locale} articles={articles} />
</main>
);