91 lines
2.2 KiB
JavaScript
91 lines
2.2 KiB
JavaScript
import React from "react";
|
|
import Box from "@mui/material/Box";
|
|
import Card from "@mui/material/Card";
|
|
import Typography from "@mui/material/Typography";
|
|
import StarBorderIcon from "@mui/icons-material/StarBorder";
|
|
import RatingsChart from "./RatingsChart";
|
|
|
|
const Ratings = () => {
|
|
return (
|
|
<>
|
|
<Card
|
|
sx={{
|
|
boxShadow: "none",
|
|
borderRadius: "10px",
|
|
p: "25px",
|
|
mb: "15px",
|
|
}}
|
|
>
|
|
<Box
|
|
sx={{
|
|
display: "flex",
|
|
justifyContent: "space-between",
|
|
alignItems: "center",
|
|
}}
|
|
>
|
|
<Box>
|
|
<Typography
|
|
variant="h1"
|
|
sx={{ fontSize: 18, fontWeight: 500, mb: "10px" }}
|
|
>
|
|
Ratings
|
|
</Typography>
|
|
|
|
<Typography
|
|
sx={{
|
|
fontSize: '13px',
|
|
fontWeight: 500,
|
|
color: "#A9A9C8",
|
|
mb: "10px",
|
|
}}
|
|
>
|
|
YEAR OF 2022
|
|
</Typography>
|
|
|
|
<Typography
|
|
sx={{
|
|
fontSize: 24,
|
|
fontWeight: 700,
|
|
color: "#260944",
|
|
mb: "5px",
|
|
}}
|
|
as="h3"
|
|
>
|
|
8.14k{" "}
|
|
<Typography
|
|
component="span"
|
|
sx={{ fontSize: 13, color: "#A9A9C8" }}
|
|
>
|
|
Review
|
|
</Typography>
|
|
</Typography>
|
|
|
|
<Typography
|
|
sx={{ fontSize: '12px', fontWeight: 500, color: "#5B5B98" }}
|
|
>
|
|
<StarBorderIcon
|
|
sx={{ position: "relative", top: "6px", color: "#FA7E00" }}
|
|
/>{" "}
|
|
4.5{" "}
|
|
<Typography
|
|
component="span"
|
|
sx={{ fontWeight: 500, fontSize: '13px', ml: "2px" }}
|
|
className="primaryColor"
|
|
>
|
|
+15.6%
|
|
</Typography>{" "}
|
|
From previous period
|
|
</Typography>
|
|
</Box>
|
|
|
|
<Box>
|
|
<RatingsChart />
|
|
</Box>
|
|
</Box>
|
|
</Card>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Ratings;
|