Skip to content

Commit 5907e61

Browse files
authored
Merge pull request #271 from tjklint/refactor(1page)
style: update about page styles for better readability and alignment
2 parents 511475d + 6d25fcf commit 5907e61

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

src/components/about/about.scss

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
@font-face {
2-
font-family: 'RobotoMono';
3-
src: url('../../fonts/RobotoMono/RobotoMono-Medium.ttf') format('truetype');
4-
font-weight: 500;
5-
}
6-
7-
@font-face {
8-
font-family: 'RobotoMono';
9-
src: url('../../fonts/RobotoMono/RobotoMono-Regular.ttf') format('truetype');
10-
font-weight: 400;
11-
}
12-
13-
@font-face {
14-
font-family: 'Inter';
15-
src: url('../../fonts/Inter/Inter-Regular.ttf') format('truetype');
16-
font-weight: 400;
17-
}
18-
191
.about-container {
202
width: 80%;
213
margin: 0 auto;
@@ -55,7 +37,7 @@
5537
p {
5638
font-size: 1.2em;
5739
font-family: 'RobotoMono', sans-serif;
58-
margin-bottom: 20px; /* Add consistent margin between paragraphs */
40+
margin-bottom: 20px;
5941
}
6042

6143
.purple-text {
@@ -67,8 +49,8 @@
6749
flex: 0 0 30%;
6850
padding-left: 5%;
6951
display: flex;
70-
justify-content: flex-end; /* Align image to the bottom of the text */
71-
align-items: flex-start;
52+
justify-content: flex-end;
53+
align-items: center; /* Center the photo vertically */
7254

7355
img {
7456
width: 100%;
@@ -88,8 +70,6 @@
8870
.about-technologies,
8971
.about-contact {
9072
margin-bottom: 40px;
91-
92-
9373
}
9474

9575
.about-contact {

src/components/about/about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import tjklint6 from '../../assets/me/tjklint6.jpg';
1111
import tjklint7 from '../../assets/me/tjklint7.jpg';
1212
import tjklint8 from '../../assets/me/tjklint8.jpg';
1313

14-
const photos = [tjklint2, tjklint3, tjklint4, tjklint5, tjklint6, tjklint8];
14+
const photos = [tjklint2, tjklint3, tjklint4, tjklint5, tjklint6];
1515

1616
const About: React.FC = () => {
1717
const [photo, setPhoto] = useState('');

0 commit comments

Comments
 (0)