Skip to content

Commit

Permalink
Merge pull request #25 from georgejkaye/improve-countdown
Browse files Browse the repository at this point in the history
[fix] Make countdown wrap better on mobile
  • Loading branch information
georgejkaye authored Jan 1, 2024
2 parents 528341e + 82b93ea commit 4b6be2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ const Stat = (props: { name: string; value: string; styles: string }) => (
)

const CountdownElement = (props: { value: number; text: string }) => (
<>
<div className="flex flex-row items-center">
<div className={`${statStyle} w-16 bg-blue-400 text-white`}>
{props.value}
</div>
<div className="pr-2">{props.text}</div>
</>
</div>
)

const Countdown = (props: { deadline: Date | undefined }) => {
Expand All @@ -56,7 +56,7 @@ const Countdown = (props: { deadline: Date | undefined }) => {
The submission deadline is {props.deadline.toLocaleDateString()}
, which is in
</div>
<div className="flex flex-row justify-center items-center my-2">
<div className="flex flex-row flex-wrap justify-center items-center my-2">
<CountdownElement value={days} text="days" />
<CountdownElement value={hours} text="hours" />
<CountdownElement value={minutes} text="minutes" />
Expand Down

0 comments on commit 4b6be2e

Please sign in to comment.