瀏覽代碼

page title fix

master
azri 3 週之前
父節點
當前提交
a77f64459f
共有 1 個檔案被更改,包括 4 行新增16 行删除
  1. 4
    16
      src/components/PageTitle/PageTitle.jsx

+ 4
- 16
src/components/PageTitle/PageTitle.jsx 查看文件

@@ -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
 };

Loading…
取消
儲存