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
35 changes: 35 additions & 0 deletions LearningHub.Nhs.WebUI/Styles/nhsuk/pages/jira_roadmap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@use "../../abstracts/all" as *;

.jira-roadmap-intro {
padding-left: 170px;
}

.jira-roadmap-banner {
width: 100%;
padding-bottom: 20px;
background-color: $nhsuk-grey;
}


.jira-roadmap-state {
box-shadow: 0 0 0 1px $nhsuk-border-colour;
border-radius: 8px;
overflow: hidden;
margin-bottom: 16px;
}

.jira-roadmap-state-heading {
display: inline-block;
background-color: $nhsuk-blue;
color: $nhsuk-white;
padding: 9px 20px 13px;
line-height: 1;
border-radius: 8px 0px 8px 0px;
}

.jira-roadmap-card-body {
display: inline-block;
border-radius: 4px 0 4px 0;
padding: 4px 16px;
}

138 changes: 138 additions & 0 deletions LearningHub.Nhs.WebUI/Views/JiraRoadmap/Index.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
@using LearningHub.Nhs.Models.JiraRoadmap

@model LearningHub.Nhs.Models.JiraRoadmap.RoadmapResponseDto




@{
ViewData["Title"] = "Learning Hub Roadmap";
}

@section styles {
<link rel="stylesheet" type="text/css" href="~/css/nhsuk/pages/jira_roadmap.css asp-append-version="true" />

}

@* <style type="text/css">

.jira-roadmap-intro {
padding-left: 170px;
}
.jira-roadmap-banner {
width: 100%;
padding-bottom: 20px;
background-color: $nhsuk-grey-light;
}


.jira-roadmap-state {
box-shadow: 0 0 0 2px $nhsuk-grey-light;
border-radius: 8px;
}

.jira-roadmap-state-heading {
display: inline-block;
background-color: $nhsuk-blue;
color: $nhsuk-white;
border-radius: 8px 0 8px 0;
}


</style> *@


@* @section NavBreadcrumbs {


} *@


<div class="jira-roadmap-banner">
<div class="jira-roadmap-intro">
<div class="nhsuk-grid-column-full">

<h1 class="nhsuk-heading-xl">Learning Hub Roadmap</h1>

<div class="nhsuk-u-reading-width">

<p class="nhsuk-body-l nhsuk-u-reading-width">
Introduction text - needs to be replaced with approved copy.
</p>
</div>
</div>
</div>
</div>



<div class="nhsuk-width-container app-width-container">
<div class="jira-roadmap">
<div class="nhsuk-grid-row">

<div class="nhsuk-grid-column-one-third">
<nav class="nhsuk-contents-list" aria-label="Page contents">
<h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-2">Page contents</h2>
<ol class="nhsuk-contents-list__list">
@foreach (var component in Model.Components)
{
var anchorId = component.ComponentName.ToLower().Replace(" ", "-");

<li class="nhsuk-contents-list__item">
<a class="nhsuk-contents-list__link" href="#@anchorId">@component.ComponentName</a>
</li>
}
</ol>
</nav>
</div>

<div class="nhsuk-grid-column-two-thirds">


@foreach (var component in Model.Components)
{

var anchorId = System.Text.RegularExpressions.Regex
.Replace(component.ComponentName.ToLowerInvariant(), @"[^a-z0-9]+", "-")
.Trim('-');


<h2 id="@anchorId">
@component.ComponentName
</h2>

<p>@component.ComponentDescription</p>

@foreach (var state in component.States)
{
<div class="jira-roadmap-state">




<span class="jira-roadmap-state-heading">
@state.State
</span>

<div class="jira-roadmap-card-body">
<ul class="nhsuk-list">


@foreach (var issue in state.Issues)
{

<li class="jira-roadmap__tick-item">
@issue.Summary
</li>

}
</ul>
</div>

</div>
}
}

</div>

</div>
1 change: 1 addition & 0 deletions LearningHub.Nhs.WebUI/Views/Shared/_FooterPartial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<li class="nhsuk-footer__list-item"><a class="nhsuk-footer__list-item-link" href="@Url.Action("NHSsites", "Home")">NHS sites</a></li>
<li class="nhsuk-footer__list-item"><a class="nhsuk-footer__list-item-link" href="/Policies">Our policies</a></li>
<li class="nhsuk-footer__list-item"><a class="nhsuk-footer__list-item-link" href="/Home/Accessibility">Accessibility statement</a></li>
<li class="nhsuk-footer__list-item"><a class="nhsuk-footer__list-item-link" href="@Url.Action("Index", "JiraRoadmap")">Roadmap</a></li>
}
</ul>
<p class="nhsuk-footer__copyright">&copy; NHS England @DateTime.Now.Year</p>
Expand Down
Loading