Browse Source

footer style

master
azri 1 week ago
parent
commit
8f5a68151d
1 changed files with 68 additions and 41 deletions
  1. 68
    41
      src/components/Footer/Footer.jsx

+ 68
- 41
src/components/Footer/Footer.jsx View File

2
 import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
2
 import { Box, Typography, TextField, Button, InputAdornment } from '@mui/material';
3
 import logoSrc from "../../assets/images/amberlogofooter.png";
3
 import logoSrc from "../../assets/images/amberlogofooter.png";
4
 import Grid from '@mui/material/Grid2';
4
 import Grid from '@mui/material/Grid2';
5
-import customerService from '../../services/CustomerService';
5
+import InstagramIcon from '@mui/icons-material/Instagram';
6
+import WhatsAppIcon from '@mui/icons-material/WhatsApp';import customerService from '../../services/CustomerService';
7
+
8
+const TikTokIcon = ({ color = "#000000" }) => {
9
+  return (
10
+    <svg
11
+      fill={color}
12
+      xmlns="http://www.w3.org/2000/svg"
13
+      viewBox="0 0 50 50"
14
+      width="1.5em"
15
+      height="1.5em"
16
+    >
17
+      <path d="M41,4H9C6.243,4,4,6.243,4,9v32c0,2.757,2.243,5,5,5h32c2.757,0,5-2.243,5-5V9C46,6.243,43.757,4,41,4z M37.006,22.323 c-0.227,0.021-0.457,0.035-0.69,0.035c-2.623,0-4.928-1.349-6.269-3.388c0,5.349,0,11.435,0,11.537c0,4.709-3.818,8.527-8.527,8.527 s-8.527-3.818-8.527-8.527s3.818-8.527,8.527-8.527c0.178,0,0.352,0.016,0.527,0.027v4.202c-0.175-0.021-0.347-0.053-0.527-0.053 c-2.404,0-4.352,1.948-4.352,4.352s1.948,4.352,4.352,4.352s4.527-1.894,4.527-4.298c0-0.095,0.042-19.594,0.042-19.594h4.016 c0.378,3.591,3.277,6.425,6.901,6.685V22.323z" />
18
+    </svg>
19
+  );
20
+};
6
 
21
 
7
 const Footer = () => {
22
 const Footer = () => {
8
 
23
 
17
         px: {
32
         px: {
18
           xs: 2,
33
           xs: 2,
19
           md: 5,
34
           md: 5,
20
-          lg: 5
35
+          lg: 20
21
         }
36
         }
22
       }}
37
       }}
23
     >
38
     >
31
 
46
 
32
       <Grid container spacing={2} justifyContent="space-evenly">
47
       <Grid container spacing={2} justifyContent="space-evenly">
33
 
48
 
34
-        <Grid item size={{ xs: 12, sm: 6, md: 3 }} sx={{ position: "relative" }}>
35
-
49
+        <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3 }}>
36
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
50
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
37
-            Contact Info
51
+            Company
38
           </Typography>
52
           </Typography>
39
-          <Typography variant="body2" sx={{ mb: 2 }}><span style={{ fontWeight: "bold" }}>Phone:</span> +4 (509) 120 6705</Typography>
40
-          <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>
53
+          <nav>
54
+            <Typography variant="body2" sx={{ mb: 1 }}>
55
+              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>About Us</a>
56
+            </Typography>
57
+            <Typography variant="body2" sx={{ mb: 1 }}>
58
+              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Cotact Us</a>
59
+            </Typography>
60
+          </nav>
41
         </Grid>
61
         </Grid>
42
 
62
 
43
-        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
63
+
64
+        <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3 }}>
44
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
65
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
45
             Get Help
66
             Get Help
46
           </Typography>
67
           </Typography>
63
           </nav>
84
           </nav>
64
         </Grid>
85
         </Grid>
65
 
86
 
66
-        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
87
+        <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3 }} sx={{ position: "relative" }}>
88
+
67
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
89
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
68
-            Popular Categories
90
+            Contact Info
69
           </Typography>
91
           </Typography>
