diff --git a/app/templates/components/components/footer/README.md b/app/templates/components/components/footer/README.md deleted file mode 100644 index 8d1a23b9b..000000000 --- a/app/templates/components/components/footer/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Footer - -## Installation - -See the [main README quick start guide](https://github.com/alphagov/govuk-frontend#quick-start) for how to install this component. - -## Guidance and Examples - -Find out when to use the footer component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/footer). - -## Component options - -Use options to customize the appearance, content and behavior of a component when using a macro, for example, changing the text. - -See [options table](https://design-system.service.gov.uk/components/footer/#options-example-default) for details. \ No newline at end of file diff --git a/app/templates/components/components/footer/macro-options.json b/app/templates/components/components/footer/macro-options.json deleted file mode 100644 index 3c1445cac..000000000 --- a/app/templates/components/components/footer/macro-options.json +++ /dev/null @@ -1,115 +0,0 @@ -[ - { - "name": "meta", - "type": "object", - "required": false, - "description": "Object containing options for the meta navigation.", - "params": [ - { - "name": "visuallyHiddenTitle", - "type": "string", - "description": "Title for a meta item section, which defaults to Support links" - }, - { - "name": "html", - "type": "string", - "description": "HTML to add to the meta section of the footer, which will appear below any links specified using meta.items." - }, - { - "name": "text", - "type": "string", - "description": "Text to add to the meta section of the footer, which will appear below any links specified using meta.items. If meta.html is specified, this option is ignored." - }, - { - "name": "items", - "type": "array", - "required": false, - "description": "Array of items for use in the meta section of the footer.", - "params": [ - { - "name": "text", - "type": "string", - "required": false, - "description": "List item text in the meta section of the footer." - }, - { - "name": "href", - "type": "string", - "required": false, - "description": "List item href attribute in the meta section of the footer." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the anchor in the footer meta section." - } - ] - } - ] - }, - { - "name": "navigation", - "type": "array", - "required": false, - "description": "Array of items for use in the navigation section of the footer.", - "params": [ - { - "name": "title", - "type": "string", - "required": false, - "description": "Title for a section" - }, - { - "name": "columns", - "type": "integer", - "required": false, - "description": "Amount of columns to display items in navigation section of the footer." - }, - { - "name": "items", - "type": "array", - "required": false, - "description": "Array of items to display in the list in navigation section of the footer.", - "params": [ - { - "name": "text", - "type": "string", - "required": false, - "description": "List item text in the navigation section of the footer." - }, - { - "name": "href", - "type": "string", - "required": false, - "description": "List item href attribute in the navigation section of the footer. Both `text` and `href` attributes need to be present to create a link." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the anchor in the footer navigation section." - } - ] - } - ] - }, - { - "name": "containerClasses", - "type": "string", - "required": false, - "description": "Classes that can be added to the inner container, useful if you want to make the footer full width." - }, - { - "name": "classes", - "type": "string", - "required": false, - "description": "Classes to add to the footer component container." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the footer component container." - } -] \ No newline at end of file diff --git a/app/templates/components/components/footer/macro.njk b/app/templates/components/components/footer/macro.njk deleted file mode 100644 index d0f92f065..000000000 --- a/app/templates/components/components/footer/macro.njk +++ /dev/null @@ -1,3 +0,0 @@ -{% macro usaFooter(params) %} - {%- include "./template.njk" -%} -{% endmacro %} diff --git a/app/templates/components/components/footer/template.njk b/app/templates/components/components/footer/template.njk deleted file mode 100644 index 07bcd4f3e..000000000 --- a/app/templates/components/components/footer/template.njk +++ /dev/null @@ -1,85 +0,0 @@ - - -
-
-
- -
-

beta.notify.gov

-

An official website of the General - Services Administration

