mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
Merge branch '23-labs' into develop
This commit is contained in:
commit
2d0638d1fd
3 changed files with 65 additions and 10 deletions
32
src/components/lab/LabHead/index.tsx
Normal file
32
src/components/lab/LabHead/index.tsx
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
import React, { FC } from 'react';
|
||||||
|
import { Group } from '~/components/containers/Group';
|
||||||
|
import { Card } from '~/components/containers/Card';
|
||||||
|
import { Placeholder } from '~/components/placeholders/Placeholder';
|
||||||
|
import { Filler } from '~/components/containers/Filler';
|
||||||
|
|
||||||
|
interface IProps {}
|
||||||
|
|
||||||
|
const LabHead: FC<IProps> = () => (
|
||||||
|
<Card>
|
||||||
|
<Group horizontal>
|
||||||
|
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||||
|
<Placeholder width="32px" height={32} />
|
||||||
|
<Placeholder width="96px" height={18} />
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||||
|
<Placeholder width="32px" height={32} />
|
||||||
|
<Placeholder width="126px" height={18} />
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||||
|
<Placeholder width="32px" height={32} />
|
||||||
|
<Placeholder width="96px" height={18} />
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Filler />
|
||||||
|
</Group>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
|
||||||
|
export { LabHead };
|
|
@ -82,6 +82,13 @@ const HeaderUnconnected: FC<IProps> = memo(
|
||||||
<Filler />
|
<Filler />
|
||||||
|
|
||||||
<div className={styles.plugs}>
|
<div className={styles.plugs}>
|
||||||
|
<Link
|
||||||
|
className={classNames(styles.item, { [styles.is_active]: pathname === URLS.BASE })}
|
||||||
|
to={URLS.BASE}
|
||||||
|
>
|
||||||
|
ФЛОУ
|
||||||
|
</Link>
|
||||||
|
|
||||||
{is_user && (
|
{is_user && (
|
||||||
<Link
|
<Link
|
||||||
className={classNames(styles.item, { [styles.is_active]: pathname === URLS.BASE })}
|
className={classNames(styles.item, { [styles.is_active]: pathname === URLS.BASE })}
|
||||||
|
@ -91,13 +98,6 @@ const HeaderUnconnected: FC<IProps> = memo(
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Link
|
|
||||||
className={classNames(styles.item, { [styles.is_active]: pathname === URLS.BASE })}
|
|
||||||
to={URLS.BASE}
|
|
||||||
>
|
|
||||||
ФЛОУ
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
className={classNames(styles.item, {
|
className={classNames(styles.item, {
|
||||||
[styles.is_active]: pathname === URLS.BORIS,
|
[styles.is_active]: pathname === URLS.BORIS,
|
||||||
|
|
|
@ -11,6 +11,8 @@ import { Grid } from '~/components/containers/Grid';
|
||||||
import { Group } from '~/components/containers/Group';
|
import { Group } from '~/components/containers/Group';
|
||||||
import { LabHero } from '~/components/lab/LabHero';
|
import { LabHero } from '~/components/lab/LabHero';
|
||||||
import { LabBanner } from '~/components/lab/LabBanner';
|
import { LabBanner } from '~/components/lab/LabBanner';
|
||||||
|
import { LabHead } from '~/components/lab/LabHead';
|
||||||
|
import { Filler } from '~/components/containers/Filler';
|
||||||
|
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
|
@ -25,9 +27,11 @@ const LabLayout: FC<IProps> = () => {
|
||||||
<div>
|
<div>
|
||||||
<Container>
|
<Container>
|
||||||
<div className={styles.wrap}>
|
<div className={styles.wrap}>
|
||||||
<div className={styles.content}>
|
<Group className={styles.content}>
|
||||||
|
<LabHead />
|
||||||
<LabGrid />
|
<LabGrid />
|
||||||
</div>
|
</Group>
|
||||||
|
|
||||||
<div className={styles.panel}>
|
<div className={styles.panel}>
|
||||||
<Sticky>
|
<Sticky>
|
||||||
<Group>
|
<Group>
|
||||||
|
@ -35,8 +39,13 @@ const LabLayout: FC<IProps> = () => {
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<Group>
|
<Group>
|
||||||
<Placeholder height={32} width="100%" />
|
<Placeholder height={36} width="100%" />
|
||||||
|
<Group horizontal>
|
||||||
|
<Filler />
|
||||||
|
<Placeholder height={32} width="120px" />
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<div />
|
||||||
<div />
|
<div />
|
||||||
|
|
||||||
<Placeholder height={14} width="100px" />
|
<Placeholder height={14} width="100px" />
|
||||||
|
@ -52,6 +61,7 @@ const LabLayout: FC<IProps> = () => {
|
||||||
<Placeholder height={20} width="64px" />
|
<Placeholder height={20} width="64px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div />
|
||||||
<div />
|
<div />
|
||||||
|
|
||||||
<Placeholder height={14} width="180px" />
|
<Placeholder height={14} width="180px" />
|
||||||
|
@ -75,6 +85,19 @@ const LabLayout: FC<IProps> = () => {
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<div />
|
<div />
|
||||||
|
<div />
|
||||||
|
|
||||||
|
<Group>
|
||||||
|
<Placeholder width="100%" height={100} />
|
||||||
|
<Placeholder width="120px" height={16} />
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<div />
|
||||||
|
|
||||||
|
<Group>
|
||||||
|
<Placeholder width="100%" height={100} />
|
||||||
|
<Placeholder width="120px" height={16} />
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</Card>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue