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

Styling focus page to similar design #23

Merged
merged 8 commits into from
Feb 29, 2024
Merged

Conversation

Copy link

aem-code-sync bot commented Feb 27, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync aem-code-sync bot temporarily deployed to feature/style-focus-page February 27, 2024 16:44 Inactive
@nagarajnetcentric nagarajnetcentric changed the title Feature/style focus page Styling focus page Feb 28, 2024
@nagarajnetcentric nagarajnetcentric changed the title Styling focus page Styling focus page to similar design Feb 28, 2024
Copy link

aem-code-sync bot commented Feb 28, 2024

Page Scores Audits Google
/focus/ships/interstellar-leisure-cruiser PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI


const content = `<h2>SPECIFICATIONS</h2><div><p>Learn more about the ${document.querySelector('h1').textContent} and its technical specifications.</p></div>
<table class="spec-table"><tr><th>length</th><th>width</th><th>height</th><th>weight</th></tr>
<tr><td>${specs.Length}</td><td>${specs.Width}</td><td>${specs.Height}</td><td>${specs.Weight}</td></tr><table></div>`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't a table restrict us quite a bit when doing a mobile version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are we going to support mobile version in future?

addSpeedInformation(specificationsObj.Range, infoContainer);
// Temp content as it is not received from document
addSpeedInformation('570 light years', infoContainer);
addSpeedInformation('2.6 Sec', infoContainer);
Copy link
Collaborator

Choose a reason for hiding this comment

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

as discussed let's take length and number of passengers instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will change it in few mins

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated but some styling should be done

document.body.dataset.features = specification.features;
document.body.dataset.specification = specification.specifications;
} catch (e) {
console.error('could not load specifications', e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add the eslint ignore here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added


/* stylelint-disable-next-line no-descending-specificity */
.default-content-wrapper .spec-container p {
margin-left: 0 !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we really need important?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes because it is been overridden by other stylebody.ship-focus .default-content-wrapper p:not(p ~ p) .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed

Copy link
Collaborator

Choose a reason for hiding this comment

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

don't we do other viewports too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Question, are we supporting other view ports?
Uploading Screenshot 2024-02-28 at 09.51.07.png…

}

.default-content-wrapper h3:nth-child(odd) {
float: right;
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we rather use grid or flex instead of floating?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need to check as there is no block or parent element.

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

@aem-code-sync aem-code-sync bot temporarily deployed to feature/style-focus-page February 28, 2024 17:57 Inactive
@alexiscoelho alexiscoelho merged commit 59e42a1 into main Feb 29, 2024
2 checks passed
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.

3 participants