canonical / ubuntu.com

The official website for the Ubuntu operating system
https://ubuntu.com
Other
201 stars 199 forks source link

Build an example case study using macros #14160

Closed britneywwc closed 2 months ago

britneywwc commented 2 months ago

Done

QA

Issue / Card

Fixes WD-14051

Screenshots

[If relevant, please include a screenshot.]

Help

QA steps - Commit guidelines

webteam-app commented 2 months ago

Demo

Jenkins

demos.haus

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.64%. Comparing base (94cc8cf) to head (68dac1c). Report is 30 commits behind head on case-study-templates.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## case-study-templates #14160 +/- ## ===================================================== Coverage 69.63% 69.64% ===================================================== Files 109 109 Lines 3129 3126 -3 Branches 1092 1090 -2 ===================================================== - Hits 2179 2177 -2 + Misses 925 924 -1 Partials 25 25 ``` [see 18 files with indirect coverage changes](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14160/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical)
juanruitina commented 2 months ago

I also replied to your comment on Figma.

One comment on the implementation in code: will we be able to add some formatting within the text with the current templates (for instance, links, italics...)?

mattea-turic commented 2 months ago

@britneywwc I left some comments in the figma

britneywwc commented 2 months ago
  • [ ] Breadcrumbs at the top are missing.

Is there a template for content writers to control what the breadcrumb title would be? I also had a question about the breadcrumbs heading, left a comment for you in the Figma file.

The contact us link should be aligned to the fourth column as per the design.

In the template, Contact Us is aligned to the first column but on the example it's 4th column. Could you please confirm which to follow?

One comment on the implementation in code: will we be able to add some formatting within the text with the current templates (for instance, links, italics...)?

Yes there will be, there was a comment left by the Vanilla team to tweak the macros to address this. I will be changing the macros to accommodate more text formatting.

Per the image sizes, I'm waiting for Mattea's help to export the images, will try to fix the image widths then.

juanruitina commented 2 months ago

Is there a template for content writers to control what the breadcrumb title would be?

Just added it to the template metadata, it should be the company name 👌🏻 As for the styling, use this component, same implementation as here.

The contact us link should be aligned to the fourth column as per the design.

Aligned to the fourth, I just tweaked it.

britneywwc commented 2 months ago

This is ready for you guys, please have another look!

@juanruitina Per your comment for the figures & captions, I applied your suggestion for using <small> but wrapping it in a <figure> element ruins the image container styles so I will leave it out for now.

juanruitina commented 2 months ago

One minor thing: logo alt shouldn't say "logo", as per the content guidelines. You could also use the company name you used for the breadcrumbs, so "European Space Agency" instead 🤷🏻‍♂️ +1ing this already as it's minor.

Spacing between sections seems huge on desktop, but I defer to visual (@mattea-turic) on the decision there. It's looking cute 💫

britneywwc commented 2 months ago

Thanks for all the reviews! I made a minor tweak to the image section by adding p-image-container--cinematic after seeing's Lyubo's comment and that is causing the bottom two images to have some big spacing between the image and the caption. I think this is because the original image is not in the cinematic ratio, so maybe this is something to be fixed on assets? (@mattea-turic)