diff --git a/app/globals.css b/app/globals.css deleted file mode 100644 index fd81e88..0000000 --- a/app/globals.css +++ /dev/null @@ -1,27 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} diff --git a/app/layout.tsx b/app/layout.tsx index 40e027f..cc21aa1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,22 +1,17 @@ -import type { Metadata } from 'next' -import { Inter } from 'next/font/google' -import './globals.css' +import type { Metadata } from 'next'; +import { Inter } from 'next/font/google'; -const inter = Inter({ subsets: ['latin'] }) +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { - title: 'Create Next App', - description: 'Generated by create next app', -} + title: 'Create Next App', + description: 'Generated by create next app', +}; -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - {children} - - ) +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + + {children} + + ); } diff --git a/app/page.tsx b/app/page.tsx index e396bc7..6a01422 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,113 +1,25 @@ -import Image from 'next/image' +'use client'; + +import { useState } from 'react'; export default function Home() { - return ( -
-
-

- Get started by editing  - app/page.tsx -

-
- - By{' '} - Vercel Logo - -
-
+ const [password, setPassword] = useState(''); -
- Next.js Logo -
+ function handleSubmit(event: React.FormEvent) { + event.preventDefault(); -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
+ console.log(password); + setPassword(''); + } - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Explore starter templates for Next.js. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
- ) + return ( +
+

Calendrier-avant

+

Please enter the password :

+
+ setPassword(e.target.value)}> + +
+
+ ); } diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file