Browse Source

page title fix

master
azri 3 weeks ago
parent
commit
a77f64459f
1 changed files with 4 additions and 16 deletions
  1. 4
    16
      src/components/PageTitle/PageTitle.jsx

+ 4
- 16
src/components/PageTitle/PageTitle.jsx View File

10
       className="animate__animated animate__fadeIn"
10
       className="animate__animated animate__fadeIn"
11
       sx={{
11
       sx={{
12
         position: "relative",
12
         position: "relative",
13
-        minHeight: "300px",
14
         backgroundImage: `url("${image}")`,
13
         backgroundImage: `url("${image}")`,
15
         backgroundSize: "cover",
14
         backgroundSize: "cover",
16
         backgroundPosition: "top center",
15
         backgroundPosition: "top center",
20
         display:"flex",
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
     </Box>
26
     </Box>
39
   );
27
   );
40
 };
28
 };

Loading…
Cancel
Save