Skip to content

Commit 1e1dc8e

Browse files
authored
Initial commit
0 parents  commit 1e1dc8e

15 files changed

+6079
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Node.js ignores
2+
node_modules/
3+
4+
# Prototype ignores - per-user
5+
.tmp/
6+
.env
7+
migrate.log
8+
usage-data-config.json
9+
10+
# General ignores
11+
.DS_Store
12+
.idea

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
audit=false

LICENCE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (C) 2014 Crown Copyright (Government Digital Service)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# prototype-kit-v13
2+
Version 13 of the GOV.UK Prototype Kit

app/assets/javascripts/application.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// For guidance on how to add JavaScript see:
3+
// https://prototype-kit.service.gov.uk/docs/adding-css-javascript-and-images
4+
//
5+
6+
window.GOVUKPrototypeKit.documentReady(() => {
7+
// Add JavaScript here
8+
})

app/assets/sass/application.scss

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//
2+
// For guidance on how to add CSS and SCSS see:
3+
// https://prototype-kit.service.gov.uk/docs/adding-css-javascript-and-images
4+
//
5+
6+
// Add extra styles here

app/config.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"serviceName": "Service name goes here"
3+
}

app/data/session-data-defaults.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
3+
// Insert values here
4+
5+
}

app/filters.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//
2+
// For guidance on how to create filters see:
3+
// https://prototype-kit.service.gov.uk/docs/filters
4+
//
5+
6+
const govukPrototypeKit = require('govuk-prototype-kit')
7+
const addFilter = govukPrototypeKit.views.addFilter
8+
9+
// Add your filters here
10+

app/routes.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// For guidance on how to create routes see:
3+
// https://prototype-kit.service.gov.uk/docs/create-routes
4+
//
5+
6+
const govukPrototypeKit = require('govuk-prototype-kit')
7+
const router = govukPrototypeKit.requests.setupRouter()
8+
9+
// Add your routes here

app/views/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% extends "layouts/main.html" %}
2+
3+
{% set pageName="Home" %}
4+
5+
{% block content %}
6+
7+
<div class="govuk-grid-row">
8+
<div class="govuk-grid-column-two-thirds">
9+
10+
{% include "govuk-prototype-kit/includes/homepage-top.njk" %}
11+
12+
<h1 class="govuk-heading-xl">
13+
{{ serviceName }}
14+
</h1>
15+
16+
{% include "govuk-prototype-kit/includes/homepage-bottom.njk" %}
17+
</div>
18+
</div>
19+
20+
{% endblock %}

app/views/layouts/main.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{#
2+
For guidance on how to use layouts see:
3+
https://prototype-kit.service.gov.uk/docs/how-to-use-layouts
4+
#}
5+
6+
{% extends "govuk-prototype-kit/layouts/govuk-branded.njk" %}

0 commit comments

Comments
 (0)