Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/assets/images/app-promo/govuk-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions app/assets/stylesheets/views/_sign-in.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@import "govuk_publishing_components/individual_component_support";

.app-promo {
padding-top: govuk-spacing(6);
border-top: 4px solid $govuk-brand-colour;
margin-top: govuk-spacing(8);

@include govuk-media-query($from: "tablet") {
margin-top: govuk-spacing(9);
}

.gem-c-image-card {
display: flex;
margin-bottom: 0;
}

.gem-c-image-card__description {
text-wrap: balance;
}

.gem-c-image-card__image-wrapper.gem-c-image-card__image-wrapper--one-third {
flex-basis: 100px;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just noting that including text balance might be useful here, though it’s definitely not required.

.gem-c-image-card__description {
    text-wrap: balance;
}

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, I've made this change as suggested

19 changes: 19 additions & 0 deletions app/views/help/sign_in.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%
add_view_stylesheet("sign-in")
# These components aren't found in the templates, but the styles are still
# needed as they're used within the sign in page's `content_item`.
add_gem_component_stylesheet("document-list")
Expand Down Expand Up @@ -71,5 +72,23 @@
text: t("help.sign_in.search_for_a_service_button"),
secondary_solid: true %>
</form>

<div class="govuk-!-width-full app-promo">
<%= render "govuk_publishing_components/components/image_card", {
two_thirds: true,
href: "/guidance/download-the-govuk-app",
image_src: asset_path("app-promo/govuk-app-icon.png"),
heading_text: "Get the GOV.UK app",
description: "Your government services and information, on the go.",
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add these to the locale files, but it might not be necessary now since we don’t know how long the promo will run.

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, I've added this suggestion to the image card component improvement ticket.

data_attributes: {
module: "ga4-link-tracker",
ga4_link: {
event_name: "navigation",
type: "image card",
},
},
} %>
</div>

</div>
</div>
1 change: 1 addition & 0 deletions config/initializers/dartsass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"views/_service-manual-topic.scss" => "views/_service-manual-topic.css",
"views/_service-toolkit.scss" => "views/_service-toolkit.css",
"views/_sidebar-navigation.scss" => "views/_sidebar-navigation.css",
"views/_sign-in.scss" => "views/_sign-in.css",
"views/_specialist-document.scss" => "views/_specialist-document.css",
"views/_travel-advice.scss" => "views/_travel-advice.css",
"views/_landing_page.scss" => "views/_landing_page.css",
Expand Down