✨ responsive no folder page
This commit is contained in:
parent
d40c075289
commit
84e820b90a
@ -20,14 +20,15 @@ type IProps = {
|
|||||||
direction?: ESeperatorDirection;
|
direction?: ESeperatorDirection;
|
||||||
size?: number;
|
size?: number;
|
||||||
thickness?: number;
|
thickness?: number;
|
||||||
|
className?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Separator(props: IProps) {
|
export default function Separator(props: IProps) {
|
||||||
const { color = ESeperatorColor.DEFAULT, direction = ESeperatorDirection.HORIZONTAL, size, thickness = 1 } = props;
|
const { color = ESeperatorColor.DEFAULT, direction = ESeperatorDirection.HORIZONTAL, size, thickness = 1, className } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames(classes["root"], classes[color], classes[direction])}
|
className={classNames(classes["root"], classes[color], classes[direction], className)}
|
||||||
style={direction === ESeperatorDirection.HORIZONTAL ? { width: size, height: thickness } : { height: size, width: thickness }}
|
style={direction === ESeperatorDirection.HORIZONTAL ? { width: size, height: thickness } : { height: size, width: thickness }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
|
|
||||||
.right-side {
|
.right-side {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
|
|
||||||
|
.right-side-content {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
.root {
|
.root {
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 648px;
|
max-width: 648px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: var(--spacing-2xl, 40px);
|
gap: var(--spacing-2xl, 40px);
|
||||||
@ -14,8 +14,8 @@
|
|||||||
gap: var(--spacing-md, 16px);
|
gap: var(--spacing-md, 16px);
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
|
|
||||||
.logo{
|
.logo {
|
||||||
fill: "red"
|
fill: "red";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,11 +45,23 @@
|
|||||||
gap: var(--spacing-sm, 8px);
|
gap: var(--spacing-sm, 8px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.separator {
|
@media screen and (max-width: 600px) {
|
||||||
background-color: var(--separator-stroke-light);
|
flex-direction: column;
|
||||||
width: 1px;
|
|
||||||
align-self: stretch;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile {
|
||||||
|
display: none;
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.desktop {
|
||||||
|
display: flex;
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import { useEffect, useState } from "react";
|
|||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import useUser from "@Front/Hooks/useUser";
|
import useUser from "@Front/Hooks/useUser";
|
||||||
|
import Separator, { ESeperatorColor, ESeperatorDirection } from "@Front/Components/DesignSystem/Separator";
|
||||||
|
|
||||||
export default function Folder() {
|
export default function Folder() {
|
||||||
const [_isArchivedModalOpen, _setIsArchivedModalOpen] = useState(true);
|
const [_isArchivedModalOpen, _setIsArchivedModalOpen] = useState(true);
|
||||||
@ -37,7 +38,6 @@ export default function Folder() {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
}, [router]);
|
}, [router]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DefaultNotaryDashboard title={"Dossier"} mobileBackText={"Liste des dossiers"}>
|
<DefaultNotaryDashboard title={"Dossier"} mobileBackText={"Liste des dossiers"}>
|
||||||
<div className={classes["root"]}>
|
<div className={classes["root"]}>
|
||||||
@ -87,7 +87,14 @@ export default function Folder() {
|
|||||||
Accéder aux guides
|
Accéder aux guides
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes["separator"]} />
|
|
||||||
|
<Separator
|
||||||
|
className={classes["desktop"]}
|
||||||
|
direction={ESeperatorDirection.VERTICAL}
|
||||||
|
size={128}
|
||||||
|
color={ESeperatorColor.LIGHT}
|
||||||
|
/>
|
||||||
|
<Separator className={classes["mobile"]} direction={ESeperatorDirection.HORIZONTAL} color={ESeperatorColor.LIGHT} />
|
||||||
|
|
||||||
<div className={classes["box"]}>
|
<div className={classes["box"]}>
|
||||||
<Typography typo={ETypo.TEXT_MD_SEMIBOLD}>Vous avez des questions ?</Typography>
|
<Typography typo={ETypo.TEXT_MD_SEMIBOLD}>Vous avez des questions ?</Typography>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user