File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
packages/tel-frontend-review/src/examples Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 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 %}
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 %}
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 %}
You can’t perform that action at this time.
0 commit comments