Giter VIP home page Giter VIP logo

nhsuk-components's Introduction

NHS UK Component Library

Proof of concept https://service-manual.nhs.uk/design-system/components built using https://pypi.org/project/django-slots/

Install

poetry add git+https://github.com/nwjlyons/nhsuk_components.git
INSTALLED_APPS = [
    # ...
    
    'nhsuk_components',
]
{% load static %}
{% load nhsuk_components %}

<html>
    <head>
        <link rel="stylesheet" href="{% static 'nhsuk_components/css/nhsuk.css' %}">
    </head>
    <body>
        {% nhsuk:button %}
          Save and continue
        {% /nhsuk:button %}
    
        {% nhsuk:details summary="How to find your NHS number" %}
          <p>An NHS number is a 10 digit number, like 485 777 3456.</p>
          <p>You can find your NHS number by logging in to a GP online service or on any document the NHS has sent you, such as your:</p>
          <ul>
            <li>prescriptions</li>
            <li>test results</li>
            <li>hospital referral letters</li>
            <li>appointment letters</li>
          </ul>
          <p>Ask your GP surgery for help if you can't find your NHS number.</p>
        {% /nhsuk:details %}
    
        {% nhsuk:inset_text %}
          <p>You can report any suspected side effect to the <a href="https://yellowcard.mhra.gov.uk/" title="External website">UK safety scheme</a>.</p>
        {% /nhsuk:inset_text %}
    </body>
</html>

nhsuk-components's People

Contributors

nwjlyons avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.