Skip to content

feat(client): add Mirages-inspired blog theme - #555

Closed
Liner03 wants to merge 1 commit into
openRin:mainfrom
Liner03:feat/mirages-theme
Closed

feat(client): add Mirages-inspired blog theme#555
Liner03 wants to merge 1 commit into
openRin:mainfrom
Liner03:feat/mirages-theme

Conversation

@Liner03

@Liner03 Liner03 commented Aug 14, 2026

Copy link
Copy Markdown

What

Adds a new blog theme layout inspired by the Typecho Mirages theme, selectable from Settings → Header 布局样式 as "Mirages 侧栏" (and Settings → 文章卡片样式 as "Mirages 卡片").

Changes

New files

  • client/src/components/site-header/layouts/mirages-layout.tsx — Mirages-style layout: fixed 64px top navbar (plain-text brand, centered nav, gray circular search button), hero section, left drawer for mobile
  • client/src/components/site-header/layouts/mirages-hero.tsx — route-aware hero: site name on home, article title + meta (author • date • views • category) on article pages, page title elsewhere
  • client/src/components/mirages-chrome.tsx — scroll progress bar + back-to-top button
  • client/src/mirages.css — theme overrides (fonts, colors #1abc9c, containers, typography)

Modified

  • layout-registry.tsx / layout-options.ts — register mirages header layout
  • feed-card-options.ts / feed_card.tsx — new mirages card variant (gradient/cover background, dark mask, centered title)
  • feed.tsx — copyright notice, AI summary card styling, TOC restyle
  • feeds.tsx — pagination button class for themed outline style
  • header.tsx — mirages-specific padding/spacer (64px navbar)
  • useTableOfContents.tsx — fix TOC always-empty bug (cleanup ref race under StrictMode) + traditional text-list design with sticky positioning and active highlight
  • index.css / base.css / tailwind.config.ts — theme color, background #fafafa, Mirages font stack
  • 4 locale files — new option labels (zh-CN / en / zh-TW / ja)

Design details

  • Article page: centered 642px reading column, Mirages-aligned typography (24.8px h2, 28.8px line-height, dark code blocks #343232, dashed link underlines)
  • List pages: 952px container, 832px cards, outline pagination buttons
  • Dark mode: Mirages palette (#2c2a2a navbar, #343232 panels)

Screenshots

(work in progress)

- Add mirages header layout (top navbar with brand text, centered nav,
  gray circular search button) registered in layout registry
- Add Mirages-style hero section showing site name on home and
  article title + meta on article pages
- Add Mirages feed card variant with gradient/cover backgrounds,
  dark mask, and centered title
- Add scroll progress bar and back-to-top button
- Style article page: centered 642px reading column, Mirages-aligned
  typography (headings, blockquote, inline code, dark code blocks,
  tables), AI summary card, copyright notice
- Redesign TOC as traditional text list with sticky positioning,
  active-item highlight, and fix empty-TOC bug (cleanup ref race)
- Align page containers (952px list / 864px article), pagination,
  footer, and dark mode colors with Mirages palette (#1abc9c theme)
@Liner03

Liner03 commented Aug 14, 2026

Copy link
Copy Markdown
Author

关闭此 PR:实际目标为在 fork 仓库 (Liner03/Rin) 内部合并 PR #1,此跨仓库 PR 为误建。

@Liner03 Liner03 closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant