Skip to content

Commit 0ef250f

Browse files
committed
MP-90 style updates Figma
1 parent f66f060 commit 0ef250f

File tree

9 files changed

+26
-54
lines changed

9 files changed

+26
-54
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
@import "@libs/ui/styles/includes";
22

33
.editMemberPropertyBtn {
4+
padding: 0 !important;
5+
padding-left: $sp-4 !important;
6+
color: $black-100;
7+
48
svg {
5-
width: 16px;
6-
height: 16px;
9+
width: 20px;
10+
height: 20px;
711
}
812
}

src/apps/profiles/src/components/EditMemberPropertyBtn/EditMemberPropertyBtn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const EditMemberPropertyBtn: FC<EditMemberPropertyBtnProps> = (props: EditMember
1313
icon={IconOutline.PencilIcon}
1414
onClick={props.onClick}
1515
className={styles.editMemberPropertyBtn}
16+
size='lg'
1617
/>
1718
)
1819

src/apps/profiles/src/member-profile/education-and-certifications/EducationAndCertifications.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.headerWrap {
99
display: flex;
1010
align-items: center;
11+
justify-content: space-between;
1112
margin-bottom: $sp-4;
1213

1314
h3 {

src/apps/profiles/src/member-profile/languages/MemberLanguages.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.titleWrap {
99
display: flex;
1010
align-items: center;
11-
justify-content: flex-start;
11+
justify-content: space-between;
1212
margin-bottom: $sp-2;
1313
}
1414

src/apps/profiles/src/member-profile/links/MemberLinks.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.titleWrap {
99
display: flex;
1010
align-items: center;
11-
justify-content: flex-start;
11+
justify-content: space-between;
1212
margin-bottom: $sp-2;
1313
}
1414

src/apps/profiles/src/member-profile/profile-header/ProfileHeader.module.scss

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@
1111
position: relative;
1212
margin-right: 60px;
1313

14-
.verifiedBadge {
15-
position: absolute;
16-
right: 0;
17-
top: 0;
18-
color: $tc-white;
19-
20-
svg {
21-
width: 70px;
22-
height: 70px;
23-
fill: $turq-120;
24-
25-
path {
26-
fill: $turq-120;
27-
}
28-
}
29-
}
30-
3114
.profilePhoto {
3215
width: 300px;
3316
height: 300px;
@@ -38,14 +21,11 @@
3821

3922
button {
4023
position: absolute;
41-
right: 0;
42-
top: calc(50% - 8px);
43-
padding-right: $sp-1;
44-
45-
svg {
46-
width: 16px;
47-
height: 16px;
48-
}
24+
bottom: -10px;
25+
left: calc(50% - 20px);
26+
padding: $sp-2 $sp-3 !important;
27+
background-color: $tc-white;
28+
border-radius: 50%;
4929
}
5030
}
5131

src/apps/profiles/src/member-profile/profile-header/ProfileHeader.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import { KeyedMutator } from 'swr'
55
import moment from 'moment'
66

77
import {
8-
getVerificationStatusAsync,
98
useMemberTraits,
109
UserProfile,
1110
UserTrait,
1211
UserTraitIds,
1312
UserTraits,
1413
} from '~/libs/core'
15-
import { Button, IconOutline } from '~/libs/ui'
14+
import { Button } from '~/libs/ui'
1615

1716
import { EditMemberPropertyBtn } from '../../components'
1817
import { EDIT_MODE_QUERY_PARAM, profileEditModes } from '../../config'
@@ -34,9 +33,6 @@ const DEFAULT_MEMBER_AVATAR: string
3433
const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
3534
const photoURL: string = props.profile.photoURL || DEFAULT_MEMBER_AVATAR
3635

37-
const [isMemberVerified, setIsMemberVerified]: [boolean, Dispatch<SetStateAction<boolean>>]
38-
= useState<boolean>(false)
39-
4036
const canEdit: boolean = props.authProfile?.handle === props.profile.handle
4137

4238
const [isNameEditMode, setIsNameEditMode]: [boolean, Dispatch<SetStateAction<boolean>>]
@@ -76,15 +72,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
7672
// eslint-disable-next-line react-hooks/exhaustive-deps
7773
}, [props.authProfile])
7874

79-
useEffect(() => {
80-
if (!props.profile?.handle) {
81-
return
82-
}
83-
84-
getVerificationStatusAsync(props.profile.handle)
85-
.then(verified => setIsMemberVerified(verified))
86-
}, [props.profile.handle])
87-
8875
function handleHireMeClick(): void {
8976
console.log('Hire Me button clicked')
9077
}
@@ -124,13 +111,6 @@ const ProfileHeader: FC<ProfileHeaderProps> = (props: ProfileHeaderProps) => {
124111
<div className={styles.container}>
125112
<div className={styles.photoWrap}>
126113
<img src={photoURL} alt='Topcoder - Member Profile Avatar' className={styles.profilePhoto} />
127-
{
128-
isMemberVerified ? (
129-
<div className={styles.verifiedBadge}>
130-
<IconOutline.CheckCircleIcon />
131-
</div>
132-
) : undefined
133-
}
134114
{
135115
canEdit && (
136116
<EditMemberPropertyBtn

src/apps/profiles/src/member-profile/work-expirence/WorkExpirence.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.headerWrap {
88
display: flex;
99
align-items: center;
10+
justify-content: space-between;
1011
margin-bottom: $sp-4;
1112

1213
h3 {

src/apps/profiles/src/member-profile/work-expirence/WorkExpirenceCard/WorkExpirenceCard.module.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
.workExpirenceCard {
44
flex: 1;
55
margin-bottom: $sp-8;
6+
font-size: 14px;
7+
line-height: 22px;
8+
color: $black-60;
9+
10+
:global(.body-main-bold) {
11+
color: $black-100;
12+
}
613

714
&.workExpirenceCardModalView {
815
margin-bottom: 0;
@@ -11,18 +18,16 @@
1118
flex-direction: column;
1219
align-items: flex-start;
1320
justify-content: flex-start;
14-
font-size: 14px;
15-
line-height: 22px;
1621

1722
:global(.body-main-bold) {
1823
margin-bottom: $sp-2;
1924
}
20-
}
25+
}
2126
}
2227

2328
.workExpirenceCardHeader {
2429
display: flex;
2530
justify-content: space-between;
2631
align-items: flex-end;
2732
}
28-
}
33+
}

0 commit comments

Comments
 (0)