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

Commit 2f6dc30

Browse files
committed
refactor(row-events): upcoming events will show 'attending' while recent events will show 'attended'. Applied flex styling and some margin to make event details more viewable on mobile
1 parent ab67aa0 commit 2f6dc30

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-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+
{moment(props.time).isAfter() ? ' 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
);

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