File tree Expand file tree Collapse file tree 1 file changed +29
-24
lines changed Expand file tree Collapse file tree 1 file changed +29
-24
lines changed Original file line number Diff line number Diff line change 1818 flex-direction : row ;
1919 align-items : flex-start ;
2020 margin-bottom : 40px ;
21-
21+
22+ /* Desktop: Vertically center the photo relative to text and header */
23+ @media (min-width : 769px ) {
24+ align-items : center ; /* Center vertically */
25+ }
26+
2227 @media (max-width : 768px ) {
2328 flex-direction : column ;
2429 text-align : center ;
25- justify-content : center ;
2630 }
27-
31+
2832 .about-text {
2933 flex : 1 ;
3034 padding-right : 0 ;
3135 text-align : left ;
32-
36+
3337 @media (max-width : 768px ) {
3438 text-align : center ;
3539 padding-right : 0 ;
3640 }
37-
41+
3842 p {
3943 font-size : 1.2em ;
40- font-family : ' RobotoMono' , sans-serif ;
4144 margin-bottom : 20px ;
4245 }
43-
46+
4447 .purple-text {
45- color : #9b30ff ; /* Lighter purple for accessibility */
48+ color : #9b30ff ;
4649 }
47-
50+
4851 a {
49- color : #9b30ff ; /* Same lighter purple for links */
50- text-decoration : underline ; /* Ensure links are always underlined */
51-
52+ color : #9b30ff ;
53+ text-decoration : underline ;
54+
5255 & :visited {
53- color : #9b30ff ; /* Ensures visited links stay the same color */
56+ color : #9b30ff ;
5457 }
55-
58+
5659 & :hover {
5760 color : #8a2be2 ;
5861 }
5962 }
6063 }
61-
64+
6265 .about-photo {
6366 flex : 0 0 30% ;
6467 padding-left : 5% ;
6568 display : flex ;
6669 justify-content : flex-end ;
6770 align-items : center ;
68-
71+
6972 img {
7073 width : 100% ;
7174 height : auto ;
7275 border : 3px solid #8a2be2 ;
7376 border-radius : 10px ;
7477 }
75-
78+
79+ /* Mobile: Horizontal centering */
7680 @media (max-width : 768px ) {
77- width : 100% ; /* Full width on mobile */
78- padding-left : 0 ; /* Remove any left padding */
79- margin : 20px auto 0 ; /* Add margin for spacing and center horizontally */
80- justify-content : center ; /* Center the image horizontally */
81+ width : 70% ;
82+ padding-left : 0 ;
83+ margin-top : 20px ;
84+ margin-left : auto ; /* Ensures horizontal centering */
85+ margin-right : auto ; /* Ensures horizontal centering */
86+ justify-content : center ; /* Keep centered horizontally */
87+ align-items : center ; /* Keep centered vertically */
8188 }
8289 }
83-
84-
8590 }
86-
91+
8792 .about-technologies ,
8893 .about-contact {
8994 margin-bottom : 40px ;
You can’t perform that action at this time.
0 commit comments