Skip to content

Commit be43158

Browse files
committed
fix: margins and add card style on home
1 parent 1ad7aa3 commit be43158

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

src/pages/index.astro

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,26 @@ import heroImage from "@/images/fireimage.gif";
2424
</div>
2525
</div>
2626
</section>
27-
<section>
28-
<h2 id="works">Works</h2>
29-
<p>
30-
When I have the time, I like to write articles and silly tools. When I have even more time, I like to contribute
31-
to Open Source software. I enjoy doing origami and pondering arguably deranged topics as an aside. No matter how
32-
you got here, I hope you enjoy what you find.
33-
</p>
34-
<p>You can find all the things I do on my <a href="https://github.com/FireIsGood" target="_blank">GitHub</a></p>
35-
</section>
36-
<hr />
37-
<section>
38-
<h2>Recent blog posts</h2>
39-
<PostList postCount={3} />
40-
</section>
41-
<section>
42-
<h2>Recent tools</h2>
43-
<ToolList toolCount={3} />
44-
</section>
27+
<article>
28+
<section>
29+
<h2 id="works">Works</h2>
30+
<p>
31+
When I have the time, I like to write articles and silly tools. When I have even more time, I like to contribute
32+
to Open Source software. I enjoy doing origami and pondering arguably deranged topics as an aside. No matter how
33+
you got here, I hope you enjoy what you find.
34+
</p>
35+
<p>You can find all the things I do on my <a href="https://github.com/FireIsGood" target="_blank">GitHub</a></p>
36+
</section>
37+
<hr />
38+
<section>
39+
<h2>Recent blog posts</h2>
40+
<PostList postCount={3} />
41+
</section>
42+
<section>
43+
<h2>Recent tools</h2>
44+
<ToolList toolCount={3} />
45+
</section>
46+
</article>
4547
<section>
4648
<Ending />
4749
</section>
@@ -52,6 +54,10 @@ import heroImage from "@/images/fireimage.gif";
5254
margin-top: 2rem;
5355
}
5456

57+
section > :global(:last-child) {
58+
margin-bottom: 0;
59+
}
60+
5561
.hero {
5662
display: flex;
5763
flex-direction: column;
@@ -64,8 +70,9 @@ import heroImage from "@/images/fireimage.gif";
6470

6571
.hero-content {
6672
display: flex;
73+
flex-wrap: wrap-reverse;
6774
justify-content: space-between;
68-
gap: 0.5rem;
75+
gap: 1rem 0.5rem;
6976

7077
h1 {
7178
font-size: 4rem;

0 commit comments

Comments
 (0)