Просмотр исходного кода

feat module 3 : remove contact info, delivery information, replace stay in touch, remove section stay in touch

master
nadia 1 день назад
Родитель
Сommit
0f7dc69177
2 измененных файлов: 60 добавлений и 8 удалений
  1. 53
    5
      src/components/Footer/Footer.jsx
  2. 7
    3
      src/pages/Home.jsx

+ 53
- 5
src/components/Footer/Footer.jsx Просмотреть файл

1
-import { useState } from 'react';
2
-import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
1
+// import { useState } from 'react';
2
+// import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
3
+import { Box, Typography } from '@mui/material';
3
 import logoSrc from "../../assets/images/amberlogofooter.png";
4
 import logoSrc from "../../assets/images/amberlogofooter.png";
4
 import Grid from '@mui/material/Grid2';
5
 import Grid from '@mui/material/Grid2';
5
 import InstagramIcon from '@mui/icons-material/Instagram';
6
 import InstagramIcon from '@mui/icons-material/Instagram';
6
 import WhatsAppIcon from '@mui/icons-material/WhatsApp';
7
 import WhatsAppIcon from '@mui/icons-material/WhatsApp';
7
 import LocalPhoneIcon from '@mui/icons-material/LocalPhone';
8
 import LocalPhoneIcon from '@mui/icons-material/LocalPhone';
8
 
9
 
9
-import customerService from '../../services/CustomerService';
10
+// import customerService from '../../services/CustomerService';
10
 
11
 
11
 
12
 
12
 const TikTokIcon = ({ color = "#000000" }) => {
13
 const TikTokIcon = ({ color = "#000000" }) => {
17
 
18
 
18
 const Footer = () => {
19
 const Footer = () => {
19
 
20
 
20
-  const [email, setEmail] = useState("")
21
+  // const [email, setEmail] = useState("")
21
 
22
 
22
   return (
23
   return (
23
     <Box
24
     <Box
58
 
59
 
59
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 4, xl: 4 }} sx={{ position: "relative" }}>
60
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 4, xl: 4 }} sx={{ position: "relative" }}>
60
 
61
 
62
+          {/*
61
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
63
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
62
             Contact Info
64
             Contact Info
63
           </Typography>
65
           </Typography>
66
+          */}
64
           <Typography variant="body2" sx={{ maxWidth: 350, mb: 2 }}><span style={{ fontWeight: "bold" }}>AMBER MODE (M) SDN BHD (1109469-M) <br /> </span> Lot G-77, Wangsa Walk Mall, <br />Wangsa Avenue, <br />No.9, Jalan Wangsa Perdana 1, <br />Bandar Wangsa Maju, <br />53300 Kuala Lumpur, <br />Malaysia</Typography>
67
           <Typography variant="body2" sx={{ maxWidth: 350, mb: 2 }}><span style={{ fontWeight: "bold" }}>AMBER MODE (M) SDN BHD (1109469-M) <br /> </span> Lot G-77, Wangsa Walk Mall, <br />Wangsa Avenue, <br />No.9, Jalan Wangsa Perdana 1, <br />Bandar Wangsa Maju, <br />53300 Kuala Lumpur, <br />Malaysia</Typography>
65
           <Typography
68
           <Typography
66
             variant="body2"
69
             variant="body2"
73
 
76
 
74
         </Grid>
77
         </Grid>
75
 
78
 
76
-
77
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3, xl: 3 }} sx={{ pl: { xs: 0, sm: 0, md: 0, lg: 5, xl: 5 } }}>
79
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3, xl: 3 }} sx={{ pl: { xs: 0, sm: 0, md: 0, lg: 5, xl: 5 } }}>
78
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
80
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
79
             Get Help
81
             Get Help
80
           </Typography>
82
           </Typography>
81
           <nav>
83
           <nav>
84
+            {/*
82
             <Typography variant="body2" sx={{ mb: 1 }}>
85
             <Typography variant="body2" sx={{ mb: 1 }}>
83
               <a href='/delivery_info' style={{ textDecoration: 'none', color: 'inherit', cursor:"pointer" }}>Delivery Information</a>
86
               <a href='/delivery_info' style={{ textDecoration: 'none', color: 'inherit', cursor:"pointer" }}>Delivery Information</a>
84
             </Typography>
87
             </Typography>
88
+            */}
85
             <Typography variant="body2" sx={{ mb: 1 }}>
89
             <Typography variant="body2" sx={{ mb: 1 }}>
