From ba5f75dc7aa4aa0ab1048e58ae68dd0ee534946d Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Fri, 22 Nov 2024 13:59:53 +0000 Subject: [PATCH] Update default index page (#423) Following #419, this updates the default index page to give clearer guidance on how to: * set the service name (which is now set to "Service name goes here" by default) * edit the index page * use the external links and included example templates Inspired by the GOV.UK Prototype kit default index page. --- CHANGELOG.md | 1 + app/views/index.html | 43 +++++++++++++++++-------------------------- app/views/layout.html | 8 ++++---- 3 files changed, 22 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d878c5d0..1dbbe493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Remove example page template with lots of content examples on it ([PR 420](https://github.com/nhsuk/nhsuk-prototype-kit/pull/420)) - Update default service name ([PR 419](https://github.com/nhsuk/nhsuk-prototype-kit/pull/419)) - Changed all references from 'NHS.UK prototype kit' to 'NHS prototype kit' +- Update default index page ([PR 423](https://github.com/nhsuk/nhsuk-prototype-kit/pull/423)) ## 5.1.0 - 12 November 2024 diff --git a/app/views/index.html b/app/views/index.html index 7992b88c..d5fe9e9c 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -2,17 +2,17 @@ - + {% extends 'layout.html' %} {% block pageTitle %} - NHS prototype kit + {{ serviceName }} {% endblock %} @@ -20,54 +20,45 @@ {% block beforeContent %} {% endblock %} - {% block content %}
- -

+ +

NHS prototype kit Version {{version}} -

+ +
+ -

- This kit lets you rapidly create HTML prototypes of NHS services. -

- -
+

+ {{ serviceName }} +

-

- About this page -

+

Set the service name for your prototype by editing /app/config.js.

- Use this page as the index for your project. -

- -

- You'll find the code for this page at /app/views/index.html. + This is the index page for your prototype. You can find it at /app/views/index.html.


-

+

Get started

-

Get started by using the:

- -
    + diff --git a/app/views/layout.html b/app/views/layout.html index 1c743d0c..64d9b764 100755 --- a/app/views/layout.html +++ b/app/views/layout.html @@ -1,6 +1,6 @@ - @@ -41,8 +41,8 @@ "label": "Home" }, { - "URL": "/page-example", - "label": "Example page" + "URL": "/docs/page-templates", + "label": "Example page templates" } ] })}}