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

added lab post lines

This commit is contained in:
Fedor Katurov 2021-10-12 16:21:08 +07:00
parent a553a06ac5
commit bf16c0ca22
6 changed files with 33 additions and 5 deletions

View file

@ -0,0 +1,14 @@
import React, { FC } from 'react';
import styles from './styles.module.scss';
import { INodeComponentProps } from '~/redux/node/constants';
import { useColorGradientFromString } from '~/utils/hooks/useColorGradientFromString';
interface Props extends INodeComponentProps {}
const LabLine: FC<Props> = ({ node: { title } }) => {
const background = useColorGradientFromString(title, 5, 3, 270);
return <div className={styles.line} style={{ background }} />;
};
export { LabLine };

View file

@ -0,0 +1,7 @@
@import "~/styles/variables";
.line {
height: 4px;
border-radius: $radius $radius 0 0;
width: 100%;
}

View file

@ -3,6 +3,7 @@
.wrap {
@include outer_shadow;
position: relative;
background-color: $lab_post_bg;
cursor: pointer;