Challenge card styling

This commit is contained in:
Ian Philips 2022-08-01 12:12:00 -06:00
parent 3634168a48
commit 89e8f7a4dd
2 changed files with 13 additions and 17 deletions

View File

@ -148,7 +148,7 @@ export function getHtml(parsedReq: ParsedRequest) {
<div class="flex flex-row justify-between gap-12 pt-36"> <div class="flex flex-row justify-between gap-12 pt-36">
<div class="flex flex-col text-gray-900 text-6xl"> <div class="flex flex-col text-gray-900 text-6xl">
${challengeAmount ? '⚔️️' + ' Bet against me ' + '⚔️️' : ''} ${challengeAmount ? '\u2694' + ' Bet against me on:' + '\u2694' : ''}
<div class="text-indigo-700 leading-tight"> <div class="text-indigo-700 leading-tight">
${truncatedQuestion} ${truncatedQuestion}
</div> </div>

View File

@ -137,22 +137,18 @@ export default function ChallengePage(props: {
} }
const userRow = (challenger: User) => ( const userRow = (challenger: User) => (
<div className="flex flex-col text-gray-900"> <Row className={'mb-2 w-full items-center justify-center gap-2'}>
${'⚔️️' + ' Bet against me ' + '⚔️️'} <Avatar
<div>{'Will there be a new doctrowho sad'}</div> size={12}
</div> avatarUrl={challenger.avatarUrl}
// <Row className={'mb-2 w-full items-center justify-center gap-2'}> username={challenger.username}
// <Avatar />
// size={12} <UserLink
// avatarUrl={challenger.avatarUrl} className={'text-2xl'}
// username={challenger.username} name={challenger.name}
// /> username={challenger.username}
// <UserLink />
// className={'text-2xl'} </Row>
// name={challenger.name}
// username={challenger.username}
// />
// </Row>
) )
function ClosedChallengeContent(props: { function ClosedChallengeContent(props: {