Skip to content

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

Python

improve button look

Abi Raja20bb905983b9
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 4cba2a1e..28d1bf76 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -88,9 +88,26 @@ function App() {
</>
)}
{appState === "CODE_READY" && (
- <a onClick={createBlobUrl} href={blobUrl} download="index.html">
- Download code
- </a>
+ <div className="flex items-center gap-x-2 mb-4 justify-end">
+ <a
+ className="bg-button/70 hover:bg-highlight text-black
+ py-2 px-4 rounded transition duration-300"
+ onClick={createBlobUrl}
+ href={blobUrl}
+ download="index.html"
+ >
+ Download code
+ </a>
+ <a
+ className="bg-button/70 hover:bg-highlight text-black
+ py-2 px-4 rounded transition duration-300"
+ onClick={createBlobUrl}
+ href={blobUrl}
+ download="index.html"
+ >
+ Reset
+ </a>
+ </div>
)}
<Preview code={generatedCode} />
</>