Лендинг
This commit is contained in:
28
src/components/MessageSteps/MessageSteps.module.css
Normal file
28
src/components/MessageSteps/MessageSteps.module.css
Normal file
@@ -0,0 +1,28 @@
|
||||
.wrapper {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
padding-top: var(--mantine-spacing-xl);
|
||||
padding-bottom: var(--mantine-spacing-xl);
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: Outfit, var(--mantine-font-family);
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--mantine-spacing-md);
|
||||
text-align: center;
|
||||
|
||||
@media (max-width: $mantine-breakpoint-sm) {
|
||||
font-size: 28px;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
text-align: center;
|
||||
|
||||
@media (max-width: $mantine-breakpoint-sm) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
45
src/components/MessageSteps/MessageSteps.tsx
Normal file
45
src/components/MessageSteps/MessageSteps.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
import { Container, Flex, Text, Title } from '@mantine/core';
|
||||
import classes from './MessageSteps.module.css';
|
||||
import { RosettaLogo } from '../RosettaLogo/RosettaLogo';
|
||||
import { Switch } from '../Switch/Switch';
|
||||
import { useState } from 'react';
|
||||
import { Sender } from '../Sender/Sender';
|
||||
import { Recipient } from '../Recipient/Recipient';
|
||||
|
||||
|
||||
export function MessageSteps() {
|
||||
const [show, setShow] = useState('Sender');
|
||||
|
||||
return (
|
||||
<div className={classes.wrapper}>
|
||||
<Container>
|
||||
<Flex justify={'center'} mb={'lg'} align={'center'}>
|
||||
<RosettaLogo size={50}></RosettaLogo>
|
||||
</Flex>
|
||||
<Title ta="center" className={classes.title}>
|
||||
How is my message sent?
|
||||
</Title>
|
||||
|
||||
<Container size={560} p={0}>
|
||||
<Text size="sm" className={classes.description}>
|
||||
See why Rosetta is truly secure. Notice how your message is sent and received from you to the recipient. The steps highlighted in blue are what you see, while the steps not highlighted are what happens behind the scenes.
|
||||
</Text>
|
||||
</Container>
|
||||
|
||||
<Flex align={'center'} justify={'center'} mt={'xl'}>
|
||||
<Switch data={[
|
||||
'Sender',
|
||||
'Recipient'
|
||||
]} onChange={(v) => setShow(v)}></Switch>
|
||||
</Flex>
|
||||
|
||||
<Flex justify={'center'} align={'center'} mt={'xl'} gap={'xl'}>
|
||||
<Flex>
|
||||
{show == 'Sender' && <Sender></Sender>}
|
||||
{show == 'Recipient' && <Recipient></Recipient>}
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user