Skip to content
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

feat(cxl-ui): cxl-featured-course-card v2 #340

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

HenerHoop
Copy link

@github-actions
Copy link

github-actions bot commented Sep 28, 2023

size-limit report 📦

Path Size
packages/cxl-ui/pkg/dist-web/cxl-ui.js 63.46 KB (+0.29% 🔺)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js 11.87 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js 27.65 KB (+0.37% 🔺)
packages/cxl-ui/pkg/dist-web/vendor.js 135.58 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js, packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js, packages/cxl-ui/pkg/dist-web/cxl-ui.js, packages/cxl-ui/pkg/dist-web/manifest.js, packages/cxl-ui/pkg/dist-web/unresolved.js, packages/cxl-ui/pkg/dist-web/vendor.js 239.71 KB (+0.12% 🔺)

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 99c325e to 579afce Compare October 2, 2023 09:28
@pawelkmpt pawelkmpt requested a review from anoblet October 3, 2023 13:05
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Different line heights on single vs slider.

Screenshot 2023-10-03 at 15 05 54
Screenshot 2023-10-03 at 15 06 00


  1. Remove border radius from header .instructor-image. It inherits style from base card

Screenshot 2023-10-03 at 15 15 10


  1. Commit message - please use component name as we used in the past.
- feat(cxl-ui): Featured card v2
+ feat(cxl-ui): cxl-featured-course-card v2

packages/cxl-lumo-styles/scss/global.scss Outdated Show resolved Hide resolved
packages/cxl-ui/scss/cxl-featured-course-card.scss Outdated Show resolved Hide resolved
packages/cxl-ui/scss/cxl-featured-course-card.scss Outdated Show resolved Hide resolved
packages/cxl-ui/scss/cxl-featured-course-card.scss Outdated Show resolved Hide resolved
packages/cxl-ui/scss/cxl-featured-course-card.scss Outdated Show resolved Hide resolved
packages/cxl-lumo-styles/scss/color.scss Show resolved Hide resolved
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it on WPS on https://github.com/conversionxl/cxl-wpstarter/pull/229 branch and found few glitches.

1. Short vs long content on slide

Screenshot 2023-10-04 at 05 46 03 Screenshot 2023-10-04 at 05 46 16

2. Long content looks bad on certain screen size

Screenshot 2023-10-04 at 05 46 51

3. Header section without dark background looks bad
Screenshot 2023-10-04 at 05 47 20

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 579afce to c7bcb88 Compare October 4, 2023 04:27
@HenerHoop HenerHoop changed the title feat(cxl-ui): Featured card v2 feat(cxl-ui): cxl-featured-course-card v2 Oct 4, 2023
@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch 2 times, most recently from 5055a21 to 8eba16e Compare October 4, 2023 07:18
@HenerHoop
Copy link
Author

I tested it on WPS on conversionxl/cxl-wpstarter#229 branch and found few glitches.

1. Short vs long content on slide

Screenshot 2023-10-04 at 05 46 03 Screenshot 2023-10-04 at 05 46 16
2. Long content looks bad on certain screen size

Screenshot 2023-10-04 at 05 46 51 **3. Header section without dark background looks bad** Screenshot 2023-10-04 at 05 47 20

@pawelkmpt

  1. What can we do here? With this task, the categories area should become smaller.
  2. I see a slightly different view with the same dimensions. The mobile layout is kept until the large breakpoint.
  3. "Make the header grey - ignore the changes inside the header for now (these are still being iterated on)". It seems like it's not working at the moment, or should I make more changes within the header as well?

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 8eba16e to 9ac2814 Compare October 4, 2023 09:14
@pawelkmpt
Copy link

"Make the header grey - ignore the changes inside the header for now (these are still being iterated on)". It seems like it's not working at the moment, or should I make more changes within the header as well?

I think @heshfekry wanted to share that we're still iterating on the new look of this section (bigger cards) and didn't expect that gray background would make header section look bad.

Please just make it look decent with minimal effort. Get inspired by the screenshot in the card, e.g. "Continue" part could be simply tweaked.

@pawelkmpt
Copy link

Adjust tag card:

