frontPanel/src/pages/startPage/steptwo.tsx

41 lines
1.3 KiB
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {Box, Button, Typography} from "@mui/material";
import CardWithImage from "./CardWithImage";
import cardImage1 from "../../assets/card-1.png";
import cardImage2 from "../../assets/card-2.png";
import cardImage3 from "../../assets/card-3.png";
interface HandleNext {
handleNext: () => void
}
export default function Steptwo ({handleNext}:HandleNext) {
return (
<Box sx={{
mt: "60px",
}}>
<Typography variant="h5">Стартовая страница</Typography>
<Box sx={{
display: "flex",
gap: "3.4%",
mt: "40px",
}}>
<Button variant='text'
onClick={() => handleNext()}
>
<CardWithImage image={cardImage1} text="Standart" />
</Button>
<Button variant='text'
onClick={() => handleNext()}
>
<CardWithImage image={cardImage2} text="Expanded" />
</Button>
<Button variant='text'
onClick={() => handleNext()}
>
<CardWithImage image={cardImage3} text="Centered" />
</Button>
</Box>
</Box>
)
}