Skip to content

Commit 6d49236

Browse files
Update logged-out invite screen to match the logged-in one (#103490)
* Adjust the logged-out invite form to match the logged in one * Remove period from headings
1 parent 19540e2 commit 6d49236

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

client/my-sites/invites/invite-accept-logged-out/style.scss

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,42 @@ body.is-section-accept-invite {
2424
.invite-accept-logged-out-wrapper {
2525
width: 100%;
2626
margin: 0 auto;
27-
@media (min-width: $break-small) {
28-
width: 372px;
29-
margin-top: 100px;
30-
}
27+
display: flex;
28+
flex-direction: column;
29+
height: 100%;
30+
box-sizing: border-box;
3131
font-family: $font-sf-pro-text;
3232

33+
.invite-form-header {
34+
flex: 0.5;
35+
display: flex;
36+
flex-direction: column;
37+
justify-content: flex-end;
38+
max-height: 340px;
39+
}
40+
3341
.invite-form-header__title {
3442
color: var(--studio-gray-100, #2c3338);
3543
text-align: center;
3644
font-family: $recoleta-font-family;
3745
font-size: 2rem;
38-
line-height: normal;
39-
letter-spacing: 0.2px;
46+
line-height: 1.26;
47+
a {
48+
text-decoration: none;
49+
}
4050
}
4151

4252
.invite-form-header__explanation {
4353
color: var(--studio-gray-50, #2c3338);
4454
text-align: center;
45-
margin-top: 14px;
55+
margin-top: 6px;
56+
font-size: 14px;
4657
}
4758

4859
.card.logged-out-form {
4960
box-shadow: none;
5061
padding: 0;
51-
margin: 0;
52-
max-width: 372px;
62+
margin: 0 auto;
5363
background: none;
5464

5565
button.is-primary {
@@ -84,18 +94,19 @@ body.is-section-accept-invite {
8494
margin-bottom: 0;
8595
}
8696
}
97+
.signup-form {
98+
flex: 1;
99+
display: flex;
100+
flex-direction: column;
101+
justify-content: space-between;
102+
}
87103

88104
.signup-form__passwordless-form-wrapper {
89105
.signup-form__terms-of-service-link {
90-
margin: 16px 0;
106+
margin: 30px 0 16px;
91107
color: var(--studio-gray-50, #2c3338);
92108
font-size: $font-body-small; // 14px
93109
line-height: 20px;
94-
a {
95-
color: var(--studio-gray-80, #2c3338);
96-
font-style: normal;
97-
text-decoration-line: underline;
98-
}
99110
}
100111
}
101112

@@ -104,13 +115,7 @@ body.is-section-accept-invite {
104115
padding: 0;
105116
}
106117
.logged-out-form__link-item {
107-
color: var(--studio-gray-90, #2c3338);
108-
font-weight: 500;
109-
text-underline-offset: 5px;
110-
margin-top: 32px;
111-
padding: 0;
112-
&:hover {
113-
color: var(--studio-blue-50, #0675c4);
114-
}
118+
color: var(--color-link);
119+
font-size: 12px;
115120
}
116121
}

client/my-sites/invites/invite-form-header/index.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,50 +34,50 @@ class InviteFormHeader extends Component {
3434

3535
switch ( role ) {
3636
case 'administrator':
37-
title = this.props.translate( 'Sign up to start managing {{siteLink/}}.', {
37+
title = this.props.translate( 'Sign up to start managing {{siteLink/}}', {
3838
components: {
3939
siteLink: this.getSiteLink(),
4040
},
4141
} );
4242
break;
4343
case 'editor':
44-
title = this.props.translate( 'Sign up to start editing {{siteLink/}}.', {
44+
title = this.props.translate( 'Sign up to start editing {{siteLink/}}', {
4545
components: {
4646
siteLink: this.getSiteLink(),
4747
},
4848
} );
4949
break;
5050
case 'author':
51-
title = this.props.translate( 'Sign up to start writing for {{siteLink/}}.', {
51+
title = this.props.translate( 'Sign up to start writing for {{siteLink/}}', {
5252
components: {
5353
siteLink: this.getSiteLink(),
5454
},
5555
} );
5656
break;
5757
case 'contributor':
58-
title = this.props.translate( 'Sign up to start contributing to {{siteLink/}}.', {
58+
title = this.props.translate( 'Sign up to start contributing to {{siteLink/}}', {
5959
components: {
6060
siteLink: this.getSiteLink(),
6161
},
6262
} );
6363
break;
6464
case 'subscriber':
65-
title = this.props.translate( 'Sign up to start your subscription to {{siteLink/}}.', {
65+
title = this.props.translate( 'Sign up to start your subscription to {{siteLink/}}', {
6666
components: {
6767
siteLink: this.getSiteLink(),
6868
},
6969
} );
7070
break;
7171
case 'viewer':
72-
title = this.props.translate( 'Sign up to begin viewing {{siteLink/}}.', {
72+
title = this.props.translate( 'Sign up to begin viewing {{siteLink/}}', {
7373
components: {
7474
siteLink: this.getSiteLink(),
7575
},
7676
} );
7777
break;
7878
case 'follower':
7979
title = this.props.translate(
80-
'Sign up to start following {{siteLink/}} in the WordPress.com Reader.',
80+
'Sign up to start following {{siteLink/}} in the WordPress.com Reader',
8181
{
8282
components: {
8383
siteLink: this.getSiteLink(),
@@ -87,7 +87,7 @@ class InviteFormHeader extends Component {
8787
break;
8888
default:
8989
title = this.props.translate(
90-
'Sign up to join {{siteLink/}} as: {{strong}}%(siteRole)s{{/strong}}.',
90+
'Sign up to join {{siteLink/}} as: {{strong}}%(siteRole)s{{/strong}}',
9191
{
9292
args: {
9393
siteRole: role,

0 commit comments

Comments
 (0)