@@ -73,6 +73,7 @@ const ProfileCardContainer = styled.div`
73
73
max-width: 320px;
74
74
margin: 0 auto;
75
75
perspective: 1000px;
76
+ position: relative;
76
77
` ;
77
78
78
79
const ProfileCard = styled . div `
@@ -283,37 +284,36 @@ const SocialLinks = styled.div`
283
284
top: 50%;
284
285
transform: translateY(-50%);
285
286
286
- @media (max-width: 1024px) {
287
- position: relative;
288
- left: 0;
289
- transform: none;
287
+ @media (max-width: 768px) {
288
+ position: static;
290
289
flex-direction: row;
291
290
justify-content: center;
292
291
margin: 1rem 0;
293
292
}
294
293
` ;
295
294
296
- const SocialIcon = styled . a `
295
+ const SocialLink = styled . a `
297
296
color: ${ ( { theme } ) => theme . text } ;
298
297
font-size: 1.5rem;
299
- transition: all 0.3s ease;
298
+ transition: color 0.3s ease;
300
299
display: flex;
301
300
align-items: center;
302
- gap: 0.5rem;
301
+ justify-content: center;
302
+ width: 2.5rem;
303
+ height: 2.5rem;
304
+ border-radius: 50%;
305
+ background: ${ ( { theme } ) => theme . primary } ;
306
+ border: 1px solid ${ ( { theme } ) => theme . border } ;
303
307
304
308
&:hover {
305
- color: ${ ( { theme } ) => theme . link } ;
306
- transform: translateY(-2px);
307
- }
308
-
309
- span {
310
- font-size: 0.9rem;
311
- opacity: 0;
312
- transition: opacity 0.3s ease;
309
+ color: ${ ( { theme } ) => theme . primary } ;
310
+ background: ${ ( { theme } ) => theme . link } ;
313
311
}
314
312
315
- &:hover span {
316
- opacity: 1;
313
+ @media (max-width: 767px) {
314
+ width: 2rem;
315
+ height: 2rem;
316
+ font-size: 1.2rem;
317
317
}
318
318
` ;
319
319
@@ -626,45 +626,40 @@ const Home = () => {
626
626
< HomeGrid >
627
627
< Column >
628
628
< ProfileSection >
629
- < SocialLinks >
630
- < SocialIcon href = { homeContent . profile . socialLinks . github } target = "_blank" rel = "noopener noreferrer" >
631
- < i className = "fab fa-github" > </ i >
632
- < span > GitHub</ span >
633
- </ SocialIcon >
634
- < SocialIcon href = { homeContent . profile . socialLinks . linkedin } target = "_blank" rel = "noopener noreferrer" >
635
- < i className = "fab fa-linkedin" > </ i >
636
- < span > LinkedIn</ span >
637
- </ SocialIcon >
638
- < SocialIcon href = { homeContent . profile . socialLinks . instagram } target = "_blank" rel = "noopener noreferrer" >
639
- < i className = "fab fa-instagram" > </ i >
640
- < span > Instagram</ span >
641
- </ SocialIcon >
642
- < SocialIcon href = { `mailto:${ homeContent . profile . socialLinks . email } ` } >
643
- < i className = "fas fa-envelope" > </ i >
644
- < span > Email</ span >
645
- </ SocialIcon >
646
- </ SocialLinks >
647
-
629
+ < ProfileCardContainer >
630
+ < SocialLinks >
631
+ < SocialLink href = { homeContent . profile . socialLinks . github } target = "_blank" rel = "noopener noreferrer" >
632
+ < i className = "fab fa-github" > </ i >
633
+ </ SocialLink >
634
+ < SocialLink href = { homeContent . profile . socialLinks . linkedin } target = "_blank" rel = "noopener noreferrer" >
635
+ < i className = "fab fa-linkedin" > </ i >
636
+ </ SocialLink >
637
+ < SocialLink href = { homeContent . profile . socialLinks . instagram } target = "_blank" rel = "noopener noreferrer" >
638
+ < i className = "fab fa-instagram" > </ i >
639
+ </ SocialLink >
640
+ < SocialLink href = { `mailto:${ homeContent . profile . socialLinks . email } ` } >
641
+ < i className = "fas fa-envelope" > </ i >
642
+ </ SocialLink >
643
+ </ SocialLinks >
644
+ < ProfileCard isFlipped = { isFlipped } onClick = { handleCardClick } >
645
+ < CardFront >
646
+ < img
647
+ src = { homeContent . profile . images . front }
648
+ alt = "Rohit in Berlin"
649
+ onClick = { ( e ) => handleImageClick ( e , homeContent . profile . images . front ) }
650
+ />
651
+ </ CardFront >
652
+ < CardBack >
653
+ < img
654
+ src = { homeContent . profile . images . back }
655
+ alt = "Coder"
656
+ onClick = { ( e ) => handleImageClick ( e , homeContent . profile . images . back ) }
657
+ />
658
+ </ CardBack >
659
+ </ ProfileCard >
660
+ </ ProfileCardContainer >
648
661
< ProfileInfo >
649
662
< p > { homeContent . profile . title } </ p >
650
- < ProfileCardContainer >
651
- < ProfileCard isFlipped = { isFlipped } onClick = { handleCardClick } >
652
- < CardFront >
653
- < img
654
- src = { homeContent . profile . images . front }
655
- alt = "Rohit in Berlin"
656
- onClick = { ( e ) => handleImageClick ( e , homeContent . profile . images . front ) }
657
- />
658
- </ CardFront >
659
- < CardBack >
660
- < img
661
- src = { homeContent . profile . images . back }
662
- alt = "Coder"
663
- onClick = { ( e ) => handleImageClick ( e , homeContent . profile . images . back ) }
664
- />
665
- </ CardBack >
666
- </ ProfileCard >
667
- </ ProfileCardContainer >
668
663
</ ProfileInfo >
669
664
670
665
< ResumeLinks >
0 commit comments