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

fixed background repeat on square

This commit is contained in:
Fedor Katurov 2022-01-09 21:25:17 +07:00
parent c0ece70f89
commit 0a5caf6bda
3 changed files with 7 additions and 5 deletions

View file

@ -7,4 +7,6 @@
.wrapper { .wrapper {
width: 100%; width: 100%;
border-radius: $radius; border-radius: $radius;
background-size: cover;
background-repeat: no-repeat;
} }

View file

@ -1,12 +1,12 @@
import React, { FC } from 'react'; import React, { FC } from 'react';
import styles from './styles.module.scss'; import styles from './styles.module.scss';
import { Group } from '~/components/containers/Group'; import { Group } from '~/components/containers/Group';
import { Square } from '~/components/lab/LabSquare'; import { LabSquare } from '~/components/lab/LabSquare';
interface IProps {} interface IProps {}
const LabBanner: FC<IProps> = () => ( const LabBanner: FC<IProps> = () => (
<Square className={styles.wrap}> <LabSquare className={styles.wrap}>
<Group> <Group>
<div className={styles.title}>Лаборатория!</div> <div className={styles.title}>Лаборатория!</div>
@ -19,7 +19,7 @@ const LabBanner: FC<IProps> = () => (
</p> </p>
</Group> </Group>
</Group> </Group>
</Square> </LabSquare>
); );
export { LabBanner }; export { LabBanner };

View file

@ -5,7 +5,7 @@ import classNames from 'classnames';
interface IProps extends DivProps {} interface IProps extends DivProps {}
const Square: FC<IProps> = ({ children, ...rest }) => ( const LabSquare: FC<IProps> = ({ children, ...rest }) => (
<div className={styles.square}> <div className={styles.square}>
<div {...rest} className={classNames(styles.content, rest.className)}> <div {...rest} className={classNames(styles.content, rest.className)}>
{children} {children}
@ -13,4 +13,4 @@ const Square: FC<IProps> = ({ children, ...rest }) => (
</div> </div>
); );
export { Square }; export { LabSquare };