mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
new lab banner
This commit is contained in:
parent
acacc42ccf
commit
44640595f5
4 changed files with 1985 additions and 3 deletions
1933
public/images/peoples_lab.svg
Normal file
1933
public/images/peoples_lab.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 86 KiB |
26
src/components/lab/LabFactoryBanner/index.tsx
Normal file
26
src/components/lab/LabFactoryBanner/index.tsx
Normal file
|
@ -0,0 +1,26 @@
|
|||
import React, { FC } from 'react';
|
||||
|
||||
import { Group } from '~/components/containers/Group';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface LabFactoryBannerProps {}
|
||||
|
||||
const LabFactoryBanner: FC<LabFactoryBannerProps> = () => (
|
||||
<div className={styles.banner}>
|
||||
<Group>
|
||||
<div className={styles.title}>Лаборатория!</div>
|
||||
|
||||
<Group className={styles.content}>
|
||||
<p>
|
||||
<strong>
|
||||
Всё, что происходит здесь — всего лишь эксперимент, о котором
|
||||
не узнает никто за пределами Убежища.
|
||||
</strong>
|
||||
</p>
|
||||
</Group>
|
||||
</Group>
|
||||
</div>
|
||||
);
|
||||
|
||||
export { LabFactoryBanner };
|
23
src/components/lab/LabFactoryBanner/styles.module.scss
Normal file
23
src/components/lab/LabFactoryBanner/styles.module.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
@import 'src/styles/variables';
|
||||
|
||||
.banner {
|
||||
@include outer_shadow;
|
||||
|
||||
display: flex;
|
||||
aspect-ratio: 0.7;
|
||||
background: url('/images/peoples_lab.svg') 50% 100%;
|
||||
background-size: cover;
|
||||
padding: $gap;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.title {
|
||||
font: $font_24_bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.content {
|
||||
font: $font_14_medium;
|
||||
line-height: 19px;
|
||||
opacity: 0.7;
|
||||
}
|
|
@ -3,7 +3,7 @@ import React, { FC } from 'react';
|
|||
import { SubTitle } from '~/components/common/SubTitle';
|
||||
import { Group } from '~/components/containers/Group';
|
||||
import { FlowRecentItem } from '~/components/flow/FlowRecentItem';
|
||||
import { LabBanner } from '~/components/lab/LabBanner';
|
||||
import { LabFactoryBanner } from '~/components/lab/LabFactoryBanner';
|
||||
import { LabHeroes } from '~/components/lab/LabHeroes';
|
||||
import { LabTags } from '~/components/lab/LabTags';
|
||||
import { useLabContext } from '~/utils/context/LabContextProvider';
|
||||
|
@ -17,7 +17,7 @@ const LabStats: FC<IProps> = () => {
|
|||
|
||||
return (
|
||||
<Group>
|
||||
<LabBanner />
|
||||
<LabFactoryBanner />
|
||||
|
||||
<div className={styles.card}>
|
||||
<Group>
|
||||
|
@ -39,7 +39,7 @@ const LabStats: FC<IProps> = () => {
|
|||
<>
|
||||
<div className={styles.title}>Новые</div>
|
||||
<Group className={styles.updates}>
|
||||
{updates.slice(0, 10).map(node => (
|
||||
{updates.slice(0, 10).map((node) => (
|
||||
<FlowRecentItem node={node} key={node.id} has_new />
|
||||
))}
|
||||
</Group>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue