Skip to content

feat(site): show projects in homepage hero - #2

Merged
Hailaylin merged 3 commits into
mainfrom
codex/home-project-strip
Jul 29, 2026
Merged

Hailaylin merged 3 commits into
mainfrom
codex/home-project-strip

Conversation

@Hailaylin

Copy link
Copy Markdown
Contributor

Summary / 概要

  • 将共享项目数据直接展示在首页首屏底部,采用 B「轨道切入」横向布局
  • 增加左右控制、原生横向滚动、Scroll Snap 与键盘可达性
  • 删除重复的三入口区和底部项目占位区
  • 将资料区改为直接说明“已整理的硬件资料”
  • 覆盖 1366×768、1024×600 与 390×844 首屏行为

Verification / 验证

  • bun run check:0 errors / 0 warnings
  • bun run test:unit:5/5 passed
  • bun run test:e2e:16/16 passed
  • bun run build:13 pages built

@Hailaylin
Hailaylin merged commit 9aee5b6 into main Jul 29, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fd5f62ab2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +37 to +40
<a
class="home-project-card"
data-testid="home-project-card"
href={project.repository}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid linking the homepage card to a missing driver

When visitors click the first newly rendered project card, this href resolves to driver/reference on main, but a repository-wide search shows that only the empty top-level driver/ directory exists and no driver/reference artifact is generated. The homepage therefore promotes a “可运行” project that immediately returns a GitHub 404; omit this card or point it at an existing reference snapshot until the real driver target is implemented.

AGENTS.md reference: AGENTS.md:L7-L12

Useful? React with 👍 / 👎.

Comment on lines +1007 to +1009
.hero-stage {
height: calc(100svh - 86px);
min-height: 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve hero content in short mobile viewports

On short mobile or landscape viewports, the fixed stage height leaves almost no room above the project rail: at 667×375, this computes to 289px while the rail consumes 218px plus a 12px bottom offset, leaving only 59px for the heading and buttons. Because .hero-stage also has overflow: hidden, most of that content is clipped or covered despite the short-height rule hiding only the lede and specs; add a compact short-mobile layout or a usable minimum height.

Useful? React with 👍 / 👎.

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