- Featured-Course
+ Featured Course

@pawelkmpt
Copy link

  1. I see a slightly different view with the same dimensions. The mobile layout is kept until the large breakpoint.

It looks better now. Maybe missed something in setup before.

Screenshot 2023-10-04 at 15 35 57

@pawelkmpt
Copy link

  1. What can we do here? With this task, the categories area should become smaller.

It more about the course title. I think we should think about how to handle such differences.

@pawelkmpt
Copy link

Black button on the black background causes weird padding on the left. Please remove it.

Screenshot 2023-10-04 at 15 44 27

@pawelkmpt
Copy link

@HenerHoop @heshfekry I know why it looks so ugly on mobile:

  • :host .container .name -> font-size should be 22px according to the design (var(--lumo-font-size-xl))
  • make :host .content-before .instructor-image max-height: calc(var(--lumo-space-xl)*4); on mobile

It will result in:

Screenshot 2023-10-05 at 06 10 18 Screenshot 2023-10-05 at 06 10 30

@HenerHoop
Copy link
Author

HenerHoop commented Oct 5, 2023

Adjust tag card:

- Featured-Course
+ Featured Course

@pawelkmpt @freudFlintstone
Do you know why we use the theme value as the first tag in the _renderHeaderTags method? Using 'Featured courses' with a space means that styles are targeted in CSS based on 'courses'.

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 9ac2814 to 8f75aac Compare October 5, 2023 08:13
@HenerHoop
Copy link
Author

@pawelkmpt Regarding the theme, one question to which you or Raphael might be able to answer. I also made some improvements to the header styles.

@HenerHoop HenerHoop requested a review from pawelkmpt October 5, 2023 10:17
@pawelkmpt
Copy link

@pawelkmpt @freudFlintstone Do you know why we use the theme value as the first tag in the _renderHeaderTags method? Using 'Featured courses' with a space means that styles are targeted in CSS based on 'courses'.

It corresponded with initial design.

Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Small tweaks needed.

Single course is broken in Storybook:

Screenshot 2023-10-05 at 13 22 26

}

@media #{mq.$medium} {
@media #{mq.$large} {
position: absolute;
top: 0;
right: var(--lumo-space-l);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
right: var(--lumo-space-l);
right: var(--lumo-space-xl);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pawelkmpt Should look better now. But there's still an issue with that first tag. It currently works when I use 'Featured courses' with a hyphen or something that doesn't include the word 'courses' separately.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it by changing the 'Featured-course' tag to 'Featured'.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check base card code (and maybe changes history). I think it's handled there.

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch 2 times, most recently from c2df872 to c254689 Compare October 6, 2023 07:54
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storybook - misaligned arrows

Screenshot 2023-10-06 at 09 56 31


WPS - roadmap button almost invisible

Screenshot 2023-10-06 at 10 04 53

@pawelkmpt
Copy link

@heshfekry do you have any suggestions to colors of header section?

Screenshot 2023-10-06 at 10 05 15

@heshfekry
Copy link

heshfekry commented Oct 6, 2023

@heshfekry do you have any suggestions to colors of header section?

Screenshot 2023-10-06 at 10 05 15

Ye drop the borders (including the red, as that is hover state) and introduce shadows like here.

Add white box around roadmap component.

Make 2 CTAs white. with black text.

Basically match this design, without the red border.

image

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from c254689 to 6845a62 Compare October 6, 2023 13:50
@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 6845a62 to 639ab2d Compare October 6, 2023 13:54
@HenerHoop HenerHoop requested a review from pawelkmpt October 6, 2023 13:59
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single slide

Screenshot 2023-10-06 at 16 34 13

@HenerHoop HenerHoop force-pushed the hener/feat/featured-card-v2 branch from 952b8d6 to d7365b6 Compare October 9, 2023 08:05
@HenerHoop HenerHoop requested a review from pawelkmpt October 9, 2023 08:06
@pawelkmpt pawelkmpt merged commit 935d8ec into master Oct 9, 2023
4 checks passed
@pawelkmpt pawelkmpt deleted the hener/feat/featured-card-v2 branch October 9, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants