Skip to content

Inline Style Duplicate #3

Description

@aadnanmt

Describe the bug
src/lib/home.js carries 2 inline <style> blocks (~80 + ~28 line) even though both pages already link /assets/cdn.css (design tokens live there) → duplicated CSS, heavier HTML response.

Reproduction

  1. Check <style> in homePage & errorPage
  2. Compare with public/assets/cdn.css → same styles already defined

Expected behavior
All styles moved to cdn.css (scope with body.home / body.error since body rules collide); home.js markup only. Bonus a11y: error page has no <h1>.

Environment

  • OS: Arch Linux
  • Browser: all
  • Version: -

Additional context

  • Priority: medium
  • Impact: minimal, removes redundancy

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions