Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

try a different gemini prompt so images are in HTML

Abi Raja64a3f2a96758
diff --git a/backend/prompts/claude_prompts.py b/backend/prompts/claude_prompts.py
index 57f1690a..ff9be2b0 100644
--- a/backend/prompts/claude_prompts.py
+++ b/backend/prompts/claude_prompts.py
@@ -9,9 +9,10 @@ You will be given a video of a user interacting with a web app. You need to re-c
- Pay close attention to background color, text color, font size, font family,
padding, margin, border, etc. Match the colors and sizes exactly.
- For images, use placeholder images from https://placehold.co and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
+- Put image URLs in HTML (hide / unhide as needed). Do not put image URLs within JavaScript because our parser cannot extract them from JavaScript.
- If some functionality requires a backend call, just mock the data instead.
- MAKE THE APP FUNCTIONAL using JavaScript. Allow the user to interact with the app and get the same behavior as shown in the video.
-- Use SVGs and interactive 3d elements if needed to match the functionality shown in the video.
+- Use SVGs and interactive 3D elements if needed to match the functionality shown in the video.
In terms of libraries,