-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get started page UX improvements: add customer quotes card #1449
Get started page UX improvements: add customer quotes card #1449
Conversation
js/src/get-started-page/index.js
Outdated
@@ -14,6 +15,7 @@ const GetStartedPage = () => { | |||
<GetStartedWithVideoCard /> | |||
<BenefitsCard /> | |||
<FeaturesCard /> | |||
<CaseStudiesCard /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅
CaseStudies? In this case I guess it will be more accurate to use CustomerQuotes or Testimonials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both terms of case studies
and customer quotes
appear in the design brief document in this post: pcTzPl-i7-p2#design-requirements. But I agree that customer quotes
is more straightforward, updated in ca06c61, thanks!
// Adjust <CardHeader> imported from @wordpress/components. | ||
// Repeat selector to make it higher priority. | ||
.components-card__header.components-card__header { | ||
flex-direction: column; | ||
padding: $grid-unit * 5.75 $grid-unit * 14 $grid-unit-50; | ||
text-align: center; | ||
|
||
@media (max-width: $break-small) { | ||
padding: $grid-unit-30; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 / 🚧
Inserting this selector inside .components-flex
also works and we can avoid that double selector patch.
.components-flex {
gap: $grid-unit * 3.5;
padding: 0 $grid-unit * 7.75 $grid-unit * 5.75;
&.components-card__header {
flex-direction: column;
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for it! Using this form is clearer, updated in c673732. Also updated for other cards in fd58db1.
Note that it works for CardHeader
since it has .components-flex
class, while CardBody
doesn't have that class so in js/src/get-started-page/benefits-card/index.scss
I still use the repeating selectors hack in order to override the CardBody
's original styles.
</Text> | ||
</CardHeader> | ||
<Flex gap={ 0 }> | ||
<ContentBlock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 I'm not convinced neither by ContentBlock as name for this. Maybe TestimonialItem
or Quote
or Testimonial
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion! Updated in 6404822.
|
||
.components-flex { | ||
gap: $grid-unit * 3.5; | ||
padding: 0 $grid-unit * 7.75 $grid-unit * 5.75; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 / ❓
Not sure if this is already discussed but maybe we can create some SCSS variables for the fonts and some spacing is being reused all over get-started-page
directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion! I added a commit 13e1ac1 to extract some shared variables for font sizes and line heights as they've got more common uses.
There are too many different sizes of the spacing that I've used in get started page based on the design, for example:
10px;
20px;
28px;
40px;
44px;
46px;
50px;
55px;
62px;
88px;
112px;
It's a bit tricky to make them as variables tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good ✅ thanks for working on this.
I'd love to discuss about that "Repeat selector to make it higher priority." hack. I guess there here are more standard ways to do so.
Would be nice also to evaluate the use and creation of variables for the common css values.
Rest of my comments are just opinions about naming.
Hey @puntope, thanks for the review. I pushed some commits based on your suggestions and it's ready for another round of review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the adjustments it looks accurate with design and cleaner now.
Sorry. I want to mention 2 details more before approve. 1 of them seems to be regarding previous PRs since its related to other section.
- I saw that in my tablet in vertical some resolutions the image on benefits-card is not covering the container. Wrapping the image in flex and playing with object-fit: cover maybe solves it.
- In the quotes, if one paragraph is higher than the other (because resolution or content length) it looks unbalanced
Maybe align-items: stretch
??
So it will work best on all resolutions of devices.
I did try With
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ APPROVED good work!
Thanks for all the adjustments. The comment about _shared.scss
here #1460 (comment)
I guess will be addressed in future PR.
Changes proposed in this Pull Request:
Part of #1392, this PR adds the customer quotes card to the new get started page.
Design for desktop: eQ9O4m2flzrcAiDMXkOW0m-fi-7350%3A121231
Design for mobile: eQ9O4m2flzrcAiDMXkOW0m-fi-7476%3A123025
Screenshots:
Desktop
Mobile
Detailed test instructions:
https://domain.test/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fstart
Changelog entry