mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
added empty profile sidebar
This commit is contained in:
parent
7f7c12df2b
commit
0c9d5467ed
12 changed files with 138 additions and 43 deletions
39
src/containers/sidebars/ProfileSidebar/index.tsx
Normal file
39
src/containers/sidebars/ProfileSidebar/index.tsx
Normal file
|
@ -0,0 +1,39 @@
|
|||
import React, { VFC } from 'react';
|
||||
import { SidebarWrapper } from '~/containers/sidebars/SidebarWrapper';
|
||||
import styles from './styles.module.scss';
|
||||
import { DialogComponentProps } from '~/types/modal';
|
||||
import markdown from '~/styles/common/markdown.module.scss';
|
||||
import { Button } from '~/components/input/Button';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
import { ProfileSidebarHead } from '~/containers/profile/ProfileSidebarHead';
|
||||
import classNames from 'classnames';
|
||||
|
||||
interface ProfileSidebarProps extends DialogComponentProps {}
|
||||
|
||||
const ProfileSidebar: VFC<ProfileSidebarProps> = ({ onRequestClose }) => {
|
||||
return (
|
||||
<SidebarWrapper onClose={onRequestClose}>
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.content}>
|
||||
<div>
|
||||
<ProfileSidebarHead />
|
||||
</div>
|
||||
|
||||
<Filler className={classNames(markdown.wrapper, styles.text)}>
|
||||
<h3>Здесь будет профиль</h3>
|
||||
|
||||
<p>
|
||||
Но пока что мы просто тестируем как это будет выглядеть и будет ли это удобнее модалки
|
||||
</p>
|
||||
</Filler>
|
||||
|
||||
<Button round onClick={onRequestClose} color="secondary">
|
||||
Закрыть
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</SidebarWrapper>
|
||||
);
|
||||
};
|
||||
|
||||
export { ProfileSidebar };
|
22
src/containers/sidebars/ProfileSidebar/styles.module.scss
Normal file
22
src/containers/sidebars/ProfileSidebar/styles.module.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
@import "src/styles/variables";
|
||||
|
||||
.wrap {
|
||||
@include sidebar_content(400px);
|
||||
}
|
||||
|
||||
.content {
|
||||
border-radius: $radius;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
padding: $gap;
|
||||
}
|
||||
|
||||
.text {
|
||||
margin-top: $gap * 2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue