Intégration accueil

Mise en place du header, main et footer.
Intégration des couleurs du site
Intégration des mascottes Ryo et Kiki
This commit is contained in:
SephiGame 2025-04-23 15:22:09 +02:00
parent 53883f9e04
commit a13c507ad0
8 changed files with 76 additions and 101 deletions

2
.env
View File

@ -4,4 +4,4 @@
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="mysql://monelia:monelia@localhost:3306/monelia?schema=public"
DATABASE_URL="mysql://sephigame:SephEsport33!@192.168.1.26:3306/Monelia_Nails?schema=public"

BIN
public/Kiki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
public/Ryo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,10 @@
const Footer = () => {
return (
<footer>
Footer
</footer>
)
}
export default Footer

View File

@ -0,0 +1,22 @@
import Image from "next/image"
import Link from "next/link"
const Header = () => {
return (
<header className='grid grid-cols-[1fr_auto_1fr]'>
<div className="flex h-[50px] gap-4 pl-8 my-auto">
<Image src={'/Ryo.png'} alt={"Ryo"} width={40} height={50} />
<Image src={'/Kiki.png'} alt={"Ryo"} width={40} height={50} />
</div>
<div className='my-auto text-2xl'>
Monelia Nails
</div>
<div>
</div>
</header>
)
}
export default Header

View File

@ -1,15 +1,24 @@
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
--background: rgb(245,235,221);
--color-menu: rgb(204, 195, 181);
--color-text: rgb(92,74,66);
--color-title: rgb(216,163,157);
--color-accent: rgb(203,174,158);
--color-buttons: rgb(200,213,193);
--color-bold: rgb(238,200,195);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
--text: var(--color-text);
--title: var(--color-title);
--accent: var(--color-accent);
--buttons: var(--color-buttons);
--bold: var(--color-bold);
}
@media (prefers-color-scheme: dark) {
@ -24,3 +33,27 @@ body {
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
header {
background: var(--color-menu);
height: 10vh;
}
b {
color : var(--color-bold)
}
button {
background: var(--color-buttons);
padding: 0.5rem 2rem;
border-radius: 0.5rem;
}
button:hover {
background: var(--color-accent);
cursor: pointer;
}
footer {
background: var(--color-menu);
}

View File

@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Header from "./components/header";
import Footer from "./components/footer";
const geistSans = Geist({
variable: "--font-geist-sans",
@ -25,9 +27,11 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
className={`${geistSans.variable} ${geistMono.variable} antialiased grid grid-rows-[auto_1fr_auto] h-screen overflow-hidden`}
>
<Header />
{children}
<Footer />
</body>
</html>
);

View File

@ -2,102 +2,8 @@ import Image from "next/image";
export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-[32px] row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm/6 text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2 tracking-[-.01em]">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-[family-name:var(--font-geist-mono)] font-semibold">
src/app/page.tsx
</code>
.
</li>
<li className="tracking-[-.01em]">
Save and see your changes instantly.
</li>
</ol>
<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-[24px] flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org
</a>
</footer>
<div className="">
Test
</div>
);
}