forked from NHSDigital/nhs-notify-web-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 7b904fc Author: Ross Buggins <[email protected]> Date: Tue Nov 19 17:02:42 2024 +0000 Quick and easy js to auto hide. commit 8aed356 Author: Jake Cosgrove <[email protected]> Date: Tue Nov 19 16:05:22 2024 +0000 Developer banner and new site banner commit a3d47d2 Author: Jake Cosgrove <[email protected]> Date: Mon Nov 11 15:47:17 2024 +0000 removed phase banner and underlines from primary nav list items when hovered commit 3a30f41 Author: Jake Cosgrove <[email protected]> Date: Mon Nov 11 13:50:40 2024 +0000 removed border from phase banner commit fc61be5 Author: Jake Cosgrove <[email protected]> Date: Fri Nov 8 16:32:05 2024 +0000 Added phase banner component and related sass. Added new template for including pages of content that does not need a side-navigation. commit 45d34e6 Author: Jake Cosgrove <[email protected]> Date: Tue Nov 5 21:59:47 2024 +0000 two-third column tests
- Loading branch information
1 parent
1c54ab4
commit 4b271f9
Showing
8 changed files
with
126 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="nhsuk-phase-banner" id="{{include.phase_id}}"> | ||
<div class="nhsuk-width-container"> | ||
<p class="nhsuk-phase-banner__content"> | ||
<strong class="nhsuk-tag">{{include.phase_tag}}</strong> | ||
<span class="nhsuk-phase-banner__text">{{include.phase_text}}</span> | ||
</p> | ||
</div> | ||
</div> | ||
<script> | ||
console.log("{{include.auto_hide}}") | ||
if ("{{include.auto_hide}}" == 'true' && (window.location.hostname.startsWith('notify.nhs.uk') || window.location.hostname.startsWith('127.0.0.2'))) { | ||
document.getElementById("{{ include.phase_id }}").style.visibility = 'hidden'; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
{% assign current_dir = page.dir %} | ||
{% assign paths = page.dir | split: "/" %} | ||
{% assign parent_dir = paths[1] %} | ||
|
||
{%- | ||
assign nav_pages = site.pages | ||
| where_exp: "item", "item.dir contains parent_dir" | ||
-%} | ||
|
||
{% assign first_level_dir = parent_dir | prepend: '/' | append: '/' %} | ||
{%- | ||
assign first_level = nav_pages | ||
| where_exp: "item", "item.dir == first_level_dir" | ||
| group_by: "section" | ||
| sort: 'name', 'last' | ||
-%} | ||
|
||
<div class="nhsuk-width-container"> | ||
<main class="nhsuk-main-wrapper" id="maincontent" role="main"> | ||
<div class="nhsuk-grid-row"> | ||
<div class="nhsuk-grid-column-full"> | ||
<div class="nhsnotify-pane__main-content nhsuk-grid-column-three-quarters"> | ||
{% if page.section != undefined %} | ||
<heading class="nhsuk-heading-s" style="margin-bottom: 0; color: #4c6272">{{ page.section }}</heading> | ||
{% endif %} | ||
<h1>{{ page.title }}</h1> | ||
{{ content }} | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters