✨ refont page callback
This commit is contained in:
parent
1561804075
commit
8358dbab9c
@ -5,9 +5,11 @@ import classes from "./classes.module.scss";
|
|||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
width?: string | number;
|
||||||
|
color?: string;
|
||||||
}
|
}
|
||||||
export default class Loader extends React.Component<IProps> {
|
export default class Loader extends React.Component<IProps> {
|
||||||
public override render(): JSX.Element {
|
public override render(): JSX.Element {
|
||||||
return <ArrowPathIcon className={classes["root"]} />;
|
return <ArrowPathIcon className={classes["root"]} color={this.props.color} width={this.props.width} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,12 @@ export default function HelpBox(props: IProps) {
|
|||||||
styletype={EButtonstyletype.TEXT}
|
styletype={EButtonstyletype.TEXT}
|
||||||
size={EButtonSize.MD}
|
size={EButtonSize.MD}
|
||||||
onClick={button.onClick}>
|
onClick={button.onClick}>
|
||||||
Contactez le support
|
{button.text}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<Button variant={EButtonVariant.SECONDARY} styletype={EButtonstyletype.TEXT} size={EButtonSize.MD} onClick={button.onClick}>
|
<Button variant={EButtonVariant.SECONDARY} styletype={EButtonstyletype.TEXT} size={EButtonSize.MD} onClick={button.onClick}>
|
||||||
Contactez le support
|
{button.text}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,29 +1,22 @@
|
|||||||
@import "@Themes/constants.scss";
|
@import "@Themes/constants.scss";
|
||||||
|
|
||||||
.root {
|
.root {
|
||||||
|
margin: 80px auto;
|
||||||
|
width: 474px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
gap: var(--spacing-xl, 32px);
|
||||||
max-width: 530px;
|
|
||||||
margin: auto;
|
|
||||||
|
|
||||||
.title {
|
.title-container {
|
||||||
margin: 32px 0;
|
display: flex;
|
||||||
text-align: center;
|
flex-direction: column;
|
||||||
@media (max-width: $screen-s) {
|
gap: var(--spacing-sm);
|
||||||
font-family: 48px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.loader {
|
@media (max-width: $screen-s) {
|
||||||
width: 32px;
|
width: 100%;
|
||||||
height: 32px;
|
margin: auto;
|
||||||
}
|
padding: var(--spacing-md, 16px);
|
||||||
|
|
||||||
.forget-password {
|
|
||||||
margin-top: 32px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,13 @@ import classes from "./classes.module.scss";
|
|||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import Auth from "@Front/Api/Auth/IdNot";
|
import Auth from "@Front/Api/Auth/IdNot";
|
||||||
import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage";
|
import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage";
|
||||||
import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography";
|
import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography";
|
||||||
import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button";
|
|
||||||
import Loader from "@Front/Components/DesignSystem/Loader";
|
import Loader from "@Front/Components/DesignSystem/Loader";
|
||||||
import UserStore from "@Front/Stores/UserStore";
|
import UserStore from "@Front/Stores/UserStore";
|
||||||
import Link from "next/link";
|
|
||||||
import JwtService from "@Front/Services/JwtService/JwtService";
|
import JwtService from "@Front/Services/JwtService/JwtService";
|
||||||
import CookieService from "@Front/Services/CookieService/CookieService";
|
import CookieService from "@Front/Services/CookieService/CookieService";
|
||||||
|
import backgroundImage from "@Assets/images/background_refonte.svg";
|
||||||
|
import HelpBox from "@Front/Components/Elements/HelpBox";
|
||||||
|
|
||||||
export default function LoginCallBack() {
|
export default function LoginCallBack() {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@ -60,23 +60,22 @@ export default function LoginCallBack() {
|
|||||||
[router];
|
[router];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DefaultDoubleSidePage title={"Login"} image={LandingImage}>
|
<DefaultDoubleSidePage title={"Login"} image={backgroundImage}>
|
||||||
<div className={classes["root"]}>
|
<div className={classes["root"]}>
|
||||||
<Image alt="coffre" src={CoffreIcon} />
|
<div className={classes["title-container"]}>
|
||||||
<Typography typo={ETypo.DISPLAY_LARGE}>
|
<Image alt="coffre" src={CoffreIcon} width={56} />
|
||||||
<div className={classes["title"]}>Connexion espace professionnel</div>
|
<Typography typo={ETypo.TITLE_H1} color={ETypoColor.TEXT_ACCENT}>
|
||||||
</Typography>
|
Connexion à votre espace professionnel
|
||||||
<div className={classes["loader"]}>
|
</Typography>
|
||||||
<Loader />
|
|
||||||
</div>
|
</div>
|
||||||
<Typography typo={ETypo.TEXT_LG_REGULAR}>
|
|
||||||
<div className={classes["forget-password"]}>Vous n'arrivez pas à vous connecter ?</div>
|
<Loader color={"var(--secondary-default-base, #FF4617)"} width={29} />
|
||||||
</Typography>
|
<div />
|
||||||
<Link href="mailto:support@lecoffre.io">
|
<HelpBox
|
||||||
<Button variant={EButtonVariant.PRIMARY} styletype={EButtonstyletype.TEXT}>
|
title="Vous n'arrivez pas à vous connecter ?"
|
||||||
Contacter l'administrateur
|
description="Notre équipe de support est là pour vous aider."
|
||||||
</Button>
|
button={{ text: "Contacter l'administrateur", link: "mailto:support@lecoffre.io" }}
|
||||||
</Link>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</DefaultDoubleSidePage>
|
</DefaultDoubleSidePage>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user