惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
Cisco Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 司徒正美
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
S
Schneier on Security
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Vercel News
Vercel News
量子位
G
GRAHAM CLULEY
T
Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cybersecurity and Infrastructure Security Agency CISA
S
Security @ Cisco Blogs
B
Blog
Stack Overflow Blog
Stack Overflow Blog
T
Tor Project blog
A
About on SuperTechFans
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
S
Securelist
博客园 - 聂微东
Cloudbric
Cloudbric
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
N
News | PayPal Newsroom
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
W
WeLiveSecurity
Martin Fowler
Martin Fowler
K
Kaspersky official blog
S
Security Affairs
TaoSecurity Blog
TaoSecurity Blog

少数派

派早报:Google 发布 Fitbit Air 等 - 少数派 「新人报到」確認需求,再開始 - 少数派 从 SOLO 独立开发者社区,我看到了越来越多开发者开始做自己的产品 - 少数派 我怎么管理那些"不常做,但总会忘"的生活事项 - 少数派 人形机器人量产元年,数据才是具身智能的“生死线” - 少数派 BuhoLaunchpad 高度还原 Mac 启动台:开发历程与思考 - 少数派 五年陪伴依然不舍,DIY 换壳后让罗技 MX Master 3 继续服役 - 少数派 新玩意 240|少数派的编辑们最近买了啥? - 少数派 一日一技|为什么你应该关闭 iOS 的键盘声音 - 少数派 我做了个插件和 Skills,一键提取任何网站的设计规范 Design.md - 少数派 住在三四线城市的你,该开始录播客了 - 少数派 甘南秘境,大白高国 - 少数派 AI的审美:谁让把我变成川内倫子 - 少数派 返工怎能不烦恼,打工人片单总有一部是你的「嘴替」 - 少数派 为了让「上厕所」更健康,我做了一个小工具 - 少数派 AI + Skill,能够让生成的文章去除 AI 味吗? - 少数派 新玩意|韶音OpenDots ONE 耳夹式耳机 - 少数派 《美满》| 在每一个春天的晚上相爱(362) - 少数派 新玩意|优篮子 PS01 MagSnap 磁吸支架 - 少数派 自我整合手记 | 我开始早睡了:用稳定规则,为自由托底 - 少数派 用龙虾(OpenClaw)两个多月,我最深的12个体会 - 少数派 听歌时间到,12 张你可能错过的 2025 华语乐坛好专辑 - 少数派 承诺能追吗 - 少数派 macOS 26启动台没了? 我做了个不一样的App启动器 - Keboard - 少数派 《四海为家的人》| INTJ对话INTJ(361) - 少数派 你发过的那些黑历史,是时候一次清干净了 - 少数派 新玩意:安安静静玩,越玩越专注:计客密码机 - 少数派 iPad 用户首次体验 Android 平板:vivo Pad6 Pro - 少数派 数据逻辑强 - 少数派 极北行+ | 一路向北,探访日本至北之地 | 001 - 少数派 万字剖析:千问App深度体验报告(2026) - 少数派 在2026年,如何真正防止别人抄袭你的作品 - 少数派 怎么用 50 块搭个 AI 语音助手?我踩了 3 天坑 - 少数派 YeeroAI:让 AI 对话真正成为知识管理的一部分 - 少数派 爬泰山 - 少数派 「旅图显影」 App 更新:这次,我们补上了一点「手感」 - 少数派 假期出门太折磨?我的 23 条经验帮你规划惬意旅行 - 少数派 工作流会变吗 - 少数派 Claude Opus 4.6 怎么用最省钱?我测了 5 种方案 - 少数派 GPT Image 2 让图文并茂不再稀罕 - 少数派 用户侧出发——什么是AI,我要不要学习? - 少数派 找片、转存、整理、播放一条龙!让你的付费网盘值回票价 - 少数派 欢迎试用!日课一问2.0插件 - 少数派 自己做的MDeditor,原本想购买 Typora 试了两次支付不成功,干脆自己做一个 - 少数派 vibe coding了一个 3MB 的小工具,让 ~/Downloads 彻底告别混乱 - 少数派 因为受不了 Mac 的风扇策略,我做了一个风扇控制工具 - 少数派 别只怪模型 - 少数派 Warp 终端的 AI 功能怎么用?我测了一周的体验 - 少数派 AI 写代码老是出 bug?这 5 个配置我后悔没早知道 - 少数派 「新玩意」苹果出相机可能就这样:Sigma BF + 45mm F2.8 DG Contemporary - 少数派 一个面向2030年的AI操作系统是什么样子的:浅谈cola这款有灵魂的Agent - 少数派 别只看写代码 - 少数派 每天解决10个问题,还是一口气攻坚解决400个? - 少数派 AI 交易机器人怎么搭?我用 Claude 跑了一周实盘 - 少数派 Maptoposter Online:把你爱的城市画成艺术海报 - 少数派 Function Calling 怎么用?我测了 3 个模型发现差距真大 - 少数派 Legend Talk:我做了个 AI 圆桌,让 160 位思想家围着你的问题转 - 少数派 如何找到自己的蓝方?在小县城寻找压力测试 - 少数派 语音输入与软件接口|2026年聊AI时,我们都聊些什么(上) - 少数派 混动已经卖爆,纯电又来补刀——钛7闪充版简直“不讲武德” - 少数派 本月玩什么|朋友收藏、识质存在、沙罗周期 - 少数派 为什么要每天坚持输出? - 少数派 Claude API 挂了好几个小时,你的项目有备用方案吗? - 少数派 Function Calling 没你想的复杂——我用它做了个有点用的工具 - 少数派 登录系统立即播放视频或者图片音乐的软件 - 少数派 我为什么创建 FlipHTML5 下载工具 - 少数派 残局没电?多品牌外设电量统一管理软件EasyBluetooth已支持RTSS游戏内显示以及AIDA64 - 少数派 前往通义路的路 - 少数派 太好看了,媲美Sun的个人导航页,NAS部署星云门户 - 少数派 乌黑嘴唇“一键检测”上线了 - 少数派 派早报:Claude AI 接入多个创意软件生态、FILCO 生产方接手品牌等 - 少数派 【更新】BearCLI、Claude 连接器与 MCP 服务器 - 少数派 记了上千条流水,还是看不懂财务?我做了一个让 AI 读懂账本的工作台 - 少数派 MINI R56 升级原厂 Sport 模式 - 少数派 新玩意 | 一棵柠檬树(仿真版) - 少数派 Momenta的“物理AI”野望,需迈过“含摩量”这道关 - 少数派 网页直接投屏控制手机!NAS一键部署PandaScrcpy,流畅丝滑可远程。 - 少数派 众测|邀你一同探索随身 AI 硬件入口 YoooClaw C·ONE - 少数派 2050大会:分享时间是真诚 参会记 - 少数派 iPad 赋能电影创作:国内首部宣纸手绘长片《燃比娃》的幕后故事 - 少数派 AI的审美:我用 8 个大模型给 100 张旅行照片打分 - 少数派 普通人如何破圈?去参加一个本地协会 - 少数派 把极空间的图标全换了,主题DIY全攻略打造你的专属NAS桌面 - 少数派 电子便签墙,帮你实现便签自由 - 少数派 我如何用三个 CLI 工具取代文档创建需求 - 少数派 原来真的有人可以玩一辈子 - 少数派 社区速递 139 | 派友热议三月买了啥、复古单反尼康 Df 体验 - 少数派 06 作品的赏析与评价 - 少数派 TDS REVIEW|索尼 WF-1000XM6 降噪真无线耳机体验 - 少数派 35.98万起售的第二代腾势D9,我看重的不是堆料,而是不凑合 - 少数派 鼠须管 Squirrel 皮肤配置指北 - 少数派 从watch ultra2换到redmi watch6 - 少数派 派早报:阿里巴巴发布视频生成模型 HappyHorse 1.0 等 - 少数派 别迷信1M - 少数派 家人们天塌了!网盘“大封杀”,多个渠道多条路,NAS部署PanHub - 少数派 AI与人勾心斗角!NAS一键部署AI狼人杀,假日休闲必备。 - 少数派 电商必备!Comfyui工作流批量生图插件,一次生成12张!支持Nano banana pro模型 - 少数派 Comfyui工作流配置Gpt-image-2模型教程,0.03/张 - 少数派 OpenClaw第三方APi怎么配置?可使用Gpt-image-2模型 - 少数派 会员社区话题精选 Ep. 103 - 少数派
【Cursor+PromptCoder】专注前端,让代码生成工具更智能 - 少数派
2025-03-12 · via 少数派

