style(blog): smaller list headers, readable date color
list-view post titles were h3 at the bootstrap default, large enough to wrap; size them to 1.4rem. dates used bootstrap's text-muted, whose dark grey contrasts poorly on the dark background — replace with a blog-date class matching the site's opacity-based muted-text pattern, on the list and the detail page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -191,6 +191,15 @@ a.hot-pink {
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blog-list-title {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-date {
|
||||||
|
font-size: 85%;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
.site-footer {
|
.site-footer {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ export function BlogIndexPage() {
|
|||||||
{posts.length === 0 && <p>nothing here yet.</p>}
|
{posts.length === 0 && <p>nothing here yet.</p>}
|
||||||
{posts.map((post) => (
|
{posts.map((post) => (
|
||||||
<article key={post.slug} className="mb-4">
|
<article key={post.slug} className="mb-4">
|
||||||
<h3 className="mb-1">
|
<h3 className="blog-list-title mb-1">
|
||||||
<Link to={`/blog/${post.slug}`}>{post.title}</Link>
|
<Link to={`/blog/${post.slug}`}>{post.title}</Link>
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-muted mb-1" style={{ fontSize: '85%' }}>
|
<p className="blog-date mb-1">
|
||||||
{formatDate(post.published_at)}
|
{formatDate(post.published_at)}
|
||||||
</p>
|
</p>
|
||||||
{post.excerpt && <p className="mb-0">{post.excerpt}</p>}
|
{post.excerpt && <p className="mb-0">{post.excerpt}</p>}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export function BlogPostPage() {
|
|||||||
<Link to="/blog">← blog</Link>
|
<Link to="/blog">← blog</Link>
|
||||||
</p>
|
</p>
|
||||||
<h2 className="mb-1">{post.title}</h2>
|
<h2 className="mb-1">{post.title}</h2>
|
||||||
<p className="text-muted" style={{ fontSize: '85%' }}>
|
<p className="blog-date">
|
||||||
{formatDate(post.published_at)}
|
{formatDate(post.published_at)}
|
||||||
</p>
|
</p>
|
||||||
<div className="blog-post">
|
<div className="blog-post">
|
||||||
|
|||||||
Reference in New Issue
Block a user