Skip to content

Commit 79ca846

Browse files
committed
Update about page copy and styles
1 parent 171a7cf commit 79ca846

3 files changed

Lines changed: 40 additions & 27 deletions

File tree

src/components/about/hero.astro

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ import avatarPng from "@/assets/avatar.png";
55
---
66

77
<section>
8-
<Picture resize="down" alt="mcecode's avatar" {...avatarPng} />
8+
<Picture
9+
resize="down"
10+
alt="An avatar with a man bun, a beard, and a mustache, wearing eyeglasses and a black and gray shirt."
11+
{...avatarPng}
12+
/>
913
<h1>Hi, I'm Matthew</h1>
10-
<p>I code to turn ideas into reality</p>
14+
<p>This is my tech-focused digital garden.</p>
1115
</section>
1216

1317
<style lang="scss">
@@ -24,22 +28,27 @@ import avatarPng from "@/assets/avatar.png";
2428
}
2529
h1 {
2630
grid-area: title;
27-
margin-bottom: 0;
2831
}
2932
p {
3033
grid-area: subtitle;
3134
font-size: v-size(7);
35+
word-break: keep-all;
3236
}
3337

3438
@include m-large {
3539
section {
3640
grid-template-areas: "avatar title" "avatar subtitle";
37-
column-gap: v-size(10);
41+
grid-template-columns: 2fr 3fr;
42+
column-gap: v-size(5);
3843
margin-bottom: v-const("section_spacing.large");
3944
text-align: left;
4045
}
46+
picture {
47+
justify-self: end;
48+
}
4149
h1 {
4250
align-self: end;
51+
margin: 0;
4352
}
4453
}
4554
</style>

src/components/about/section.astro

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
---
2-
type Props = { title: string; description: string };
3-
const { title, description } = Astro.props;
2+
type Props = { title: string };
3+
const { title } = Astro.props;
44
---
55

66
<section>
77
<h2>{title}</h2>
8-
<p>{description}</p>
8+
<slot />
99
</section>
1010

1111
<style lang="scss">
1212
section {
1313
margin-bottom: v-const("section_spacing.medium");
1414
}
15+
h2::after {
16+
content: "...";
17+
}
1518

1619
@include m-large {
1720
section {
18-
display: flex;
21+
display: grid;
22+
grid-template-columns: 2fr 3fr;
1923
gap: v-size(5);
2024
margin-bottom: v-const("section_spacing.large");
2125
}
2226
h2 {
23-
flex: 1 0 40%;
2427
text-align: right;
2528
}
2629
}
27-
28-
@include m-xlarge {
29-
h2 {
30-
flex-basis: 30%;
31-
}
32-
}
3330
</style>

src/pages/index.astro

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@ import Page from "@/layout/page.astro";
66

77
<Page title="About">
88
<Hero />
9-
<Section
10-
title="Psychometrician"
11-
description="In college, I took a degree in BS Psychology because I just found the human psyche fascinating. I wanted to learn it. I wanted to study it. Once I graduated, I pursued a career in psychometrics and became a psychometrician."
12-
/>
13-
<Section
14-
title="Turned"
15-
description="As I progressed as a psychometrician, I realized that I really needed to up my skills in statistics. Due to this, one of the things that I decided to learn was coding, so that I could delve deeper on data analysis and statistical tests, among others. However, the more I learned how to code, the more I realized how much I really liked it, all the more when I discovered web development. This reached the point where I started to consider actually changing careers."
16-
/>
17-
<Section
18-
title="Software Engineer"
19-
description="After some deliberation, I decided to take the plunge. A few freelance projects, open-source contributions, and applications later, I have now fully shifted careers and work as a software engineer with full-stack skills."
20-
/>
9+
<Section title="Here, you can find my">
10+
<ul>
11+
<li>shortish <a href="/notes">notes</a>,</li>
12+
<li>longer form <a href="/writings">writings</a>,</li>
13+
<li>
14+
and (outdated) list of <a href="/projects">projects</a> (that I should definitely
15+
update).
16+
</li>
17+
</ul>
18+
</Section>
19+
<Section title="Right now">
20+
<div>
21+
<p>
22+
it's pretty plain and sparse, but I try to add new things and improve on
23+
what's already here when I get the time.
24+
</p>
25+
<p>Hope you enjoy your stay.</p>
26+
</div>
27+
</Section>
2128
</Page>

0 commit comments

Comments
 (0)