Skip to content

feat: add Desktop to homepage feature card platforms#1042

Merged
Huxpro merged 1 commit into
mainfrom
feat/home-add-desktop-platform
May 23, 2026
Merged

feat: add Desktop to homepage feature card platforms#1042
Huxpro merged 1 commit into
mainfrom
feat/home-add-desktop-platform

Conversation

@Huxpro

@Huxpro Huxpro commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Desktop action button to the "Write Once, Render Anywhere" feature card on the homepage, alongside the existing iOS / Android / HarmonyOS / Web rows
  • Uses the same macOS + Windows platform icons as <APISummary /> (via home-icon-macos.svg copied from the compat-table icon set) so the homepage stays consistent with the API docs
  • Links to guide/start/integrate-with-existing-apps.html?platform=macos

The desc copy already mentions "mobile and desktop", so no copy change was needed.

Test plan

  • Visit / and /zh/ — confirm the Desktop row renders below Web with both macOS and Windows icons
  • Toggle light / dark mode — icons recolor via --home-blog-btn-color
  • Resize to mobile width — buttons stack to full-width as expected
  • Click Desktop → lands on the integration guide with the macOS tab active

Copilot AI review requested due to automatic review settings May 23, 2026 11:05
@Huxpro Huxpro requested a review from SoonIter as a code owner May 23, 2026 11:05
@netlify

netlify Bot commented May 23, 2026

Copy link
Copy Markdown

Deploy Preview for lynx-doc ready!

Name Link
🔨 Latest commit f1af412
🔍 Latest deploy log https://app.netlify.com/projects/lynx-doc/deploys/6a11af6e912f3500078ffbb9
😎 Deploy Preview https://deploy-preview-1042--lynx-doc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/home-add-desktop-platform

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the homepage “Write Once, Render Anywhere” feature card to add a new Desktop action row, showing macOS + Windows icons and linking into the existing “Integrate with Existing Apps” guide with the macOS tab preselected.

Changes:

  • Add a new “Desktop” action row (macOS + Windows icons) to the homepage feature card actions.
  • Introduce IconMacOS / IconWindows React SVG components and wire them into the homepage feature config.
  • Add CSS module styles for the new icons and add the home-icon-macos.svg asset under the home assets directory.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/components/home-comps/features/index.tsx Adds the new “Desktop” action row (macOS + Windows icons) and link.
src/components/home-comps/features/index.module.less Adds CSS module styling for the new macOS/Windows icons.
src/components/home-comps/features/icon.tsx Adds IconMacOS/IconWindows exports and adjusts icon imports.
docs/public/assets/home/home-icon-macos.svg Adds the macOS SVG used by the new Desktop row.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +51 to +55
.macos-icon {
width: 18px;
height: 18px;
path {
fill: var(--home-blog-btn-color) !important;
Comment on lines +26 to +32
const IconMacOS = () => {
return <MacOSIcon className={styles['macos-icon']} />;
};

const IconWindows = () => {
return <WindowsIcon className={styles['windows-icon']} />;
};
@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying lynx-website-next with  Cloudflare Pages  Cloudflare Pages

Latest commit: f1af412
Status:⚡️  Build in progress...

View logs

Adds a Desktop action button with macOS + Windows logos to the
"Write Once, Render Anywhere" feature card, linking to the desktop
integration guide.

Change-Id: I0980dd4fc98abd1a7bf6a923856fb80284ec200b
@Huxpro Huxpro force-pushed the feat/home-add-desktop-platform branch from ad13b53 to f1af412 Compare May 23, 2026 13:45
@Huxpro Huxpro merged commit e140f4c into main May 23, 2026
13 of 14 checks passed
@Huxpro Huxpro deleted the feat/home-add-desktop-platform branch May 23, 2026 13:52
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