Browse Source

social link

master
azri 1 week ago
parent
commit
55cacfa262

+ 4
- 5
src/components/Header/Header.jsx View File

31
     return (
31
     return (
32
         <Container>
32
         <Container>
33
             <Box sx={{color:"white", px:23}}>
33
             <Box sx={{color:"white", px:23}}>
34
-                <Box sx={{display:"flex", gap:1}}>
35
-                    <InstagramIcon style={headerStyle.icon} />
36
-                    <FacebookIcon style={headerStyle.icon} />
37
-                    <TwitterIcon style={headerStyle.icon} />
38
-                    <PinterestIcon style={headerStyle.icon} />
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')}}/>
39
                 </Box>
38
                 </Box>
40
                 <Typography variant="body2" sx={{position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }}>Don’t miss out on our next big thing! Click <Link sx={{color:"white", textDecoration:"underline"}}> here</Link> to subcribe now.</Typography>
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 <Link sx={{color:"white", textDecoration:"underline"}}> here</Link> to subcribe now.</Typography>
41
             </Box>
40
             </Box>

+ 0
- 2
src/components/NewsLetter/NewsLetter.jsx View File

2
 import bgImage from "../../assets/images/newsletterwallpaper.jpg"
2
 import bgImage from "../../assets/images/newsletterwallpaper.jpg"
3
 import { Box, Button, TextField, InputAdornment, Typography } from '@mui/material';
3
 import { Box, Button, TextField, InputAdornment, Typography } from '@mui/material';
4
 
4
 
5
-
6
-
7
 const NewsLetter = () => {
5
 const NewsLetter = () => {
8
   return (
6
   return (
9
     <Box
7
     <Box

+ 8
- 4
src/components/SocialMedia/SocialMedia.jsx View File

6
 
6
 
7
 const SocialMedia = () => {
7
 const SocialMedia = () => {
8
   const socialMedia = [
8
   const socialMedia = [
9
-    { icon: <InstagramIcon color="primary" />, name: 'Instagram' },
10
-    { icon: <FacebookIcon color="primary" />, name: 'Facebook' },
11
-    { icon: <TwitterIcon color="primary" />, name: 'Twitter' },
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' },
12
   ];
12
   ];
13
 
13
 
14
   return (
14
   return (
22
         py: 4,
22
         py: 4,
23
         borderTop: '1px solid #CFCFCF',
23
         borderTop: '1px solid #CFCFCF',
24
         borderBottom: '1px solid #CFCFCF',
24
         borderBottom: '1px solid #CFCFCF',
25
+        cursor: 'pointer'
25
       }}
26
       }}
26
     >
27
     >
27
       {socialMedia.map((media, index) => (
28
       {socialMedia.map((media, index) => (
28
         <Box
29
         <Box
29
           key={index}
30
           key={index}
31
+          onClick={()=>{
32
+            window.open(media.link, '_blank')
33
+          }}
30
           sx={{
34
           sx={{
31
             display: 'flex',
35
             display: 'flex',
32
             flexDirection: { xs: 'column', sm: 'row' }, // Stack icon and text on small screens
36
             flexDirection: { xs: 'column', sm: 'row' }, // Stack icon and text on small screens
35
           }}
39
           }}
36
         >
40
         >
37
           {media.icon}
41
           {media.icon}
38
-          <Typography variant="body1" sx={{ fontWeight: 'bold' }}>
42
+          <Typography variant="body1" sx={{fontWeight: 'bold', color:'#000',':hover':{color:"#95AAC5"}}}>
39
             {media.name}
43
             {media.name}
40
           </Typography>
44
           </Typography>
41
         </Box>
45
         </Box>

Loading…
Cancel
Save