Browse Source

temp homepage assets

master
azri 4 weeks ago
parent
commit
11f8a8fddc

BIN
src/assets/images/mainwallpaper.jpg View File


+ 2
- 2
src/assets/svg/logo.svg View File

1
 <svg xmlns="http://www.w3.org/2000/svg" width="194" height="45" viewBox="0 0 194 45">
1
 <svg xmlns="http://www.w3.org/2000/svg" width="194" height="45" viewBox="0 0 194 45">
2
-  <text id="AMBER" transform="translate(97 37)" fill="#fff" font-size="37" font-family="Lato-Bold, Lato" font-weight="700" letter-spacing="0.426em"><tspan x="-96.57" y="0">AMBER</tspan></text>
3
-</svg>
2
+  <text id="AMBER" transform="translate(97 37)" fill="#fff" font-size="37" font-family="Lato-Bold, Lato" font-weight="700" letter-spacing="0.426em"><tspan x="-96" y="0">AMBER</tspan></text>
3
+</svg>

+ 3
- 0
src/assets/svg/logofooter.svg View File

1
+<svg xmlns="http://www.w3.org/2000/svg" width="194" height="45" viewBox="0 0 194 45">
2
+  <text id="AMBER" transform="translate(97 37)" fill="#93abc7" font-size="37" font-family="Lato-Bold, Lato" font-weight="700" letter-spacing="0.426em"><tspan x="-96.57" y="0">AMBER</tspan></text>
3
+</svg>

BIN
src/assets/video/amberads.mp4 View File


+ 2
- 3
src/components/Carousel/Carousel.jsx View File

2
 import { Box, IconButton } from "@mui/material";
2
 import { Box, IconButton } from "@mui/material";
3
 import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
3
 import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
4
 import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
4
 import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5
+import mainImage from "../../assets/images/mainwallpaper.jpg"
5
 
6
 
6
 const Carousel = () => {
7
 const Carousel = () => {
7
 
8
 
8
   const items = [
9
   const items = [
9
-    { img_src: "https://via.placeholder.com/600x300", alt_name: "Image 1" },
10
-    { img_src: "https://via.placeholder.com/600x300/ff0000", alt_name: "Image 2" },
11
-    { img_src: "https://via.placeholder.com/600x300/00ff00", alt_name: "Image 3" },
10
+    { img_src: mainImage, alt_name: "Image 1" }
12
   ]
11
   ]
13
 
12
 
14
   const [currentIndex, setCurrentIndex] = React.useState(0);
13
   const [currentIndex, setCurrentIndex] = React.useState(0);

+ 15
- 19
src/components/Footer/Footer.jsx View File

1
 import React from 'react';
1
 import React from 'react';
2
 import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
2
 import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
3
-import SearchIcon from "@mui/icons-material/Search";
3
+import logoSrc from "../../assets/svg/logofooter.svg";
4
 import Grid from '@mui/material/Grid2';
4
 import Grid from '@mui/material/Grid2';
5
 
5
 
6
 const Footer = () => {
6
 const Footer = () => {
10
         backgroundColor: 'background.default',
10
         backgroundColor: 'background.default',
11
         mb: 10,
11
         mb: 10,
12
         mt: 15,
12
         mt: 15,
13
-        px:{
14
-          xs:2,
15
-          md:12,
16
-          lg:20
13
+        px: {
14
+          xs: 2,
15
+          md: 12,
16
+          lg: 20
17
         }
17
         }
18
       }}
18
       }}
19
     >
19
     >
20
+      <img src={logoSrc} alt="Logo"
21
+        style={{
22
+          width: 150,
23
+          height: 50,
24
+        }}
25
+      />
20
 
26
 
21
       <Grid container spacing={2} justifyContent="space-evenly">
27
       <Grid container spacing={2} justifyContent="space-evenly">
22
 
28
 
23
-        <Grid item size={{xs:12, sm:6, md:3}} sx={{ position: "relative" }}>
24
-
25
-          <Typography variant="h5" sx={{
26
-            color: 'primary.main', // Use primary color
27
-            letterSpacing: 15,
28
-            fontWeight: "bold",
29
-            position: "absolute",
30
-            top:-60
31
-          }}>
32
-            AMBER
33
-          </Typography>
29
+        <Grid item size={{ xs: 12, sm: 6, md: 3 }} sx={{ position: "relative" }}>
34
 
