Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
add whitespace: break to competition ui
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Nov 24, 2023
1 parent ed4c5a7 commit 7660ffd
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 23 deletions.
50 changes: 31 additions & 19 deletions Frontend/src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,42 +42,54 @@ export default function HomePage() {
<Segment padded attached>
<Grid>
<Grid.Column width={3}>
<Header>Date</Header>
<Header>City</Header>
<Header>Venue</Header>
<Header color="grey">Address</Header>
<Header className={styles.informationHeader}>Date</Header>
<Header className={styles.informationHeader}>City</Header>
<Header className={styles.informationHeader}>Venue</Header>
<Header className={styles.informationHeader} color="grey">
Address
</Header>
{competitionInfo.venue_details && (
<Header color="grey">Details</Header>
<Header className={styles.informationHeader} color="grey">
Details
</Header>
)}
<Header>Competitor Limit</Header>
<Header>Contact</Header>
<Header>Organizers</Header>
<Header>Delegates</Header>
<Header className={styles.informationHeader}>
Competitor Limit
</Header>
<Header className={styles.informationHeader}>Contact</Header>
<Header className={styles.informationHeader}>Organizers</Header>
<Header className={styles.informationHeader}>Delegates</Header>
</Grid.Column>
<Grid.Column width={12}>
<Header>
<Header className={styles.informationHeader}>
{competitionInfo.start_date === competitionInfo.end_date
? `${moment(competitionInfo.start_date).format('ll')}`
: `${moment(competitionInfo.start_date).format(
'll'
)} to ${moment(competitionInfo.end_date).format('ll')}`}
</Header>
<Header>
<Header className={styles.informationHeader}>
{competitionInfo.city}, {competitionInfo.country_iso2}
</Header>
<Header>
<Header className={styles.informationHeader}>
<p
dangerouslySetInnerHTML={{
__html: marked(competitionInfo.venue),
}}
/>
</Header>
<Header color="grey">{competitionInfo.venue_address}</Header>
<Header className={styles.informationHeader} color="grey">
{competitionInfo.venue_address}
</Header>
{competitionInfo.venue_details && (
<Header color="grey">{competitionInfo.venue_details}</Header>
<Header className={styles.informationHeader} color="grey">
{competitionInfo.venue_details}
</Header>
)}
<Header>{competitionInfo.competitor_limit}</Header>
<Header>
<Header className={styles.informationHeader}>
{competitionInfo.competitor_limit}
</Header>
<Header className={styles.informationHeader}>
{competitionInfo.contact ? (
<span
dangerouslySetInnerHTML={{
Expand All @@ -92,7 +104,7 @@ export default function HomePage() {
</a>
)}
</Header>
<Header>
<Header className={styles.informationHeader}>
{competitionInfo.organizers.map((organizer, index) => (
<a
key={`competition-organizer-${organizer.id}`}
Expand All @@ -103,7 +115,7 @@ export default function HomePage() {
</a>
))}
</Header>
<Header>
<Header className={styles.informationHeader}>
{competitionInfo.delegates.map((delegate, index) => (
<a
key={`competition-organizer-${delegate.id}`}
Expand All @@ -116,7 +128,7 @@ export default function HomePage() {
</Header>
</Grid.Column>
</Grid>
<Header>
<Header className={styles.informationHeader}>
<UiIcon name="print" />
<Header.Content>
Download all of the competitions details as a PDF{' '}
Expand Down
8 changes: 7 additions & 1 deletion Frontend/src/pages/home/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
img{
display: none;
}
}
}

.information-header{
@media only screen and (max-width: 600px) {
font-size: 1.1em !important;
}
}
2 changes: 1 addition & 1 deletion Frontend/src/ui/Competition.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function Competition({ children }) {
>
Register
</Button>
<Label size="massive">
<Label size="massive" className={styles.fee}>
Registration Fee:{' '}
{toDecimal(
dinero({
Expand Down
4 changes: 2 additions & 2 deletions Frontend/src/ui/competition.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
border-radius: 12px !important;
}
.fee{
font-size: $sub-header-size;
margin-left: $single-margin;
white-space: break-spaces;
}
.event-list{
padding: 30px;
Expand All @@ -63,3 +62,4 @@
.event{
margin-left: $single-margin;
}

0 comments on commit 7660ffd

Please sign in to comment.