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-col text-gray-900 text-6xl">
${challengeAmount ? '⚔️️' + ' Bet against me ' + '⚔️️' : ''}
${challengeAmount ? '\u2694' + ' Bet against me on:' + '\u2694' : ''}
<div class="text-indigo-700 leading-tight">
${truncatedQuestion}
</div>

View File

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