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

docs: build home page #1160

Merged
merged 43 commits into from
Feb 28, 2025
Merged

docs: build home page #1160

merged 43 commits into from
Feb 28, 2025

Conversation

ehtabrizi
Copy link
Contributor

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

@ehtabrizi ehtabrizi added the preview:request Deploy PR to a preview url label Feb 12, 2025
@ehtabrizi ehtabrizi requested a review from a team as a code owner February 12, 2025 14:06
@ehtabrizi ehtabrizi linked an issue Feb 12, 2025 that may be closed by this pull request
Copy link

🚀 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: preview, Password: moj

@github-actions github-actions bot removed the preview:request Deploy PR to a preview url label Feb 12, 2025
Copy link

🚀 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: preview, Password: moj

Copy link
Contributor

@jbarnardmoj jbarnardmoj left a 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)

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

@ehtabrizi ehtabrizi changed the title 1082 build home page feat: #1082 build home page Feb 13, 2025
@ehtabrizi ehtabrizi changed the title feat: #1082 build home page feat: build home page Feb 13, 2025
Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

@Whersi Whersi requested a review from chrispymm February 28, 2025 14:01
{% endif -%}

<img {{- govukAttributes({
loading: "lazy",
Copy link
Contributor

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.

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

}
}

&__full {
Copy link
Contributor

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)

Comment on lines 12 to 16
@include govuk-media-query($from: desktop) {
> div {
padding-right: 130px;
}
}
Copy link
Contributor

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

Suggested change
@include govuk-media-query($from: desktop) {
> div {
padding-right: 130px;
}
}
}
.app-layout__content {
@include govuk-media-query($from: desktop) {
padding-right: 130px;
}
}

Copy link
Contributor

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">

Comment on lines 68 to 70
.govuk-link--inverse {
@extend .govuk-link--inverse;
}
Copy link
Contributor

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!

Copy link

🚀 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: preview, Password: moj

<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">
Copy link
Contributor

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

Suggested change
<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>
Copy link
Contributor

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?

Copy link
Contributor Author

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" }) %}
Copy link
Contributor

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)

Suggested change
{% call card({ "layout": "full", "title": "How to choose the right prototyping tool" }) %}
{% call card({
layout: "full",
title: "How to choose the right prototyping tool"
}) %}

Copy link

🚀 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: preview, Password: moj

Copy link

🚀 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: preview, Password: moj

@ehtabrizi ehtabrizi merged commit b9b1a37 into main Feb 28, 2025
10 checks passed
@ehtabrizi ehtabrizi deleted the 1082-build-home-page branch February 28, 2025 15:27
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.

Build home page
6 participants