-
Notifications
You must be signed in to change notification settings - Fork 24
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
docs: build home page #1160
docs: build home page #1160
Conversation
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good; just needs a run through prettier (I think there's some spacing issues in the scss files)
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
{% endif -%} | ||
|
||
<img {{- govukAttributes({ | ||
loading: "lazy", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a height
and width
on the image to prevent layout shift? Without it the browser can't determine the aspect ratio to know how much space to reserve before the image is loaded.
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
} | ||
} | ||
|
||
&__full { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, quick one, can this be --full
as it adds a modifier (rather than a new element)
@include govuk-media-query($from: desktop) { | ||
> div { | ||
padding-right: 130px; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we split out > div
to .app-layout__content
so it's not as fragile?
Lets the content move (or change element) without breaking
@include govuk-media-query($from: desktop) { | |
> div { | |
padding-right: 130px; | |
} | |
} | |
} | |
.app-layout__content { | |
@include govuk-media-query($from: desktop) { | |
padding-right: 130px; | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know where the 130px comes from btw?
Wondered if it was supposed to adhere to a grid size, e.g. "three quarters" instead?
<div class="govuk-grid-row">
<div class="govuk-grid-column-full govuk-grid-column-three-quarters-from-desktop">
.govuk-link--inverse { | ||
@extend .govuk-link--inverse; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is extending itself, can you check? Sorry!
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
<a class="govuk-link govuk-link--inverse" href="https://design-system.service.gov.uk/"> | ||
GOV.UK Design System</a>. | ||
</p> | ||
<p class="govuk-!-margin-bottom-0"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably fine until we remove app-prose
but one for later
<p class="govuk-!-margin-bottom-0"> | |
<p class="govuk-body govuk-!-margin-bottom-0"> |
You can get involved with community components by adding a new one, | ||
or providing information and feedback about an existing one. | ||
</p> | ||
<a class="gov-link" href="#">Discover more about collaborating with the community</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we got the link for this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Colin, not rendered via global commuinty var.
}) }} | ||
|
||
<div class="govuk-grid-row"> | ||
{% call card({ "layout": "full", "title": "How to choose the right prototyping tool" }) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker in the slightest, just Nunjucks formatting
(Others below)
{% call card({ "layout": "full", "title": "How to choose the right prototyping tool" }) %} | |
{% call card({ | |
layout: "full", | |
title: "How to choose the right prototyping tool" | |
}) %} |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL: https://moj-frontend-1082-build-home-page.apps.live.cloud-platform.service.justice.gov.uk Username: |
Issue or RFC endorsed by the maintainers
#1082
Description of the change
Update homepage to follow new design approah
Alternative designs
N/A
Possible drawbacks
N/A
Verification process
Check that design follows the specification and works on all devices
Release notes
N/A