frontPanel/src/pages/Landing/Blog.tsx

113 lines
2.5 KiB
TypeScript
Raw Normal View History

2023-12-31 02:53:25 +00:00
import React from "react";
import Box from "@mui/material/Box";
import { Typography } from "@mui/material";
import SectionStyled from "./SectionStyled";
import { styled } from "@mui/material/styles";
2023-10-04 22:21:17 +00:00
2023-12-31 02:53:25 +00:00
const BoxCardBlog = styled("div")(({ theme }) => ({
[theme.breakpoints.down("md")]: {
width: "100%",
maxWidth: "none",
},
2023-10-04 22:21:17 +00:00
}));
2023-12-31 02:53:25 +00:00
function CardBlog() {
return (
<BoxCardBlog
sx={{
width: "360px",
height: "292px",
display: "flex",
flexDirection: "column",
backgroundColor: "#ffffff",
borderRadius: "12px",
marginBottom: "10px",
}}
>
<Box
sx={{
width: "100%",
height: "62%",
backgroundColor: "#C8DADE",
borderTopLeftRadius: "12px",
borderTopRightRadius: "12px",
}}
></Box>
<Box
sx={{
padding: "16px 20px",
maxWidth: "100%",
}}
>
<Typography color={"#4D4D4D"} fontSize={"16px"}>
01.09.2022
</Typography>
<Typography
variant="h6"
fontSize="18px"
color={"#4D4D4D"}
maxWidth={"300px"}
2023-10-04 22:21:17 +00:00
>
2023-12-31 02:53:25 +00:00
Как продвигать квиз за 10 000 в месяц
</Typography>
</Box>
</BoxCardBlog>
);
2023-10-04 22:21:17 +00:00
}
export default function Component() {
2023-12-31 02:53:25 +00:00
return (
<SectionStyled
tag={"section"}
bg={"#f2f3f7"}
mwidth={"1160px"}
sxsect={{
minHeight: "596px",
}}
sxcont={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
padding: "10px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "flex-start",
width: "100%",
flexDirection: "column",
}}
>
<Typography variant="h4" fontWeight={"500"}>
Блог
</Typography>
<Box
sx={{
maxWidth: "361px",
}}
>
<Typography sx={{ fontSize: "18px" }}>
Кейсы, дайджесты и отборные рекомендации
</Typography>
</Box>
</Box>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
flexWrap: "wrap",
width: "100%",
marginTop: "40px",
}}
>
<CardBlog />
<CardBlog />
<CardBlog />
</Box>
</SectionStyled>
);
}