Skip to content

Commit 80c5021

Browse files
Update hello-world.njk
1 parent 126a211 commit 80c5021

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{% set title = "Hello World example" %}
22
{% extends "layouts/page.njk" %}
33

4-
{# NHS.UK hero macro import #}
5-
{% from "packages/components/hero/macro.njk" import hero %}
4+
{# Use NHS.UK hero markup directly (no macro import needed) #}
65

76
{# Import the hello-world component from TEL Frontend package #}
87
{% from "hello-world/hello-world.njk" import helloWorld %}
@@ -11,13 +10,19 @@
1110
{% from "macros/code-example.njk" import codeExample %}
1211

1312
{% block header %}
14-
{# Optional hero for this page #}
15-
{% call hero({
16-
heading: "This is an internal development app to preview the tel-frontend components.",
17-
headingClasses: "nhsuk-heading-l nhsuk-u-font-weight-normal nhsuk-u-margin-bottom-2",
18-
headingLevel: 2
19-
}) %}
20-
{% endcall %}
13+
<section class="nhsuk-hero">
14+
<div class="nhsuk-width-container nhsuk-hero--border">
15+
<div class="nhsuk-grid-row">
16+
<div class="nhsuk-grid-column-two-thirds">
17+
<div class="nhsuk-hero__wrapper">
18+
<h2 class="nhsuk-hero__heading nhsuk-heading-l nhsuk-u-font-weight-normal nhsuk-u-margin-bottom-2">
19+
This is an internal development app to preview the tel-frontend components.
20+
</h2>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
</section>
2126
{% endblock %}
2227

2328
{% block content %}
@@ -31,5 +36,4 @@
3136

3237
<h2 class="nhsuk-heading-m">Example 2</h2>
3338
{{ helloWorld({ heading: "Custom Title", text: "This text is different!", classes: "nhsuk-u-margin-bottom-4" }) }}
34-
3539
{% endblock %}

0 commit comments

Comments
 (0)