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

Columns block #65

Merged
merged 15 commits into from
Sep 7, 2023
Merged

Columns block #65

merged 15 commits into from
Sep 7, 2023

Conversation

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 30, 2023

Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-run PSI Checks

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 30, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 30, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.js Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
blocks/v2-columns/v2-columns.css Show resolved Hide resolved
blocks/v2-columns/v2-columns.js Outdated Show resolved Hide resolved
align-items: center;
}

.v2-columns .v2-columns-image,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid unnecessary specificity, for example this can be changed to: .v2-columns-image, .v2-columns-content

Check all the document ;)

margin: 0;
}

.v2-columns .v2-columns-content h1.v2-columns-content__headline {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid using tags h1, p in CSS as much as possible.
What will happen if the editor decides to use h2 instead of h1? The styles won't be applied. But if you just use the class, any tag containing the class will be styled.

blocks/v2-columns/v2-columns.js Outdated Show resolved Hide resolved
@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 31, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

blocks/v2-columns/v2-columns.css Outdated Show resolved Hide resolved
@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 31, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Aug 31, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 1, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/columns PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 1, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 4, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@SantiagoHomps-NC
Copy link
Contributor Author

If there is more than 1 button they are sticking to each other. I think you don't need the image-last, image-first class as it can be handled via content to display the image / content first

you're right... the class is not necessary. I also changed the styling to the buttons so that if there are more they get a little margin

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 4, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@TomaszDziezykNetcentric
Copy link
Collaborator

TomaszDziezykNetcentric commented Sep 4, 2023

V2 columns now gathers all the text from all the columns and put it inside one column. For the block:
obraz
The output is:
obraz
The logic should be done for every column like:
columns.forEach(...)

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 5, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Collaborator

@kesiah kesiah left a comment

Choose a reason for hiding this comment

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

In mobile, I'm not sure about centring the items while other components will be left aligned and using 100% of the viewport width. @cogniSyb what should we do?
image

In desktop, the width of the column is not the same as the rest of the components. They should be aligned.
Screenshot 2023-09-05 at 10 24 43

@cogniSyb @Lakshmishri should the order of the items in the columns be the same always in mobile? I mean, image + text? Currently, depending on how they are introduced by the editor, we show image + text or text + image, should we align them both in mobile or not?

placeholder.json Outdated Show resolved Hide resolved
@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 5, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@cogniSyb
Copy link
Collaborator

cogniSyb commented Sep 6, 2023

In mobile, I'm not sure about centring the items while other components will be left aligned and using 100% of the viewport width. @cogniSyb what should we do? image

In desktop, the width of the column is not the same as the rest of the components. They should be aligned. Screenshot 2023-09-05 at 10 24 43

@cogniSyb @Lakshmishri should the order of the items in the columns be the same always in mobile? I mean, image + text? Currently, depending on how they are introduced by the editor, we show image + text or text + image, should we align them both in mobile or not?

I think we should do the same as the testimonial block: text, then image

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 6, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@TomaszDziezykNetcentric
Copy link
Collaborator

TomaszDziezykNetcentric commented Sep 6, 2023

I think we should do the same as the testimonial block: text, then image

done

@kesiah kesiah self-requested a review September 6, 2023 15:56
Copy link
Collaborator

@cogniSyb cogniSyb left a comment

Choose a reason for hiding this comment

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

We should have two squares, that fit in the container of 1040px:
Screenshot 2023-09-06 at 18 10 54

Both squares should be maximum 512px. The container has a gap of 16px. The square with the text content has some padding:
Screenshot 2023-09-06 at 18 08 08

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 7, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 7, 2023

Page Scores Audits Google
/drafts/shomps/redesign/columns/test PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@TomaszDziezykNetcentric
Copy link
Collaborator

We should have two squares, that fit in the container of 1040px: Screenshot 2023-09-06 at 18 10 54

Both squares should be maximum 512px. The container has a gap of 16px. The square with the text content has some padding: Screenshot 2023-09-06 at 18 08 08

Done. The container is 1040px. Column max width is 512px (with aspect ratio 1:1 for image and text column is centered).
The text column has left and right padding (56px). There is a 16px gap between columns

@Lakshmishri Lakshmishri merged commit e21bd13 into main Sep 7, 2023
2 checks passed
@Lakshmishri Lakshmishri deleted the 41-v2-columns-block branch September 7, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V2 Columns block
9 participants