-
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.
Added: - a get started section - a contribution section - a what's new section - main navigation
- Loading branch information
1 parent
0f1158a
commit 02dc468
Showing
33 changed files
with
524 additions
and
167 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
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,52 @@ | ||
{% extends "./sidebar.njk" %} | ||
|
||
{%- from "./partials/side-navigation.njk" import appSideNavigation %} | ||
|
||
{% block breadcrumb %} | ||
{% if title === "Community" %} | ||
{{ breadcrumb({ | ||
href: "/", | ||
text: "Home" | ||
}) }} | ||
{% else %} | ||
{{ breadcrumb({ | ||
items: [ | ||
{ | ||
href: "/", | ||
text: "Home" | ||
} | ||
], | ||
href: "/community", | ||
text: "Community" | ||
}) }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% set sidebar %} | ||
{{ appSideNavigation({ | ||
label: 'Contributing and support', | ||
currentPath: page.url, | ||
sections: [ | ||
{ | ||
heading: { | ||
text: 'Contributing' | ||
}, | ||
items: collections.contribution | sort(attribute="data.title") | ||
}, | ||
{ | ||
heading: { | ||
text: 'Support' | ||
}, | ||
items: collections.community | sort(attribute="data.title") | ||
} | ||
] | ||
}) }} | ||
{% endset %} | ||
|
||
{% block main %} | ||
<h1 class="nhsuk-heading-xl nhsuk-u-margin-bottom-5"> | ||
{{ title }} | ||
</h1> | ||
<p class="nhsuk-u-margin-bottom-5">{{ description }}</p> | ||
{{ content | safe }} | ||
{% endblock %} |
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,45 @@ | ||
{% extends "./sidebar.njk" %} | ||
|
||
{%- from "./partials/side-navigation.njk" import appSideNavigation %} | ||
|
||
{% block breadcrumb %} | ||
{% if title === "Get started" %} | ||
{{ breadcrumb({ | ||
href: "/", | ||
text: "Home" | ||
}) }} | ||
{% else %} | ||
{{ breadcrumb({ | ||
items: [ | ||
{ | ||
href: "/", | ||
text: "Home" | ||
} | ||
], | ||
href: "/get-started", | ||
text: "Get started" | ||
}) }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% set sidebar %} | ||
{{ appSideNavigation({ | ||
label: 'How we work', | ||
currentPath: page.url, | ||
sections: [ | ||
{ | ||
heading: { | ||
text: 'How we work' | ||
}, | ||
items: collections.getStarted | ||
} | ||
] | ||
}) }} | ||
{% endset %} | ||
|
||
{% block main %} | ||
<h1 class="nhsuk-heading-xl nhsuk-u-margin-bottom-7"> | ||
{{ title }} | ||
</h1> | ||
{{ content | safe }} | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<h2>Help improve this component</h2> | ||
<p>If you have used or researched this component, please let us know what you found so we can make it better for everyone.</p> | ||
<p><a href="https://github.com/nhsuk/nhsapp-frontend/issues/{{ backlogID }}">Discuss '{{ title }}' on GitHub</a> where you can share anything you think might be useful.</p> | ||
<p>You can also <a href="/help-and-feedback/">share feedback with us on Slack</a>.</p> | ||
<p>You can also <a href="/community/help-and-feedback/">share feedback with us on Slack</a>.</p> |
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,6 @@ | ||
<div class="app-callout"> | ||
<div class="app-callout__content"> | ||
<h2 class="nhsuk-heading-m">Get help</h2> | ||
<p>The NHS App design system team provides support for users of the NHS App design system. <a href="/community/help-and-feedback/">Contact us</a> to ask for help.</p> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.app-content { | ||
// So images do not break the container | ||
img { | ||
max-width: 100%; | ||
border: nhsuk-spacing(1) solid $app-img-border-color; | ||
max-width: 100%; // So images do not break the container | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Custom component for the NHS App deign system documentation | ||
.app-callout { | ||
@include nhsuk-responsive-margin(5, "bottom"); | ||
@include nhsuk-responsive-padding(4); | ||
|
||
border: nhsuk-spacing(1) solid $app-brand-color; | ||
|
||
&__content { | ||
@include reading-width(); | ||
|
||
:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} |
Oops, something went wrong.