Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 71511d2

Browse files
author
Zubair Ahmed
authored
Merge pull request #20 from jberry93/refactor/events
refactor(row-events): fixed attendance terminology and applied minor styling for mobile view
2 parents 2c9e2c9 + 1f2dda0 commit 71511d2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

components/row-events.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ const RowEvent = props => {
2020
</span>
2121
<span className="card_icons">
2222
<Icon name="users" />
23-
{`${props.yesCount} attended`}
23+
{props.yesCount}
24+
{props.status === 'upcoming' ? ' attending' : ' attended'}
25+
</span>
26+
<span className="card_icons">
27+
<Icon name="log out" />
28+
{props.venue === undefined ? 'Free session' : 'Free entry'}
2429
</span>
25-
<Icon name="log out" />
26-
{props.venue === undefined ? 'Free session' : 'Free entry'}
2730
</Card.Content>
2831
<style jsx>{`
2932
.card_venue {
@@ -32,6 +35,12 @@ const RowEvent = props => {
3235
.card_icons {
3336
margin-right: 15px;
3437
}
38+
@media (max-width: 700px) {
39+
.card_icons {
40+
display: flex;
41+
margin: 5px 0;
42+
}
43+
}
3544
`}</style>
3645
</Card>
3746
);

pages/events.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default publicPage(
5353
time={event.time}
5454
venue={event.venue}
5555
link={event.link}
56+
status={event.status}
5657
/>
5758
</Card.Group>
5859
))}
@@ -68,6 +69,7 @@ export default publicPage(
6869
time={event.time}
6970
venue={event.venue}
7071
link={event.link}
72+
status={event.status}
7173
/>
7274
</Card.Group>
7375
))}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy