Skip to content

Commit 55cca4d

Browse files
committed
Lift offline state
1 parent f6ea146 commit 55cca4d

6 files changed

Lines changed: 47 additions & 7 deletions

File tree

docs/agent/design-system.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Read this for visual design, spacing, theme behavior, icons, animation, and UI c
4141
- Article detail mobile headers should let body text enter quickly without removing the publication context.
4242
- Screenshot-led UIUX rounds should protect first-viewport content entry, especially mobile homepage and desktop photography archive rhythm.
4343
- Article archive headings should stay quieter than photography and support scanning the list quickly.
44+
- Offline and status pages should surface the state promptly instead of centering it deep in the viewport.
4445
- Mobile menus must stack above photography and homepage media in both normal and locked-dark pages.
4546
- Long archive and tag lists should use native browser containment or lazy media loading before adding client-side behavior.
4647

docs/improvement-progress.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
- 进行:Round 16 基于文章归档桌面与手机截图,定位到 archive hero 仍过于居中和展示化。
6767
- 完成:文章归档 hero、lede 和主题链接改为左对齐,并降低标题比例,版本号提升到 `0.0.17`
6868
- 验证:Round 16 文章首条在 390px 下提前到 `510px`、桌面提前到 `535px`,8 个主题链接保留;`npm run check:content-health``npm run build``git diff --check` 通过。
69+
- 进行:Round 17 基于离线页手机和桌面截图,定位到状态块偏深,首屏空等感略重。
70+
- 完成:离线页状态块上移并微调动作间距,版本号提升到 `0.0.18`,保持简洁状态页结构。
71+
- 验证:Round 17 手机状态块顶部为 `263px`,动作按钮底部为 `514px`,390px 与 1440px 下无横向溢出;`npm run check:content-health``npm run build``git diff --check` 通过。
6972

7073
### 2026-02-26
7174
- 完成:建立执行版改进计划,按“文档基线 -> 技术债 -> UI/UX”重排优先级。
@@ -89,5 +92,5 @@
8992
- 质量校验命令:`npm run check:docs-baseline`
9093
- 内容治理命令:`npm run check:content-health`
9194
- 安全校验命令:`npm run check:security`
92-
- 最近结果:`189 page(s) built in 1.43s``content health: 0 errors / 0 warnings``article archive first entry at 510px mobile and 535px desktop``audit: 5 remaining vulnerabilities requiring breaking --force fixes`
95+
- 最近结果:`189 page(s) built in 1.45s``content health: 0 errors / 0 warnings``offline actions bottom at 514px mobile``audit: 5 remaining vulnerabilities requiring breaking --force fixes`
9396
- 最近验证日期:2026-06-23

docs/uiux-20-round-log.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
This log tracks the repeated screenshot-led UI/UX improvement rounds for Joey's Notes.
44

5+
## Round 17 - 2026-06-23 - Offline State Position
6+
7+
Evidence:
8+
9+
- Baseline screenshots: `/private/tmp/oiahoon-uiux-round-13/offline-390x844.png`, `/private/tmp/oiahoon-uiux-round-13/offline-1440x900.png`
10+
- Final screenshots: `/private/tmp/oiahoon-uiux-round-17-after/`
11+
- Reviewed route: `/offline/`
12+
- Viewports: `390x844`, `1440x900`
13+
14+
Findings:
15+
16+
- The offline page was already simple and had no horizontal overflow.
17+
- On phones, the state block sat a little too deep in the viewport, adding empty waiting space before the actual offline message.
18+
- The status page should surface the state promptly without becoming a card or feature explanation.
19+
20+
Changes:
21+
22+
- Moved the offline state block slightly upward with a lighter section height and top padding.
23+
- Tightened action spacing while preserving the reload and home actions.
24+
- Bumped the app version to `0.0.18`.
25+
- Added an agent design-system note that status pages should surface state promptly.
26+
27+
Validation plan:
28+
29+
Results:
30+
31+
- Final screenshots: `/private/tmp/oiahoon-uiux-round-17-after/`
32+
- Mobile offline state top is `263px`; action controls remain fully in the first viewport with `actionsBottom=514px`.
33+
- Desktop state also moves upward and keeps 2 actions visible.
34+
- No horizontal overflow or offscreen offenders at `390x844` or `1440x900`.
35+
- `npm run check:content-health`: passed, 120 posts scanned, 0 errors, 0 warnings.
36+
- `npm run build`: passed, 189 pages built in 1.45s.
37+
- `git diff --check`: passed.
38+
- `npm run check:security`: still reports the same 5 remaining vulnerabilities that require breaking `npm audit fix --force`.
39+
540
## Round 16 - 2026-06-23 - Article Archive Index Rhythm
641

742
Evidence:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "joey-notes-astro",
33
"type": "module",
4-
"version": "0.0.17",
4+
"version": "0.0.18",
55
"scripts": {
66
"dev": "astro dev",
77
"build": "astro build",

src/pages/offline.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ import BlogLayout from '../layouts/BlogLayout.astro';
4040

4141
<style>
4242
.offline-page {
43-
min-height: clamp(28rem, 58vh, 42rem);
4443
display: flex;
45-
align-items: center;
44+
min-height: clamp(24rem, 52vh, 36rem);
45+
align-items: flex-start;
46+
padding-top: clamp(4.6rem, 11vh, 7rem);
4647
}
4748

4849
.offline-state {
@@ -70,7 +71,7 @@ import BlogLayout from '../layouts/BlogLayout.astro';
7071
flex-wrap: wrap;
7172
justify-content: center;
7273
gap: 0.75rem;
73-
margin-top: 2.3rem;
74+
margin-top: 2rem;
7475
}
7576

7677
.offline-actions button,

0 commit comments

Comments
 (0)