Parcourir la source

social link

master
azri il y a 1 semaine
Parent
révision
55cacfa262

+ 4
- 5
src/components/Header/Header.jsx Voir le fichier

@@ -31,11 +31,10 @@ const Header = () => {
31 31
     return (
32 32
         <Container>
33 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 38
                 </Box>
40 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 40
             </Box>

+ 0
- 2
src/components/NewsLetter/NewsLetter.jsx Voir le fichier

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

+ 8
- 4
src/components/SocialMedia/SocialMedia.jsx Voir le fichier

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

Chargement…
Annuler
Enregistrer