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

相关推荐
MYT_flyflyfly11 分钟前
LRM-典型 Transformer 在视觉领域的应用,单个图像生成3D图像
人工智能·深度学习·transformer
明月醉窗台21 分钟前
深度学习(15)从头搭建模型到训练、预测示例总结
人工智能·python·深度学习·目标检测·计算机视觉
问道飞鱼31 分钟前
【前端知识】Javascript进阶-类和继承
开发语言·前端·javascript·继承·
三天不学习31 分钟前
Visual Studio 玩转 IntelliCode AI辅助开发
ide·人工智能·ai编程·visual studio·intellicode
Grocery store owner35 分钟前
el-time-picker选择时分秒并且根据总秒数禁用不可选
前端·javascript·vue.js
martian66536 分钟前
深入详解线性代数基础知识:理解矩阵与向量运算、特征值与特征向量,以及矩阵分解方法(如奇异值分解SVD和主成分分析PCA)在人工智能中的应用
人工智能·线性代数·矩阵·特征向量
川石教育39 分钟前
Vue前端开发-axios默认配置和响应结构
前端·javascript·vue.js
半吊子全栈工匠1 小时前
WEB语义化的新探索:浅析LLMs.txt
前端·搜索引擎
过9531 小时前
2024年全球安全光幕装置行业总体规模、主要企业国内外市场占有率及排名
人工智能·安全·百度
东方佑1 小时前
类A* llm解码 幻觉更低更稳定
人工智能·深度学习·机器学习