auth

Information

Folder
src/components/templates/auth

Files

Schema
// src/components/templates/auth/schema.yaml

$schema: http://json-schema.org/draft-07/schema
$id: /templates/auth
additionalProperties: false
type: object
required:
  - content
properties:
  content:
    type: string
    format: html
    description: template-components/content
  header:
    type: string
    format: html
    description: template-components/header
  footer:
    type: string
    format: html
    description: template-components/footer
Mocks
// src/components/templates/auth/mocks.yaml

content:
  $render:
    - $tpl: template-components/auth
      $ref: template-components/auth
header:
  $tpl: template-components/header
  $ref: template-components/header
footer:
  $tpl: template-components/footer
  $ref: template-components/footer
Template
// src/components/templates/auth/auth.twig

<div class="Template">
	<a class="Template-skip u-hiddenVisually--focusVisible" href="#content">{{ "Skip to main content"|t }}</a>
	{%- if header -%}
		<div class="Template-header">
			{{ header|raw }}
		</div>
	{%- endif -%}
	<div class="Template-main u-container u-container--sm" id="content">
		{{ content|raw }}
	</div>
	{%- if footer -%}
		<div class="Template-footer">
			{{ footer|raw }}
		</div>
	{%- endif -%}
</div>

Variants

default
Open
Skip to main content