@@ -2,55 +2,61 @@ import React from 'react';
22import styled from 'styled-components' ;
33import { FaGithub , FaLinkedin , FaGlobe , FaMedium , FaDev } from 'react-icons/fa' ;
44
5+ // Container for the entire social section
56const SocialContainer = styled . div `
6- width: 30%;
7- margin: 20px auto;
8- padding: 20px 20px 30px 20px;
9- background-color: #2e2e2e;
10- border-radius: 10px;
11- text-align: center;
12- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
13- font-family: 'RobotoMono', sans-serif;
7+ width: 30%; /* Set the container width */
8+ margin: 20px auto; /* Center the container with auto margins */
9+ padding: 20px 20px 30px 20px; /* Padding around the container */
10+ background-color: #2e2e2e; /* Dark background color */
11+ border-radius: 10px; /* Rounded corners */
12+ text-align: center; /* Center the text inside the container */
13+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
14+ font-family: 'RobotoMono', sans-serif; /* Use the RobotoMono font */
1415
16+ /* Adjust container width on smaller screens */
1517 @media (max-width: 768px) {
16- width: 80%;
18+ width: 80%; /* Increase width on mobile screens */
1719 }
1820` ;
1921
22+ // Styled title for the social section
2023const SocialTitle = styled . h3 `
21- color: #fff;
22- font-size: 1.5em;
23- margin-bottom: 10px;
24- background: linear-gradient(90deg, #8a2be2, #d4a1ff);
25- -webkit-background-clip: text;
26- -webkit-text-fill-color: transparent;
24+ color: #fff; /* White text color */
25+ font-size: 1.5em; /* Font size for the title */
26+ margin-bottom: 10px; /* Space below the title */
27+ background: linear-gradient(90deg, #8a2be2, #d4a1ff); /* Gradient effect on text */
28+ -webkit-background-clip: text; /* Clip background to the text */
29+ -webkit-text-fill-color: transparent; /* Make text transparent to reveal gradient */
2730` ;
2831
32+ // Styled description text
2933const SocialDescription = styled . p `
30- color: #d3d3d3;
31- margin-bottom: 20px;
34+ color: #d3d3d3; /* Light gray text color */
35+ margin-bottom: 20px; /* Space below the description */
3236
3337 .highlight {
34- color: #8a2be2;
38+ color: #8a2be2; /* Highlighted purple color for important words */
3539 }
3640` ;
3741
42+ // Container for the social icons
3843const SocialIcons = styled . div `
39- display: flex;
40- justify-content: center;
41- gap: 20px;
44+ display: flex; /* Use flexbox to layout the icons */
45+ justify-content: center; /* Center the icons horizontally */
46+ gap: 20px; /* Space between the icons */
4247
4348 a {
44- color: #d3d3d3;
45- font-size: 2em;
46- transition: color 0.3s;
49+ color: #d3d3d3; /* Default icon color (light gray) */
50+ font-size: 2em; /* Size of the icons */
51+ transition: color 0.3s; /* Smooth color transition on hover */
4752
4853 &:hover {
49- color: #8a2be2;
54+ color: #8a2be2; /* Change icon color to purple on hover */
5055 }
5156 }
5257` ;
5358
59+ // Main React component
5460const SocialLinks : React . FC = ( ) => {
5561 return (
5662 < SocialContainer >
@@ -59,6 +65,7 @@ const SocialLinks: React.FC = () => {
5965 Feel free to < span className = "highlight" > connect</ span > with me
6066 </ SocialDescription >
6167 < SocialIcons >
68+ { /* Social media links with icons */ }
6269 < a href = "https://github.com/tjklint" target = "_blank" rel = "noopener noreferrer" > < FaGithub /> </ a >
6370 < a href = "https://www.linkedin.com/in/timothy-klint" target = "_blank" rel = "noopener noreferrer" > < FaLinkedin /> </ a >
6471 < a href = "https://tjklint.com" target = "_blank" rel = "noopener noreferrer" > < FaGlobe /> </ a >
0 commit comments