Skip to content

Commit 0669e5f

Browse files
Calls to action and links on the landing page (#120)
* This commit: - adds action links to landing page - adds primary CTA buttons to landing page - adds button-reverse component for white buttons on dark backgrounds - adds links to 1. Write your messages on the landing page * fix(home): remove bottom margin from buttons on home page - Add nhsnotify-home-page class to home layout for page-specific styling - Add CSS override to remove margin-bottom from nhsuk-button class within home page - Ensures buttons on home page have no bottom margin while preserving styling on other pages --------- Co-authored-by: afernandez-nhs <[email protected]>
1 parent bf66ac5 commit 0669e5f

File tree

6 files changed

+41
-15
lines changed

6 files changed

+41
-15
lines changed

docs/_data/home/how-it-works.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
- heading: Write your messages
22
description: |
33
Create reusable templates or free-text messages for each message channel:
4-
- NHS App messages and notifications
5-
- emails
6-
- text messages (SMS)
7-
- letters
4+
- [NHS App messages and notifications](https://notify.nhs.uk/features/nhs-app-messages)
5+
- [emails](https://notify.nhs.uk/features/emails)
6+
- [text messages (SMS)](https://notify.nhs.uk/features/text-messages-sms)
7+
- [letters](https://notify.nhs.uk/features/letters)
88
image: 1-write-your-message.svg
99
image_alt: ""
1010

@@ -19,6 +19,7 @@
1919
Set up routing plans to decide how your messages will be sent to recipients.
2020
image: 3-plan-your-messages.svg
2121
image_alt: ""
22+
number: 3
2223

2324
- heading: See how your messages perform
2425
description: |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<a href="{{ include.url }}" target="_blank">
2+
<button class="nhsuk-button nhsuk-button--reverse">
3+
{{ include.text }}
4+
</button>
5+
</a>

docs/_includes/components/styled-list.html

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33
{% for item in include.data %}
44
<div class="nhsuk-grid-row nhsnotify-list__item">
55
<div class="nhsuk-grid-column-one-half">
6-
<h3 class="nhsnotify-list__item-header">
7-
<div class="nhsnotify-list__item-header-number">
8-
{{ i }}
9-
</div>
10-
<div class="nhsnotify-list__item-header-title">
11-
{{ item.heading }}
12-
</div>
13-
</h3>
14-
<div class="nhsnotify-list__item-description">
15-
{{ item.description | markdownify }}
6+
<h3 class="nhsnotify-list__item-header">
7+
<div class="nhsnotify-list__item-header-number">
8+
{{ i }}
169
</div>
10+
<div class="nhsnotify-list__item-header-title">
11+
{{ item.heading }}
12+
</div>
13+
</h3>
14+
<div class="nhsnotify-list__item-description">
15+
{{ item.description | markdownify }}
16+
{% if item.number == 3 %}
17+
{% include components/action-link.html
18+
url='/using-nhs-notify/routing-plans'
19+
text='Learn more about routing plans'
20+
%}
21+
{% endif %}
22+
</div>
1723
</div>
1824
<div class="nhsuk-grid-column-one-half">
1925
{% include components/image.html src=item.image alt=item.image_alt class="nhsnotify-image" %}

docs/_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
33
---
4-
<main id="maincontent" role="main">
4+
<main id="maincontent" role="main" class="nhsnotify-home-page">
55
{{ content }}
66
</main>

docs/_sass/_nhsnotify.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@
206206
}
207207
}
208208

209+
// Home page button margin override
210+
.nhsnotify-home-page .nhsuk-button {
211+
margin-bottom: 0;
212+
}
213+
209214
.nhsuk-breadcrumb__item {
210215

211216
&:not(:last-child)::after {

docs/pages/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ site_title: NHS Notify CMS
55
nav_order: 1
66
permalink: /
77
---
8+
89
<!-- HEADING -->
910
<div id="heading" class="nhsnotify-banner--blue">
1011
<div class="nhsuk-main-wrapper nhsuk-width-container">
@@ -14,6 +15,10 @@ permalink: /
1415
<p>
1516
{{ site.data.home.heading.description }}
1617
</p>
18+
{% include components/button-reverse.html
19+
text="Get started"
20+
url="https://notify.nhs.uk/get-started/"
21+
%}
1722
</div>
1823
<div class="nhsuk-grid-column-one-half">
1924
{% include components/image.html src=site.data.home.heading.image alt=site.data.home.heading.image_alt class="nhsnotify-image" %}
@@ -76,6 +81,10 @@ permalink: /
7681
<p>
7782
{{ site.data.home.find-out-more.description }}
7883
</p>
84+
{% include components/button-reverse.html
85+
text="Get started"
86+
url="https://notify.nhs.uk/get-started/"
87+
%}
7988
</div>
8089
<div class="nhsuk-grid-column-one-half">
8190
{% include components/image.html src=site.data.home.find-out-more.image alt=site.data.home.find-out-more.image_alt class="nhsnotify-image" %}

0 commit comments

Comments
 (0)