Skip to content

The only tool you need to know what is happening and how to fix it.

fix: blog styling updates

ddux1d01a6f4bbff
diff --git a/website/app/blog/[slug]/page.tsx b/website/app/blog/[slug]/page.tsx
index 279355f8..1f3883ce 100644
--- a/website/app/blog/[slug]/page.tsx
+++ b/website/app/blog/[slug]/page.tsx
@@ -5,6 +5,7 @@ import { MDXRemote } from "next-mdx-remote/rsc";
import remarkGfm from "remark-gfm";
import { ArrowLeft } from "lucide-react";
import { Eyebrow } from "@/components/eyebrow";
+import { BlogByline } from "@/components/blog-byline";
import { BlogSubscribe } from "@/components/blog-subscribe";
import { getAllPosts, getPostBySlug } from "@/lib/blog";
@@ -48,7 +49,7 @@ export default async function BlogPostPage({
return (
<main className="relative">
- <section className="wrap py-20">
+ <section className="wrap pt-6 pb-24">
<div className="blog-article">
<Link
href={isEngineering ? "/blog/engineering" : "/blog"}
@@ -67,26 +68,18 @@ export default async function BlogPostPage({
<div className="prose">
<Eyebrow>{isEngineering ? "Engineering" : "Release"}</Eyebrow>
<h1 className="mt-4 mb-3">{post.title}</h1>
- <p
- style={{ color: "var(--fg-3)", fontFamily: "var(--font-mono)" }}
- className={`${post.description ? "mb-3" : "mb-12"} text-[13px]`}
- >
- {formatDate(post.date)}
- </p>
+ <BlogByline date={formatDate(post.date)} />
{post.description && (
- <p
- className="mb-12 text-[17px] leading-relaxed"
- style={{ color: "var(--fg-2)" }}
- >
- {post.description}
- </p>
+ <p className="blog-lead mb-12">{post.description}</p>
)}
- <MDXRemote
- source={post.content}
- options={{ mdxOptions: { remarkPlugins: [remarkGfm] } }}
- />
+ <div className="blog-body">
+ <MDXRemote
+ source={post.content}
+ options={{ mdxOptions: { remarkPlugins: [remarkGfm] } }}
+ />
+ </div>
</div>
</article>
diff --git a/website/app/blog/engineering/page.tsx b/website/app/blog/engineering/page.tsx
index b0a5443c..9cdc3ab1 100644
--- a/website/app/blog/engineering/page.tsx
+++ b/website/app/blog/engineering/page.tsx
@@ -7,7 +7,8 @@ import { getPostsByCategory } from "@/lib/blog";
export const metadata: Metadata = {
title: "Engineering Blog — Traceway",
- description: "Deep dives, benchmarks, and engineering notes from the Traceway team.",
+ description:
+ "Deep dives, benchmarks, and engineering notes from the Traceway team.",
};
export default function EngineeringBlogIndex() {
@@ -15,11 +16,11 @@ export default function EngineeringBlogIndex() {
return (
<main className="relative">
- <section className="wrap py-20">
+ <section className="wrap pt-6 pb-24">
<div className="prose">
<Eyebrow>Blog</Eyebrow>
<h1 className="mt-4 mb-3">Engineering</h1>
- <p style={{ color: "var(--fg-3)" }} className="mb-12">
+ <p style={{ color: "var(--fg-2)" }} className="mb-12">
Deep dives, benchmarks, and how we build Traceway.
</p>
diff --git a/website/app/blog/page.tsx b/website/app/blog/page.tsx
index 010146c6..2bac67e5 100644
--- a/website/app/blog/page.tsx
+++ b/website/app/blog/page.tsx
@@ -14,11 +14,11 @@ export default function BlogIndex() {
return (
<main className="relative">
- <section className="wrap py-20">
+ <section className="wrap pt-6 pb-24">
<div className="prose">
<Eyebrow>Blog</Eyebrow>
<h1 className="mt-4 mb-3">Releases & updates</h1>
- <p style={{ color: "var(--fg-3)" }} className="mb-12">
+ <p style={{ color: "var(--fg-2)" }} className="mb-12">
What we shipped, and when.
</p>
diff --git a/website/app/globals.css b/website/app/globals.css
index 21bdcb38..0637540e 100644
--- a/website/app/globals.css
+++ b/website/app/globals.css
@@ -38,6 +38,7 @@
/* Fonts (populated by next/font in layout.tsx) */
--font-display: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
--font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
+ --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
/* Radius */
--radius: 6px;
@@ -126,6 +127,7 @@
--font-sans: var(--font-display);
--font-display: var(--font-display);
--font-mono: var(--font-mono);
+ --font-body: var(--font-body);
--radius-sm: calc(var(--radius) - 2px);
--radius-md: var(--radius);
@@ -422,7 +424,7 @@
/* Article reading panel */
.blog-article {
- max-width: 860px;
+ max-width: 920px;
margin: 0 auto;
}
.blog-panel {
@@ -1338,6 +1340,103 @@
border: 1px solid var(--hair);
}
+ /* Blog reading typography — proportional Inter body, mono chrome.
+ Scoped so the marketing pages keep their all-mono aesthetic. */
+ .blog-lead {
+ font-family: var(--font-body);
+ font-size: 19px;
+ line-height: 1.7;
+ letter-spacing: 0;
+ color: var(--fg-1);
+ }
+ .blog-body p,
+ .blog-body li {
+ font-family: var(--font-body);
+ font-size: 17px;
+ line-height: 1.8;
+ letter-spacing: 0;
+ color: var(--fg-1);
+ }
+ .blog-body p {
+ margin: 0 0 18px;
+ }
+ .blog-body li {
+ margin: 8px 0;
+ }
+ .blog-body strong {
+ color: var(--fg-0);
+ font-weight: 600;
+ }
+ .blog-body code {
+ font-family: var(--font-mono);
+ }
+
+ /* Highlight a key phrase — use sparingly (raw <mark> in MDX). */
+ .blog-body mark {
+ background: color-mix(in oklab, var(--a1) 24%, transparent);
+ color: var(--fg-0);
+ padding: 1px 6px;
+ border-radius: 4px;
+ box-decoration-break: clone;
+ -webkit-box-decoration-break: clone;
+ }
+
+ /* Callout / aside — a styled markdown blockquote (> in MDX). */
+ .blog-body blockquote {
+ margin: 24px 0;
+ padding: 16px 20px;
+ border-left: 3px solid var(--a1);
+ background: color-mix(in oklab, var(--a1) 9%, transparent);
+ border-radius: 0 var(--radius) var(--radius) 0;
+ }
+ .blog-body blockquote p {
+ margin: 0;
+ color: var(--fg-1);
+ }
+ .blog-body blockquote p + p {
+ margin-top: 10px;
+ }
+
+ /* Blog post title — smaller than the marketing hero H1. */
+ .blog-article .prose h1 {
+ font-size: 38px;
+ }
+
+ /* Author byline */
+ .blog-byline {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin: 10px 0 24px;
+ font-family: var(--font-mono);
+ font-size: 13px;
+ color: var(--fg-2);
+ }
+ .blog-author {
+ display: inline-flex;
+ align-items: center;
+ gap: 9px;
+ }
+ .prose .blog-author-avatar {
+ width: 32px;
+ height: 32px;
+ border-radius: 50%;
+ border: 1px solid var(--hair-2);
+ object-fit: cover;
+ margin: 0;
+ display: block;
+ }
+ .blog-byline-sep {
+ color: var(--fg-3);
+ }
+ .prose a.blog-author {
+ color: var(--fg-1);
+ text-decoration: none;
+ }
+ .prose a.blog-author:hover {
+ color: var(--fg-0);
+ }
+
/* Logo color control */
.logo-img {
filter: invert(1) brightness(1.1);
diff --git a/website/app/layout.tsx b/website/app/layout.tsx
index dc481ab8..33712648 100644
--- a/website/app/layout.tsx
+++ b/website/app/layout.tsx
@@ -2,7 +2,7 @@ import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";
import { MotionPolish } from "@/components/motion-polish";
import type { Metadata } from "next";
-import { JetBrains_Mono, IBM_Plex_Mono } from "next/font/google";
+import { JetBrains_Mono, IBM_Plex_Mono, Inter } from "next/font/google";
import Script from "next/script";
import "./globals.css";
@@ -22,6 +22,12 @@ const ibmPlexMono = IBM_Plex_Mono({
display: "swap",
});
+const inter = Inter({
+ variable: "--font-body",
+ subsets: ["latin"],
+ display: "swap",
+});
+
export const metadata: Metadata = {
metadataBase: new URL("https://tracewayapp.com"),
alternates: {
@@ -43,7 +49,7 @@ export default function RootLayout({
return (
<html
lang="en"
- className={`${jetbrainsMono.variable} ${ibmPlexMono.variable}`}
+ className={`${jetbrainsMono.variable} ${ibmPlexMono.variable} ${inter.variable}`}
>
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-KSB465GF2W"
diff --git a/website/components/blog-byline.tsx b/website/components/blog-byline.tsx
new file mode 100644
index 00000000..25978688
--- /dev/null
+++ b/website/components/blog-byline.tsx
@@ -0,0 +1,35 @@
+import Image from "next/image";
+
+const AUTHOR = {
+ name: "Dusan Stanojevic",
+ url: "https://www.linkedin.com/in/dusanstanojeviccs",
+ avatar: "/images/dusan-stanojevic.jpg",
+};
+
+export function BlogByline({ date }: { date: string }) {
+ return (
+ <div className="blog-byline">
+ <a
+ href={AUTHOR.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="blog-author"
+ >
+ <Image
+ src={AUTHOR.avatar}
+ alt={AUTHOR.name}
+ width={32}
+ height={32}
+ className="blog-author-avatar"
+ />
+ {AUTHOR.name}
+ </a>
+ {date && (
+ <>
+ <span className="blog-byline-sep">·</span>
+ <span>{date}</span>
+ </>
+ )}
+ </div>
+ );
+}
diff --git a/website/components/blog-post-list.tsx b/website/components/blog-post-list.tsx
index f39a442c..cb5530e6 100644
--- a/website/components/blog-post-list.tsx
+++ b/website/components/blog-post-list.tsx
@@ -29,7 +29,7 @@ export function BlogPostList({ posts }: { posts: BlogPostMeta[] }) {
{post.description && (
<p
className="mt-2 text-[14px] leading-relaxed line-clamp-2"
- style={{ color: "var(--fg-3)" }}
+ style={{ color: "var(--fg-2)", fontFamily: "var(--font-body)" }}
>
{post.description}
</p>
diff --git a/website/content/blog/flutter-session-replay.mdx b/website/content/blog/flutter-session-replay.mdx
index 902b6417..d8570ca0 100644
--- a/website/content/blog/flutter-session-replay.mdx
+++ b/website/content/blog/flutter-session-replay.mdx
@@ -9,7 +9,7 @@ Before we get into it, a few things upfront. I’m the person building Traceway.
![Flutter session replay screenshot](/blog/flutter-session-replay/img1.webp)
-Session replay started as a question I couldn’t let go of: can this be done in Flutter without impacting the performance of the app or your cloud bill in a major way? The answer turned out to be **yes**.
+Session replay started as a question I couldn’t let go of: <mark>can this be done in Flutter without impacting the performance of the app or your cloud bill in a major way?</mark> The answer turned out to be **yes**.
I’ve been using session replays for web development and they have been incredibly helpful. Logs and stack traces are good but they don’t provide visual context, making it very hard to understand the interactions that led to the issue. Visual context is the missing layer of mobile observability.
diff --git a/website/content/blog/sqlite-observability-stack.mdx b/website/content/blog/sqlite-observability-stack.mdx
index ad5eac96..45d6f09a 100644
--- a/website/content/blog/sqlite-observability-stack.mdx
+++ b/website/content/blog/sqlite-observability-stack.mdx
@@ -13,7 +13,7 @@ Traceway runs on ClickHouse or SQLite depending on your scale. This post benchma
- **58k metric points/sec** at the largest sustainable payload
- **36k metric points/sec** at 100 points per request
-Methodology and full results below. Short version: SQLite is doing a lot more than people give it credit for, and you almost certainly do not need a dozen-plus-component LGTM deployment to run a side project.
+Methodology and full results below. Short version: SQLite is doing a lot more than people give it credit for, and <mark>you almost certainly do not need a dozen-plus-component LGTM deployment to run a side project</mark>.
## Why are you doing this?
diff --git a/website/public/images/dusan-stanojevic.jpg b/website/public/images/dusan-stanojevic.jpg
new file mode 100644
index 00000000..15cdd8c0
Binary files /dev/null and b/website/public/images/dusan-stanojevic.jpg differ