From 189a84b69f420f252e0302cd450c6f63b5603cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Wed, 31 Jul 2024 16:07:10 +0200 Subject: [PATCH] feat: center home page main layout --- apps/website/app/[locale]/page.tsx | 7 ++++--- packages/ui/src/Layout/MainLayout/MainLayout.tsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/website/app/[locale]/page.tsx b/apps/website/app/[locale]/page.tsx index 572790d..2e3a3e9 100644 --- a/apps/website/app/[locale]/page.tsx +++ b/apps/website/app/[locale]/page.tsx @@ -12,6 +12,7 @@ import { unstable_setRequestLocale } from "next-intl/server" import Image from "next/image" import WikipediaLogo from "#public/images/Wikipedia-Logo.webp" +import { Section } from "@repo/ui/Layout/Section" interface HomePageProps extends LocaleProps {} @@ -26,8 +27,8 @@ const HomePage: React.FC = (props) => { const localeWikipedia = fromLocaleToWikipediaLocale(params.locale) return ( - -
+ +
{t("home.title")} @@ -43,7 +44,7 @@ const HomePage: React.FC = (props) => { }, })} -
+
Wikipedia diff --git a/packages/ui/src/Layout/MainLayout/MainLayout.tsx b/packages/ui/src/Layout/MainLayout/MainLayout.tsx index 974cfa5..919e7b2 100644 --- a/packages/ui/src/Layout/MainLayout/MainLayout.tsx +++ b/packages/ui/src/Layout/MainLayout/MainLayout.tsx @@ -12,7 +12,7 @@ export const MainLayout: React.FC = (props) => { return (