-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
179 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{% extends "./_design-system-base.njk" %} | ||
|
||
{%- from "nationalarchives/components/button/macro.njk" import tnaButton -%} | ||
{%- from "nationalarchives/components/card/macro.njk" import tnaCard -%} | ||
{%- from "nationalarchives/components/hero/macro.njk" import tnaHero -%} | ||
|
||
{% block main %} | ||
{{ tnaHero({ | ||
heading: "Design your service using National Archives styles, components and patterns", | ||
body: "<p>Use this design system to make government services consistent with The National Archives. Learn from the research and experience of other service teams and avoid repeating work that has already been done.</p>" + tnaButton({ text: "Get started", href: "/design-system/get-started/", classes: "tna-button--large" }), | ||
image: { | ||
src: "https://www.nationalarchives.gov.uk/wp-content/uploads/sites/24/2023/07/tna-building-compress.jpg", | ||
alt: "The front of The National Archives office in Kew", | ||
width: 640, | ||
height: 360 | ||
} | ||
}) }} | ||
<main class="tna-main-wrapper {{ mainClasses }}" id="main-content" role="main"> | ||
<div class="tna-section"> | ||
<div class="tna-container"> | ||
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l"> | ||
{{ tnaCard({ | ||
title: "Styles", | ||
headingLevel: 2, | ||
headingSize: "l", | ||
body: "<p>Make your service look part of The National Archives with guides for applying layout, typography, colour and images.</p>", | ||
imageSrc: "https://fakeimg.pl/600x400/9c193a/fff?text=Styles&font=bebas", | ||
imageAlt: "", | ||
imageWidth: 600, | ||
imageHeight: 400, | ||
htmlElement: "article", | ||
actions: [ | ||
{ | ||
text: "Browse styles", | ||
href: "/design-system/styles/" | ||
} | ||
] | ||
}) }} | ||
</div> | ||
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l"> | ||
{{ tnaCard({ | ||
title: "Components", | ||
headingLevel: 2, | ||
headingSize: "l", | ||
body: "<p>Save time with reusable, accessible components for forms, navigation, panels, tables and more.</p>", | ||
imageSrc: "https://fakeimg.pl/600x400/00623b/fff?text=Components&font=bebas", | ||
imageAlt: "", | ||
imageWidth: 600, | ||
imageHeight: 400, | ||
htmlElement: "article", | ||
actions: [ | ||
{ | ||
text: "Browse components", | ||
href: "/design-system/components/" | ||
} | ||
] | ||
}) }} | ||
</div> | ||
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l"> | ||
{{ tnaCard({ | ||
title: "Patterns", | ||
headingLevel: 2, | ||
headingSize: "l", | ||
body: "<p>Help users complete common tasks like entering names and addresses, filling in forms and creating accounts.</p>", | ||
imageSrc: "https://fakeimg.pl/600x400/004c7e/fff?text=Patterns&font=bebas", | ||
imageAlt: "", | ||
imageWidth: 600, | ||
imageHeight: 400, | ||
htmlElement: "article", | ||
actions: [ | ||
{ | ||
text: "Browse patterns", | ||
href: "/design-system/patterns/" | ||
} | ||
] | ||
}) }} | ||
</div> | ||
<div class="tna-column tna-column--width-1-4 tna-column--width-1-2-medium tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-l"> | ||
{{ tnaCard({ | ||
title: "Content", | ||
headingLevel: 2, | ||
headingSize: "l", | ||
body: "<p>Write content in a consistent and understandable way that makes it easier for users to use your service.</p>", | ||
imageSrc: "https://fakeimg.pl/600x400/8f3415/fff?text=Content&font=bebas", | ||
imageAlt: "", | ||
imageWidth: 600, | ||
imageHeight: 400, | ||
htmlElement: "article", | ||
actions: [ | ||
{ | ||
text: "Browse content", | ||
href: "/design-system/content/" | ||
} | ||
] | ||
}) }} | ||
</div> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="tna-section"> | ||
<div class="tna-container"> | ||
<div class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny"> | ||
{{ contents | safe }} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</main> | ||
{% block afterContent %}{% endblock %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
--- | ||
layout: simple.njk | ||
layout: homepage.njk | ||
title: Welcome | ||
description: Designing services for The National Archives | ||
order: 1 | ||
--- | ||
|
||
# Welcome to The National Archives Design System | ||
## Principles we follow | ||
|
||
Hello | ||
The National Archives Design System helps teams that work on National Archive services follow the [Government Design Principles](https://www.gov.uk/guidance/government-design-principles) and [GOV.UK Service Manual](https://www.gov.uk/service-manual). | ||
|
||
- alpha | ||
- beta | ||
|
||
1. alpha | ||
1. beta | ||
This website also follows the [style guide](https://www.gov.uk/guidance/style-guide) and [content design guidance](https://www.gov.uk/guidance/content-design) used by GOV.UK. |