Cursor 最近也是火遍了编程圈子,不管是前端后端还是算法都在尝试使用 Cursor 写一些东西。虽然目前cursor写纯前端的代码几乎不会报错,但无论是截图还是写大量prompt,它总是难以还原设计稿的样式。正好,最近发现了一个专注于代码提示词的生成工具 PromptCoder,让我完美还原了设计稿!https://code.promptate.xyz/

【什么是 PromptCoder】

PromptCoder是一款创新的智能代码生成工具,它能够识别设计图或截图,并自动生成与之匹配的前端代码。无论是复杂的交互组件还是简洁的静态页面,PromptCoder 都能帮助你轻松复刻一个完整的页面或原型图,极大地提升开发效率,减少手动编码的时间和错误率。

这款工具支持多种前端框架,如React、Vue、Flutter等,使得开发者可以无缝集成到现有的项目中。PromptCoder的目标是简化开发流程,减少手动编码,让开发者专注于创意和用户体验。它有几个特点:

交互简单易用: 通过图像识别技术,PromptCoder能够理解设计意图。只需一张截图即可得到想要的效果。

从免费开始 PromptCoder 只需注册即可免费体验全部内容。

多框架支持PromptCoder 现在已经支持 Next,React,Vue 和 Flutter 等框架。

案例:商城页面搭建

