【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,得到提示词:

markdown 复制代码
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 成为你前端开发的得力助手,助你轻松应对各种挑战,打造更出色的前端应用!

相关推荐
陟上青云9 分钟前
一篇文章带你搞懂原型和原型链
前端
我的写法有点潮9 分钟前
推荐几个国外比较流行的UI库(上)
前端·javascript·css
小明_GLC13 分钟前
Falcon-TST: A Large-Scale Time Series Foundation Model
论文阅读·人工智能·深度学习·transformer
Python_Study202514 分钟前
制造业数据采集系统选型指南:从技术挑战到架构实践
大数据·网络·数据结构·人工智能·架构
鹏多多15 分钟前
jsx/tsx使用cssModule和typescript-plugin-css-modules
前端·vue.js·react.js
一只大侠的侠18 分钟前
【工业AI热榜】LSTM+GRU融合实战:设备故障预测准确率99.3%,附开源数据集与完整代码
人工智能·gru·lstm
weisian15125 分钟前
入门篇--知名企业-26-华为-2--华为VS阿里:两种科技路径的较量与共生
人工智能·科技·华为·阿里
棒棒的皮皮31 分钟前
【深度学习】YOLO模型精度优化 Checklist
人工智能·深度学习·yolo·计算机视觉
线束线缆组件品替网38 分钟前
Bulgin 防水圆形线缆在严苛环境中的工程实践
人工智能·数码相机·自动化·软件工程·智能电视
Cherry的跨界思维1 小时前
【AI测试全栈:Vue核心】22、从零到一:Vue3+ECharts构建企业级AI测试可视化仪表盘项目实战
vue.js·人工智能·echarts·vue3·ai全栈·测试全栈·ai测试全栈