-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContact.js
More file actions
77 lines (70 loc) · 3.74 KB
/
Copy pathContact.js
File metadata and controls
77 lines (70 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { Box, Typography } from "@mui/material"
import { ThemeContext } from "../utils/themes/ThemeContext";
import { useContext } from "react";
import { IoLocationOutline } from "react-icons/io5";
import { IoMailOutline } from "react-icons/io5";
import { IoCallOutline } from "react-icons/io5";
import { IoLogoInstagram } from "react-icons/io5";
import { IoLogoLinkedin } from "react-icons/io5";
import { IoLogoGithub } from "react-icons/io5";
const Info = ({name, value, icon}) => {
const {theme} = useContext(ThemeContext);
return (
<Box sx={{display: "flex", flexDirection: "row", justifyContent: "left", margin: "20px"}}>
<Box sx={{width: "fit-content", padding: "10px", backgroundColor: theme.SecondBackgroundColor, borderRadius: "4px"}}>
{
icon === "address" ?
<IoLocationOutline size={20} color={theme.MainColor} />
: icon === "email" ?
<IoMailOutline size={20} color={theme.MainColor} />
:
<IoCallOutline size={20} color={theme.MainColor} />
}
</Box>
<Box sx={{display: "flex", flexDirection: "column", justifyContent: "center", textAlign: "left", marginLeft: "10px"}}>
<Typography sx={{fontSize: 15, color: theme.ClassicTextColor}}>{name}</Typography>
<Typography sx={{fontSize: 15, color: theme.BoldTextColor, fontWeight: "bold"}}>{value}</Typography>
</Box>
</Box>
);
};
const Contact = () => {
const {theme} = useContext(ThemeContext);
return (
<Box id="contact" sx={{display: "flex", flexWrap: "wrap", flexDirection: "row", justifyContent: "space-around", alignItems: "center", backgroundColor: theme.BackgroundColor, padding: "80px", boxShadow: `-20px -20px 20px ${theme.SecondBackgroundColor}, 20px -20px 20px ${theme.SecondBackgroundColor}`}}>
<Box sx={{display: "flex", flexDirection: "column", width: "30vw", minWidth: "300px", textAlign: "left", justifyContent: "center"}}>
<Typography sx={{fontSize: 30, color: theme.BoldTextColor, fontWeight: "bold"}}>Let's discuss your Project</Typography>
<Box sx={{display: "flex", flexDirection: "column", justifyContent: "center", marginTop: "20px"}}>
<Info
name={"Address:"}
value={"Mont-Saxonnex, France"}
icon={"address"}
/>
<Info
name={"My Email:"}
value={"nathandonatt@gmail.com"}
icon={"email"}
/>
<Info
name={"Call me:"}
value={"07 77 75 52 92"}
icon={"phone"}
/>
</Box>
<Box sx={{display: "flex", flexDirection: "row", justifyContent: "left", marginTop: "20px"}}>
<a href="https://www.instagram.com/nathandonatt/">
<IoLogoInstagram size={20} color={theme.MainColor} />
</a>
<a href="https://www.linkedin.com/in/nathan-donat-filliod/">
<IoLogoLinkedin style={{marginLeft: "20px"}} size={20} color={theme.MainColor} />
</a>
<a href="https://github.com/DonatNathan/">
<IoLogoGithub style={{marginLeft: "20px"}} size={20} color={theme.MainColor} />
</a>
</Box>
</Box>
<Box component="img" sx={{width: 100, marginTop: "50px"}} alt="Black Logo Donat" src="/images/logo.png" />
</Box>
);
};
export default Contact;