Skip to content

Commit a363737

Browse files
authored
Merge pull request #296 from tjklint/refactor(1page)
Refactor(1page)
2 parents 3c0f7cd + 289827b commit a363737

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

src/components/about/about.scss

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,68 +18,77 @@
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;
2530
}
26-
31+
2732
.about-text {
2833
flex: 1;
2934
padding-right: 0;
3035
text-align: left;
31-
36+
3237
@media (max-width: 768px) {
3338
text-align: center;
3439
padding-right: 0;
3540
}
36-
41+
3742
p {
3843
font-size: 1.2em;
39-
font-family: 'RobotoMono', sans-serif;
4044
margin-bottom: 20px;
4145
}
42-
46+
4347
.purple-text {
44-
color: #9b30ff; /* Lighter purple for accessibility */
48+
color: #9b30ff;
4549
}
46-
50+
4751
a {
48-
color: #9b30ff; /* Same lighter purple for links */
49-
text-decoration: underline; /* Ensure links are always underlined */
50-
52+
color: #9b30ff;
53+
text-decoration: underline;
54+
5155
&:visited {
52-
color: #9b30ff; /* Ensures visited links stay the same color */
56+
color: #9b30ff;
5357
}
54-
58+
5559
&:hover {
5660
color: #8a2be2;
5761
}
5862
}
5963
}
60-
64+
6165
.about-photo {
6266
flex: 0 0 30%;
6367
padding-left: 5%;
6468
display: flex;
6569
justify-content: flex-end;
6670
align-items: center;
67-
71+
6872
img {
6973
width: 100%;
7074
height: auto;
7175
border: 3px solid #8a2be2;
7276
border-radius: 10px;
7377
}
74-
78+
79+
/* Mobile: Horizontal centering */
7580
@media (max-width: 768px) {
7681
width: 70%;
7782
padding-left: 0;
7883
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 */
7988
}
8089
}
8190
}
82-
91+
8392
.about-technologies,
8493
.about-contact {
8594
margin-bottom: 40px;

0 commit comments

Comments
 (0)