Skip to content

Commit 43f07fd

Browse files
committed
Light Mode (Fixed)
1 parent 68297be commit 43f07fd

File tree

1 file changed

+51
-23
lines changed

1 file changed

+51
-23
lines changed

src/components/ConnectSection.jsx

Lines changed: 51 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,47 @@ import { Box, Title, SimpleGrid, Paper, ThemeIcon, Text, Group } from '@mantine/
33
import { IconBrandGithub, IconBrandLinkedin, IconMail } from '@tabler/icons-react';
44
import { useColorScheme } from '../theme/ThemeProvider';
55

6-
const ConnectSection = () => {
6+
const ConnectSection= () => {
77
const { colorScheme } = useColorScheme();
88
const isDark = colorScheme === 'dark';
99

10+
// Match the design in the image with simpler styling
11+
1012
const connectOptions = [
1113
{
1214
title: 'GitHub',
1315
description: 'Check out my projects and contributions',
14-
icon: <IconBrandGithub size={30} color={isDark ? "white" : "#333"} />,
16+
icon: <IconBrandGithub size={30} color="white" />,
1517
link: 'https://github.com/HxnDev',
16-
color: 'rgba(155, 0, 255, 0.8)'
18+
color: 'rgba(155, 0, 255, 0.8)',
19+
iconBg: '#9B00FF'
1720
},
1821
{
1922
title: 'LinkedIn',
2023
description: 'Connect with me professionally',
21-
icon: <IconBrandLinkedin size={30} color={isDark ? "white" : "#0077B5"} />,
24+
icon: <IconBrandLinkedin size={30} color="white" />,
2225
link: 'https://www.linkedin.com/in/hassan-shahzad-2a6617212/',
23-
color: '#0077B5'
26+
color: '#0077B5',
27+
iconBg: '#0077B5'
2428
},
2529
{
2630
title: 'Email',
2731
description: 'Send me a direct message',
28-
icon: <IconMail size={30} color={isDark ? "white" : "#00B5AD"} />,
32+
icon: <IconMail size={30} color="white" />,
2933
link: 'mailto:[email protected]',
30-
color: '#00B5AD'
34+
color: '#00F5FF',
35+
iconBg: '#00B5AD'
3136
}
3237
];
3338

3439
return (
35-
<Box my={60}>
40+
<Box my={8}>
3641
<Title
3742
order={2}
38-
mb={40}
43+
mb={8}
3944
align="center"
4045
style={{
41-
backgroundImage: 'linear-gradient(45deg, #6200EE, #03DAC5)',
42-
backgroundClip: 'text',
43-
WebkitBackgroundClip: 'text',
44-
WebkitTextFillColor: 'transparent',
46+
color: '#4169E1',
4547
fontSize: '2rem',
4648
fontWeight: 700
4749
}}
@@ -64,7 +66,7 @@ const ConnectSection = () => {
6466
href={option.link}
6567
target="_blank"
6668
rel="noopener noreferrer"
67-
p={30}
69+
p="xl"
6870
radius="md"
6971
withBorder
7072
style={{
@@ -73,7 +75,13 @@ const ConnectSection = () => {
7375
textDecoration: 'none',
7476
transition: 'all 0.3s ease',
7577
cursor: 'pointer',
76-
textAlign: 'center'
78+
textAlign: 'center',
79+
display: 'flex',
80+
flexDirection: 'column',
81+
alignItems: 'center',
82+
justifyContent: 'center',
83+
height: '100%',
84+
padding: '32px 16px'
7785
}}
7886
sx={{
7987
'&:hover': {
@@ -83,17 +91,37 @@ const ConnectSection = () => {
8391
}
8492
}}
8593
>
86-
<Group position="center" mb={15}>
87-
<ThemeIcon size={60} radius={60} style={{ backgroundColor: option.color }}>
88-
{option.icon}
89-
</ThemeIcon>
90-
</Group>
94+
<div
95+
style={{
96+
backgroundColor: option.iconBg,
97+
boxShadow: `0 4px 8px rgba(0, 0, 0, 0.15)`,
98+
width: '80px',
99+
height: '80px',
100+
borderRadius: '50%',
101+
display: 'flex',
102+
alignItems: 'center',
103+
justifyContent: 'center',
104+
marginBottom: '16px'
105+
}}
106+
>
107+
{option.icon}
108+
</div>
91109

92-
<Title order={4} align="center" mb={10} color={isDark ? "white" : "dark"}>
110+
<Text
111+
weight={700}
112+
size="xl"
113+
align="center"
114+
mb={1}
115+
style={{
116+
color: option.title === 'GitHub' ? '#4169E1' :
117+
option.title === 'LinkedIn' ? '#0077B5' :
118+
'#00B5AD'
119+
}}
120+
>
93121
{option.title}
94-
</Title>
122+
</Text>
95123

96-
<Text align="center" color={isDark ? "dimmed" : "dark.6"} size="sm">
124+
<Text align="center" color="dimmed" size="md">
97125
{option.description}
98126
</Text>
99127
</Paper>

0 commit comments

Comments
 (0)