1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

change user profile page layout

This commit is contained in:
Fedor Katurov 2025-01-22 14:36:26 +07:00
parent 25c67310d4
commit 5ef19f49c5
5 changed files with 61 additions and 34 deletions

View file

@ -2,7 +2,10 @@ import { FC } from 'react';
import { observer } from 'mobx-react-lite';
import { Card } from '~/components/common/Card';
import { Container } from '~/components/common/Container';
import { Sticky } from '~/components/common/Sticky';
import { FlowGrid } from '~/containers/flow/FlowGrid';
import { ProfilePageLeft } from '~/containers/profile/ProfilePageLeft';
import { useUser } from '~/hooks/auth/useUser';
import { useGetProfile } from '~/hooks/profile/useGetProfile';
@ -24,16 +27,21 @@ const ProfileLayout: FC<Props> = observer(({ username }) => {
<Container className={styles.wrap}>
<div className={styles.grid}>
<div className={styles.stamp}>
<div className={styles.row}>
<Sticky>
<ProfilePageLeft
description={profile.description}
profile={profile}
username={username}
isLoading={isLoading}
/>
</div>
</Sticky>
</div>
<div>here should be grid</div>
<Card className={styles.description}>{profile.description}</Card>
<div className={styles.nodes}>
<FlowGrid nodes={nodes} user={user} onChangeCellView={() => {}} />
</div>
</div>
</Container>
);

View file

@ -8,7 +8,10 @@
}
.grid {
@include flow_grid;
grid-template-columns: 250px 5fr;
display: grid;
column-gap: $gap;
row-gap: $gap;
}
.row {
@ -18,10 +21,18 @@
.description {
font: $font_14_semibold;
text-align: center;
padding: $gap * 2 $gap;
}
.stamp {
grid-row-end: span 2;
}
.nodes {
@include flow_grid();
}
.content {
display: flex;
flex-direction: column;
gap: $gap;
}