Cabeceras
Componentes principales
Se trata de un elemento siempre disponible en la parte superior de la pantalla. Proporciona un acceso a funciones de todo el sistema y elementos de navegación local.
Header-mini
Mostrar parámetros
Parámetros Nunjucks del componente: "Header-mini"
params:
- name: logoSrc
type: string
required: false
default: branding.logos.organization.mini
description: URL del logo de la organización. Por defecto usa el valor de branding.logos.organization.mini
- name: logoAlt
type: string
required: false
default: branding.logos.organization.alt
description: Texto alternativo del logo. Por defecto usa el valor de branding.logos.organization.alt
- name: homepageUrl
type: string
required: false
description: The url of the logo link. Defaults to the homepage URL configured in branding or `/`.
- name: customNavigationHtml
type: string
required: false
description: HTML for the custom navigation area. If provided there will appear an embed area after the logo.
- name: hasContainer
type: boolean
required: false
description: Defaults to `true`. If `false` the header won't use container class.
- name: containerClasses
type: string
required: false
description: Classes for the container, useful if you want to make the header fixed width.
- name: super
type: object
required: false
description: This is an area over the container
- name: customNavigationHtml
type: string
required: false
description: HTML for the custom navigation area. If provided there will appear an embed area where you can nest custom navigation under the logo area.
- name: backgroundFullColor
type: string
required: true
description: The css color used in the background image that fills all the super area.
- name: backgroundFullUrl
type: string
required: false
description: Url used in the background image that fills all the super area.
- name: backgroundContainerUrl
type: string
required: false
description: Url used in the background image in the container of the super area and over the backgroundFull.
- name: customHtml
type: string
required: false
description: If provided, the default super content will be replaced with this.
- name: classes
type: string
required: false
description: Classes to add to the super.
- name: sub
type: object
required: false
description: This is an area under the container
- name: customNavigationHtml
type: string
required: false
description: HTML for the custom navigation area. If provided there will appear an embed area where you can nest custom navigation under the logo area.
- name: backgroundFullColor
type: string
required: true
description: The css color used in the background image that fills all the sub area.
- name: backgroundFullUrl
type: string
required: false
description: Url used in the background image that fills all the sub area.
- name: backgroundContainerUrl
type: string
required: false
description: Url used in the background image in the container of the sub area and over the backgroundFull.
- name: customHtml
type: string
required: false
description: If provided, the default sub content will be replaced with this.
- name: classes
type: string
required: false
description: Classes to add to the sub.
- name: classes
type: string
required: false
description: Classes to add to the header-mini.
- name: attributes
type: object
required: false
description: HTML attributes (for example data attributes) to add to the header-mini.
Por defecto #
Este es el mini header por defecto. Una barra con el logo de la organización que enlaza al portal de la administración. Deberían usarse en todos los sitios web oficiales.
Descripción visual
Header con fondo blanco y borde gris claro en la parte inferior. Contiene el logo de "Gobierno de Aragón" en naranja y negro alineado a la izquierda. Altura compacta con espaciado interno moderado.
Mostrar códigodel ejemplo: Por defecto
Sin clase contenedora #
Usa el parámetro 'hasContainer': false para que el componente no tenga container y se expanda ocupando todo el ancho posible, de forma que el logotipo quede a la derecha de la ventana y no con respecto al contenedor centrado.
Descripción visual
Header con fondo blanco y borde gris claro en la parte inferior. Presenta el logo de "Gobierno de Aragón" en naranja y negro alineado a la izquierda. Altura compacta sin márgenes laterales contenedores.
Mostrar códigodel ejemplo: Sin clase contenedora