mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added boris lab image
This commit is contained in:
parent
4ff1c08990
commit
3f16ab203e
6 changed files with 1390 additions and 760 deletions
|
@ -1,3 +1,3 @@
|
||||||
#REACT_APP_API_HOST=http://localhost:3334/
|
#REACT_APP_API_HOST=http://localhost:3334/
|
||||||
REACT_APP_API_HOST=https://pig.vault48.org/
|
REACT_APP_API_HOST=https://pig.staging.vault48.org/
|
||||||
REACT_APP_REMOTE_CURRENT=https://pig.vault48.org/static/
|
REACT_APP_REMOTE_CURRENT=https://pig.staging.vault48.org/static/
|
||||||
|
|
16
src/components/containers/Square/index.tsx
Normal file
16
src/components/containers/Square/index.tsx
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import React, { FC } from 'react';
|
||||||
|
import styles from './styles.module.scss';
|
||||||
|
import { DivProps } from '~/utils/types';
|
||||||
|
import classNames from 'classnames';
|
||||||
|
|
||||||
|
interface IProps extends DivProps {}
|
||||||
|
|
||||||
|
const Square: FC<IProps> = ({ children, ...rest }) => (
|
||||||
|
<div className={styles.square}>
|
||||||
|
<div {...rest} className={classNames(styles.content, rest.className)}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
export { Square };
|
12
src/components/containers/Square/styles.module.scss
Normal file
12
src/components/containers/Square/styles.module.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
.square {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
|
@ -3,11 +3,12 @@ import styles from './styles.module.scss';
|
||||||
import { Card } from '~/components/containers/Card';
|
import { Card } from '~/components/containers/Card';
|
||||||
import { Placeholder } from '~/components/placeholders/Placeholder';
|
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||||
import { Group } from '~/components/containers/Group';
|
import { Group } from '~/components/containers/Group';
|
||||||
|
import { Square } from '~/components/containers/Square';
|
||||||
|
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
const LabBanner: FC<IProps> = () => (
|
const LabBanner: FC<IProps> = () => (
|
||||||
<Card className={styles.wrap}>
|
<Square className={styles.wrap}>
|
||||||
<Group>
|
<Group>
|
||||||
<div className={styles.title}>Лаборатория!</div>
|
<div className={styles.title}>Лаборатория!</div>
|
||||||
|
|
||||||
|
@ -18,14 +19,9 @@ const LabBanner: FC<IProps> = () => (
|
||||||
пределами Убежища.
|
пределами Убежища.
|
||||||
</strong>
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
Ловим радиоактивных жуков, приручаем утконосов-вампиров, катаемся на младшем научном
|
|
||||||
сотруднике Егоре Порсифоровиче (у него как раз сейчас линька).
|
|
||||||
</p>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</Square>
|
||||||
);
|
);
|
||||||
|
|
||||||
export { LabBanner };
|
export { LabBanner };
|
||||||
|
|
|
@ -2,12 +2,14 @@
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
@include outer_shadow;
|
@include outer_shadow;
|
||||||
@include lab_gradient;
|
|
||||||
|
|
||||||
|
background: url('../../../sprites/boris_lab.svg') 50% 50% no-repeat;
|
||||||
|
background-size: cover;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-start;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
min-height: $cell;
|
border-radius: $radius;
|
||||||
|
padding: $gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
@ -18,8 +20,4 @@
|
||||||
.content {
|
.content {
|
||||||
font: $font_14_regular;
|
font: $font_14_regular;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
|
|
||||||
strong {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 81 KiB |
Loading…
Add table
Add a link
Reference in a new issue