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,3 +1,3 @@
1 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

@@ -0,0 +1,3 @@
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,13 +2,12 @@ import React from "react";
2 2
 import { Box, IconButton } from "@mui/material";
3 3
 import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
4 4
 import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5
+import mainImage from "../../assets/images/mainwallpaper.jpg"
5 6
 
6 7
 const Carousel = () => {
7 8
 
8 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 13
   const [currentIndex, setCurrentIndex] = React.useState(0);

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

@@ -1,6 +1,6 @@
1 1
 import React from 'react';
2 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 4
 import Grid from '@mui/material/Grid2';
5 5
 
6 6
 const Footer = () => {
@@ -10,27 +10,23 @@ const Footer = () => {
10 10
         backgroundColor: 'background.default',
11 11
         mb: 10,
12 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 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 31
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
36 32
             Contact Info
@@ -39,7 +35,7 @@ const Footer = () => {
39 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 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 39
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
44 40
             Get Help
45 41
           </Typography>
@@ -62,7 +58,7 @@ const Footer = () => {
62 58
           </nav>
63 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 62
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
67 63
             Popular Categories
68 64
           </Typography>
@@ -87,7 +83,7 @@ const Footer = () => {
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 87
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
92 88
             Let’s stay in touch
93 89
           </Typography>

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

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

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

@@ -45,7 +45,6 @@ const Home = () => {
45 45
         }}>
46 46
 
47 47
           {/* OFFSET PURPOSE */}
48
-          <Grid size={{xs:12, md:2}} sx={{display:"flex", alignItems:"center" }}></Grid>
49 48
 
50 49
           <Grid size={{xs:12, md:4}} sx={{mx:"auto", display:"flex", alignItems:"center", justifyContent:"center" }}>
51 50
             {/* Icon at the start */}
@@ -57,10 +56,6 @@ const Home = () => {
57 56
             <KeyboardArrowRightIcon sx={{ ml: 3, color: "#B7B7B7" }} />
58 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 59
         </Grid>
65 60
 
66 61
         <ProductSelected />

Loading…
Cancel
Save