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

相关推荐
富唯智能44 分钟前
移动+协作+视觉:开箱即用的下一代复合机器人如何重塑智能工厂
人工智能·工业机器人·复合机器人
Antonio9152 小时前
【图像处理】图像的基础几何变换
图像处理·人工智能·计算机视觉
新加坡内哥谈技术3 小时前
Perplexity AI 的 RAG 架构全解析:幕后技术详解
人工智能
武子康3 小时前
AI研究-119 DeepSeek-OCR PyTorch FlashAttn 2.7.3 推理与部署 模型规模与资源详细分析
人工智能·深度学习·机器学习·ai·ocr·deepseek·deepseek-ocr
Sirius Wu4 小时前
深入浅出:Tongyi DeepResearch技术解读
人工智能·语言模型·langchain·aigc
忙碌5444 小时前
AI大模型时代下的全栈技术架构:从深度学习到云原生部署实战
人工智能·深度学习·架构
LZ_Keep_Running4 小时前
智能变电巡检:AI检测新突破
人工智能
InfiSight智睿视界5 小时前
AI 技术助力汽车美容行业实现精细化运营管理
大数据·人工智能
没有钱的钱仔6 小时前
机器学习笔记
人工智能·笔记·机器学习
听风吹等浪起6 小时前
基于改进TransUNet的港口船只图像分割系统研究
人工智能·深度学习·cnn·transformer