diff --git a/CHANGELOG.md b/CHANGELOG.md index ecaad12c..592be089 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Updated start page template to use the `serviceName` variable in the h1 and title tag ([PR 414](https://github.com/nhsuk/nhsuk-prototype-kit/pull/414)) - Update Header to use the `serviceName` variable ([PR 417](https://github.com/nhsuk/nhsuk-prototype-kit/pull/417)) +- Remove example page template with lots of content examples on it ([PR 420](https://github.com/nhsuk/nhsuk-prototype-kit/pull/420)) ## 5.1.0 - 12 November 2024 diff --git a/app/views/index.html b/app/views/index.html index d6a75748..f5be2d8b 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -54,10 +54,6 @@

You'll find the code for this page at /app/views/index.html.

-

- There is also an example page, which contains a selection of NHS.UK frontend styles and components and some page templates. -

-

@@ -75,6 +71,10 @@

+

+ There is a selection of example page templates in /docs/views/. To use these, copy and paste them into /app/views/. +

+ diff --git a/app/views/page-example.html b/app/views/page-example.html deleted file mode 100644 index 97e0c52c..00000000 --- a/app/views/page-example.html +++ /dev/null @@ -1,408 +0,0 @@ - -{% extends 'layout.html' %} - - - -{% block pageTitle %} - Content page example - NHS.UK prototype kit -{% endblock %} - - - -{% block beforeContent %} - {{ breadcrumb({ - href: "/", - text: "Home" - }) }} -{% endblock %} - - - -{% block content %} - -
- -
- - -

- Page heading goes here -

- - - -

- This page example includes a selection of styles and components available to the prototype kit. -

- -

- For more styles, code snippets and guidance on components visit the - NHS digital service manual. -

- -
- A 16:9 image placeholder -
- Image example -
-
- -

Level heading two

- - {% set pastDayContent %} - {{ table({ - responsive: true, - panel: false, - caption: "Past day", - firstCellIsHeader: false, - head: [ - { - text: "Case manager" - }, - { - text: "Cases opened" - }, - { - text: "Cases closed" - } - ], - rows: [ - [ - { - header: "Case manager", - text: "David Francis" - }, - { - header: "Cases opened", - text: "3" - }, - { - header: "Cases closed", - text: "0" - } - ], - [ - { - header: "Case manager", - text: "Paul Farmer" - }, - { - header: "Cases opened", - text: "1" - }, - { - header: "Cases closed", - text: "0" - } - ], - [ - { - header: "Case manager", - text: "Rita Patel" - }, - { - header: "Cases opened", - text: "2" - }, - { - header: "Cases closed", - text: "0" - } - ] - ] - }) }} - {% endset -%} {% set pastWeekContent %} - {{ table({ - responsive: true, - panel: false, - caption: "Past week", - firstCellIsHeader: false, - head: [ - { - text: "Case manager" - }, - { - text: "Cases opened" - }, - { - text: "Cases closed" - } - ], - rows: [ - [ - { - header: "Case manager", - text: "David Francis" - }, - { - header: "Cases opened", - text: "24" - }, - { - header: "Cases closed", - text: "18" - } - ], - [ - { - header: "Case manager", - text: "Paul Farmer" - }, - { - header: "Cases opened", - text: "16" - }, - { - header: "Cases closed", - text: "20" - } - ], - [ - { - header: "Case manager", - text: "Rita Patel" - }, - { - header: "Cases opened", - text: "24" - }, - { - header: "Cases closed", - text: "27" - } - ] - ] - }) }} - {% endset -%} {% set pastMonthContent %} - {{ table({ - responsive: true, - panel: false, - caption: "Past month", - firstCellIsHeader: false, - head: [ - { - text: "Case manager" - }, - { - text: "Cases opened" - }, - { - text: "Cases closed" - } - ], - rows: [ - [ - { - header: "Case manager", - text: "David Francis" - }, - { - header: "Cases opened", - text: "98" - }, - { - header: "Cases closed", - text: "95" - } - ], - [ - { - header: "Case manager", - text: "Paul Farmer" - }, - { - header: "Cases opened", - text: "122" - }, - { - header: "Cases closed", - text: "131" - } - ], - [ - { - header: "Case manager", - text: "Rita Patel" - }, - { - header: "Cases opened", - text: "126" - }, - { - header: "Cases closed", - text: "142" - } - ] - ] - }) }} - {% endset -%} {% set pastYearContent %} - {{ table({ - responsive: true, - panel: false, - caption: "Past year", - firstCellIsHeader: false, - head: [ - { - text: "Case manager" - }, - { - text: "Cases opened" - }, - { - text: "Cases closed" - } - ], - rows: [ - [ - { - header: "Case manager", - text: "David Francis" - }, - { - header: "Cases opened", - text: "1380" - }, - { - header: "Cases closed", - text: "1472" - } - ], - [ - { - header: "Case manager", - text: "Paul Farmer" - }, - { - header: "Cases opened", - text: "1129" - }, - { - header: "Cases closed", - text: "1083" - } - ], - [ - { - header: "Case manager", - text: "Rita Patel" - }, - { - header: "Cases opened", - text: "1539" - }, - { - header: "Cases closed", - text: "1265" - } - ] - ] - }) }} - {% endset -%} - {{ tabs({ - items: [ - { - label: "Past day", - id: "past-day", - panel: { - html: pastDayContent - } - }, - { - label: "Past week", - id: "past-week", - panel: { - html: pastWeekContent - } - }, - { - label: "Past month", - id: "past-month", - panel: { - html: pastMonthContent - } - }, - { - label: "Past year", - id: "past-year", - panel: { - html: pastYearContent - } - } - ] - }) }} - - {{ list({ - "title": "Do", - "type": "tick", - "items": [ - { - "item": "cover blisters that are likely to burst with a soft plaster or dressing" - }, - { - "item": "wash your hands before touching a burst blister" - }, - { - "item": "allow the fluid in a burst blister to drain before covering it with a plaster or dressing" - } - ] - }) }} - - {{ list({ - "title": "Don't", - "type": "cross", - "items": [ - { - "item": "burst a blister yourself" - }, - { - "item": "peel the skin off a burst blister" - }, - { - "item": "pick at the edges of the remaining skin" - }, - { - "item": "wear the shoes or use the equipment that caused your blister until it heals" - } - ] - }) }} - -

- Level heading three -

- -

- Body text: -

- -
    -
  • - The quick brown -
  • -
  • - fox jumps over -
  • -
  • - the lazy dog -
  • -
- - {{ warningCallout({ - "heading": "School, nursery or work", - "HTML": "

Stay away from school, nursery or work until all the spots have crusted over. This is usually 5 days after the spots first appeared.

" - }) }} - -

- Page last reviewed: 15 March 2021
- Next review due: 15 March 2024 -

- - - -
- -
-{% endblock %}