Skip to content

Commit e051672

Browse files
committed
beautified Help page
1 parent 5edf895 commit e051672

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

src/common/HelpCard.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@ import Card from "@mui/material/Card";
22
import CardContent from "@mui/material/CardContent";
33
import CardMedia from "@mui/material/CardMedia";
44
import Typography from "@mui/material/Typography";
5+
import { homeBackgroundColor } from "../consts/Colors";
56
import { HelpCardProps } from "./props/HelpCardProps";
67

78
export const HelpCard = (props: HelpCardProps) => {
89
return (
9-
<Card>
10-
<CardContent>
10+
<Card
11+
sx={{
12+
backgroundColor: homeBackgroundColor,
13+
}}
14+
>
15+
<CardContent
16+
sx={{
17+
borderRadius: "50px !important",
18+
borderBottom: "11px solid #e0e0e0",
19+
backgroundColor: "white",
20+
}}
21+
>
1122
<Typography variant="body2" color="text.secondary" fontSize="1rem">
1223
{props.description}
1324
</Typography>

src/pages/Help.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
99
import { HelpHeaders } from "../enums/HelpHeaders";
1010
import { HelpDetails } from "../enums/HelpDetails";
1111
import { HelpCard } from "../common/HelpCard";
12+
import { homeBackgroundColor } from "../consts/Colors";
1213

1314
const videoSrc =
1415
"https://github.com/anserwaseem/automadeasy-videos/raw/main/help/";
@@ -31,6 +32,20 @@ export const Help = () => {
3132
key={header}
3233
expanded={expanded === header}
3334
onChange={handleChange(header)}
35+
sx={{
36+
backgroundColor: homeBackgroundColor,
37+
boxShadow: "0px 0px 10px 0px rgba(0.5,0,0,0.1)",
38+
borderRadius: "50px !important",
39+
borderBottom: "11px solid #e0e0e0",
40+
marginTop: "0.25rem",
41+
"&.MuiAccordion-root:before": {
42+
backgroundColor: "white",
43+
},
44+
"&.MuiPaper-root .MuiCard-root": {
45+
borderRadius: "50px !important",
46+
borderBottom: "11px solid #e0e0e0",
47+
},
48+
}}
3449
>
3550
<AccordionSummary
3651
expandIcon={<ExpandMoreIcon />}

0 commit comments

Comments
 (0)