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

相关推荐
烂蜻蜓34 分钟前
前端已死?什么是前端
开发语言·前端·javascript·vue.js·uni-app
谢尔登2 小时前
Vue 和 React 的异同点
前端·vue.js·react.js
刘什么洋啊Zz2 小时前
MacOS下使用Ollama本地构建DeepSeek并使用本地Dify构建AI应用
人工智能·macos·ai·ollama·deepseek
奔跑草-3 小时前
【拥抱AI】GPT Researcher 源码试跑成功的心得与总结
人工智能·gpt·ai搜索·deep research·深度检索
禁默3 小时前
【第四届网络安全、人工智能与数字经济国际学术会议(CSAIDE 2025】网络安全,人工智能,数字经济的研究
人工智能·安全·web安全·数字经济·学术论文
AnnyYoung5 小时前
华为云deepseek大模型平台:deepseek满血版
人工智能·ai·华为云
INDEMIND6 小时前
INDEMIND:AI视觉赋能服务机器人,“零”碰撞避障技术实现全天候安全
人工智能·视觉导航·服务机器人·商用机器人
慕容木木6 小时前
【全网最全教程】使用最强DeepSeekR1+联网的火山引擎,没有生成长度限制,DeepSeek本体的替代品,可本地部署+知识库,注册即可有750w的token使用
人工智能·火山引擎·deepseek·deepseek r1
南 阳6 小时前
百度搜索全面接入DeepSeek-R1满血版:AI与搜索的全新融合
人工智能·chatgpt
企鹅侠客6 小时前
开源免费文档翻译工具 可支持pdf、word、excel、ppt
人工智能·pdf·word·excel·自动翻译