-
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
Showing
5 changed files
with
79 additions
and
0 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,30 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
import styled from "styled-components"; | ||
import { slugs } from "../../utils/routes"; | ||
import { buttonsTitles } from "../../utils/texts"; | ||
import Icon from "./Icons"; | ||
|
||
const ReturnToLogin = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<Row onClick={() => navigate(slugs.login)}> | ||
<Icon name="returnArrow" /> | ||
<BackButton> {buttonsTitles.returnToLogin}</BackButton> | ||
</Row> | ||
); | ||
}; | ||
|
||
const BackButton = styled.div` | ||
font-size: 1.5rem; | ||
color: #121926; | ||
margin-left: 11px; | ||
`; | ||
|
||
const Row = styled.div` | ||
margin-top: 16px; | ||
display: flex; | ||
cursor: pointer; | ||
`; | ||
|
||
export default ReturnToLogin; |
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,41 @@ | ||
import styled from 'styled-components'; | ||
import ReturnToLogin from '../components/other/ReturnToLogin'; | ||
import { formLabels } from '../utils/texts'; | ||
|
||
export const CantLogin = () => { | ||
return ( | ||
<> | ||
<Notification> | ||
<H1>{formLabels.notGrantedAccess}</H1> | ||
<Description> | ||
Jei jungiatės kaip įmonės vadovas ar atstovas, prašome kreiptis el. paštu{' '} | ||
<Link href="mailto:[email protected]">[email protected]</Link>, kad Jums būtų suteikta prieiga. | ||
</Description> | ||
</Notification> | ||
<ReturnToLogin /> | ||
</> | ||
); | ||
}; | ||
|
||
const Description = styled.div` | ||
font-size: 1.6rem; | ||
color: #666; | ||
`; | ||
|
||
const H1 = styled.h2` | ||
font-size: 1.5rem; | ||
margin-bottom: 10px; | ||
color: #333; | ||
`; | ||
|
||
const Notification = styled.div` | ||
background-color: #f8fafc; | ||
border-radius: 8px; | ||
padding: 16px; | ||
max-width: 400px; | ||
`; | ||
|
||
const Link = styled.a` | ||
text-decoration: none; | ||
color: inherit; | ||
`; |
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