Skip to content

feat: update a8m layout for v2 design#113

Merged
wendyyuchensun merged 5 commits intocoseeing:mainfrom
wendyyuchensun:v2-5-layout
Apr 5, 2026
Merged

feat: update a8m layout for v2 design#113
wendyyuchensun merged 5 commits intocoseeing:mainfrom
wendyyuchensun:v2-5-layout

Conversation

@wendyyuchensun
Copy link
Copy Markdown
Collaborator

@wendyyuchensun wendyyuchensun commented Mar 22, 2026

Goal

按照 v2 的 figma 設計,調整版面配置,並套用前幾條 PR 加的新 core component 視覺樣式。所有變更都是純視覺或結構調整,不影響任何業務邏輯或資料處理。

Changes

  1. Header
  • 加入 A8M Logo SVG,將 <h1> 改為 screen-reader only(保留無障礙性)
  • Header 新增 title 輸入欄位,支援使用者直接在頁首編輯文件標題。

note: 因為新的設計將 title input 放在 Header 裡,Header 因此需要取得 home.js 的 displayConfig 資訊,所以先將 header 自 layout 遷移至 home.js 裡。若覺得這樣 layout 比較奇怪,可以日後再 refactor。

  1. 左側編輯區:更新 CodeMirror 主題與編輯器相關樣式
  2. 右欄預覽區:調整預覽控制列(黑底白字、白底黑字)的樣式
  3. 其他:button、dropdown、segmentation control、modal 等,都 align 共用的 CoreComponent。

Before

Screenshot 2026-03-30 at 18 57 38

After

Screenshot 2026-03-30 at 18 58 24

@wendyyuchensun wendyyuchensun force-pushed the v2-5-layout branch 4 times, most recently from 170bf0a to 66a444c Compare March 23, 2026 15:33
wendyyuchensun and others added 4 commits March 30, 2026 18:55
- Add @tabler/icons-react dependency
- Add A8M logo SVG asset
- Migrate header menus from headlessui to shared DropdownMenu component,
  replace heroicons with tabler icons, add title input and action buttons
- Remove Header from shared Layout so each page owns its header
- Update Home to render Header directly with import/export callbacks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

s
- Replace ToggleButtonGroup with SegmentedControl for latex delimiter
- Update left panel background and padding (cyanLight → blue-50)
- Add border/bg/rounded container for the editor area
- Expand CodeMirror theme with gutter, line number, and content styles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace documentFormat/documentColor ToggleButtonGroups with a single
  DropdownMenu for document color
- Update preview container classes (border-2 → border, add leading/space-y,
  bg-black → bg-gray-800, text-black → text-text-primary)
- Adjust right panel padding to p-6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Use tabler icon components for delimiter symbols in ConvertHintModal
- Set size="sm" on ConvertHintModal and TipModal
- Remove fixed-width wrapper div in SettingModal

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wendyyuchensun wendyyuchensun marked this pull request as ready for review March 30, 2026 10:56
@wendyyuchensun wendyyuchensun changed the title V2 5 layout feat: update a8m layout for v2 design Mar 30, 2026
className="flex flex-col w-full"
className="flex flex-col w-full h-[600px] border-r border-border-main"
>
<div className="flex bg-cyan p-2">
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這個檔案 change 比較多,但大部分是因為調整、移除一些應該不需要重複的 DOM node,類似這行,所以造成更往下的 code indent 改變了。

Copy link
Copy Markdown
Collaborator

@jamliaoo jamliaoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

import Button from '@/components/core/button';

const Header = () => {
const Header = ({ onImportClick, onExportClick, displayConfig, setDisplayConfig }) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

覺得可以加個 propTypes,然後 displayConfig 可以換成 title
setDisplayConfig 可以換成專門更新 title 的 function (例如 setConfigTitle)或是用 onInputChange(比照 onImportClick)

Copy link
Copy Markdown
Collaborator Author

@wendyyuchensun wendyyuchensun Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有道理,感謝提醒 👍

updated: c9f4243

@wendyyuchensun
Copy link
Copy Markdown
Collaborator Author

Thanks

@wendyyuchensun wendyyuchensun merged commit 64a013f into coseeing:main Apr 5, 2026
1 check passed
@wendyyuchensun wendyyuchensun deleted the v2-5-layout branch April 5, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants