Explorar el Código

update social media link

master
azri hace 1 mes
padre
commit
20847a1fd9

+ 3
- 2
src/components/Footer/Footer.jsx Ver fichero

@@ -3,7 +3,8 @@ import { Box, Typography, TextField, Button, InputAdornment } from '@mui/materia
3 3
 import logoSrc from "../../assets/images/amberlogofooter.png";
4 4
 import Grid from '@mui/material/Grid2';
5 5
 import InstagramIcon from '@mui/icons-material/Instagram';
6
-import WhatsAppIcon from '@mui/icons-material/WhatsApp'; import customerService from '../../services/CustomerService';
6
+import WhatsAppIcon from '@mui/icons-material/WhatsApp'; 
7
+import customerService from '../../services/CustomerService';
7 8
 
8 9
 const TikTokIcon = ({ color = "#000000" }) => {
9 10
   return (
@@ -100,7 +101,7 @@ const Footer = () => {
100 101
           >
101 102
             <TextField
102 103
               variant="outlined"
103
-              placeholder="your email address"
104
+              placeholder="Your email address"
104 105
               value={email}
105 106
               type='email'
106 107
               onChange={(e) => { setEmail(e.target.value) }}

+ 22
- 15
src/components/Header/Header.jsx Ver fichero

@@ -2,26 +2,30 @@ import React from 'react';
2 2
 import { createStyles, styled } from '@mui/material/styles';
3 3
 import { Box, Typography, Link } from '@mui/material';
4 4
 import InstagramIcon from '@mui/icons-material/Instagram';
5
-import FacebookIcon from '@mui/icons-material/Facebook';
6
-import TwitterIcon from '@mui/icons-material/Twitter';
7
-import PinterestIcon from '@mui/icons-material/Pinterest';
5
+import WhatsAppIcon from '@mui/icons-material/WhatsApp'; 
8 6
 
9
-const Container = styled(Box)(({theme})=>({
7
+const TikTokIcon = ({ color = "#000000" }) => {
8
+    return (
9
+        <svg fill={color} width="1em" height="1em" viewBox="0 0 512 512" id="icons" xmlns="http://www.w3.org/2000/svg"><path d="M412.19,118.66a109.27,109.27,0,0,1-9.45-5.5,132.87,132.87,0,0,1-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14,23.9,350,16,350.13,16H267.69V334.78c0,4.28,0,8.51-.18,12.69,0,.52-.05,1-.08,1.56,0,.23,0,.47-.05.71,0,.06,0,.12,0,.18a70,70,0,0,1-35.22,55.56,68.8,68.8,0,0,1-34.11,9c-38.41,0-69.54-31.32-69.54-70s31.13-70,69.54-70a68.9,68.9,0,0,1,21.41,3.39l.1-83.94a153.14,153.14,0,0,0-118,34.52,161.79,161.79,0,0,0-35.3,43.53c-3.48,6-16.61,30.11-18.2,69.24-1,22.21,5.67,45.22,8.85,54.73v.2c2,5.6,9.75,24.71,22.38,40.82A167.53,167.53,0,0,0,115,470.66v-.2l.2.2C155.11,497.78,199.36,496,199.36,496c7.66-.31,33.32,0,62.46-13.81,32.32-15.31,50.72-38.12,50.72-38.12a158.46,158.46,0,0,0,27.64-45.93c7.46-19.61,9.95-43.13,9.95-52.53V176.49c1,.6,14.32,9.41,14.32,9.41s19.19,12.3,49.13,20.31c21.48,5.7,50.42,6.9,50.42,6.9V131.27C453.86,132.37,433.27,129.17,412.19,118.66Z" /></svg>
10
+    );
11
+};
12
+
13
+const Container = styled(Box)(({ theme }) => ({
10 14
     backgroundColor: theme.palette.primary.main,
11 15
     paddingTop: 10,
12 16
     paddingBottom: 10,
13 17
     width: "100%",
14
-    display:"flex",
15
-    position:"relative",
16
-    minHeight:"fit-content",
18
+    display: "flex",
19
+    position: "relative",
20
+    minHeight: "fit-content",
17 21
     [`@media (max-width: ${theme.breakpoints.values.md}px)`]: {
18 22
         display: "none"
19 23
     },
20 24
 }))
21 25
 
22 26
 const headerStyle = createStyles({
23
-    icon:{
24
-        fontSize:17
27
+    icon: {
28
+        fontSize: 17
25 29
     }
26 30
 })
27 31
 
@@ -30,13 +34,16 @@ const Header = () => {
30 34
 
31 35
     return (
32 36
         <Container>
33
-            <Box sx={{color:"white", px:6.1}}>
34
-                <Box sx={{display:"flex", gap:1, cursor:"pointer"}}>
35
-                    <InstagramIcon sx={{":hover":{color:"gray"}}} style={headerStyle.icon} onClick={()=>{window.open('https://www.instagram.com/amber.officials/?hl=en', '_blank')}} />
36
-                    <FacebookIcon sx={{":hover":{color:"gray"}}} style={headerStyle.icon} onClick={()=>{window.open('https://www.facebook.com/amber.officials/', '_blank')}}/>
37
-                    <TwitterIcon sx={{":hover":{color:"gray"}}} style={headerStyle.icon} onClick={()=>{window.open('https://twitter.com/amber.officials', '_blank')}}/>
37
+            <Box sx={{ color: "white", px: 6.1 }}>
38
+                <Box sx={{ display: "flex", gap: 1, cursor: "pointer" }}>
39
+                    <WhatsAppIcon sx={{ ":hover": { color: "gray" } }} style={headerStyle.icon} onClick={() => { window.open('https://wa.me/+60172282072', '_blank') }} />
40
+                    <InstagramIcon sx={{ ":hover": { color: "gray" } }} style={headerStyle.icon} onClick={() => { window.open('https://www.instagram.com/amber.officials/?hl=en', '_blank') }} />
41
+                    <a onClick={() => { window.open('https://www.tiktok.com/@ambermodeofficial', '_blank') }}>
42
+                    <TikTokIcon color={"#FFF"}/>
43
+                    </a>
44
+                    
38 45
                 </Box>
39
-                <Typography variant="body2" sx={{position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }}>Don’t miss out on our next big thing! Click <a style={{color:"white", textDecoration:"underline", cursor:'pointer'}}> here</a> to subcribe now.</Typography>
46
+                <Typography variant="body2" sx={{ position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }}>Don’t miss out on our next big thing! Click <a style={{ color: "white", textDecoration: "underline", cursor: 'pointer' }}> here</a> to subcribe now.</Typography>
40 47
             </Box>
41 48
         </Container>
42 49
     );

+ 29
- 7
src/components/SocialMedia/SocialMedia.jsx Ver fichero

@@ -1,14 +1,18 @@
1 1
 import React from 'react';
2 2
 import { Box, Typography } from '@mui/material';
3 3
 import InstagramIcon from '@mui/icons-material/Instagram';
4
-import FacebookIcon from '@mui/icons-material/Facebook';
5
-import TwitterIcon from '@mui/icons-material/Twitter';
4
+import WhatsAppIcon from '@mui/icons-material/WhatsApp';
5
+
6
+const TikTokIcon = ({ color = "#000000" }) => {
7
+  return (
8
+    <svg fill={color} width="1.3em" height="1.3em" viewBox="0 0 512 512" id="icons" xmlns="http://www.w3.org/2000/svg"><path d="M412.19,118.66a109.27,109.27,0,0,1-9.45-5.5,132.87,132.87,0,0,1-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14,23.9,350,16,350.13,16H267.69V334.78c0,4.28,0,8.51-.18,12.69,0,.52-.05,1-.08,1.56,0,.23,0,.47-.05.71,0,.06,0,.12,0,.18a70,70,0,0,1-35.22,55.56,68.8,68.8,0,0,1-34.11,9c-38.41,0-69.54-31.32-69.54-70s31.13-70,69.54-70a68.9,68.9,0,0,1,21.41,3.39l.1-83.94a153.14,153.14,0,0,0-118,34.52,161.79,161.79,0,0,0-35.3,43.53c-3.48,6-16.61,30.11-18.2,69.24-1,22.21,5.67,45.22,8.85,54.73v.2c2,5.6,9.75,24.71,22.38,40.82A167.53,167.53,0,0,0,115,470.66v-.2l.2.2C155.11,497.78,199.36,496,199.36,496c7.66-.31,33.32,0,62.46-13.81,32.32-15.31,50.72-38.12,50.72-38.12a158.46,158.46,0,0,0,27.64-45.93c7.46-19.61,9.95-43.13,9.95-52.53V176.49c1,.6,14.32,9.41,14.32,9.41s19.19,12.3,49.13,20.31c21.48,5.7,50.42,6.9,50.42,6.9V131.27C453.86,132.37,433.27,129.17,412.19,118.66Z" /></svg>
9
+  );
10
+};
6 11
 
7 12
 const SocialMedia = () => {
8 13
   const socialMedia = [
9
-    { icon: <InstagramIcon color="primary" />, name: 'Instagram', link: 'https://www.instagram.com/amber.officials/?hl=en'  },
10
-    { icon: <FacebookIcon color="primary" />, name: 'Facebook', link: 'https://www.facebook.com/amber.officials/' },
11
-    { icon: <TwitterIcon color="primary" />, name: 'Twitter', link: 'https://twitter.com/amber.officials' },
14
+    { icon: <WhatsAppIcon color="primary" />, name: 'Whatsapp', link: 'https://wa.me/+60172282072' },
15
+    { icon: <InstagramIcon color="primary" />, name: 'Instagram', link: 'https://www.instagram.com/amber.officials/?hl=en' },
12 16
   ];
13 17
 
14 18
   return (
@@ -28,7 +32,7 @@ const SocialMedia = () => {
28 32
       {socialMedia.map((media, index) => (
29 33
         <Box
30 34
           key={index}
31
-          onClick={()=>{
35
+          onClick={() => {
32 36
             window.open(media.link, '_blank')
33 37
           }}
34 38
           sx={{
@@ -39,11 +43,29 @@ const SocialMedia = () => {
39 43
           }}
40 44
         >
41 45
           {media.icon}
42
-          <Typography variant="body1" sx={{fontWeight: 'bold', color:'#000',':hover':{color:"#95AAC5"}}}>
46
+          <Typography variant="body1" sx={{ fontWeight: 'bold', color: '#000', ':hover': { color: "#95AAC5" } }}>
43 47
             {media.name}
44 48
           </Typography>
45 49
         </Box>
46 50
       ))}
51
+
52
+      <Box
53
+        onClick={() => {
54
+          window.open('https://www.tiktok.com/@ambermodeofficial', '_blank')
55
+        }}
56
+        sx={{
57
+          display: 'flex',
58
+          flexDirection: { xs: 'column', sm: 'row' }, // Stack icon and text on small screens
59
+          alignItems: 'center',
60
+          gap: 1,
61
+        }}
62
+      >
63
+        <TikTokIcon color={"#95AAC5"}></TikTokIcon>
64
+        <Typography variant="body1" sx={{ fontWeight: 'bold', color: '#000', ':hover': { color: "#95AAC5" } }}>
65
+          {'TikTok'}
66
+        </Typography>
67
+      </Box>
68
+      
47 69
     </Box>
48 70
   );
49 71
 };

Loading…
Cancelar
Guardar