mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added settings tab to profile
This commit is contained in:
parent
d9a1b5cf13
commit
e28fdd2c05
10 changed files with 103 additions and 18 deletions
|
@ -3,6 +3,7 @@ $pad_usual: mix(white, $content_bg, 10%);
|
|||
|
||||
.wrap {
|
||||
padding: $gap;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.pad {
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
import React, { FC } from 'react';
|
||||
import styles from './styles.module.scss';
|
||||
import { Icon } from '~/components/input/Icon';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
interface IProps {}
|
||||
interface IProps {
|
||||
path: string;
|
||||
}
|
||||
|
||||
const ProfileSidebarMenu: FC<IProps> = () => (
|
||||
const ProfileSidebarMenu: FC<IProps> = ({ path }) => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.row}>
|
||||
<Link className={styles.row} to={`${path}/settings`}>
|
||||
<Icon icon="settings" />
|
||||
<span>Настройки</span>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
<div className={styles.row}>
|
||||
<Icon icon="messages" />
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
justify-content: flex-start;
|
||||
height: 30px;
|
||||
opacity: 0.5;
|
||||
text-decoration: none;
|
||||
fill: white;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
background-color: transparentize($wisegreen, 0.5);
|
||||
|
|
22
src/components/profile/ProfileSidebarSettings/index.tsx
Normal file
22
src/components/profile/ProfileSidebarSettings/index.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import React, { FC } from 'react';
|
||||
import { ProfileSettings } from '~/components/profile/ProfileSettings';
|
||||
import styles from './styles.module.scss';
|
||||
import { Filler } from '~/components/containers/Filler';
|
||||
import { Button } from '~/components/input/Button';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const ProfileSidebarSettings: FC<IProps> = () => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.scroller}>
|
||||
<ProfileSettings />
|
||||
</div>
|
||||
<div className={styles.buttons}>
|
||||
<Filler />
|
||||
<Button color="outline">Отмена</Button>
|
||||
<Button>Сохранить</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
export { ProfileSidebarSettings };
|
|
@ -0,0 +1,24 @@
|
|||
.wrap {
|
||||
@include sidebar_content(600px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.scroller {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: $gap;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
width: 100%;
|
||||
padding: $gap;
|
||||
box-shadow: $sidebar_border 0 -1px;
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-column-gap: $gap;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue