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

added stats panel markup

This commit is contained in:
Fedor Katurov 2020-06-08 13:09:22 +07:00
parent 6595adcccd
commit efdc756d21
2 changed files with 57 additions and 5 deletions

View file

@ -17,6 +17,8 @@ import * as MODAL_ACTIONS from '~/redux/modal/actions';
import isBefore from 'date-fns/isBefore'; import isBefore from 'date-fns/isBefore';
import { Card } from '~/components/containers/Card'; import { Card } from '~/components/containers/Card';
import { Footer } from '~/components/main/Footer'; import { Footer } from '~/components/main/Footer';
import { Filler } from '~/components/containers/Filler';
import { Sticky } from '~/components/containers/Sticky';
const mapStateToProps = state => ({ const mapStateToProps = state => ({
node: selectNode(state), node: selectNode(state),
@ -101,6 +103,18 @@ const BorisLayoutUnconnected: FC<IProps> = ({
<Footer /> <Footer />
</Card> </Card>
<Group className={styles.stats}>
<Sticky>
<Group className={styles.stats__container}>
<div className={styles.stats__about}>
<p>Здесь мы сидим и слушаем всё, что вас беспокоит.</p>
<p>А потом чиним долгими дождливыми вечерами.</p>
</div>
<div className={styles.stats__title}>Изменения</div>
</Group>
</Sticky>
</Group>
</div> </div>
</div> </div>
); );

View file

@ -6,13 +6,17 @@
} }
.content { .content {
flex: 3; flex: 4;
z-index: 2; z-index: 2;
border-radius: $radius; border-radius: $radius 0 0 $radius;
flex: 0 1 $limited_width; // flex: 0 1 $limited_width;
padding: 0; padding: 0;
background: $node_bg; background: $node_bg;
box-shadow: inset transparentize(mix($wisegreen, white, 60%), 0.6) 0 1px; box-shadow: inset transparentize(mix($wisegreen, white, 60%), 0.6) 0 1px;
@include desktop {
flex: 2;
}
} }
.grid { .grid {
@ -40,8 +44,11 @@
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
flex-direction: row; flex-direction: row;
flex: 0 1 $limited_width;
width: 100%; width: 100%;
@include tablet {
flex-direction: column;
}
} }
.image { .image {
@ -76,7 +83,7 @@
left: 50%; left: 50%;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
max-width: $limited_width; // max-width: $limited_width;
height: 100%; height: 100%;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
@ -104,3 +111,34 @@
max-width: 400px; max-width: 400px;
text-transform: uppercase; text-transform: uppercase;
} }
.stats {
position: relative;
z-index: 2;
align-self: stretch;
flex-direction: column;
&__container {
background: darken($content_bg, 4%);
border-radius: 0 $radius $radius 0;
box-shadow: inset transparentize(mix($wisegreen, white, 60%), 0.6) 0 1px;
padding: $gap;
box-sizing: border-box;
flex: 0 0 auto;
}
&__title {
font: $font_12_semibold;
text-transform: uppercase;
opacity: 0.3;
margin-top: 16px !important;
}
&__about {
line-height: 1.4em;
p {
margin-bottom: 8px;
}
}
}