Skip to content

Reduce landing page typography and add active endpoints list#22

Merged
bytemain merged 5 commits intomainfrom
copilot/adjust-font-size
May 1, 2026
Merged

Reduce landing page typography and add active endpoints list#22
bytemain merged 5 commits intomainfrom
copilot/adjust-font-size

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

The landing page typography was rendering too large, making the page feel oversized and harder to scan. This adjusts the visual scale, aligns the content consistently, and adds an active endpoints list for easier route discovery.

  • Hero and headings

    • Further reduced the main title clamp range.
    • Lowered tagline and section heading sizes.
    • Left-aligned the tagline with the rest of the page content.
  • Endpoints

    • Added an ENDPOINTS section with links and descriptions for active routes.
    • Excluded the deprecated /pyenv-versions endpoint from the displayed list.
    • Added test coverage to verify active endpoints are rendered and the deprecated endpoint is not shown.
  • Examples

    • Reduced curl command font sizing.
    • Reduced JSON preview font sizing for better density.
    • Left-aligned example sections and JSON preview blocks.
  • Footer links

    • Slightly reduced link text size to match the updated scale.
h1 {
  font-size: clamp(28px, 5vw, 44px);
}

.curl {
  font-size: clamp(14px, 1.8vw, 16px);
}

pre {
  font-size: clamp(12px, 1.5vw, 14px);
}

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 1, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
version-vault ab7a1f6 Commit Preview URL

Branch Preview URL
May 01 2026, 02:42 PM

@bytemain
Copy link
Copy Markdown
Member

bytemain commented May 1, 2026

@copilot 还是太大了,而且还没有 endpoints 的检测
ENDPOINTS
/ This page.
/absolute-redirect/:n 302 Absolute redirects n times.
/anything/:anything Returns anything that is passed to request.
/base64/:value?content-type=ct Decodes a Base64-encoded string, with optional Content-Type.
/base64/decode/:value?content-type=ct Explicit URL for decoding a Base64 encoded string.
/base64/encode/:value Encodes a string into URL-safe Base64.
/basic-auth/:user/:password Challenges HTTPBasic Auth.
/bearer Checks Bearer token header - returns 401 if not set.
/brotli Returns brotli-encoded data. Not implemented!
/bytes/:n Generates n random bytes of binary data, accepts optional seed integer parameter.
/cache Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.
/cache/:n Sets a Cache-Control header for n seconds.

@bytemain
Copy link
Copy Markdown
Member

bytemain commented May 1, 2026

@copilot /pyenv-versions endpoints 不要展示

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 1, 2026

@copilot 还是太大了,而且还没有 endpoints 的检测
ENDPOINTS
/ This page.
...

已在 ab7a1f6 继续缩小字号、添加 ENDPOINTS 检测,并把页面内容左对齐,同时移除了 deprecated 的 /pyenv-versions 展示。

updated homepage

Copilot AI changed the title Reduce landing page typography scale Reduce landing page typography and add active endpoints list May 1, 2026
Copilot AI requested a review from bytemain May 1, 2026 14:43
@bytemain bytemain marked this pull request as ready for review May 1, 2026 14:44
@bytemain bytemain merged commit 259eb38 into main May 1, 2026
3 of 5 checks passed
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 1, 2026

@copilot /pyenv-versions endpoints 不要展示

已确认 ab7a1f6 中根页面 ENDPOINTS 已不再展示 deprecated 的 /pyenv-versions,并且测试里也加入了不渲染该 endpoint 的断言。

updated homepage

Copilot stopped work on behalf of bytemain due to an error May 1, 2026 14:45
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.

2 participants