1.0.0 • Published 3 years ago
flood-banner v1.0.0
Defra flood warning layout
Defra page template for showing flood warnings in the Gov.uk Prototype kit
How to install
npm install cathydutton/layout-defra-flood-warning
How to include
Set the class name and banner text values at the top of the page.
{% set floodWarningClass = "alert" %}
{% set floodWarningTitle = "Flooding is possible - be prepared" %}
{% set floodWarningClass = "warning" %}
{% set floodWarningTitle = "Flooding expected - Take action" %}`
{% set floodWarningClass = "severe" %}
{% set floodWarningTitle = "Danger to life" %}`
Replace this line
{% extends "layout.html" %}
With...
{% extends 'layout-defra-flood-warning.html' %}
License
This code is open source software licensed under the Apache 2.0 License.
1.0.0
3 years ago