mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
changed profile stats appearance
This commit is contained in:
parent
33c17616e9
commit
fb8ad315c0
11 changed files with 1033 additions and 125 deletions
19
src/components/common/SubTitle/index.tsx
Normal file
19
src/components/common/SubTitle/index.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React, { FC } from 'react';
|
||||
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||
import { DivProps } from '~/utils/types';
|
||||
import classNames from 'classnames';
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface Props extends DivProps {
|
||||
isLoading?: boolean;
|
||||
}
|
||||
|
||||
const SubTitle: FC<Props> = ({ isLoading, children, ...rest }) => (
|
||||
<div {...rest} className={classNames(styles.title, rest.className)}>
|
||||
<Placeholder active={isLoading} loading>
|
||||
{children}
|
||||
</Placeholder>
|
||||
</div>
|
||||
);
|
||||
|
||||
export { SubTitle };
|
7
src/components/common/SubTitle/styles.module.scss
Normal file
7
src/components/common/SubTitle/styles.module.scss
Normal file
|
@ -0,0 +1,7 @@
|
|||
@import "~/styles/variables.scss";
|
||||
|
||||
.title {
|
||||
font: $font_12_semibold;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.3;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue