什麼是 nextjs-image-art-direction?
使用 getImageProps() 實作 Next.js 影像的藝術指導。當針對不同的視窗大小顯示不同的影像時使用,例如具有行動裝置與桌面資源的主頁輪播、不同的裁剪/合成,或當行動裝置和桌面影像完全不同時。 來源:flpbalada/my-opencode-config。
使用 getImageProps() 實作 Next.js 影像的藝術指導。當針對不同的視窗大小顯示不同的影像時使用,例如具有行動裝置與桌面資源的主頁輪播、不同的裁剪/合成,或當行動裝置和桌面影像完全不同時。
透過命令列快速安裝 nextjs-image-art-direction AI 技能到你的開發環境
來源:flpbalada/my-opencode-config。
Art direction means showing completely different images based on viewport size — not just resizing the same image. Common use cases include homepage carousels with different assets for mobile vs desktop, switching from landscape (desktop) to portrait (mobile), or showing cropped vs full compositions.
| Art Direction | Different image content/composition | with multiple elements | | Responsive Images | Same image, different sizes | sizes prop with srcset |
The getImageProps() function (stable since Next.js 14.1.0) generates the necessary props without calling React useState(), making it ideal for art direction.
使用 getImageProps() 實作 Next.js 影像的藝術指導。當針對不同的視窗大小顯示不同的影像時使用,例如具有行動裝置與桌面資源的主頁輪播、不同的裁剪/合成,或當行動裝置和桌面影像完全不同時。 來源:flpbalada/my-opencode-config。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-direction使用 getImageProps() 實作 Next.js 影像的藝術指導。當針對不同的視窗大小顯示不同的影像時使用,例如具有行動裝置與桌面資源的主頁輪播、不同的裁剪/合成,或當行動裝置和桌面影像完全不同時。 來源:flpbalada/my-opencode-config。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/flpbalada/my-opencode-config --skill nextjs-image-art-direction 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/flpbalada/my-opencode-config