improve button look

This commit is contained in:
Abi Raja 2023-11-14 18:47:10 -05:00
parent e013f63829
commit 20bb905983

View File

@ -88,9 +88,26 @@ function App() {
</> </>
)} )}
{appState === "CODE_READY" && ( {appState === "CODE_READY" && (
<a onClick={createBlobUrl} href={blobUrl} download="index.html"> <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 Download code
</a> </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} /> <Preview code={generatedCode} />
</> </>