mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
added profile sidebar just to test if I can
This commit is contained in:
parent
b4edba1beb
commit
d9a1b5cf13
10 changed files with 209 additions and 10 deletions
21
src/components/profile/ProfileSidebarMenu/index.tsx
Normal file
21
src/components/profile/ProfileSidebarMenu/index.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import React, { FC } from 'react';
|
||||
import styles from './styles.module.scss';
|
||||
import { Icon } from '~/components/input/Icon';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
const ProfileSidebarMenu: FC<IProps> = () => (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.row}>
|
||||
<Icon icon="settings" />
|
||||
<span>Настройки</span>
|
||||
</div>
|
||||
|
||||
<div className={styles.row}>
|
||||
<Icon icon="messages" />
|
||||
<span>Сообщения</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
export { ProfileSidebarMenu };
|
42
src/components/profile/ProfileSidebarMenu/styles.module.scss
Normal file
42
src/components/profile/ProfileSidebarMenu/styles.module.scss
Normal file
|
@ -0,0 +1,42 @@
|
|||
.wrap {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
margin: 0 $gap;
|
||||
box-sizing: border-box;
|
||||
box-shadow: $sidebar_border 0 0 0 1px;
|
||||
border-radius: $radius;
|
||||
background-color: transparentize(black, 0.9)
|
||||
}
|
||||
|
||||
.row {
|
||||
padding: $gap;
|
||||
font: $font_18_semibold;
|
||||
box-shadow: $sidebar_border 0 -1px;
|
||||
cursor: pointer;
|
||||
background-color: transparentize(black, 1);
|
||||
transition: all 250ms;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
height: 30px;
|
||||
opacity: 0.5;
|
||||
|
||||
&:hover {
|
||||
background-color: transparentize($wisegreen, 0.5);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-radius: $radius $radius 0 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 0 $radius $radius;
|
||||
}
|
||||
|
||||
svg {
|
||||
margin-right: $gap * 1.2;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue