refine typography

This commit is contained in:
2024-03-02 11:00:12 -05:00
parent 1078d8935f
commit 9cb5d1d5dd
6 changed files with 22 additions and 11 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ const { title, date, slug } = Astro.props;
<style> <style>
h2, h2,
h2 a { h2 a {
font-size: 1.4rem; font-size: 1.5rem;
font-family: Oswald, sans-serif;
margin-bottom: 0.5rem;
} }
h3 { h3 {
+5 -1
View File
@@ -72,15 +72,19 @@ const navLinks: NavLink[] = [
nav ul li a { nav ul li a {
position: relative; position: relative;
font-size: 1.2rem;
display: flex; display: flex;
gap: 0.5rem; gap: 0.5rem;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
} }
nav ul li a span {
font-size: 1.2rem;
}
nav ul li a::before { nav ul li a::before {
content: '•'; content: '•';
font-size: 1.6rem;
position: absolute; position: absolute;
left: -12px; left: -12px;
color: var(--blue); color: var(--blue);
+1 -1
View File
@@ -11,7 +11,7 @@ import Layout from '@layouts/Layout.astro';
<style> <style>
.portrait { .portrait {
display: block; display: block;
max-width: 300px; max-width: 250px;
margin: auto; margin: auto;
margin-bottom: 26px; margin-bottom: 26px;
border-radius: 200px; border-radius: 200px;
+2 -2
View File
@@ -16,11 +16,11 @@ const posts = await getCollection('blog');
new Date(b.data.pubDate).valueOf() - new Date(b.data.pubDate).valueOf() -
new Date(a.data.pubDate).valueOf() new Date(a.data.pubDate).valueOf()
) )
.slice(0, 5) .slice(0, 6)
.map((post) => <PostPreview post={post} />) .map((post) => <PostPreview post={post} />)
} }
{ {
posts.length < 5 ? null : ( posts.length < 6 ? null : (
<div class="more-posts"> <div class="more-posts">
<a href="/archive/all?page=1">All Posts</a> <a href="/archive/all?page=1">All Posts</a>
</div> </div>
Binary file not shown.
+11 -6
View File
@@ -4,6 +4,12 @@
font-style: normal; font-style: normal;
} }
@font-face {
font-family: Oswald;
src: url(./fonts/Oswald-VariableFont_wght.ttf) format('truetype');
font-style: normal;
}
@font-face { @font-face {
font-family: JetBrainsMono; font-family: JetBrainsMono;
src: url(./fonts/JetBrainsMono-VariableFont_wght.ttf) format('truetype'); src: url(./fonts/JetBrainsMono-VariableFont_wght.ttf) format('truetype');
@@ -34,9 +40,8 @@
} }
* { * {
/* font-family: 'CrimsonText', serif; */ font-family: 'CrimsonText', sans-serif;
font-family: 'CrimsonText', serif; font-size: 1rem;
font-size: 1.1rem;
color: var(--text); color: var(--text);
letter-spacing: 0.03rem; letter-spacing: 0.03rem;
} }
@@ -67,7 +72,8 @@ h1,
h2, h2,
h3, h3,
h4 { h4 {
font-weight: bold; font-family: Oswald, sans-serif;
font-weight: 400;
} }
p { p {
@@ -261,8 +267,7 @@ dialog {
} }
.post-preview { .post-preview {
padding: 0.1rem 0rem 2rem; padding: 0.1rem 0rem 1rem;
margin: 0 0 1.5rem 0;
} }
svg { svg {