From ca720110940c96915d4abfd8107b6aa745f37963 Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Sun, 4 Jan 2026 10:22:11 -0500 Subject: [PATCH] improved stylings --- src/components/blog/PostBodyClient.tsx | 7 +-- src/routes/blog/[title]/index.tsx | 65 +++++++++++++------------- src/routes/blog/post.css | 25 ++++++++-- 3 files changed, 55 insertions(+), 42 deletions(-) diff --git a/src/components/blog/PostBodyClient.tsx b/src/components/blog/PostBodyClient.tsx index 0d4aec7..c5691e2 100644 --- a/src/components/blog/PostBodyClient.tsx +++ b/src/components/blog/PostBodyClient.tsx @@ -194,8 +194,6 @@ export default function PostBodyClient(props: PostBodyClientProps) { link.textContent = `[${refNumber}]`; link.className = "reference-link text-blue hover:text-sky no-underline cursor-pointer"; - link.style.cssText = - "text-decoration: none; font-size: 0.75em; vertical-align: super;"; link.onclick = (e) => { e.preventDefault(); @@ -235,9 +233,7 @@ export default function PostBodyClient(props: PostBodyClientProps) { // Find the parent container and add styling const parentDiv = referencesSection.parentElement; if (parentDiv) { - // Add top border and padding - parentDiv.style.cssText = - "border-top: 1px solid var(--surface2); margin-top: 4rem; padding-top: 2rem;"; + parentDiv.classList.add("references-heading"); } // Find all paragraphs after the References heading that start with [n] @@ -258,7 +254,6 @@ export default function PostBodyClient(props: PostBodyClientProps) { // Add styling currentElement.className = "reference-item transition-colors duration-500 text-sm mb-3"; - currentElement.style.cssText = "scroll-margin-top: 100px;"; // Parse and style the content - get everything after [n] let refText = text.substring(match[0].length); diff --git a/src/routes/blog/[title]/index.tsx b/src/routes/blog/[title]/index.tsx index fd6aa67..35e1e82 100644 --- a/src/routes/blog/[title]/index.tsx +++ b/src/routes/blog/[title]/index.tsx @@ -370,35 +370,36 @@ export default function PostPage() {
{/* Content that slides over the fixed image */}
-
-
-
- Written {new Date(p().date).toDateString()} -
-
+
+
+
+
+ Written {new Date(p().date).toDateString()} +
-
+
Edited:{" "} {new Date( p().last_edited_date ).toDateString()}
- -
- By Michael Freno -
-
+ +
+ By Michael Freno +
+ +
{(tag) => { const tagValue = tag.value; return tagValue ? ( -
{tagValue}
+ {tagValue}
) : null; }} @@ -406,40 +407,38 @@ export default function PostPage() {
-