Tweaks to create contract page.

This commit is contained in:
jahooma 2021-12-13 22:32:33 -06:00
parent 7b0c011d39
commit 122e571179

View File

@ -37,7 +37,7 @@ export default function NewContract() {
<div className="max-w-4xl py-12 lg:mx-auto px-4"> <div className="max-w-4xl py-12 lg:mx-auto px-4">
<Title text="Create a new prediction market" /> <Title text="Create a new prediction market" />
<div className="w-full bg-gray-200 rounded-lg shadow-xl p-6"> <div className="w-full bg-gray-100 rounded-lg shadow-xl px-6 py-4">
{/* Create a Tailwind form that takes in all the fields needed for a new contract */} {/* Create a Tailwind form that takes in all the fields needed for a new contract */}
{/* When the form is submitted, create a new contract in the database */} {/* When the form is submitted, create a new contract in the database */}
<form> <form>
@ -55,6 +55,8 @@ export default function NewContract() {
/> />
</div> </div>
<Spacer h={4} />
<div className="form-control"> <div className="form-control">
<label className="label"> <label className="label">
<span className="label-text">Description</span> <span className="label-text">Description</span>
@ -68,6 +70,8 @@ export default function NewContract() {
></textarea> ></textarea>
</div> </div>
<Spacer h={4} />
<div className="form-control"> <div className="form-control">
<label className="label"> <label className="label">
<span className="label-text">Initial probability: {initialProb}%</span> <span className="label-text">Initial probability: {initialProb}%</span>
@ -75,7 +79,6 @@ export default function NewContract() {
<input <input
type="range" type="range"
className="range-primary"
min="1" min="1"
max={99} max={99}
value={initialProb} value={initialProb}
@ -83,7 +86,9 @@ export default function NewContract() {
/> />
</div> </div>
<div className="flex justify-end mt-6"> <Spacer h={4} />
<div className="flex justify-end my-4">
<button <button
type="submit" type="submit"
className="btn btn-primary" className="btn btn-primary"