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

Images grid block #68

Merged
merged 8 commits into from
Sep 6, 2023
Merged

Images grid block #68

merged 8 commits into from
Sep 6, 2023

Conversation

Lakshmishri
Copy link
Collaborator

@Lakshmishri Lakshmishri commented Sep 1, 2023

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 1, 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 Sep 1, 2023

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

@Lakshmishri Lakshmishri changed the title wire up images grid Images grid block Sep 4, 2023
@TomaszDziezykNetcentric
Copy link
Collaborator

@Lakshmishri could you update the test link? Now it is pointing to the main page without the component you developed.

@Lakshmishri
Copy link
Collaborator Author

@Lakshmishri could you update the test link? Now it is pointing to the main page without the component you developed.

Done

blocks/v2-images-grid/v2-images-grid.css Outdated Show resolved Hide resolved
blocks/v2-images-grid/v2-images-grid.css Outdated Show resolved Hide resolved
blocks/v2-images-grid/v2-images-grid.js Outdated Show resolved Hide resolved
blocks/v2-images-grid/v2-images-grid.js Outdated Show resolved Hide resolved
width: 37px;
}

.v2-images-grid-title {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use BEM for the classnames? 🙏🏻

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if the title should be part of the image grid or text block, but in case it is, the designs are using H2 font, not h1.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can we use BEM for the classnames? 🙏🏻

Done

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if the title should be part of the image grid or text block, but in case it is, the designs are using H2 font, not h1.

I have removed it as Tomas mentioned it's part cards block

}

.redesign-v2 .v2-images-grid-container .v2-images-grid-wrapper {
padding: 0 100px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to remove the padding: 0 200px from styles and use max-width: var(--wrapper-width) instead. So all the blocks follow the same size.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed that

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 5, 2023

Page Scores Audits Google
/drafts/lakshmi/v2/images-grid PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 5, 2023

Page Scores Audits Google
/drafts/lakshmi/v2/images-grid PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 5, 2023

Page Scores Audits Google
/drafts/lakshmi/v2/images-grid PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

background-color: var(--c-secondary-graphite);
right: 10px;
text-transform: uppercase;
font: var(--body-2-font-size)/16px var(--ff-body);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Outcome should be font-size: 12px with var(--ff-body-bold) to achieve bold text

// give format to the first 4 list items
[...ul.children].forEach((li, idx) => {
if (idx < 4) {
const section = createElement('div');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we get rid of this <div> that seemingly does nothing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

text-align: center;
position: absolute;
bottom: 10px;
padding: 9px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be padding: 9px 9px 7px;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did see that in figma, but rounded to 9px on all sides

@aem-code-sync
Copy link
Contributor

aem-code-sync bot commented Sep 6, 2023

Page Scores Audits Google
/drafts/lakshmi/v2/images-grid PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@Lakshmishri
Copy link
Collaborator Author

Lakshmishri commented Sep 6, 2023

@cogniSyb - can you confirm if this (Images grid carousel#38)is part of MVP . If not we should hide the button for MVP

blocks/v2-images-grid/v2-images-grid.css Show resolved Hide resolved
.v2-images-grid__item:nth-child(4) { grid-area: area4; }

.v2-images-grid__item img {
height: var(--v2-images-grid-big-height);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Set the height to 100%

blocks/v2-images-grid/v2-images-grid.css Show resolved Hide resolved
blocks/v2-images-grid/v2-images-grid.css Show resolved Hide resolved
blocks/v2-images-grid/v2-images-grid.css Show resolved Hide resolved
width: 100%;
}

.v2-images-grid__item:nth-child(2) img, .v2-images-grid__item:nth-child(3) img {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this

display: none;
}

@media screen and (min-width: 744px) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this

blocks/v2-images-grid/v2-images-grid.css Show resolved Hide resolved
--v2-images-grid-padding-space: 40px;
}

.v2-images-grid__item img {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this

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

aem-code-sync bot commented Sep 6, 2023

Page Scores Audits Google
/drafts/lakshmi/v2/images-grid PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@Lakshmishri Lakshmishri merged commit ba66a3b into main Sep 6, 2023
2 checks passed
@Lakshmishri Lakshmishri deleted the 24-images-grid branch September 6, 2023 15:05
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.

Images grid
4 participants