Compare commits
No commits in common. "189a84b69f420f252e0302cd450c6f63b5603cc1" and "7d7ef1022614699fdefa11b1227b8aa7b0fffbf7" have entirely different histories.
189a84b69f
...
7d7ef10226
@ -12,7 +12,6 @@ import { unstable_setRequestLocale } from "next-intl/server"
|
|||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
|
|
||||||
import WikipediaLogo from "#public/images/Wikipedia-Logo.webp"
|
import WikipediaLogo from "#public/images/Wikipedia-Logo.webp"
|
||||||
import { Section } from "@repo/ui/Layout/Section"
|
|
||||||
|
|
||||||
interface HomePageProps extends LocaleProps {}
|
interface HomePageProps extends LocaleProps {}
|
||||||
|
|
||||||
@ -27,8 +26,8 @@ const HomePage: React.FC<HomePageProps> = (props) => {
|
|||||||
const localeWikipedia = fromLocaleToWikipediaLocale(params.locale)
|
const localeWikipedia = fromLocaleToWikipediaLocale(params.locale)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MainLayout center>
|
<MainLayout>
|
||||||
<Section horizontalSpacing>
|
<section className="text-center">
|
||||||
<Typography as="h1" variant="h1">
|
<Typography as="h1" variant="h1">
|
||||||
{t("home.title")}
|
{t("home.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@ -44,7 +43,7 @@ const HomePage: React.FC<HomePageProps> = (props) => {
|
|||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Section>
|
</section>
|
||||||
|
|
||||||
<section className="my-6 flex items-center justify-center">
|
<section className="my-6 flex items-center justify-center">
|
||||||
<Image src={WikipediaLogo} alt="Wikipedia" className="w-72" />
|
<Image src={WikipediaLogo} alt="Wikipedia" className="w-72" />
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
|
|
||||||
export const THEMES = ["light", "dark"] as const
|
export const THEMES = ["light", "dark"] as const
|
||||||
export type Theme = (typeof THEMES)[number]
|
export type Theme = (typeof THEMES)[number]
|
||||||
export const THEME_DEFAULT = "light" as Theme
|
export const THEME_DEFAULT = "dark" as Theme
|
||||||
|
|
||||||
export interface ThemeProviderProps extends React.PropsWithChildren {}
|
export interface ThemeProviderProps extends React.PropsWithChildren {}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ export const MainLayout: React.FC<MainLayoutProps> = (props) => {
|
|||||||
return (
|
return (
|
||||||
<main
|
<main
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"min-h-[calc(100vh-133px)] md:mx-auto md:max-w-4xl lg:max-w-7xl",
|
"min-h-[calc(100vh-188px)] md:mx-auto md:max-w-4xl lg:max-w-7xl",
|
||||||
{
|
{
|
||||||
"flex flex-col items-center justify-center text-center": center,
|
"flex flex-col items-center justify-center text-center": center,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user