86
               <a href='/sale_terms_and_condition' style={{ textDecoration: 'none', color: 'inherit', cursor:"pointer" }}>Sale Terms & Conditions</a>
90
               <a href='/sale_terms_and_condition' style={{ textDecoration: 'none', color: 'inherit', cursor:"pointer" }}>Sale Terms & Conditions</a>
87
             </Typography>
91
             </Typography>
101
         </Grid>
105
         </Grid>
102
 
106
 
103
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 4, xl: 4 }}>
107
         <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 4, xl: 4 }}>
108
+          <Typography
109
+            variant="h4"
110
+            sx={{
111
+              fontFamily: '"Big Caslon", "Times New Roman", serif',
112
+              fontWeight: "400",
113
+              mb: 4,
114
+              color: "#000",
115
+            }}
116
+          >
117
+            Find us on our socials
118
+          </Typography>
119
+
120
+          <Box sx={{ display: "flex", gap: 1.5, alignItems: "center", color: "#95AAC5" }}>
121
+            <a
122
+              href="https://wa.me/+60172282072"
123
+              target="_blank"
124
+              rel="noreferrer"
125
+              style={{
126
+                color: "inherit",
127
+                lineHeight: 0,
128
+              }}><WhatsAppIcon fontSize="small" />
129
+            </a>
130
+            <a
131
+              href="https://www.instagram.com/amber.officials/?hl=en"
132
+              target="_blank"
133
+              rel="noreferrer"
134
+              style={{
135
+                color: "inherit",
136
+                lineHeight: 0,
137
+              }}><InstagramIcon fontSize="small" />
138
+            </a>
139
+            <a
140
+              href="https://www.tiktok.com/@ambermodeofficial"
141
+              target="_blank"
142
+              rel="noreferrer"
143
+              style={{
144
+                color: "inherit",
145
+                lineHeight: 0,
146
+              }}><TikTokIcon color={"#95AAC5"} />
147
+            </a>
148
+          </Box>
149
+
150
+          {/*
104
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
151
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
105
             Let’s stay in touch
152
             Let’s stay in touch
106
           </Typography>
153
           </Typography>
196
             </Box>
243
             </Box>
197
 
244
 
198
           </Box>
245
           </Box>
246
+          */}
199
         </Grid>
247
         </Grid>
200
       </Grid>
248
       </Grid>
201
     </Box>
249
     </Box>

+ 7
- 3
src/pages/Home.jsx Просмотреть файл

4
 import CarouselContainer from '../components/CarouselContainer'
4
 import CarouselContainer from '../components/CarouselContainer'
5
 import ProductSelected from '../components/ProductSelected'
5
 import ProductSelected from '../components/ProductSelected'
6
 import SocialMedia from '../components/SocialMedia'
6
 import SocialMedia from '../components/SocialMedia'
7
-import Feature from '../components/Feature'
7
+// import Feature from '../components/Feature'
8
 import { Link } from '@mui/material'
8
 import { Link } from '@mui/material'
9
 import VideoAds from '../components/VideoAds'
9
 import VideoAds from '../components/VideoAds'
10
 import ProductType from '../components/ProductType';
10
 import ProductType from '../components/ProductType';
11
-import NewsLetter from '../components/NewsLetter';
11
+// import NewsLetter from '../components/NewsLetter';
12
 import ProductService from "../services/ProductService"
12
 import ProductService from "../services/ProductService"
13
 import AmberHomeWallpaper from "../assets/images/amberHomeWallpaper.webp";
13
 import AmberHomeWallpaper from "../assets/images/amberHomeWallpaper.webp";
14
 import AmberBeautyWallpaper from "../assets/images/amberBeautyWallpaper.webp";
14
 import AmberBeautyWallpaper from "../assets/images/amberBeautyWallpaper.webp";
66
 
66
 
67
       </Box>
67
       </Box>
68
 
68
 
69
+      {/*
69
       <NewsLetter />
70
       <NewsLetter />
71
+      */}
70
 
72
 
71
       <Box sx={{ px:{
73
       <Box sx={{ px:{
72
         xs: 2,
74
         xs: 2,
74
         lg: 5
76
         lg: 5
75
       }, mb: 10 }}>
77
       }, mb: 10 }}>
76
 
78
 
79
+        {/*
77
         <Feature />
80
         <Feature />
81
+        */}
78
       </Box>
82
       </Box>
79
 
83
 
80
 
84
 
82
   )
86
   )
83
 }
87
 }
84
 
88
 
85
-export default Home
89
+export default Home

Загрузка…
Отмена
Сохранить