Skip to content

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

Python

Merge branch 'main' into pr/115

Abi Rajaea10e191bb4e
diff --cc frontend/src/App.tsx
index 11aa9a07,bde3cae1..8ba39a39
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@@ -178,9 -179,10 +179,9 @@@ function App()
onOpenChange={handleTermDialogOpenChange}
/>
)}
-
<div className="lg:fixed lg:inset-y-0 lg:z-40 lg:flex lg:w-96 lg:flex-col">
- <div className="flex grow flex-col gap-y-2 overflow-y-auto border-r border-gray-200 bg-white px-6">
+ <div className="flex grow flex-col gap-y-2 overflow-y-auto border-r border-gray-200 bg-white px-6 dark:bg-zinc-950 dark:text-white">
- <div className="flex items-center justify-between mt-10">
+ <div className="flex items-center justify-between mt-10 mb-2">
<h1 className="text-2xl ">Screenshot to Code</h1>
<SettingsDialog settings={settings} setSettings={setSettings} />
</div>
@@@ -210,7 -211,7 +210,10 @@@
{executionConsole.slice(-1)[0]}
</div>
<div className="flex mt-4 w-full">
- <Button onClick={stop} className="w-full dark:text-white dark:bg-gray-700">
- <Button onClick={stop} className="w-full">
++ <Button
++ onClick={stop}
++ className="w-full dark:text-white dark:bg-gray-700"
++ >
Stop
</Button>
</div>
@@@ -233,15 -234,9 +236,15 @@@
<Switch
checked={shouldIncludeResultImage}
onCheckedChange={setShouldIncludeResultImage}
+ className="dark:bg-gray-700"
/>
</div>
- <Button
- <Button onClick={doUpdate}>Update</Button>
++ <Button
+ onClick={doUpdate}
+ className="dark:text-white dark:bg-gray-700"
+ >
+ Update
+ </Button>
</div>
<div className="flex items-center gap-x-2 mt-2">
<Button