当前位置: 首页 > news >正文

【Bolt.new + PromptCoder】三分钟还原油管主页

【Bolt.new + PromptCoder】三分钟还原油管主页

PromptCoder官网:PromptCoder
Bolt官网:https://bolt.new/

Bolt 是什么?

Bolt.new 是一个提供创建全栈网络应用服务的平台。它允许用户通过提示(Prompt)、运行(run)、编辑(edit)和部署(deploy)来构建全栈网络应用。简而言之,这是一个帮助开发者快速启动和部署网络应用的工具或服务。

PromptCoder 是什么?

PromptCoder 是一款专为前端开发者量身打造的智能代码生成工具,它与 Cursor、Bolt、Windsurf 等领先的AI代码工具无缝集成,提供卓越的协同工作体验。通过先进的图像识别技术,PromptCoder 能够精准解析你的截图或设计稿,快速生成与之匹配的高质量提示词,并自动转化为结构清晰、语义明确的前端代码。无论是复杂的交互组件还是简洁的静态页面,PromptCoder 都能帮助你轻松复刻一个完整的页面或原型图,极大地提升开发效率,减少手动编码的时间和错误率。
此外,PromptCoder 还支持多种前端框架和语言,如 React、Vue、Flutter 等,确保生成的代码能够无缝融入你的现有项目中。无论是初学者还是资深开发者,PromptCoder 都能成为你前端开发的得力助手,让创意与实现之间的距离变得更短。

PromptCoder 的优势:

  • 交互简单易用: 只需一张截图即可得到想要的效果。

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

  • 多框架支持:PromptCoder 现在已经支持 Next,React,VueFlutter 等框架。

示例 (油管主页)

1. 截图油管主页,将截图发送给 PromptCoder 请添加图片描述

在这里插入图片描述
点击 Generate Prompt,得到提示词:


Create detailed components with these requirements:
1. Use 'use client' directive for client-side components
2. Style with Tailwind CSS utility classes for responsive design
3. Use Lucide React for icons (from lucide-react package). Do NOT use other UI libraries unless requested
4. Use stock photos from picsum.photos where appropriate, only valid URLs you know exist
5. Configure next.config.js image remotePatterns to enable stock photos from picsum.photos
6. Avoid duplicate components
7. Automatically source and display logos from a CDN in design placeholders
8. Follow proper import practices:- Use @/ path aliases- Keep component imports organized- Update current src/app/page.tsx with new comprehensive code- Don't forget root route (page.tsx) handling- You MUST complete the entire prompt before stopping**Layout Overview*** **Page Structure**: The page will be divided into a single main section containing a grid layout of video cards.
* **Component Hierarchy**:+ `VideoGrid` (container component)- `VideoCard` (repeated component for each video)- `Thumbnail` (image component)- `VideoTitle` (text component)
* **Responsive Design Considerations**:+ The grid layout will be responsive, adapting to different screen sizes and devices.+ On smaller screens, the grid will collapse into a single column, with each video card taking up the full width of the screen.+ On larger screens, the grid will expand to display multiple columns, with each video card taking up a portion of the screen width.**Component Details*** **VideoGrid**:+ Will receive an array of video data as a prop.+ Will render a grid of `VideoCard` components, with each card representing a single video.+ Will handle responsive layout and grid item sizing.
* **VideoCard**:+ Will receive a single video object as a prop.+ Will render a `Thumbnail` component and a `VideoTitle` component.+ Will handle hover and click events for video playback.
* **Thumbnail**:+ Will receive an image URL as a prop.+ Will render an `img` element with the provided URL.
* **VideoTitle**:+ Will receive a title string as a prop.+ Will render a `p` element with the provided title.
* **State Management Needs**:+ The `VideoGrid` component will need to manage the state of the video data array.+ The `VideoCard` component will need to manage the state of the video playback (e.g., play/pause, current time).
* **Props and Data Flow**:+ The `VideoGrid` component will receive the video data array as a prop from a parent component.+ The `VideoCard` component will receive the video object as a prop from the `VideoGrid` component.**Styling Specifications*** **Color Schemes**:+ Primary color: #FF0000 (YouTube red)+ Secondary color: #FFFFFF (white)+ Background color: #F7F7F7 (light gray)
* **Typography**:+ Font family: Open Sans+ Font sizes:- Video title: 16px- Video description: 14px
* **Spacing and Alignment**:+ Grid item spacing: 16px+ Video title padding: 8px+ Video description padding: 16px
* **Animations and Transitions**:+ Video card hover effect: scale up by 10% and change background color to #CCCCCC (dark gray)+ Video playback transition: fade in/out over 0.5 seconds**Interactive Elements*** **User Inputs**:+ Video playback controls (play/pause, seek)+ Video title click event (opens video in new tab)
* **Navigation**:+ Grid navigation (scrolling, pagination)
* **Loading States**:+ Video grid loading state (spinner or skeleton UI)+ Video playback loading state (spinner or buffering animation)
* **Micro-interactions**:+ Video card hover effect+ Video playback transition+ Grid item animation on scroll

2. 将提示词粘贴到bolt中

在这里插入图片描述

3. 点击生成,一分钟即可获得如下页面:

请添加图片描述

点击 访问 PromptCoder官网,了解更多信息并开始免费试用。让 PromptCoder 成为你前端开发的得力助手,助你轻松应对各种挑战,打造更出色的前端应用!

http://www.lryc.cn/news/504814.html

相关文章:

  • 影像组学+病理组学+深度学习人工智能应用
  • RK3568平台(基础篇)io命令支持
  • Yolov8源码分析
  • Python中的装饰器`@functools.lru_cache`:用法、来源与应用 (中英双语)
  • 思维图(GoT):解锁大模型解决复杂问题的能力
  • 使用winscp从windows访问Ubuntu进行文件传输
  • Java全栈项目:实验室预约管理系统的设计与实现
  • 使用 esrally race 测试 Elasticsearch 性能及 Kibana 可视化分析指南
  • OpenAI 第七日 推出了一项新功能——ChatGPT的“Projects”
  • 【小白51单片机专用教程】protues仿真AT89C51入门
  • 正则表达式——元字符匹配(单字符)
  • 快速在远程服务器执行命令、批量在多个服务器执行命令(基于sshpass的自定义脚本fastsh)
  • 【中间件介绍及案例分析】
  • CRMEB PHP多商户版DOCKER部署实战
  • Node.js基础入门
  • Hive——HQL数据定义语言
  • vLLM 教程上新!覆盖从入门到进阶 4 种应用方式;中文文档同步上线,0 帧起手加速大模型推理
  • Kubernetes# RBAC访问控制
  • 如何实现后端返回excel文件,在前端下载功能
  • 编程:一场不设防的智慧江湖
  • 电脑游戏运行时常见问题解析:穿越火线提示“unityplayer.dll丢失”的修复指南
  • 【C++】CUDA线程在全局索引中的计算方式
  • 【笔记】C语言转C++
  • 锂电池SOH预测 | 基于BiGRU双向门控循环单元的锂电池SOH预测,附锂电池最新文章汇集
  • 半导体器件与物理篇5 1~4章课后习题
  • Pytest-Bdd-Playwright 系列教程(16):标准化JSON报告Gherkin格式命令行报告
  • 机器学习之学习范式
  • PHPstudy中的数据库启动不了
  • 鸿蒙开发-ArkTS 创建自定义组件
  • 记录学习《手动学习深度学习》这本书的笔记(五)