Skip to content

Commit 5f1f184

Browse files
committed
Fixing member card look
1 parent 7465893 commit 5f1f184

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

src/shared/components/Contentful/MemberCard/MemberCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function MemberCardInner({
4949
<div className={theme.memberName}>{memberName}</div>
5050
)}
5151
{ country && (
52-
<div>
52+
<div className={theme.countryWrapper}>
5353
<span className={`flag-icon flag-icon-${country} ${theme.flag}`} />
5454
<span className={theme.countryName}>
5555
{getName(country).toLocaleUpperCase()}

src/shared/components/Contentful/MemberCard/themes/default.scss

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,37 @@
11
@import "~styles/mixins";
22

33
.memberCard {
4-
width: 100%;
5-
height: 100%;
64
display: flex;
75
flex-direction: column;
86
overflow: hidden;
9-
border: 1px solid #d5d5d5;
107
border-radius: 6px;
118
box-shadow: 0 2px 9px 0 rgba(38, 38, 40, 0.15), inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);
12-
max-width: 305px;
13-
max-height: 322px;
9+
width: 305px;
10+
margin: auto;
1411

1512
@include xs-to-sm {
1613
margin-bottom: 1em;
1714
}
1815
}
1916

2017
.imageWrapper {
21-
flex: 1 1 70%;
22-
max-height: 224px;
18+
height: 219px;
19+
width: 305px;
2320

2421
img {
2522
width: 100%;
2623
height: 100%;
27-
max-height: 224px;
28-
max-width: 303px;
24+
max-height: 219px;
25+
max-width: 305px;
2926
}
3027
}
3128

3229
.info {
33-
flex: 1 1 30%;
3430
display: flex;
35-
height: 96px;
31+
min-height: 81px;
3632

3733
.trackIcon {
38-
width: 76px;
39-
height: 96px;
34+
width: 64px;
4035
display: flex;
4136
justify-content: center;
4237
align-items: center;
@@ -49,36 +44,45 @@
4944

5045
.handleWrapper {
5146
flex: 1 1 auto;
52-
padding: 6%;
47+
padding: 13px 0 15px 20px;
5348
display: flex;
5449
flex-direction: column;
5550
justify-content: center;
5651

5752
.handle {
5853
@include roboto-bold;
5954

60-
font-size: 1.2em;
61-
color: $tc-dark-blue-110;
55+
font-size: 20px;
56+
color: #006dea;
6257
line-height: 30px;
6358
}
6459

6560
.memberName {
6661
color: #2a2a2b;
6762
font-size: 15px;
6863
font-weight: 500;
69-
line-height: 30px;
64+
line-height: 20px;
7065
text-align: left;
7166
}
7267

73-
.flag {
74-
margin-right: 0.5em;
75-
}
68+
.countryWrapper {
69+
display: flex;
70+
align-items: center;
71+
min-height: 25px;
72+
73+
.flag {
74+
margin-right: 6px;
75+
width: 19px;
76+
height: 11px;
77+
}
7678

77-
.countryName {
78-
@include roboto-regular;
79+
.countryName {
80+
@include roboto-regular;
7981

80-
color: #555;
81-
line-height: 25px;
82+
color: #555;
83+
line-height: 25px;
84+
font-size: 15px;
85+
}
8286
}
8387
}
8488
}

0 commit comments

Comments
 (0)