Shifted Heading to Main Screen
Shifted Settings Icon to Bottom Added Some Radiues in ImageUpload
This commit is contained in:
parent
34c1f9a959
commit
05df18aa66
@ -35,6 +35,7 @@ import { extractHistoryTree } from "./components/history/utils";
|
|||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import ImportCodeSection from "./components/ImportCodeSection";
|
import ImportCodeSection from "./components/ImportCodeSection";
|
||||||
import { Stack } from "./lib/stacks";
|
import { Stack } from "./lib/stacks";
|
||||||
|
import Heading from "./components/Heading";
|
||||||
|
|
||||||
const IS_OPENAI_DOWN = false;
|
const IS_OPENAI_DOWN = false;
|
||||||
|
|
||||||
@ -321,8 +322,7 @@ function App() {
|
|||||||
)}
|
)}
|
||||||
<div className="lg:fixed lg:inset-y-0 lg:z-40 lg:flex lg:w-96 lg:flex-col">
|
<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 dark:bg-zinc-950 dark:text-white">
|
<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 mb-2">
|
<div className="absolute bottom-1 left-5 center justify-between mt-10 mb-2">
|
||||||
<h1 className="text-2xl ">Screenshot to Code</h1>
|
|
||||||
<SettingsDialog settings={settings} setSettings={setSettings} />
|
<SettingsDialog settings={settings} setSettings={setSettings} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -470,6 +470,7 @@ function App() {
|
|||||||
<main className="py-2 lg:pl-96">
|
<main className="py-2 lg:pl-96">
|
||||||
{appState === AppState.INITIAL && (
|
{appState === AppState.INITIAL && (
|
||||||
<div className="flex flex-col justify-center items-center gap-y-10">
|
<div className="flex flex-col justify-center items-center gap-y-10">
|
||||||
|
<Heading />
|
||||||
<ImageUpload setReferenceImages={doCreate} />
|
<ImageUpload setReferenceImages={doCreate} />
|
||||||
<UrlInputSection
|
<UrlInputSection
|
||||||
doCreate={doCreate}
|
doCreate={doCreate}
|
||||||
|
|||||||
12
frontend/src/components/Heading.tsx
Normal file
12
frontend/src/components/Heading.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
function Heading() {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="container">
|
||||||
|
<div className="text-center text-slate-700 text-4xl">
|
||||||
|
Screenshot to code
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Heading;
|
||||||
@ -15,10 +15,10 @@ const baseStyle = {
|
|||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
padding: "20px",
|
padding: "20px",
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
borderRadius: 2,
|
borderRadius: 10,
|
||||||
borderColor: "#eeeeee",
|
borderColor: "#eeeeee",
|
||||||
borderStyle: "dashed",
|
borderStyle: "dashed",
|
||||||
backgroundColor: "#fafafa",
|
backgroundColor: "#e9e9e9",
|
||||||
color: "#bdbdbd",
|
color: "#bdbdbd",
|
||||||
outline: "none",
|
outline: "none",
|
||||||
transition: "border .24s ease-in-out",
|
transition: "border .24s ease-in-out",
|
||||||
|
|||||||
@ -38,7 +38,7 @@ function OutputSettingsSection({
|
|||||||
shouldDisableUpdates = false,
|
shouldDisableUpdates = false,
|
||||||
}: Props) {
|
}: Props) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-y-2 justify-between text-sm">
|
<div className="flex flex-col gap-y-2 mt-3 justify-between text-sm">
|
||||||
<div className="grid grid-cols-3 items-center gap-4">
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
<span>{label}</span>
|
<span>{label}</span>
|
||||||
<Select
|
<Select
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user