|
@@ -10,7 +10,6 @@ const PageTitle = ({title = "", image = null}) => {
|
10
|
10
|
className="animate__animated animate__fadeIn"
|
11
|
11
|
sx={{
|
12
|
12
|
position: "relative",
|
13
|
|
- minHeight: "300px",
|
14
|
13
|
backgroundImage: `url("${image}")`,
|
15
|
14
|
backgroundSize: "cover",
|
16
|
15
|
backgroundPosition: "top center",
|
|
@@ -20,21 +19,10 @@ const PageTitle = ({title = "", image = null}) => {
|
20
|
19
|
display:"flex",
|
21
|
20
|
}}
|
22
|
21
|
>
|
23
|
|
-
|
24
|
|
-
|
25
|
|
- {/* Title */}
|
26
|
|
- {/* <Typography
|
27
|
|
- variant="h3"
|
28
|
|
- className="main-title"
|
29
|
|
- sx={{
|
30
|
|
- position: "relative",
|
31
|
|
- zIndex: 2,
|
32
|
|
- margin:"auto auto",
|
33
|
|
- color: image ? "white" : "black"
|
34
|
|
- }}
|
35
|
|
- >
|
36
|
|
- {title?.toUpperCase() || " "}
|
37
|
|
- </Typography> */}
|
|
22
|
+ <Box src={`${image}`} component={"img"} sx={{width:"100%"}}>
|
|
23
|
+
|
|
24
|
+ </Box>
|
|
25
|
+
|
38
|
26
|
</Box>
|
39
|
27
|
);
|
40
|
28
|
};
|