-
-
-
- -
-
-
- Looking for U.S. government information and services? -
- Visit USA.gov -
-
-
diff --git a/app/templates/components/components/header/README.md b/app/templates/components/components/header/README.md deleted file mode 100644 index 5a19ca475..000000000 --- a/app/templates/components/components/header/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Header - -## Installation - -See the [main README quick start guide](https://github.com/alphagov/govuk-frontend#quick-start) for how to install this component. - -## Guidance and Examples - -Find out when to use the header component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/header). - -## Component options - -Use options to customize the appearance, content and behavior of a component when using a macro, for example, changing the text. - -See [options table](https://design-system.service.gov.uk/components/header/#options-example-default) for details. \ No newline at end of file diff --git a/app/templates/components/components/header/macro-options.json b/app/templates/components/components/header/macro-options.json deleted file mode 100644 index 5d61becb8..000000000 --- a/app/templates/components/components/header/macro-options.json +++ /dev/null @@ -1,88 +0,0 @@ -[ - { - "name": "homepageUrl", - "type": "string", - "required": false, - "description": "The url of the homepage. Defaults to /" - }, - { - "name": "assetsPath", - "type": "string", - "required": false, - "description": "The public path for the assets folder. If not provided it defaults to /assets/images" - }, - { - "name": "productName", - "type": "string", - "required": false, - "description": "Header title that is placed next to GOV.UK. Used for product names (i.e. Pay, Verify)" - }, - { - "name": "serviceName", - "type": "string", - "required": false, - "description": "Header title that is placed next to GOV.UK. Used for product names (i.e. Pay, Verify)" - }, - { - "name": "serviceUrl", - "type": "string", - "required": false, - "description": "Url for the service name anchor." - }, - { - "name": "navigation", - "type": "array", - "required": false, - "description": "An array of navigation item objects.", - "params": [ - { - "name": "text", - "type": "string", - "required": false, - "description": "Text of the navigation item." - }, - { - "name": "href", - "type": "string", - "required": false, - "description": "Url of the navigation item anchor. Both `href` and `text` attributes for navigation items need to be provided to create an item." - }, - { - "name": "active", - "type": "boolean", - "required": false, - "description": "Flag to mark the navigation item as active or not." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the navigation item anchor." - } - ] - }, - { - "name": "navigationClasses", - "type": "string", - "required": false, - "description": "Classes for the navigation section of the header." - }, - { - "name": "containerClasses", - "type": "string", - "required": false, - "description": "Classes for the container, useful if you want to make the header fixed width." - }, - { - "name": "classes", - "type": "string", - "required": false, - "description": "Classes to add to the header container." - }, - { - "name": "attributes", - "type": "object", - "required": false, - "description": "HTML attributes (for example data attributes) to add to the header container." - } -] \ No newline at end of file diff --git a/app/templates/components/components/header/macro.njk b/app/templates/components/components/header/macro.njk deleted file mode 100644 index 3f0101fc2..000000000 --- a/app/templates/components/components/header/macro.njk +++ /dev/null @@ -1,3 +0,0 @@ -{% macro usaHeader(params) %} - {%- include "./template.njk" -%} -{% endmacro %} diff --git a/app/templates/components/components/header/template.njk b/app/templates/components/components/header/template.njk deleted file mode 100644 index c0620d502..000000000 --- a/app/templates/components/components/header/template.njk +++ /dev/null @@ -1,105 +0,0 @@ - -
-
-
-
-
- -
- - -
-
- -
-
- - -
-
-
- -
- -
-
diff --git a/app/templates/components/header.html b/app/templates/components/header.html index 2b0a384e9..5ae37fc71 100644 --- a/app/templates/components/header.html +++ b/app/templates/components/header.html @@ -1,4 +1,3 @@ -{# setting navigation and secondarynavigation #} {% if current_user.is_authenticated %} {% set navigation = [ {"href": url_for("main.show_accounts_or_dashboard"), "text": "Current service", "active": header_navigation.is_selected('accounts-or-dashboard')}, @@ -30,7 +29,6 @@ {% endif %} {% endif %} -{# usa header #}
diff --git a/app/templates/components/main_nav.html b/app/templates/components/main_nav.html index d3ee0fd08..597ccf45b 100644 --- a/app/templates/components/main_nav.html +++ b/app/templates/components/main_nav.html @@ -13,15 +13,6 @@ {% if not current_user.has_permissions('view_activity') %}
  • Sent messages
  • {% endif %} - {% if current_user.has_permissions('manage_service', allow_org_user=True) %} - {#
  • Usage
  • #} - {% endif %} - - {% if current_user.has_permissions('manage_api_keys') %} - - {% endif %} {% elif current_user.has_permissions(allow_org_user=True) %}
  • Usage
  • Team members
  • diff --git a/app/templates/components/usa_banner.html b/app/templates/components/usa_banner.html index 532a2937a..db8e54bee 100644 --- a/app/templates/components/usa_banner.html +++ b/app/templates/components/usa_banner.html @@ -1,5 +1,3 @@ - -{# usa banner #}