Skip to content

Commit 4a9a52c

Browse files
authored
Merge pull request #5035 from alphagov/add-app-promo-to-sign-in-page
Add govuk app promo to sign-in page
2 parents 435d6f5 + f8c1474 commit 4a9a52c

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
3.75 KB
Loading
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@import "govuk_publishing_components/individual_component_support";
2+
3+
.app-promo {
4+
padding-top: govuk-spacing(6);
5+
border-top: 4px solid $govuk-brand-colour;
6+
margin-top: govuk-spacing(8);
7+
8+
@include govuk-media-query($from: "tablet") {
9+
margin-top: govuk-spacing(9);
10+
}
11+
12+
.gem-c-image-card {
13+
display: flex;
14+
margin-bottom: 0;
15+
}
16+
17+
.gem-c-image-card__description {
18+
text-wrap: balance;
19+
}
20+
21+
.gem-c-image-card__image-wrapper.gem-c-image-card__image-wrapper--one-third {
22+
flex-basis: 100px;
23+
}
24+
}

app/views/help/sign_in.html.erb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<%
2+
add_view_stylesheet("sign-in")
23
# These components aren't found in the templates, but the styles are still
34
# needed as they're used within the sign in page's `content_item`.
45
add_gem_component_stylesheet("document-list")
@@ -71,5 +72,23 @@
7172
text: t("help.sign_in.search_for_a_service_button"),
7273
secondary_solid: true %>
7374
</form>
75+
76+
<div class="govuk-!-width-full app-promo">
77+
<%= render "govuk_publishing_components/components/image_card", {
78+
two_thirds: true,
79+
href: "/guidance/download-the-govuk-app",
80+
image_src: asset_path("app-promo/govuk-app-icon.png"),
81+
heading_text: "Get the GOV.UK app",
82+
description: "Your government services and information, on the go.",
83+
data_attributes: {
84+
module: "ga4-link-tracker",
85+
ga4_link: {
86+
event_name: "navigation",
87+
type: "image card",
88+
},
89+
},
90+
} %>
91+
</div>
92+
7493
</div>
7594
</div>

config/initializers/dartsass.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"views/_service-manual-topic.scss" => "views/_service-manual-topic.css",
2323
"views/_service-toolkit.scss" => "views/_service-toolkit.css",
2424
"views/_sidebar-navigation.scss" => "views/_sidebar-navigation.css",
25+
"views/_sign-in.scss" => "views/_sign-in.css",
2526
"views/_specialist-document.scss" => "views/_specialist-document.css",
2627
"views/_travel-advice.scss" => "views/_travel-advice.css",
2728
"views/_landing_page.scss" => "views/_landing_page.css",

0 commit comments

Comments
 (0)