-
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 #56 from Boyadjie/auth/feat/register/succes
feat(#45): add login page (main)
- Loading branch information
Showing
7 changed files
with
159 additions
and
22 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,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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
|
||
import Image from 'next/image'; | ||
|
||
import styles from './styles/LoginIllustration.module.css'; | ||
|
||
const LoginIllustration = () => { | ||
return ( | ||
<div className={styles.container}> | ||
<Image | ||
src="/illustrations/auth/character.svg" | ||
alt="login illustration" | ||
width={245} | ||
height={213} | ||
className={styles.character} | ||
/> | ||
<Image | ||
src="/illustrations/auth/orangeBase.svg" | ||
alt="login illustration" | ||
width={320} | ||
height={33} | ||
className={styles.base} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoginIllustration; |
42 changes: 42 additions & 0 deletions
42
src/components/authentication/styles/LoginIllustration.module.css
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,42 @@ | ||
.container { | ||
margin: 1rem 0 0 0; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
|
||
.character { | ||
position: relative; | ||
z-index: 1; | ||
animation: fade-in 0.5s ease; | ||
} | ||
|
||
.base { | ||
position: relative; | ||
top: -34px; | ||
z-index: 0; | ||
animation: slide-in 0.6s ease; | ||
} | ||
} | ||
|
||
@keyframes slide-in { | ||
0% { | ||
transform: translateX(100%); | ||
} | ||
100% { | ||
transform: translateX(0); | ||
} | ||
} | ||
|
||
@keyframes fade-in { | ||
0% { | ||
opacity: 0; | ||
transform: translateY(-100%); | ||
} | ||
50% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} |
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,43 @@ | ||
.formContainer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 2rem; | ||
width: 100%; | ||
padding: 1rem 0; | ||
|
||
.gluedChilds { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.submitButton { | ||
display: flex; | ||
width: 280px; | ||
height: 40px; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
border: #ff8a44 solid 1px; | ||
border-radius: 268.657px; | ||
background: var(--Primary-Colors-Highlight-color, #ff8a44); | ||
color: white; | ||
font-size: 14px; | ||
} | ||
.submitButton:active { | ||
background: white; | ||
color: #ff8a44; | ||
} | ||
|
||
.forgotPassword { | ||
margin: 0; | ||
padding: 0; | ||
text-decoration: underline; | ||
width: 100%; | ||
font-size: 14px; | ||
color: grey; | ||
text-align: end; | ||
} |
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