Skip to content

Commit 28922aa

Browse files
author
Ryan Cordell
committed
Fixed #1149
Fixed styling issues on the community meetup card list
1 parent b084218 commit 28922aa

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

src/components/Link.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { languageMetadata } from "../utils/translations"
88
// TODO set globally to apply to markdown files
99
const ExternalLink = styled.a`
1010
&:after {
11+
color: ${(props) => props.theme.colors.primary};
1112
margin-left: 0.125em;
1213
margin-right: 0.3em;
1314
display: inline-block;

src/components/MeetupList.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ const Table = styled.div`
246246
`
247247

248248
const Item = styled(Link)`
249+
flex-direction: row;
250+
justify-content: space-between;
249251
color: ${(props) => props.theme.colors.text} !important;
250252
box-shadow: 0 1px 1px ${(props) => props.theme.colors.tableItemBoxShadow};
251253
margin-bottom: 1px;
@@ -268,10 +270,25 @@ const ItemNumber = styled.div`
268270
const ItemTitle = styled.div``
269271
const ItemDesc = styled.p`
270272
margin-bottom: 0;
271-
margin-left: auto;
273+
opacity: 0.6;
274+
`
275+
276+
const Flag = styled(Twemoji)`
277+
margin-right: 0.5rem;
278+
`
279+
280+
const RightContainer = styled.div`
281+
display: flex;
282+
align-items: right;
283+
align-content: flex-start;
284+
width: 25%;
285+
margin-right: 1rem;
286+
flex-wrap: wrap;
272287
`
273288
const LeftContainer = styled.div`
274289
display: flex;
290+
width: 75%;
291+
margin-right: 2rem;
275292
`
276293
// TODO create generalized CardList / TableCard
277294
// TODO prop if ordered list or unordered
@@ -285,9 +302,10 @@ const MeetupList = () => {
285302
<ItemNumber>{idx + 1}</ItemNumber>
286303
<ItemTitle>{meetup.title}</ItemTitle>
287304
</LeftContainer>
288-
<ItemDesc>
289-
<Twemoji svg text={meetup.emoji} /> {meetup.location}
290-
</ItemDesc>
305+
<RightContainer>
306+
<Flag svg text={meetup.emoji} />
307+
<ItemDesc>{meetup.location}</ItemDesc>
308+
</RightContainer>
291309
</Item>
292310
)
293311
})}

0 commit comments

Comments
 (0)