-
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.
slice confirm email page and slavica header
- Loading branch information
1 parent
24051d7
commit 768723e
Showing
13 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
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.
28 changes: 28 additions & 0 deletions
28
apps/app/src/components/RegistrationForms/ConfirmEmail/ConfirmEmail.module.scss
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 @@ | ||
.confirmEmail { | ||
display: flex; | ||
flex-direction: column; | ||
width: 422px; | ||
|
||
.confirmEmailUpper { | ||
|
||
margin-bottom: 48px; | ||
|
||
h2{ | ||
color: $primary-black; | ||
text-align: center; | ||
font-family: NeueMachina; | ||
font-size: 30px; | ||
font-weight: 500; | ||
line-height: 30px; | ||
margin-top: 40px; | ||
margin-bottom: 18px; | ||
} | ||
|
||
p{ | ||
color: $primary-black; | ||
text-align: center; | ||
font-family: Inter; | ||
line-height: 22px; /* 137.5% */ | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
apps/app/src/components/RegistrationForms/ConfirmEmail/ConfirmEmail.tsx
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,19 @@ | ||
import Button from '../../Button/Button'; | ||
import c from './ConfirmEmail.module.scss'; | ||
|
||
export const ConfirmEmail = () => { | ||
return ( | ||
<div className={c.confirmEmail}> | ||
<div className={c.confirmEmailUpper}> | ||
<h2>Potvrdi svoj e-mail</h2> | ||
<p> | ||
Poslali smo ti e-mail na [email protected] da potvrdimo ispravnost | ||
unesene adrese. Nakon što se e-mail pojavi u tvom sandučiću, klikni na | ||
link kako bi registracija bila uspješna. | ||
</p> | ||
</div> | ||
|
||
<Button children='Potvrdi email' variant='orange' /> | ||
</div> | ||
); | ||
}; |
2 changes: 2 additions & 0 deletions
2
apps/app/src/components/RegistrationForms/ConfirmEmail/index.ts
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,2 @@ | ||
import { ConfirmEmail } from './ConfirmEmail'; | ||
export { ConfirmEmail }; |
38 changes: 38 additions & 0 deletions
38
apps/app/src/components/RegistrationForms/SlavicaHeader/SlavicaHeader.module.scss
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,38 @@ | ||
.slavicaHeader{ | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
padding-top: 80px; | ||
|
||
@media (max-width: $breakpoint-tablet) { | ||
padding-top: 64px; | ||
} | ||
|
||
h1{ | ||
color: $primary-white; | ||
text-align: center; | ||
font-family: NeueMachina; | ||
font-size: 30px; | ||
font-weight: 500; | ||
line-height: 30px; | ||
display: flex; | ||
width: 100%; | ||
justify-content: center; | ||
|
||
@media (max-width: $breakpoint-tablet) { | ||
justify-content: flex-start; | ||
padding-left: 24px; | ||
} | ||
} | ||
|
||
@media (max-width: $breakpoint-tablet) { | ||
height: 350px; | ||
align-items: flex-end; | ||
} | ||
|
||
img { | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
apps/app/src/components/RegistrationForms/SlavicaHeader/SlavicaHeader.tsx
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,18 @@ | ||
import { useDeviceType } from '../../../hooks/UseDeviceType'; | ||
import c from './SlavicaHeader.module.scss'; | ||
import mobileSlavica from './../../../assets/images/confirm-email-slavica-mobile.png'; | ||
import desktopSlavica from './../../../assets/images/confirm-email-slavica-desktop.png'; | ||
|
||
export const SlavicaHeader = () => { | ||
const { isMobile } = useDeviceType({}); | ||
return ( | ||
<div className={c.slavicaHeader}> | ||
<h1>Registracija</h1> | ||
{isMobile ? ( | ||
<img src={mobileSlavica}></img> | ||
) : ( | ||
<img src={desktopSlavica}></img> | ||
)} | ||
</div> | ||
); | ||
}; |
2 changes: 2 additions & 0 deletions
2
apps/app/src/components/RegistrationForms/SlavicaHeader/index.ts
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,2 @@ | ||
import { SlavicaHeader } from './SlavicaHeader'; | ||
export { SlavicaHeader }; |
30 changes: 30 additions & 0 deletions
30
apps/app/src/pages/ConfirmEmailPage/ConfirmEmailPage.module.scss
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,30 @@ | ||
.page { | ||
background-color: $primary-black; | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.header { | ||
// width: 100%; | ||
// height: 300px; // Temporary | ||
// display: flex; | ||
// justify-content: center; | ||
|
||
// @media (max-width: $breakpoint-tablet) { | ||
// height: 350px; | ||
// justify-content: flex-end; | ||
// } | ||
|
||
} | ||
|
||
.main { | ||
width: 100%; | ||
height: 100%; | ||
background-color: $primary-background; | ||
border-radius: 12px 12px 0px 0px; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
} | ||
|
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,20 @@ | ||
import { ConfirmEmail } from '../../components/RegistrationForms/ConfirmEmail'; | ||
import c from './ConfirmEmailPage.module.scss'; | ||
import { useDeviceType } from '../../hooks/UseDeviceType'; | ||
import { SlavicaHeader } from '../../components/RegistrationForms/SlavicaHeader'; | ||
|
||
export const ConfirmEmailPage = () => { | ||
const { isMobile } = useDeviceType({}); | ||
console.log(isMobile); | ||
|
||
return ( | ||
<section className={c.page}> | ||
<header className={c.header}> | ||
<SlavicaHeader /> | ||
</header> | ||
<main className={c.main}> | ||
<ConfirmEmail /> | ||
</main> | ||
</section> | ||
); | ||
}; |
Empty file.
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