-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Rondio
authored and
David Rondio
committed
Sep 30, 2024
1 parent
9720ed8
commit f5f8995
Showing
9 changed files
with
150 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,14 @@ | ||
export default function Home() { | ||
return ( | ||
<> | ||
<div className="bg-white"> | ||
<div className="mx-auto max-w-7xl py-24 sm:px-6 sm:py-32 lg:px-8"> | ||
<div className="isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24"> | ||
<svg | ||
viewBox="0 0 1024 1024" | ||
aria-hidden="true" | ||
className="absolute left-1/2 top-1/2 -z-10 h-[64rem] w-[64rem] -translate-y-1/2 [mask-image:radial-gradient(closest-side,white,transparent)] sm:left-full sm:-ml-80 lg:left-1/2 lg:ml-0 lg:-translate-x-1/2 lg:translate-y-0" | ||
> | ||
<circle | ||
r={512} | ||
cx={512} | ||
cy={512} | ||
fill="url(#759c1415-0410-454c-8f7c-9a820de03641)" | ||
fillOpacity="0.7" | ||
/> | ||
<defs> | ||
<radialGradient id="759c1415-0410-454c-8f7c-9a820de03641"> | ||
<stop stopColor="#7775D6" /> | ||
<stop offset={1} stopColor="#E935C1" /> | ||
</radialGradient> | ||
</defs> | ||
</svg> | ||
<div className="mx-auto text-center"> | ||
<h2 className="text-2xl font-bold text-white sm:text-3xl"> | ||
TEAM DEVELOPMENT STARTER KIT | ||
<br /> | ||
Boost your productivity ! | ||
</h2> | ||
|
||
<div className="my-10 flex items-center justify-center gap-x-6"> | ||
<p className="rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"> | ||
Welcome | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<section className="py-24"> | ||
<div className="container"> | ||
<h1 className="text-3xl font-bold">TEAM DEVELOPMENT STARTER KIT</h1> | ||
<p className="text-muted-foreground mt-3"> | ||
Boost your productivity ! | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use client'; | ||
|
||
import { ThemeProvider } from 'next-themes'; | ||
|
||
export default function Providers({ children }: { children: React.ReactNode }) { | ||
return <ThemeProvider attribute="class">{children}</ThemeProvider>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Link from 'next/link'; | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className="py-4"> | ||
<div className="text-muted-foreground container flex flex-col items-center justify-between gap-x-3 gap-y-1 text-center text-sm sm:flex-row"> | ||
<p> | ||
Starter Kit ©{new Date().getFullYear()}. All rights reserved. | ||
</p> | ||
<p className="text-xs"> | ||
Developed by{' '} | ||
<Link | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-primary hover:text-accent-foreground transition-colors" | ||
href="/" | ||
> | ||
Compagny Name | ||
</Link> | ||
</p> | ||
</div> | ||
</footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Link from 'next/link'; | ||
|
||
import ThemeButton from './theme-button'; | ||
|
||
export default function Header() { | ||
return ( | ||
<header className="py-6"> | ||
<nav className="container flex items-center justify-between"> | ||
<Link href="/">Accueil</Link> | ||
|
||
<ThemeButton /> | ||
</nav> | ||
</header> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client'; | ||
|
||
import { Moon, Sun } from 'lucide-react'; | ||
import { useTheme } from 'next-themes'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const ThemeButton = () => { | ||
const { resolvedTheme, setTheme } = useTheme(); | ||
|
||
const [mounted, setMounted] = useState(false); | ||
useEffect(() => setMounted(true), []); | ||
|
||
if (!mounted) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<button | ||
aria-label="Toggle Dark Mode" | ||
type="button" | ||
className="flex items-center justify-center rounded-lg p-2 transition-colors hover:bg-zinc-100 dark:hover:bg-zinc-700" | ||
onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')} | ||
> | ||
{resolvedTheme === 'dark' ? ( | ||
<Sun className="h-5 w-5 text-white transition-all" /> | ||
) : ( | ||
<Moon className="h-5 w-5 text-slate-800" /> | ||
)} | ||
<span className="sr-only">Toggle theme</span> | ||
</button> | ||
); | ||
}; | ||
|
||
export default ThemeButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters