-
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.
feat(client): add home page and navbar (#54)
* chore: update nextJS * feat: add NavBar and homepage hero section * feat: finish hero section * feat: implement who are we section for home page * feat: add home page statistics * feat: add badminton image to style home page * fix: image responsive width * fix: lint errors
- Loading branch information
Showing
15 changed files
with
142 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const navLinks = [ | ||
{ name: 'Blog', href: '/blog' }, | ||
{ name: 'Marketplace', href: '/marketplace' }, | ||
{ name: 'Evenements', href: '/blog' }, | ||
{ name: 'Sports', href: '/sports' }, | ||
{ name: 'Quizz', href: '/quizz' }, | ||
]; |
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,9 +1,81 @@ | ||
import { Button } from '@repo/ui/components/button'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
export default function Page(): JSX.Element { | ||
return ( | ||
<main> | ||
<Button variant={'default'}>Hello Admin</Button> | ||
<main className="flex flex-col items-center gap-y-8"> | ||
<section className="flex flex-col max-w-7xl gap-y-4"> | ||
<div className="flex gap-8 h-44 items-center justify-center"> | ||
<h1 className="font-semibold text-[144px]">Athlonix</h1> | ||
<div className="h-[168px] max-w-[720px]"> | ||
<Image | ||
src="/running_track.jpg" | ||
alt="running track" | ||
width={720} | ||
height={168} | ||
className="object-cover h-full rounded-tr-[96px]" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="flex gap-8 h-44 items-center justify-start flex-nowrap"> | ||
<div className="h-[168px] max-w-[492px]"> | ||
<Image | ||
src="/ski.jpg" | ||
alt="ski in mountains" | ||
width={500} | ||
height={168} | ||
className="object-cover h-full rounded-[96px]" | ||
/> | ||
</div> | ||
<h1 className="font-normal text-[144px] ">Association</h1> | ||
</div> | ||
|
||
<div className="flex gap-8 h-44 items-center justify-center"> | ||
<h1 className="font-semibold text-[144px]">Multisport</h1> | ||
<div className="max-w-[545px] h-[168px]"> | ||
<Image | ||
src="/kayak.jpg" | ||
alt="kayaks" | ||
width={720} | ||
height={168} | ||
className="object-cover h-full rounded-br-[96px]" | ||
/> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section className="flex items-center gap-6 justify-between w-full"> | ||
<div className="flex-1 max-w-[600px]"> | ||
<h1 className="mb-4">Qui sommes nous ?</h1> | ||
<p className="mb-6"> | ||
Veniam ad anim et esse nulla pariatur. Do est enim dolore laboris. Lorem labore sint consequat ex eu mollit | ||
est nostrud ad enim. Mollit proident et fugiat do ut labore aliqua quis eu laboris. | ||
</p> | ||
<Button asChild className="w-44"> | ||
<Link href="/">Deviens membre !</Link> | ||
</Button> | ||
</div> | ||
<div className="max-w-[496px] flex-1"> | ||
<Image className="w-full h-auto" src="/sport_balls.png" alt="sport balls" width={800} height={482} /> | ||
</div> | ||
</section> | ||
|
||
<section className="w-full flex items-center justify-center gap-12"> | ||
<div className="flex flex-col gap-2 justify-center bg-secondary p-6 rounded-2xl max-w-72 w-full h-44"> | ||
<h1>42+</h1> | ||
<p className="font-normal text-xl">sports présents</p> | ||
</div> | ||
<div className="flex flex-col gap-2 justify-center bg-secondary p-6 rounded-2xl max-w-72 w-full h-44"> | ||
<h1>10000+</h1> | ||
<p className="font-normal text-xl">adherents inscrits</p> | ||
</div> | ||
<div className="flex flex-col gap-2 justify-center bg-secondary p-6 rounded-2xl max-w-72 w-full h-44"> | ||
<h1>125+</h1> | ||
<p className="font-normal text-xl">evenements organises</p> | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
} |
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,33 @@ | ||
import { Button } from '@repo/ui/components/button'; | ||
import Link from 'next/link'; | ||
import type React from 'react'; | ||
|
||
interface LinkProp { | ||
name: string; | ||
href: string; | ||
} | ||
|
||
interface NavBarProps { | ||
links: LinkProp[]; | ||
} | ||
|
||
export const NavBar: React.FC<NavBarProps> = ({ links }) => { | ||
const navBarElements = links.map((link) => { | ||
return ( | ||
<li key={link.name}> | ||
<Button className="font-semibold hover:bg-slate-200 hover:text-black text-lg" variant={'ghost'} asChild> | ||
<Link href={link.href}>{link.name}</Link> | ||
</Button> | ||
</li> | ||
); | ||
}); | ||
|
||
return ( | ||
<nav className="flex items-center justify-center mb-20"> | ||
<div className="w-full flex items-center justify-between"> | ||
<ul className="flex gap-4">{navBarElements}</ul> | ||
<Button className="w-[120px]">Login</Button> | ||
</div> | ||
</nav> | ||
); | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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