mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Merge pull request #81 from TheRealOwenRees/feature/layout
Layout perfection
This commit is contained in:
@@ -19,7 +19,7 @@ const TestableLayout = ({
|
|||||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||||
<div className="bg-white font-sans leading-normal tracking-normal dark:bg-gray-800">
|
<div className="bg-white font-sans leading-normal tracking-normal dark:bg-gray-800">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<div className="relative h-content overflow-scroll">{children}</div>
|
<div className="relative min-h-content overflow-scroll">{children}</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</NextIntlClientProvider>
|
</NextIntlClientProvider>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default function Contact() {
|
|||||||
const t = useTranslations("Contact");
|
const t = useTranslations("Contact");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="grid place-items-center bg-white dark:bg-gray-800">
|
<section className="grid place-items-center bg-white pb-20 dark:bg-gray-800">
|
||||||
<div className="mx-auto max-w-screen-md px-4 py-8 lg:py-16">
|
<div className="mx-auto max-w-screen-md px-4 py-8 lg:py-16">
|
||||||
<h2
|
<h2
|
||||||
className="mb-4 text-center text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white"
|
className="mb-4 text-center text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white"
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ export default function Home() {
|
|||||||
const t = useTranslations("Home");
|
const t = useTranslations("Home");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="relative flex h-full items-center justify-center">
|
<header className="relative flex h-content items-center justify-center">
|
||||||
<div className="absolute h-full w-full brightness-[0.2]">
|
<div className="absolute h-full w-full brightness-[0.2]">
|
||||||
<Image
|
<Image
|
||||||
src={bgImage}
|
src={bgImage}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function About() {
|
|||||||
const t = useTranslations("About");
|
const t = useTranslations("About");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="grid place-items-center bg-white dark:bg-gray-800">
|
<section className="grid place-items-center bg-white pb-20 dark:bg-gray-800">
|
||||||
<div className="max-w-5xl px-4 py-8 lg:py-16">
|
<div className="max-w-5xl px-4 py-8 lg:py-16">
|
||||||
<h2
|
<h2
|
||||||
className="mb-8 text-center text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white"
|
className="mb-8 text-center text-4xl font-extrabold tracking-tight text-gray-900 dark:text-white"
|
||||||
|
|||||||
+4
-1
@@ -8,10 +8,13 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
height: {
|
minHeight: {
|
||||||
// We use 100svh, falling back to vh for old browsers
|
// We use 100svh, falling back to vh for old browsers
|
||||||
// The 144px is for the header and footer
|
// The 144px is for the header and footer
|
||||||
content: ['calc(100vh - 144px)', 'calc(100svh - 144px)'],
|
content: ['calc(100vh - 144px)', 'calc(100svh - 144px)'],
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
content: ['calc(100vh - 144px)', 'calc(100svh - 144px)'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user