70
-          <nav>
71
-            <Typography variant="body2" sx={{ mb: 1 }}>
72
-              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Dresses <span>(45)</span></a>
73
-            </Typography>
74
-            <Typography variant="body2" sx={{ mb: 1 }}>
75
-              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Tops <span>(45)</span></a>
76
-            </Typography>
77
-            <Typography variant="body2" sx={{ mb: 1 }}>
78
-              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Skirts <span>(45)</span></a>
79
-            </Typography>
80
-            <Typography variant="body2" sx={{ mb: 1 }}>
81
-              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Scarves <span>(45)</span></a>
82
-            </Typography>
83
-            <Typography variant="body2" sx={{ mb: 1 }}>
84
-              <a href="#" style={{ textDecoration: 'none', color: 'inherit' }}>Mens <span>(45)</span></a>
85
-            </Typography>
86
-          </nav>
92
+          <Typography variant="body2" sx={{ mb: 2 }}><span style={{ fontWeight: "bold" }}>Phone:</span> +4 (509) 120 6705</Typography>
93
+          <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>
87
         </Grid>
94
         </Grid>
88
 
95
 
89
 
96
 
90
-
91
-        <Grid item size={{ xs: 12, sm: 6, md: 3 }}>
97
+        <Grid item size={{ xs: 12, sm: 6, md: 6, lg: 3 }}>
92
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
98
           <Typography variant="body1" sx={{ fontWeight: "bold", mb: 4 }}>
93
             Let’s stay in touch
99
             Let’s stay in touch
94
           </Typography>
100
           </Typography>
111
               InputProps={{
117
               InputProps={{
112
                 startAdornment: (
118
                 startAdornment: (
113
                   <InputAdornment position="end">
119
                   <InputAdornment position="end">
114
-                    <Button 
115
-                      variant='contained' 
120
+                    <Button
121
+                      variant='contained'
116
                       sx={{ position: "absolute", right: 0, height: "100%" }}
122
                       sx={{ position: "absolute", right: 0, height: "100%" }}
117
                       onClick={() => {
123
                       onClick={() => {
118
 
124
 
119
                         const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
125
                         const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
120
-  
126
+
121
                         if (!email || email.trim() === "") {
127
                         if (!email || email.trim() === "") {
122
                           alert("Email is required");
128
                           alert("Email is required");
123
                           return;
129
                           return;
124
                         }
130
                         }
125
-  
131
+
126
                         if (!emailRegex.test(email)) {
132
                         if (!emailRegex.test(email)) {
127
                           alert("Invalid Email");
133
                           alert("Invalid Email");
128
                           return;
134
                           return;
129
                         }
135
                         }
130
-  
131
-                        if(customerService.createCustomer({
136
+
137
+                        if (customerService.createCustomer({
132
                           "email": email,
138
                           "email": email,
133
                           "firstName": email,
139
                           "firstName": email,
134
                           "lastName": "customer",
140
                           "lastName": "customer",
135
                           "password": "securePassword123"
141
                           "password": "securePassword123"
136
-                        })){
137
-  
142
+                        })) {
143
+
138
                           alert(`SUCCESS ADD: ${email}`)
144
                           alert(`SUCCESS ADD: ${email}`)
139
                           setEmail('')
145
                           setEmail('')
140
-  
141
-                        }else{
146
+
147
+                        } else {
142
                           alert("ALREADY ADDED");
148
                           alert("ALREADY ADDED");
143
                         }
149
                         }
144
-  
150
+
145
                       }}
151
                       }}
146
                     >
152
                     >
147
                       Subscribe
153
                       Subscribe
153
 
159
 
154
             <Typography variant="body2" >Keep up to date with our latest  news and <br /> special offers.</Typography>
160
             <Typography variant="body2" >Keep up to date with our latest  news and <br /> special offers.</Typography>
155
 
161
 
156
-
162
+            <Box sx={{display:"flex", gap:1, justifyContent:"end", cursor:"pointer"}}>
163
+              <a 
164
+                href="whatsapp" 
165
+                style={{
166
+                  color:"#95AAC5"
167
+                }}><WhatsAppIcon />
168
+              </a>
169
+              <a 
170
+                href="instagram" 
171
+                style={{
172
+                  color:"#95AAC5"
173
+                }}><InstagramIcon />
174
+              </a>
175
+              <a 
176
+                href="tiktok" 
177
+                style={{
178
+                  color:"#95AAC5"
179
+                }}><TikTokIcon color={"#95AAC5"} />
180
+              </a>
181
+              
182
+            </Box>
183
+            
157
           </Box>
184
           </Box>
158
         </Grid>
185
         </Grid>
159
       </Grid>
186
       </Grid>

Loading…
Cancel
Save