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