From bd58ef9e1d5e3376d917cb2fe4eb71823f591984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aykut=20Karda=C5=9F?= Date: Fri, 1 Mar 2024 22:57:28 +0300 Subject: [PATCH] chore: improve ui (#3) --- app/page.tsx | 122 ++++++++++++++++++++++++--------------------- components/nav.tsx | 11 ++-- 2 files changed, 68 insertions(+), 65 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 9191ce5..6e3249d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -77,70 +77,76 @@ export default function Lightning() { return (
-
-
-
-
- - { - handleOnChange(e.target.value); - }} - className="font-light w-full" - placeholder="Type something..." - value={prompt} - /> -
-
- - { - setSeed(e.target.value); - handleOnChange(prompt); - }} - className="font-light w-full" - placeholder="random" - type="number" - value={seed} - /> +
+
+
+
+
+ + { + handleOnChange(e.target.value); + }} + className="font-light w-full" + placeholder="Type something..." + value={prompt} + /> +
+
+ + { + setSeed(e.target.value); + handleOnChange(prompt); + }} + className="font-light w-28" + placeholder="random" + type="number" + value={seed} + /> +
-
-
-
- {image && inferenceTime && ( -
- inference time - - {inferenceTime - ? `${(inferenceTime * 1000).toFixed(0)}ms` - : `n/a`} - -
- )} -
- {image && ( - Dynamic Image +
+
+ {image && inferenceTime && ( +
+ Inference time: + + {inferenceTime + ? `${(inferenceTime * 1000).toFixed(0)}ms` + : `n/a`} + +
)} +
+ {image && ( + Dynamic Image + )} +
-
-
-

- This playground is hosted on{" "} - - - fal.ai - - {" "} - and is for demonstration purposes only. -

-
- powered by - - - +
+

+ This playground is hosted on{" "} + + + fal.ai + + {" "} + and is for demonstration purposes only. +

+
+ powered by + + + +
diff --git a/components/nav.tsx b/components/nav.tsx index 7e08dfd..2e2783c 100644 --- a/components/nav.tsx +++ b/components/nav.tsx @@ -14,12 +14,7 @@ const spaceMono = Space_Mono({ export function Nav() { return ( -
+

@@ -38,7 +33,9 @@ export function Nav() { target="_blank" > - Fork on GitHub + + Fork on GitHub +