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

#23 added lab node layout (sample)

This commit is contained in:
Fedor Katurov 2021-03-12 13:56:23 +07:00
parent 18ec220a4e
commit 3aa2d4f609
18 changed files with 218 additions and 38 deletions

View file

@ -31,8 +31,6 @@
.wrap {
display: flex;
align-items: center;
justify-content: stretch;
position: relative;
width: 100%;
flex-direction: row;
@ -88,7 +86,7 @@
@include tablet {
white-space: nowrap;
padding-bottom: 0;
font: $font_20_semibold;
font: $font_16_semibold;
}
}

View file

@ -0,0 +1,19 @@
import React, { FC } from 'react';
import { INode } from '~/redux/types';
import styles from './styles.module.scss';
import { URLS } from '~/constants/urls';
import { Link } from 'react-router-dom';
interface IProps {
node: INode;
}
const NodePanelLab: FC<IProps> = ({ node }) => (
<div className={styles.wrap}>
<div className={styles.title}>
<Link to={URLS.NODE_URL(node.id)}>{node.title || '...'}</Link>
</div>
</div>
);
export { NodePanelLab };

View file

@ -0,0 +1,24 @@
@import "~/styles/variables.scss";
.wrap {
padding: $gap;
}
.title {
text-transform: uppercase;
font: $font_24_semibold;
overflow: hidden;
flex: 1;
text-overflow: ellipsis;
a {
text-decoration: none;
color: inherit;
}
@include tablet {
white-space: nowrap;
padding-bottom: 0;
font: $font_16_semibold;
}
}