Larger font on amount input

This commit is contained in:
James Grugett 2022-05-02 12:15:00 -04:00
parent bec8cdb3e8
commit 6232284e92
5 changed files with 24 additions and 20 deletions

View File

@ -45,7 +45,7 @@ export function AmountInput(props: {
<span className="bg-gray-200 text-sm">{label}</span> <span className="bg-gray-200 text-sm">{label}</span>
<input <input
className={clsx( className={clsx(
'input input-bordered', 'input input-bordered max-w-[200px] text-lg',
error && 'input-error', error && 'input-error',
inputClassName inputClassName
)} )}

View File

@ -116,7 +116,7 @@ export function AnswerBetPanel(props: {
</Row> </Row>
<div className="my-3 text-left text-sm text-gray-500">Amount </div> <div className="my-3 text-left text-sm text-gray-500">Amount </div>
<BuyAmountInput <BuyAmountInput
inputClassName="w-full" inputClassName="w-full max-w-none"
amount={betAmount} amount={betAmount}
onChange={setBetAmount} onChange={setBetAmount}
error={error} error={error}

View File

@ -62,7 +62,7 @@ export function BetPanel(props: {
className className
)} )}
> >
<div className="mb-6 text-2xl text-gray-700">Place a trade</div> <div className="mb-6 text-2xl">Place your bet</div>
{/* <Title className={clsx('!mt-0 text-neutral')} text="Place a trade" /> */} {/* <Title className={clsx('!mt-0 text-neutral')} text="Place a trade" /> */}
<BuyPanel contract={contract} user={user} userBets={userBets ?? []} /> <BuyPanel contract={contract} user={user} userBets={userBets ?? []} />
@ -125,19 +125,23 @@ export function BetPanelSwitcher(props: {
<BinaryOutcomeLabel outcome={sharesOutcome} /> shares <BinaryOutcomeLabel outcome={sharesOutcome} /> shares
</div> </div>
<button {tradeType === 'BUY' && (
className="btn btn-sm" <button
style={{ className="btn btn-sm"
backgroundColor: 'white', style={{
border: '2px solid', backgroundColor: 'white',
color: '#3D4451', border: '2px solid',
}} color: '#3D4451',
onClick={() => }}
tradeType === 'BUY' ? setTradeType('SELL') : setTradeType('BUY') onClick={() =>
} tradeType === 'BUY'
> ? setTradeType('SELL')
{tradeType === 'BUY' ? 'Sell' : 'Bet'} : setTradeType('BUY')
</button> }
>
{tradeType === 'BUY' ? 'Sell' : 'Bet'}
</button>
)}
</Row> </Row>
</Col> </Col>
)} )}
@ -299,7 +303,7 @@ function BuyPanel(props: {
/> />
<div className="my-3 text-left text-sm text-gray-500">Amount</div> <div className="my-3 text-left text-sm text-gray-500">Amount</div>
<BuyAmountInput <BuyAmountInput
inputClassName="w-full" inputClassName="w-full max-w-none"
amount={betAmount} amount={betAmount}
onChange={onBetChange} onChange={onBetChange}
error={error} error={error}

View File

@ -72,9 +72,9 @@ export function ResolutionPanel(props: {
return ( return (
<Col className={clsx('rounded-md bg-white px-8 py-6', className)}> <Col className={clsx('rounded-md bg-white px-8 py-6', className)}>
<Title className="!mt-0 whitespace-nowrap" text="Resolve market" /> <div className="mb-6 whitespace-nowrap text-2xl">Resolve market</div>
<div className="mb-2 text-sm text-gray-500">Outcome</div> <div className="mb-3 text-sm text-gray-500">Outcome</div>
<YesNoCancelSelector <YesNoCancelSelector
className="mx-auto my-2" className="mx-auto my-2"

View File

@ -207,7 +207,7 @@ function DonationBox(props: {
Amount Amount
</label> </label>
<BuyAmountInput <BuyAmountInput
inputClassName="w-full donate-input" inputClassName="w-full max-w-none donate-input"
amount={amount} amount={amount}
onChange={setAmount} onChange={setAmount}
error={error} error={error}