Skip to content

Commit

Permalink
style: created editor layout
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurparalkar committed Apr 15, 2024
1 parent 09e4d2e commit 7cf1862
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ function App() {
};

return (
<div className="container mx-auto flex flex-col items-center">
<h1 className="text-4xl font-bold tracking-tight mb-5">JSON to Form</h1>

<form onSubmit={handleSubmit(onSubmit)}>
<SchemaRenderer schema={schema} errors={errors} register={register} />
<input type="submit" />
</form>
<div className="grid grid-rows-[50px_1fr_50px] m-5 gap-2">
<h1 className="text-4xl font-bold">JSON to Form</h1>

<div id="container" className="grid grid-cols-2 gap-x-2">
<div id="editor"></div>
<form onSubmit={handleSubmit(onSubmit)}>
<SchemaRenderer schema={schema} errors={errors} register={register} />
<input type="submit" />
</form>
</div>

<div id="status-bar" className="bg-gray-400"></div>
</div>
);
}
Expand Down

0 comments on commit 7cf1862

Please sign in to comment.