30
 
35
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
31
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
36
             Contact Info
32
             Contact Info
39
           <Typography variant="body2" sx={{ maxWidth: 250 }}><span style={{ fontWeight: "bold" }}>Address:</span> Lot G-77, Wangsa Walk Mall, Wangsa Avenue, No.9, Jalan Wangsa Perdana 1, Bandar Wangsa Maju, 53300 Kuala Lumpur, Malaysia</Typography>
35
           <Typography variant="body2" sx={{ maxWidth: 250 }}><span style={{ fontWeight: "bold" }}>Address:</span> Lot G-77, Wangsa Walk Mall, Wangsa Avenue, No.9, Jalan Wangsa Perdana 1, Bandar Wangsa Maju, 53300 Kuala Lumpur, Malaysia</Typography>
40
         </Grid>
36
         </Grid>
41
 
37
 
42
-        <Grid item size={{xs:12, sm:6, md:3}}>
38
+        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
43
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
39
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
44
             Get Help
40
             Get Help
45
           </Typography>
41
           </Typography>
62
           </nav>
58
           </nav>
63
         </Grid>
59
         </Grid>
64
 
60
 
65
-        <Grid item size={{xs:12, sm:6, md:3}}>
61
+        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
66
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
62
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
67
             Popular Categories
63
             Popular Categories
68
           </Typography>
64
           </Typography>
87
 
83
 
88
 
84
 
89
 
85
 
90
-        <Grid item size={{xs:12, sm:6, md:3}}>
86
+        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
91
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
87
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
92
             Let’s stay in touch
88
             Let’s stay in touch
93
           </Typography>
89
           </Typography>

+ 2
- 1
src/components/VideoAds/VideoAds.jsx View File

1
 import React from 'react';
1
 import React from 'react';
2
 import { Box } from '@mui/material';
2
 import { Box } from '@mui/material';
3
 import PropTypes from 'prop-types';
3
 import PropTypes from 'prop-types';
4
+import videoAds from "../../assets/video/amberads.mp4"
4
 
5
 
5
 const VideoAds = ({ video_url, height, width }) => {
6
 const VideoAds = ({ video_url, height, width }) => {
6
   return (
7
   return (
14
       }}
15
       }}
15
     >
16
     >
16
       <video
17
       <video
17
-        src={video_url}
18
+        src={videoAds}
18
         autoPlay
19
         autoPlay
19
         loop
20
         loop
20
         muted
21
         muted

+ 0
- 5
src/pages/Home.jsx View File

45
         }}>
45
         }}>
46
 
46
 
47
           {/* OFFSET PURPOSE */}
47
           {/* OFFSET PURPOSE */}
48
-          <Grid size={{xs:12, md:2}} sx={{display:"flex", alignItems:"center" }}></Grid>
49
 
48
 
50
           <Grid size={{xs:12, md:4}} sx={{mx:"auto", display:"flex", alignItems:"center", justifyContent:"center" }}>
49
           <Grid size={{xs:12, md:4}} sx={{mx:"auto", display:"flex", alignItems:"center", justifyContent:"center" }}>
51
             {/* Icon at the start */}
50
             {/* Icon at the start */}
57
             <KeyboardArrowRightIcon sx={{ ml: 3, color: "#B7B7B7" }} />
56
             <KeyboardArrowRightIcon sx={{ ml: 3, color: "#B7B7B7" }} />
58
           </Grid>
57
           </Grid>
59
 
58
 
60
-          <Grid size={{xs:12, md:2}} sx={{display:"flex", alignItems:"center", py:{xs:2, md:0} }}>
61
-            <Link href="/product" sx={{ color:"#000", textDecoration: "underline", m:{xs:"auto auto auto auto", md:"0 0 0 auto"}}}>VIEW ALL</Link>
62
-          </Grid>
63
-
64
         </Grid>
59
         </Grid>
65
 
60
 
66
         <ProductSelected />
61
         <ProductSelected />

Loading…
Cancel
Save