Skip to content

Commit 22dad99

Browse files
authored
Merge pull request #1674 from alphagov/migrate-header-and-nav
Add header and nav components to design layout
2 parents cb4716f + 797a396 commit 22dad99

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

app/assets/stylesheets/_base.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
html{
2+
font-size: 16px
3+
}

app/assets/stylesheets/application.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@
2020
@import "layouts/application";
2121

2222
@import "views/shared/form_errors";
23+
@import "base";
24+
@import "govuk_publishing_components/all-components";

app/views/layouts/design_system.html.erb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,20 @@
1313
product_name: "Short URL Manager",
1414
browser_title: "Short URL Manager - GOV.UK"
1515
} do %>
16-
<% end %>
16+
<% end %>
17+
18+
<%= render "govuk_publishing_components/components/layout_header", {
19+
environment: GovukPublishingComponents::AppHelpers::Environment.current_acceptance_environment,
20+
product_name: "Short URL Manager",
21+
signout_link: true
22+
} %>
23+
24+
<%= render "govuk_publishing_components/components/service_navigation", {
25+
navigation_items: [
26+
{
27+
text: "Dashboard",
28+
href: "/",
29+
active: true
30+
}
31+
]
32+
} %>

0 commit comments

Comments
 (0)