Skip to content

Commit cb9a0da

Browse files
authored
Revert "Domain only flow: Make it more consistent (#102613)"
This reverts commit d82dfc4.
1 parent d82dfc4 commit cb9a0da

File tree

24 files changed

+617
-200
lines changed

24 files changed

+617
-200
lines changed

client/components/domains/domain-product-price/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
}
2626
}
2727

28+
&.domain-product-single-price {
29+
justify-content: start;
30+
}
2831
.is-section-domains & {
2932
@include breakpoint-deprecated( ">800px" ) {
3033
padding-left: 1em;

client/components/domains/domain-registration-suggestion/index.jsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@ class DomainRegistrationSuggestion extends Component {
265265
};
266266
}
267267

268-
getFormattedDomainName( name ) {
269-
if ( name.length <= 24 ) {
270-
return name;
271-
}
272-
273-
return (
274-
<abbr title={ name }>
275-
{ name.slice( 0, 8 ) }{ name.slice( -8 ) }
276-
</abbr>
277-
);
278-
}
279-
280268
renderDomain( hasBadges = false ) {
281269
const {
282270
showHstsNotice,
@@ -300,9 +288,7 @@ class DomainRegistrationSuggestion extends Component {
300288
<div className={ titleWrapperClassName }>
301289
<h3 className="domain-registration-suggestion__title">
302290
<div className="domain-registration-suggestion__domain-title">
303-
<span className="domain-registration-suggestion__domain-title-name">
304-
{ this.getFormattedDomainName( name ) }
305-
</span>
291+
<span className="domain-registration-suggestion__domain-title-name">{ name }</span>
306292
<span className="domain-registration-suggestion__domain-title-tld">{ tld }</span>
307293
{ ( showHstsNotice || showDotGayNotice ) && this.renderInfoBubble() }
308294
</div>

client/components/domains/domain-suggestion/style.scss

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22
@import "@wordpress/base-styles/mixins";
33

44
.domain-suggestion {
5-
display: flex;
65
flex-direction: column;
76

8-
&.card {
9-
padding: 16px 12px;
10-
11-
@include break-mobile {
12-
padding: 16px 24px;
13-
}
14-
}
15-
167
@include break-mobile {
178
flex-direction: row;
189
align-items: center;
1910
}
2011

2112
.domain-suggestion__content-domain {
13+
align-items: center;
2214
justify-content: space-between;
2315
}
2416

@@ -36,10 +28,6 @@
3628
.domain-registration-suggestion__domain-title {
3729
font-size: $font-body;
3830

39-
@include break-small {
40-
white-space: nowrap;
41-
}
42-
4331
.domain-registration-suggestion__domain-title-name {
4432
color: var(--studio-gray-60);
4533
}
@@ -69,11 +57,12 @@
6957
@include break-mobile {
7058
flex-direction: row;
7159
align-items: center;
60+
padding: 15px 20px;
7261
}
7362

7463
.is-section-signup & {
7564
@include breakpoint-deprecated( ">480px" ) {
76-
flex-direction: column;
65+
flex-direction: row;
7766
align-items: center;
7867
}
7968
}
@@ -119,14 +108,10 @@
119108
width: 100%;
120109
min-height: 32px;
121110
gap: 16px;
122-
display: flex;
123-
flex-direction: column;
124111

125112
@include breakpoint-deprecated( ">660px" ) {
126113
display: flex;
127-
flex-direction: row;
128114
justify-content: space-between;
129-
align-items: center;
130115
}
131116

132117
.notice.is-compact {
@@ -184,12 +169,14 @@
184169
}
185170

186171
.domain-registration-suggestion__title-info {
187-
display: flex;
188-
align-items: center;
189-
190172
@include breakpoint-deprecated( ">800px" ) {
191173
max-width: 55%;
192174
}
175+
176+
&.has-badges {
177+
display: flex;
178+
align-items: center;
179+
}
193180
}
194181

195182
.domain-registration-suggestion__title-wrapper {
@@ -240,6 +227,14 @@
240227
}
241228
}
242229

230+
.domain-registration-suggestion__domain-title-tld {
231+
word-break: normal;
232+
}
233+
234+
.domain-suggestion__action-container {
235+
height: 40px;
236+
}
237+
243238
.domain-suggestion__price-container,
244239
.domain-suggestion__action-container {
245240
flex: 0 0 auto;
@@ -260,15 +255,17 @@
260255

261256
.button.domain-suggestion__action {
262257
width: 100%;
258+
height: 40px;
263259
min-width: 130px;
264-
min-height: 40px;
265260
text-align: center;
266261
padding: 0.25em 3em;
262+
margin-top: 10px;
267263
margin-left: 0;
268264

269265
@media (min-width: 660px) {
270266
width: auto;
271267
flex: 1 0 auto;
268+
margin-top: 0;
272269
}
273270

274271
.is-placeholder & {
@@ -337,9 +334,6 @@
337334
}
338335

339336
.domain-product-price {
340-
display: flex;
341-
flex-direction: column;
342-
justify-content: center;
343337
max-width: 100%;
344338
}
345339

@@ -438,12 +432,18 @@ body.is-section-signup {
438432

439433
& .domain-registration-suggestion__domain-title {
440434
color: var(--studio-gray-90);
435+
white-space: normal;
441436
}
442437

443438
&:not(.featured-domain-suggestion) {
444439
background: none;
445440
border-bottom: 1px solid rgba(220, 220, 222, 0.64);
446441
border-top: 1px solid #fff; /*This white border is to prevent jumpiness while showing borders on hover*/
442+
padding: 16px 20px;
443+
444+
@include break-mobile {
445+
padding: 16px 24px;
446+
}
447447

448448
.domain-registration-suggestion__domain-title {
449449
.domain-registration-suggestion__domain-title-name {

client/components/domains/featured-domain-suggestions/placeholder.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
}
3333
.domain-suggestion__action-container {
34+
height: 40px;
3435
margin-bottom: 6px;
3536
}
3637

client/components/domains/featured-domain-suggestions/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
@include break-small {
1111
border-top: none;
12+
margin: 0 20px;
13+
}
14+
@include break-large {
15+
margin: 0;
1216
}
1317

1418
&.featured-domain-suggestions--has-match-reasons .featured-domain-suggestion {
@@ -40,6 +44,10 @@
4044

4145
@include break-mobile {
4246
flex-direction: row;
47+
/* using .is-compact to increase specificity */
48+
&.is-compact {
49+
padding: 15px 20px;
50+
}
4351
}
4452

4553
.domain-registration-suggestion__title-info {
@@ -118,6 +126,10 @@
118126
margin: 0;
119127
flex-grow: 1;
120128
align-items: baseline;
129+
body.is-section-signup & {
130+
align-items: flex-start;
131+
margin-top: 12px;
132+
}
121133
.is-section-domains & {
122134
padding-left: 0;
123135
}
@@ -150,6 +162,7 @@
150162
}
151163

152164
.domain-registration-suggestion__match-reasons {
165+
margin-top: 8px;
153166
order: 3;
154167
}
155168

@@ -194,13 +207,15 @@ body.is-section-signup .step-wrapper .featured-domain-suggestion.card {
194207
align-items: center;
195208
background: #fff;
196209
border-bottom: 1px solid rgba(220, 220, 222, 0.64);
210+
padding: 16px 20px;
197211
flex-direction: column-reverse;
198212
@include break-mobile {
199213
border-radius: 4px;
200214
margin-bottom: 12px;
201215
box-sizing: border-box;
202216
border: 1px solid #e2e4e7;
203217
background: var(--color-surface);
218+
padding: 16px 24px;
204219
}
205220

206221
.domain-suggestion__action-container {

client/components/domains/register-domain-step/index.jsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from '@automattic/onboarding';
1010
import Search from '@automattic/search';
1111
import { withShoppingCart } from '@automattic/shopping-cart';
12+
import { Icon } from '@wordpress/icons';
1213
import clsx from 'clsx';
1314
import debugFactory from 'debug';
1415
import { localize } from 'i18n-calypso';
@@ -80,6 +81,7 @@ import { getCurrentUser } from 'calypso/state/current-user/selectors';
8081
import getCurrentQueryArguments from 'calypso/state/selectors/get-current-query-arguments';
8182
import { getCurrentFlowName } from 'calypso/state/signup/flow/selectors';
8283
import AlreadyOwnADomain from './already-own-a-domain';
84+
import tip from './tip';
8385

8486
import './style.scss';
8587

@@ -538,6 +540,7 @@ class RegisterDomainStep extends Component {
538540
/>
539541
) }
540542
{ this.renderFilterContent() }
543+
{ this.renderDomainExplanationImage() }
541544
{ this.renderSideContent() }
542545
</div>
543546
{ showAlreadyOwnADomain && (
@@ -761,6 +764,23 @@ class RegisterDomainStep extends Component {
761764
);
762765
}
763766

767+
renderDomainExplanationImage() {
768+
return (
769+
<div className="register-domain-step__domain-side-content-container-domain-explanation-image">
770+
<span></span>
771+
<span></span>
772+
<span className="register-domain-step__domain-side-content-container-domain-explanation-image-url">
773+
https://
774+
{ this.props.translate( 'yoursitename', {
775+
comment: 'example url used to explain what a domain is.',
776+
} ) }
777+
.com
778+
</span>
779+
<span></span>
780+
</div>
781+
);
782+
}
783+
764784
renderContent() {
765785
if ( Array.isArray( this.state.searchResults ) || this.state.loadingResults ) {
766786
return this.renderSearchResults();
@@ -1536,6 +1556,7 @@ class RegisterDomainStep extends Component {
15361556
const { translate, promptText } = this.props;
15371557
return (
15381558
<div className="register-domain-step__example-prompt">
1559+
<Icon icon={ tip } size={ 20 } />
15391560
{ promptText ?? translate( 'The best names are short and memorable' ) }
15401561
</div>
15411562
);

client/components/domains/register-domain-step/style.scss

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
}
6262

6363
.search-component {
64-
overflow: hidden;
6564
border: 1px solid var(--color-border-subtle);
6665
border-radius: 4px;
6766
}
@@ -95,6 +94,19 @@
9594
.register-domain-step__search {
9695
padding-bottom: 12px;
9796

97+
&.register-domain-step__search-domain-step:not(.is-sticky) {
98+
padding-bottom: 16px;
99+
100+
@include breakpoint-deprecated( ">660px" ) {
101+
padding-top: 18px;
102+
103+
.is-section-stepper & {
104+
padding-top: 0;
105+
padding-bottom: 16px;
106+
}
107+
}
108+
}
109+
98110
.card.register-domain-step__search-card {
99111
padding: 0;
100112
display: flex;
@@ -138,7 +150,12 @@
138150
margin: 0 20px;
139151
}
140152

141-
@include break-large {
153+
svg {
154+
fill: #a7aaad;
155+
margin-right: 13px;
156+
}
157+
158+
@include break-xlarge {
142159
margin: 0;
143160
}
144161
}
@@ -279,6 +296,50 @@ body.is-section-signup {
279296
display: block;
280297
}
281298
}
299+
.register-domain-step__domain-side-content-container-domain-explanation-image {
300+
position: relative;
301+
background-color: #d9d8da;
302+
border-top-right-radius: 4px;
303+
border-top-left-radius: 4px;
304+
display: flex;
305+
padding: 10px 5px 30px;
306+
justify-content: space-between;
307+
margin: 20px auto;
308+
max-width: 600px;
309+
310+
@include break-large {
311+
display: none;
312+
}
313+
314+
&::after {
315+
content: "";
316+
width: auto;
317+
height: 20px;
318+
background-color: #f5f5f5;
319+
position: absolute;
320+
border-top-right-radius: 4px;
321+
border-top-left-radius: 4px;
322+
bottom: 0;
323+
left: 10px;
324+
right: 10px;
325+
}
326+
327+
span {
328+
width: 32px;
329+
height: 32px;
330+
background: #fff;
331+
border-radius: 4px;
332+
margin: 3px 6px;
333+
}
334+
}
335+
.register-domain-step__domain-side-content-container-domain-explanation-image-url {
336+
flex-grow: 2;
337+
padding: 0 10px;
338+
line-height: 32px;
339+
font-size: $font-body-extra-small;
340+
text-overflow: ellipsis;
341+
overflow: hidden;
342+
}
282343

283344
.is-domain-plan-package-flow {
284345

0 commit comments

Comments
 (0)