{% extends "layouts/master.html.twig" %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('css/styleguide') }}
{% endblock %}
{% block bodyClass %}tpl-generic-page{% endblock %}
{% block pageHeader %}
{% include 'molecules/page-header.html.twig' with {
breadcrumb: [
{ path: path('index'), title: 'Libro de estilo web da USC' }
],
title: 'Átomos'
} %}
{% endblock %}
{% block pageContent %}
<article class="generic-page-wrapper">
<div class="generic-page-intro">
<ul>
<li><a href="#breadcrumb">Migas de pan</a></li>
<li><a href="#buttons">Botóns</a></li>
<li><a href="#desc-lists">Lista de descrición</a></li>
<li><a href="#embeds">Embed</a></li>
<li><a href="#icons">Iconas</a></li>
<li><a href="#link-smart-icon">Ligazón con icona intelixente</a></li>
<li><a href="#images">Imaxes</a></li>
<li><a href="#lead-text">Texto de introdución</a></li>
<li><a href="#tags">Etiquetas</a></li>
<li><a href="#titles">Títulares</a></li>
<li><a href="#text-filter">Filtro de texto</a></li>
<li><a href="#dropdown-filter">Filtro despregable</a></li>
<li><a href="#selectize-filter">Filtro <em>selectize</em></a></li>
<li><a href="#print-button">Botón de imprimir</a></li>
</ul>
</div>
<div class="generic-page-content">
<div class="org-content-block" id="breadcrumb">
<div class="content-block-content-wrapper">
<h2>Migas de pan</h2>
<p>Serven para indicar a localización da páxina actual na xerarquía de navegación.</p>
{%
set code = '<nav>
<ol class="at-breadcrumb">
<li class="breadcrumb-item">
<a href="">Nivel 1</a>
</li>
<li class="breadcrumb-item">
<a href="">Nivel 2</a>
</li>
</ol>
</nav>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="buttons">
<div class="content-block-content-wrapper">
<h2>Botóns</h2>
<p>Inclúense diferentes estilos de botóns. Poden usarse tanto con <code><button></code> coma con <code><a></code>.</p>
{%
set code = '
<button type="button" class="at-button is-primary">Botón</button>
<a href="" class="at-button is-secondary">Botón secundario</a>
<a href="" class="at-button is-tertiary at-icon-image">Botón con icona</a>
'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="desc-lists">
<div class="content-block-content-wrapper">
<h2>Listas de descrición</h2>
{%
set code = '<dl class="at-desc-list">
<dt>Tipo</dt>
<dd>Presencial</dd>
<dt>Área</dt>
<dd>Ciencias Sociais e Xurídicas</dd>
</dl>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="embeds">
<div class="content-block-content-wrapper">
<h2>Embeds</h2>
<p>Para a visualización de contidos embebidos con comportamento responsive. É necesario empregar un modificador en función do ratio de aspecto do elementos entres os dispoñibles: <code>is-21by9</code>, <code>is-16by9</code>, <code>is-4by3</code> ou <code>is-1by1</code>. A lenda é opcional.</p>
{%
set code = '<figure class="at-embed is-16by9">
<div class="embed-wrapper">
<iframe src="https://www.youtube.com/embed/xpljv2ZCv3c" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen" width="560" height="315" frameborder="0"></iframe>
</div>
<figcaption class="embed-caption">Este é un vídeo embebido cunha proporción 16:9</figcaption>
</figure>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="icons">
<div class="content-block-content-wrapper">
<h2>Iconas</h2>
<p>Inclúese unha fonte de iconas propia.</p>
<div class="row">
<div class="col-md-3">
<div class="at-icon-facebook"></div>
<code>at-icon-facebook</code>
</div>
<div class="col-md-3">
<div class="at-icon-twitter"></div>
<code>at-icon-twitter</code>
</div>
<div class="col-md-3">
<div class="at-icon-whatsapp"></div>
<code>at-icon-whatsapp</code>
</div>
<div class="col-md-3">
<div class="at-icon-instagram"></div>
<code>at-icon-instagram</code>
</div>
<div class="col-md-3">
<div class="at-icon-intranet"></div>
<code>at-icon-intranet</code>
</div>
<div class="col-md-3">
<div class="at-icon-researchgate"></div>
<code>at-icon-researchgate</code>
</div>
<div class="col-md-3">
<div class="at-icon-orcid"></div>
<code>at-icon-orcid</code>
</div>
<div class="col-md-3">
<div class="at-icon-linkedin"></div>
<code>at-icon-linkedin</code>
</div>
<div class="col-md-3">
<div class="at-icon-google"></div>
<code>at-icon-google</code>
</div>
<div class="col-md-3">
<div class="at-icon-microsoft"></div>
<code>at-icon-microsoft</code>
</div>
<div class="col-md-3">
<div class="at-icon-pinterest"></div>
<code>at-icon-pinterest</code>
</div>
<div class="col-md-3">
<div class="at-icon-tv"></div>
<code>at-icon-tv</code>
</div>
<div class="col-md-3">
<div class="at-icon-image"></div>
<code>at-icon-image</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-doc"></div>
<code>at-icon-file-doc</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-excel"></div>
<code>at-icon-file-excel</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-odt"></div>
<code>at-icon-file-odt</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-pdf"></div>
<code>at-icon-file-pdf</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-ppt"></div>
<code>at-icon-file-ppt</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-word"></div>
<code>at-icon-file-word</code>
</div>
<div class="col-md-3">
<div class="at-icon-file-zip"></div>
<code>at-icon-file-zip</code>
</div>
<div class="col-md-3">
<div class="at-icon-access"></div>
<code>at-icon-access</code>
</div>
<div class="col-md-3">
<div class="at-icon-arrow"></div>
<code>at-icon-arrow</code>
</div>
<div class="col-md-3">
<div class="at-icon-briefcase"></div>
<code>at-icon-briefcase</code>
</div>
<div class="col-md-3">
<div class="at-icon-calendar"></div>
<code>at-icon-calendar</code>
</div>
<div class="col-md-3">
<div class="at-icon-check"></div>
<code>at-icon-check</code>
</div>
<div class="col-md-3">
<div class="at-icon-close"></div>
<code>at-icon-close</code>
</div>
<div class="col-md-3">
<div class="at-icon-envelope-open"></div>
<code>at-icon-envelope-open</code>
</div>
<div class="col-md-3">
<div class="at-icon-external-link"></div>
<code>at-icon-external-link</code>
</div>
<div class="col-md-3">
<div class="at-icon-flag"></div>
<code>at-icon-flag</code>
</div>
<div class="col-md-3">
<div class="at-icon-location"></div>
<code>at-icon-location</code>
</div>
<div class="col-md-3">
<div class="at-icon-location-alt"></div>
<code>at-icon-location-alt</code>
</div>
<div class="col-md-3">
<div class="at-icon-menu"></div>
<code>at-icon-menu</code>
</div>
<div class="col-md-3">
<div class="at-icon-menu-secondary"></div>
<code>at-icon-menu-secondary</code>
</div>
<div class="col-md-3">
<div class="at-icon-option"></div>
<code>at-icon-option</code>
</div>
<div class="col-md-3">
<div class="at-icon-paperclip"></div>
<code>at-icon-paperclip</code>
</div>
<div class="col-md-3">
<div class="at-icon-play"></div>
<code>at-icon-play</code>
</div>
<div class="col-md-3">
<div class="at-icon-search"></div>
<code>at-icon-search</code>
</div>
<div class="col-md-3">
<div class="at-icon-selected"></div>
<code>at-icon-selected</code>
</div>
<div class="col-md-3">
<div class="at-icon-selector-down"></div>
<code>at-icon-selector-down</code>
</div>
<div class="col-md-3">
<div class="at-icon-selector-up"></div>
<code>at-icon-selector-up</code>
</div>
<div class="col-md-3">
<div class="at-icon-square"></div>
<code>at-icon-square</code>
</div>
<div class="col-md-3">
<div class="at-icon-last"></div>
<code>at-icon-last</code>
</div>
<div class="col-md-3">
<div class="at-icon-first"></div>
<code>at-icon-first</code>
</div>
<div class="col-md-3">
<div class="at-icon-plus"></div>
<code>at-icon-plus</code>
</div>
<div class="col-md-3">
<div class="at-icon-minus"></div>
<code>at-icon-minus</code>
</div>
<div class="col-md-3">
<div class="at-icon-equal"></div>
<code>at-icon-equal</code>
</div>
<div class="col-md-3">
<div class="at-icon-etc"></div>
<code>at-icon-etc</code>
</div>
<div class="col-md-3">
<div class="at-icon-more"></div>
<code>at-icon-more</code>
</div>
<div class="col-md-3">
<div class="at-icon-target"></div>
<code>at-icon-target</code>
</div>
<div class="col-md-3">
<div class="at-icon-grid"></div>
<code>at-icon-grid</code>
</div>
<div class="col-md-3">
<div class="at-icon-logout"></div>
<code>at-icon-logout</code>
</div>
<div class="col-md-3">
<div class="at-icon-alert"></div>
<code>at-icon-alert</code>
</div>
<div class="col-md-3">
<div class="at-icon-info"></div>
<code>at-icon-info</code>
</div>
<div class="col-md-3">
<div class="at-icon-clock"></div>
<code>at-icon-clock</code>
</div>
<div class="col-md-3">
<div class="at-icon-temperature"></div>
<code>at-icon-temperature</code>
</div>
</div>
</div>
</div>
<div class="org-content-block" id="link-smart-icon">
<aside class="content-block-attachments-wrapper">
<div class="ml-alert is-attached">
<h3 class="at-title">Nota sobre aplicación en Drupal</h3>
<div class="at-text">
<p>Nos estilos para Drupal contémplase a posibilidade de que a clase deste átomo non vaia na propia ligazón, senón no pai, como se pode ver na segunda lista de ligazóns. Neste caso este átomo debe levar o modificador <code>has-anchor-as-child</code>.</p>
</div>
</div>
</aside>
<div class="content-block-content-wrapper">
<h2>Ligazón con icona intelixente</h2>
{%
set code = '<ul>
<li><a href="https://www.researchgate.net/profile/perfil_exemplo" class="at-link-smart-icon">Ligazón a ResearchGate</a></li>
<li><a href="https://orcid.org/exemplo" class="at-link-smart-icon">Ligazón a ORCID</a></li>
<li><a href="https://facebook.com/exemplo" class="at-link-smart-icon">Ligazón a Facebook</a></li>
<li><a href="https://twitter.com/exemplo" class="at-link-smart-icon">Ligazón a Twitter</a></li>
<li><a href="https://instagram.com/exemplo" class="at-link-smart-icon">Ligazón a Instagram</a></li>
<li><a href="https://linkedin.com/exemplo" class="at-link-smart-icon">Ligazón a LinkedIn</a></li>
<li><a href="https://pinterest.com/exemplo" class="at-link-smart-icon">Ligazón a Pinterest</a></li>
<li><a href="https://sharepoint.usc.gal/exemplo" class="at-link-smart-icon">Ligazón a intranet</a></li>
<li><a href="https://usc.gal/exemplo.pdf" class="at-link-smart-icon">Ligazón a un arquivo PDF</a></li>
<li><a href="https://usc.gal/exemplo.docx" class="at-link-smart-icon">Ligazón a un arquivo Word</a></li>
<li><a href="https://usc.gal/exemplo.odt" class="at-link-smart-icon">Ligazón a un arquivo ODT</a></li>
<li><a href="https://usc.gal/exemplo.xlsx" class="at-link-smart-icon">Ligazón a un arquivo Excel</a></li>
<li><a href="https://usc.gal/exemplo.ppt" class="at-link-smart-icon">Ligazón a un arquivo de presentación</a></li>
<li><a href="https://usc.gal/exemplo.zip" class="at-link-smart-icon">Ligazón a un arquivo ZIP</a></li>
<li><a href="https://usc.gal/" class="at-link-smart-icon">Calquera outra ligazón</a></li>
</ul>
<ul class="ml-buttons-list is-vertical">
<li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://www.researchgate.net/profile/perfil_exemplo" class="">Ligazón a ResearchGate</a></li>
<li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://www.linkedin.com/exemplo" class="">Ligazón a LinkedIn</a></li>
<li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://usc.gal/exemplo.pdf">Ligazón a un arquivo PDF</a></li>
<li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://usc.gal/">Calquera outra ligazón</a></li>
<li class="at-button is-tertiary at-link-smart-icon has-anchor-as-child"><a href="https://sharepoint.usc.gal/">Ligazón a intranet</a></li>
</ul>
'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="images">
<div class="content-block-content-wrapper">
<h2>Imaxes</h2>
{%
set code = '<figure class="at-image">
<img src="https://picsum.photos/768/433" alt="">
<figcaption class="image-caption">Texto descritivo</figcaption>
</figure>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="lead-text">
<div class="content-block-content-wrapper">
<h2>Texto de introdución</h2>
{%
set code = '<div class="at-lead-text">
<p>Vestibulum ac convallis lectus. <a href="">Proin in nibh imperdiet</a>, iaculis dui in, aliquet augue. Fusce tincidunt mattis massa et sollicitudin. Proin at lacinia metus.</p>
</div>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="tags">
<div class="content-block-content-wrapper">
<h2>Etiquetas</h2>
{%
set code = '
<a href="" class="at-tag is-primary">Etiqueta</a>
<a href="" class="at-tag is-secondary">Etiqueta</a>
<span class="at-tag is-secondary is-dismissable">
Etiqueta
<a href="" class="tag-dismiss"><span class="is-sr-only">Eliminar</span></a>
</span>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="titles">
<div class="content-block-content-wrapper">
<h2>Titulares</h2>
{%
set code = '<h1 class="at-title is-1">Título 1</h1>
<h2 class="at-title is-2">Título 2</h2>
<h2 class="at-title is-2 is-sans">Título 2</h2>
<h3 class="at-title is-3">Título 3</h3>
<h3 class="at-title is-3 is-light">Título 3</h3>
<h4 class="at-title is-4">Título 4</h4>
<h6 class="at-title is-6">Título 6</h6>
'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="text-filter">
<div class="content-block-content-wrapper">
<h2>Filtro de texto</h2>
{%
set code = '<usc-text-filter
label="Filtro de texto"
name="filter_1"
icon="at-icon-search"
target-container="#container-1"
target-items=".ml-banner"
></usc-text-filter>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="dropdown-filter">
<div class="content-block-content-wrapper">
<h2>Filtro despregable</h2>
{%
set code = '<usc-dropdown-filter
label="Filtro"
target-container="#filtered-container-selector"
target-items=".target-items-selector"
:initial-value="{key: \'is-type-1\', value: \'Tipo 1\'}"
>
<template v-slot:default="slotProps">
<li>
<button type="button" @click="slotProps.reset">Todos</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="is-type-1">Tipo 1</button>
</li>
<li>
<button type="button" @click="slotProps.filter" data-value="is-type-2">Tipo 2</button>
</li>
</template>
</usc-dropdown-filter>
<usc-dropdown-filter
label="Filtro"
>
<template v-slot:default>
<li>
<a href="">Filtro con ligazón a páxina 1</a>
</li>
<li>
<a href="">Filtro con ligazón a páxina 2</a>
</li>
</template>
</usc-dropdown-filter>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="selectize-filter">
<div class="content-block-content-wrapper">
<h2>Filtro <em>selectize</em></h2>
<p>Para filtros tipo despregable con moitos resultados. Permite buscar sobre as opcións diposñibles.</p>
{%
set code = '<usc-selectize-filter
label="Filtro"
target-container="#filtered-container-selector"
target-items=".target-items-selector"
:options="[{key: \'is-type-1\', value: \'Tipo 1\'}, {key: \'is-type-2\', value: \'Tipo 2\'}]"
>
</usc-selectize-filter>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
<div class="org-content-block" id="print-button">
<div class="content-block-content-wrapper">
<h2>Botón de imprimir</h2>
<p>Este compoñente permite imprimir unha parte determinada da páxina. Hai que especificarlle o id do elemento que queremos que se imprima na propiedade target. Podemos especificarlle un modificador de tipo de <a href="#buttons">botón</a>.</p>
{%
set code = '<usc-print-button target="print-button" class="is-primary">
Imprimir
</usc-print-button>'
%}
<div class="org-example">
<div class="example-display">
{{ code|raw }}
</div>
<pre class="example-code"><code>{{ code }}</code></pre>
</div>
</div>
</div>
</div>
</article>
{% endblock %}