-
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.
Merge pull request #52 from Boyadjie/auth/feat/login-page
feat(#45): add login page
- Loading branch information
Showing
44 changed files
with
718 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#home { | ||
.header { | ||
background: var(--primary); | ||
|
||
.navigation { | ||
padding-inline: 35px; | ||
padding-top: 50px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
a { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
} | ||
} | ||
|
||
.homeContentContainer { | ||
padding: 50px 35px; | ||
|
||
> div { | ||
margin-bottom: 60px; | ||
} | ||
} | ||
} |
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,10 +1,71 @@ | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
import {Slider} from '../../src/components/blocs/slider/Slider'; | ||
import {Navbar} from '../../src/components/navbar/Navbar'; | ||
import {Onboarding} from '../../src/components/onboarding/Onboarding'; | ||
import {Profile} from '../../src/components/profile/Profile'; | ||
import styles from './page.module.css'; | ||
|
||
const tempData = [ | ||
{ | ||
title: 'Préparer son voyage en 5 étapes', | ||
date: new Date('2024-06-05'), | ||
pictureUrl: '/user.jpg', | ||
}, | ||
{ | ||
title: 'Vie locale : conseils pratiques', | ||
date: new Date('2024-11-09'), | ||
pictureUrl: '/user.jpg', | ||
}, | ||
{ | ||
title: 'Où manger local ?', | ||
date: new Date('2024-03-01'), | ||
pictureUrl: '/user.jpg', | ||
}, | ||
{ | ||
title: 'Transports et déplacements', | ||
date: new Date('2024-03-23'), | ||
pictureUrl: '/user.jpg', | ||
}, | ||
]; | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Onboarding /> | ||
<h1>Bienvenue sur UnVoy !</h1> | ||
<div id={styles.home}> | ||
<Onboarding /> | ||
<Navbar /> | ||
<section className={styles.header}> | ||
<div className={styles.navigation}> | ||
<div> | ||
<Image | ||
src="/icons/notifications.svg" | ||
alt="Icône de notification" | ||
width={24} | ||
height={24} | ||
/> | ||
</div> | ||
<Link href="/settings"> | ||
<Image | ||
src="/icons/setting.svg" | ||
alt="Icône de paramètre" | ||
width={28} | ||
height={28} | ||
/> | ||
</Link> | ||
</div> | ||
<Profile /> | ||
</section> | ||
<div className={styles.homeContentContainer}> | ||
<Slider | ||
title="Articles conseillés" | ||
items={tempData} | ||
link="/accueil#" | ||
/> | ||
<Slider title="Actualités" items={tempData} link="/accueil#" /> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
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 @@ | ||
.container { | ||
padding: 0 2rem; | ||
p { | ||
font-size: 14px; | ||
color: #1b1b2e; | ||
} | ||
} |
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,23 @@ | ||
'use client'; | ||
import ConnectionWith from '../../src/components/authentication/ConnectionWith'; | ||
import {LoginForm} from '../../src/components/authentication/LoginForm'; | ||
import LoginIllustration from '../../src/components/authentication/LoginIllustration'; | ||
import TextAndRoute from '../../src/components/authentication/TextAndRoute'; | ||
import Title from '../../src/components/authentication/Title'; | ||
import styles from './login.module.css'; | ||
|
||
export default function register() { | ||
return ( | ||
<div> | ||
<div className={styles.container}> | ||
<Title iconUrl="icons/user.svg" text="LOGIN" /> | ||
<LoginIllustration /> | ||
<LoginForm /> | ||
<ConnectionWith /> | ||
<TextAndRoute | ||
text="Don't have an account?" | ||
route="/register" | ||
routeText="Register" | ||
/> | ||
</div> | ||
); | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.