mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
css grid to pack my layout
This commit is contained in:
parent
44e10599d7
commit
debb0640da
20 changed files with 1212 additions and 23 deletions
23
src/components/main/Header/index.tsx
Normal file
23
src/components/main/Header/index.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import * as React from 'react';
|
||||
const style = require('./style.scss');
|
||||
const logo_sm = require('$sprites/logo_sm.svg');
|
||||
|
||||
export const Header = () => (
|
||||
<div className="default_container head_container">
|
||||
<div className={style.container}>
|
||||
<div className={style.logo}>
|
||||
VAULT
|
||||
</div>
|
||||
<div className={style.spacer} />
|
||||
<div className={style.plugs}>
|
||||
<div>depth</div>
|
||||
<div>boris</div>
|
||||
<div>flow</div>
|
||||
</div>
|
||||
<div className={style.user_button}>
|
||||
<div className={style.user_avatar} />
|
||||
gvorcek
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
57
src/components/main/Header/style.scss
Normal file
57
src/components/main/Header/style.scss
Normal file
|
@ -0,0 +1,57 @@
|
|||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
font-weight: 500;
|
||||
padding: $gap $spc;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.4em;
|
||||
font-weight: 800;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.plugs {
|
||||
display: flex;
|
||||
|
||||
> div {
|
||||
//margin: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
padding: $gap;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
margin-left: $spc;
|
||||
background: white;
|
||||
width: 2px;
|
||||
height: $gap;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.profile {
|
||||
padding: 5px 10px;
|
||||
box-shadow: white 0 0 0 1px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.user_button {
|
||||
padding: 0 $gap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user_avatar {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: transparentize(white, 0.5);
|
||||
margin-right: $gap;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue