Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

fix(web): unify favicon brand mark

YeonGyu-Kim2dd1e8cbd05d
diff --git a/packages/web/DESIGN.md b/packages/web/DESIGN.md
index 00d9fdcf..81c21678 100644
--- a/packages/web/DESIGN.md
+++ b/packages/web/DESIGN.md
@@ -109,6 +109,6 @@ The landing page is a single scrollable document with the following sections, to
- **Boulder art**: Generated via `imagegen` on a chroma background, keyed to alpha so it composites cleanly on the navy canvas without a visible bounding box
- **Delivery format**: Served as AVIF / WebP / PNG via a `<picture>` element using the `BrandImage` component
- **Dimensions**: Explicit `width` and `height` attributes on every image to prevent CLS
-- **Favicon / app-icon**: The rock boulder is reused as the site favicon and Apple touch icon:
- - `app/icon.png`
- - `app/apple-icon.png`
+- **Favicon / app-icon**: The simplified boulder mark from the sticky header is the canonical site icon so browser chrome, pinned tabs, and the in-page wordmark read as one identity:
+ - `app/icon.svg` for the scalable browser favicon
+ - `app/apple-icon.png` at 180x180 for Apple touch surfaces, generated from the same mark
diff --git a/packages/web/app/apple-icon.png b/packages/web/app/apple-icon.png
index 02465fd5..6cec3827 100644
Binary files a/packages/web/app/apple-icon.png and b/packages/web/app/apple-icon.png differ
diff --git a/packages/web/app/icon.png b/packages/web/app/icon.png
deleted file mode 100644
index 79d2a596..00000000
Binary files a/packages/web/app/icon.png and /dev/null differ
diff --git a/packages/web/app/icon.svg b/packages/web/app/icon.svg
new file mode 100644
index 00000000..a68c5e55
--- /dev/null
+++ b/packages/web/app/icon.svg
@@ -0,0 +1,27 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="LazyCodex boulder favicon">
+ <title>LazyCodex boulder favicon</title>
+ <rect width="256" height="256" rx="52" fill="#14154d"/>
+ <path
+ d="M55 153C41 99 88 38 145 40c53 2 89 45 82 98-7 53-55 82-103 74-38-6-58-24-69-59Z"
+ fill="#2a2dbf"
+ stroke="#87f0f2"
+ stroke-width="14"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M95 115l35 27-32 35M150 178h42"
+ fill="none"
+ stroke="#87f0f2"
+ stroke-width="16"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M69 82c34-29 95-33 126 7"
+ fill="none"
+ stroke="#b3feff"
+ stroke-width="8"
+ stroke-linecap="round"
+ opacity=".45"
+ />
+</svg>
diff --git a/packages/web/app/manifest.ts b/packages/web/app/manifest.ts
index c8eec486..51ac11f8 100644
--- a/packages/web/app/manifest.ts
+++ b/packages/web/app/manifest.ts
@@ -9,7 +9,7 @@ export default function manifest(): MetadataRoute.Manifest {
display: "standalone",
background_color: "#14154d",
theme_color: "#2a2dbf",
- // No icons array: the browser favicon comes from the app/icon.png file
+ // No icons array: the browser favicon comes from the app/icon.svg file
// convention; duplicating it here triggers a second eager favicon fetch
// that lands on the Lantern LCP critical path. PWA installability isn't a
// goal for this marketing site.
diff --git a/packages/web/e2e/seo.spec.ts b/packages/web/e2e/seo.spec.ts
index 4325b9a2..2cc1bd8f 100644
--- a/packages/web/e2e/seo.spec.ts
+++ b/packages/web/e2e/seo.spec.ts
@@ -1,5 +1,15 @@
import { test, expect } from "@playwright/test"
+function readPngDimensions(buffer: Buffer): { width: number; height: number } {
+ const pngSignature = "89504e470d0a1a0a"
+ expect(buffer.subarray(0, 8).toString("hex")).toBe(pngSignature)
+
+ return {
+ width: buffer.readUInt32BE(16),
+ height: buffer.readUInt32BE(20),
+ }
+}
+
test.describe("coming-soon page — SEO + metadata", () => {
test("has a unique <title>, description, canonical, lang, viewport", async ({ page }) => {
await page.goto("/")
@@ -97,4 +107,25 @@ test.describe("coming-soon page — SEO + metadata", () => {
expect(tw.status()).toBe(200)
expect(tw.headers()["content-type"]).toMatch(/image\/png/)
})
+
+ test("serves the unified LazyCodex favicon assets", async ({ page, request }) => {
+ await page.goto("/")
+
+ const iconHref = await page.locator('link[rel="icon"]').getAttribute("href")
+ expect(iconHref).toContain("/icon.svg")
+ expect(iconHref).not.toContain("/icon.png")
+
+ const svgIcon = await request.get("/icon.svg")
+ expect(svgIcon.status()).toBe(200)
+ expect(svgIcon.headers()["content-type"]).toMatch(/image\/svg\+xml/)
+ expect(await svgIcon.text()).toContain("LazyCodex boulder favicon")
+
+ const appleIconHref = await page.locator('link[rel="apple-touch-icon"]').getAttribute("href")
+ expect(appleIconHref).toContain("/apple-icon.png")
+
+ const appleIcon = await request.get("/apple-icon.png")
+ expect(appleIcon.status()).toBe(200)
+ expect(appleIcon.headers()["content-type"]).toMatch(/image\/png/)
+ expect(readPngDimensions(await appleIcon.body())).toEqual({ width: 180, height: 180 })
+ })
})