假设我们需要为一个电子商务网站创建一个动态的首页,这个页面需要包含商品展示、搜索功能、用户登录和购物车等组件。

步骤1:设计首页布局

设计师提供了一个首页的布局设计图,包含了上述所有组件的布局和样式。

步骤2:使用PromptCoder生成提示词

将设计图上传到PromptCoder,工具自动识别设计图中的各个元素,并根据如下的框架生成提示词:

···

使用React框架构建页面。

使用CSS Grid布局实现响应式设计。

商品展示区域使用卡片布局,每个卡片包含商品图片和名称。

搜索框位于页面顶部,支持自动完成功能。

用户登录和购物车图标位于页面右上角。

···

PromptCoder继续为每个组件生成详细交互逻辑提示词。例如,ProductGrid组件会接收一个商品数组作为props,并为每个商品渲染一个卡片。

代码框架如下:

import React from 'react';
import './Home.css';

const Home = () => {
  return (
    <div className="home-container">
      <SearchComponent />
      <ProductGrid products={products} />
      <LoginButton />
      <CartIcon />
    </div>
  );
};

export default Home;

步骤3:使用 Cursor 编写代码
将生成好的提示词复制给 Cursor Composer Agent,等待 Cursor 生成代码即可!

完整提示词示例


Create detailed React components with these requirements:

1. Use functional components with arrow syntax and proper TypeScript types
2. Style with styled-components or CSS Modules for maintainable CSS
3. Use @heroicons/react for icons (from @heroicons/react package). Do NOT use other UI libraries unless requested
4. Use stock photos from unsplash.com where appropriate, only valid URLs you know exist
5. Configure webpack/vite image loaders to enable stock photos from unsplash.com
6. Avoid duplicate components and implement proper code splitting
7. Follow component folder structure: /components/{common,features,layouts}
8. Follow proper import practices:
   - Use absolute imports with path aliases
   - Keep component imports organized
   - Update component files with comprehensive code
   - Don't forget proper TypeScript types
   - You MUST complete the entire component before stopping

   ```markdown
## Layout Overview

- **Page Structure**:
  - The main layout of the e-commerce homepage consists of a **Header**, **Main Content**, and **Footer**.
  
- **Component Hierarchy**:
  - **Header**:
    - Contains **Logo** (left), **Navigation Bar** (center), and **Login & Cart Buttons** (right).
  - **Main Content**:
    - Features a **Product Showcase** with individual **Product Cards** organized in a grid layout.
  - **Footer**:
    - Houses several **Footer Links** at the bottom of the page.
  
- **Responsive Design Considerations**:
  - The layout should be responsive to different screen sizes, ensuring that the navigation is accessible on mobile (e.g., hamburger menu).
  - Product cards should stack on smaller screens for easy browsing.
  
## Styling Specifications

- **Color Schemes**:
  - Utilize a **neutral background color** with a gradient effect for header and footer.
  - Ensure **bright and contrasting colors** for product cards and buttons to attract attention.

- **Typography**:
  - Implement **simple and clean fonts** for general text, prioritizing **readability and clarity**.
  - Product names and prices should use **bold font styles** to enhance visibility.

- **Spacing and Alignment**:
  - Provide **ample spacing between product cards**, maintaining a clean look.
  - Ensure **well-spaced** navigation bar and footer from the main content to prevent clutter.
  
- **Animations and Transitions**:
  - Subtle animations on hover for product cards (e.g., shadow effect, color change) enhance interactivity.
  
## Interactive Elements

- **User Inputs**:
  - Implement a **search bar** that captures user input for immediate product searches.
  
- **Navigation**:
  - Clicking on the category icons in the navigation bar enables a **smooth transition** to respective product sections.
  
- **Loading States**:
  - Show a **loading spinner** or placeholder when products are being loaded on the main content area.

- **Micro-interactions**:
  - Use subtle feedback (e.g., button glow, subtle scale change) on hover and click events for more engaging user interactions.

生成效果

我们可以看到PromptCoder如何帮助开发者从设计到代码的快速转换。PromptCoder不仅提高了开发效率,还保证了代码的一致性和质量。如果你是一名前端开发者,PromptCoder无疑是你实现创意、提升工作效率的得力助手。

点击 访问 PromptCoder官网,了解更多信息并开始免费试用!