The prompt
You have been given a video of a user interacting with a web app. You need to re-create the same app exactly such that the same user interactions will produce the same results in the app you build.
- Watch the entire video carefully and understand all the user interactions and UI state changes.
- Make sure the app looks exactly like what you see in the video.
- Pay close attention to background color, text color, font size, font family,
padding, margin, border, etc. Match the colors and sizes exactly.
- {image_policy}
- 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.
Analyze this video and generate the code.
{selected_stack}
{design_system_block} What it is
Gives a model a video of someone using a web app and asks it to rebuild the app so the same interactions give the same results, matching colours and sizes and mocking any backend data. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the screenshot-to-code repository (MIT licence, Copyright (c) 2023 Abi Raja). Licence: https://github.com/abi/screenshot-to-code/blob/main/LICENSE. Original author: Abi Raja (abi/screenshot-to-code). Changes by FoxaMind: Python string quotes removed and the code indentation removed; placeholders keep the source syntax.
Who it's for
- Front-end developers
- Teams cloning an interaction flow for a prototype
يعطي النموذج فيديو لمستخدم يتفاعل مع تطبيق ويب ويطلب إعادة بنائه بحيث تعطي التفاعلات نفسها النتائج نفسها، مع مطابقة الألوان والأحجام ومحاكاة بيانات الخادم.
Tips
- {selected_stack}, {image_policy} and {design_system_block} are template fields filled in by the app; extra user text is appended after "Additional instructions:".
- The source passes the video as a single data URL attached to the message, so it needs a model and API that accept video input this way.
- The prompt allows SVGs and interactive 3D elements where needed to match the video.