+1
-2
src/components/Base.astro
+1
-2
src/components/Base.astro
-4
src/components/BlogPost.astro
-4
src/components/BlogPost.astro
+9
-3
src/pages/home.astro
+9
-3
src/pages/home.astro
···
30
<img src="/img/sprites/sunfl1.png" alt="" />
31
</div>
32
<div id="blog" class="bwbox">
33
-
<h2>Latest blog post</h2>
34
<BlogPost
35
url={`/blog/${post[0].id}`}
36
title={post[0].data.title}
37
time={`${post[0].data.pub.getFullYear()}-${post[0].data.pub.getMonth() + 1}-${post[0].data.pub.getDate()}`}
38
/>
39
-
<a href="/blog">View all posts</a>
40
-
<a href="/rss.xml">RSS feed</a>
41
</div>
42
</main>
43
</div>
···
62
.grid {
63
display: grid;
64
grid-template-columns: repeat(4, 1fr);
65
}
66
67
@media (max-width: 86ch) {
···
30
<img src="/img/sprites/sunfl1.png" alt="" />
31
</div>
32
<div id="blog" class="bwbox">
33
+
<h2 class="center">Latest blog post</h2>
34
<BlogPost
35
url={`/blog/${post[0].id}`}
36
title={post[0].data.title}
37
time={`${post[0].data.pub.getFullYear()}-${post[0].data.pub.getMonth() + 1}-${post[0].data.pub.getDate()}`}
38
/>
39
+
<div class="center">
40
+
<a href="/blog" class="button">::ALL_POSTS::</a>
41
+
<a href="/rss.xml" class="button">::RSS_FEED::</a>
42
+
</div>
43
</div>
44
</main>
45
</div>
···
64
.grid {
65
display: grid;
66
grid-template-columns: repeat(4, 1fr);
67
+
}
68
+
69
+
.button {
70
+
margin-bottom: 13px;
71
}
72
73
@media (max-width: 86ch) {
+11
src/styles/main.css
+11
src/styles/main.css
···
80
font-family: barcodetext;
81
}
82
83
+
.button {
84
+
display: inline-block;
85
+
color: var(--yellow);
86
+
border: 10px double;
87
+
padding: 4px 6px;
88
+
}
89
+
90
+
a.button {
91
+
text-decoration: none;
92
+
}
93
+
94
@font-face {
95
font-family: barcodetext;
96
src: url("/fonts/LibreBarcode39ExtendedText-Regular.woff");