desy-html 6.4.1 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/tailwind.config.js +32 -2
- package/docs/_global.head.njk +2 -0
- package/docs/_include.template-header.njk +8 -0
- package/docs/_macro.example-render.njk +8 -0
- package/docs/catalogo.html +2 -0
- package/docs/componentes.html +6 -0
- package/docs/ds/_ds.example.card.njk +199 -0
- package/docs/ds/_ds.example.checkboxes.njk +4 -4
- package/docs/ds/_ds.example.header-advanced.njk +0 -75
- package/docs/ds/_ds.example.links-list.njk +171 -0
- package/docs/ds/_ds.example.pills.njk +1 -1
- package/docs/ds/_ds.example.textos.njk +3 -1
- package/docs/ds/_ds.section.informacion.njk +13 -0
- package/docs/ds/_ds.section.navigation.njk +4 -0
- package/docs/ds/_ds.section.textos.njk +44 -20
- package/docs/examples-card.html +5 -0
- package/docs/examples-links-list.html +5 -0
- package/docs/index.html +17 -3
- package/gulpfile.js +3 -2
- package/package.json +6 -3
- package/src/css/component.text.css +14 -0
- package/src/js/aria/tabs.js +3 -1
- package/src/templates/components/button-loader/_template.button-loader.njk +3 -15
- package/src/templates/components/card/_examples.card.njk +277 -0
- package/src/templates/components/card/_macro.card.njk +3 -0
- package/src/templates/components/card/_template.card.njk +35 -0
- package/src/templates/components/card/params.card.yaml +113 -0
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/header/_template.header.njk +1 -1
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +101 -14
- package/src/templates/components/header-advanced/_template.header-advanced.njk +3 -3
- package/src/templates/components/links-list/_examples.links-list.njk +504 -0
- package/src/templates/components/links-list/_macro.links-list.njk +3 -0
- package/src/templates/components/links-list/_template.links-list.njk +92 -0
- package/src/templates/components/links-list/params.links-list.yaml +82 -0
- package/src/templates/components/menu-vertical/params.menu-vertical.yaml +0 -4
- package/src/templates/components/table/_examples.table.njk +4 -48
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +6 -51
- package/docs/examples-header-advanced-2.html +0 -5
- package/src/templates/components/header-advanced/_examples.header-advanced-2.njk +0 -911
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{% set exampleComponent = "card" %}
|
|
2
|
+
|
|
3
|
+
{% from "components/button/_macro.button.njk" import componentButton %}
|
|
4
|
+
|
|
5
|
+
{% set defaultContent %}
|
|
6
|
+
<h3 class="c-h3"><a href="#" class="c-link">Título card</a></h3>
|
|
7
|
+
<div class="prose max-w-none">
|
|
8
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
9
|
+
</div>
|
|
10
|
+
{% endset %}
|
|
11
|
+
|
|
12
|
+
{% set linksContent %}
|
|
13
|
+
<h2 class="c-h1">Tus datos médicos e información personal</h2>
|
|
14
|
+
<ul class="text-lg">
|
|
15
|
+
<li class="mb-base"><a href="#" class="c-link">Cambiar tus datos de contacto</a></li>
|
|
16
|
+
<li class="mb-base"><a href="#" class="c-link">Dónde y cómo solicitar tu PIN Salud</a></li>
|
|
17
|
+
<li class="mb-base"><a href="#" class="c-link">Cómo solicitar un cambio de centro de salud</a></li>
|
|
18
|
+
<li class="mb-base"><a href="#" class="c-link">Historia Clínica e informes médicos</a></li>
|
|
19
|
+
<li class="mb-base"><a href="#" class="c-link">Derechos de protección de datos</a></li>
|
|
20
|
+
</ul>
|
|
21
|
+
{% endset %}
|
|
22
|
+
|
|
23
|
+
{% set verButton %}
|
|
24
|
+
{{ componentButton({
|
|
25
|
+
"html": "Más <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center ml-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg>",
|
|
26
|
+
"classes": "c-button--transparent",
|
|
27
|
+
"href": "#",
|
|
28
|
+
"attributes": {
|
|
29
|
+
"id": "boton-card-1",
|
|
30
|
+
"aria-labelledby": "boton-card-1 titulo-card-1"
|
|
31
|
+
}
|
|
32
|
+
}) }}
|
|
33
|
+
{% endset %}
|
|
34
|
+
|
|
35
|
+
{% set verDetalleButton %}
|
|
36
|
+
{{ componentButton({
|
|
37
|
+
"html": "Ver detalle <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center ml-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg>",
|
|
38
|
+
"classes": "c-button--transparent",
|
|
39
|
+
"href": "#",
|
|
40
|
+
"attributes": {
|
|
41
|
+
"id": "boton-card-1",
|
|
42
|
+
"aria-labelledby": "boton-card-1 titulo-card-1"
|
|
43
|
+
}
|
|
44
|
+
}) }}
|
|
45
|
+
{% endset %}
|
|
46
|
+
|
|
47
|
+
{% set withIconContent %}
|
|
48
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="w-6 h-6 lg:w-9 lg:h-9 mt-base mb-lg" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>
|
|
49
|
+
<h3 id="titulo-card-1" class="c-h3">Título card</h3>
|
|
50
|
+
<div class="prose max-w-none mb-base">
|
|
51
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
52
|
+
</div>
|
|
53
|
+
{{ verButton | safe }}
|
|
54
|
+
{% endset %}
|
|
55
|
+
|
|
56
|
+
{% set withButton %}
|
|
57
|
+
<h3 id="titulo-card-1" class="c-h3">Título card</h3>
|
|
58
|
+
<div class="prose max-w-none mb-base">
|
|
59
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
60
|
+
</div>
|
|
61
|
+
{{ verButton | safe }}
|
|
62
|
+
{% endset %}
|
|
63
|
+
|
|
64
|
+
{% set areaPersonalContent %}
|
|
65
|
+
<h2 class="c-h1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="inline-block align-middle lg:w-9 lg:h-9 mr-base" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>Tu área personal</h2>
|
|
66
|
+
<p class="c-paragraph-base mb-lg">En tu área personal puedes pedir cita con tu médico/a, consultar tu historia clínica y encontrar una selección de contenidos y servicios de salud para ti. Accede de forma segura desde cualquier lugar y en cualquier momento, desde tu móvil u ordenador.</p>
|
|
67
|
+
<ul class="flex flex-wrap gap-base">
|
|
68
|
+
<li>
|
|
69
|
+
{{ componentButton({
|
|
70
|
+
"text": "Acceder a Tu área personal",
|
|
71
|
+
"classes": "c-button--primary"
|
|
72
|
+
}) }}
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
{{ componentButton({
|
|
76
|
+
"text": "Descargar la app"
|
|
77
|
+
}) }}
|
|
78
|
+
</li>
|
|
79
|
+
</ul>
|
|
80
|
+
{% endset %}
|
|
81
|
+
|
|
82
|
+
{% set postContent %}
|
|
83
|
+
<p class="c-paragraph-sm mb-base">
|
|
84
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="1em" width="1em" class="inline-block align-middle w-6 h-6 mr-xs"><g><path d="M7.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M21.5,3H18.75a.25.25,0,0,1-.25-.25V1a1,1,0,0,0-2,0V5.75a.75.75,0,0,1-1.5,0V3.5a.5.5,0,0,0-.5-.5H8.25A.25.25,0,0,1,8,2.75V1A1,1,0,0,0,6,1V5.75a.75.75,0,0,1-1.5,0V3.5A.5.5,0,0,0,4,3H2.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h19a2,2,0,0,0,2-2V5A2,2,0,0,0,21.5,3Zm0,18.5a.5.5,0,0,1-.5.5H3a.5.5,0,0,1-.5-.5V9.5A.5.5,0,0,1,3,9H21a.5.5,0,0,1,.5.5Z" fill="currentColor"></path></g></svg>
|
|
85
|
+
<strong>18 octubre 2022</strong>
|
|
86
|
+
</p>
|
|
87
|
+
<h3 id="titulo-card-1" class="c-h3">Título de noticia</h3>
|
|
88
|
+
<div class="prose max-w-none mb-base">
|
|
89
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
|
|
90
|
+
</div>
|
|
91
|
+
{{ verDetalleButton | safe }}
|
|
92
|
+
{% endset %}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
{% set examples = [
|
|
97
|
+
{
|
|
98
|
+
"name": "default",
|
|
99
|
+
"data": {
|
|
100
|
+
"classes": "lg:w-1/3",
|
|
101
|
+
"containerClasses": "p-base border border-neutral-base rounded",
|
|
102
|
+
"caller": defaultContent | safe
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "with icon",
|
|
107
|
+
"data": {
|
|
108
|
+
"classes": "lg:w-1/3",
|
|
109
|
+
"containerClasses": "p-base border border-neutral-base rounded",
|
|
110
|
+
"caller": withIconContent | safe
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "simple sidebar",
|
|
115
|
+
"data": {
|
|
116
|
+
"classes": "lg:w-1/3",
|
|
117
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
118
|
+
"caller": withButton | safe
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "with super",
|
|
123
|
+
"data": {
|
|
124
|
+
"classes": "lg:w-1/3",
|
|
125
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
126
|
+
"caller": withButton | safe,
|
|
127
|
+
"super": {
|
|
128
|
+
"backgroundFullColor": "transparent",
|
|
129
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
130
|
+
"classes": "h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
131
|
+
"attributes": {
|
|
132
|
+
"role": "img",
|
|
133
|
+
"aria-label": "Alt de la imagen"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "with sub",
|
|
140
|
+
"data": {
|
|
141
|
+
"classes": "lg:w-1/3",
|
|
142
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
143
|
+
"caller": withButton | safe,
|
|
144
|
+
"sub": {
|
|
145
|
+
"backgroundFullColor": "transparent",
|
|
146
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
147
|
+
"classes": "h-60 -m-base mt-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
148
|
+
"attributes": {
|
|
149
|
+
"role": "img",
|
|
150
|
+
"aria-label": "Alt de la imagen"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "with img left in desktop",
|
|
157
|
+
"description": "In mobile the img is in super area.",
|
|
158
|
+
"data": {
|
|
159
|
+
"classes": "lg:w-2/3",
|
|
160
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
161
|
+
"caller": withButton | safe,
|
|
162
|
+
"super": {
|
|
163
|
+
"backgroundFullColor": "transparent",
|
|
164
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
165
|
+
"classes": "lg:hidden h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
166
|
+
"attributes": {
|
|
167
|
+
"role": "img",
|
|
168
|
+
"aria-label": "Alt de la imagen"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"left": {
|
|
172
|
+
"backgroundFullColor": "transparent",
|
|
173
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
174
|
+
"classes": "hidden lg:block w-1/2 -m-base mr-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
175
|
+
"attributes": {
|
|
176
|
+
"role": "img",
|
|
177
|
+
"aria-label": "Alt de la imagen"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "with img right in desktop",
|
|
184
|
+
"description": "In mobile the img is in super area.",
|
|
185
|
+
"data": {
|
|
186
|
+
"classes": "lg:w-2/3",
|
|
187
|
+
"containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
188
|
+
"caller": withButton | safe,
|
|
189
|
+
"super": {
|
|
190
|
+
"backgroundFullColor": "transparent",
|
|
191
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
192
|
+
"classes": "lg:hidden h-60 -m-base mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
193
|
+
"attributes": {
|
|
194
|
+
"role": "img",
|
|
195
|
+
"aria-label": "Alt de la imagen"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"right": {
|
|
199
|
+
"backgroundFullColor": "transparent",
|
|
200
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
201
|
+
"classes": "hidden lg:block w-1/2 -m-base ml-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
202
|
+
"attributes": {
|
|
203
|
+
"role": "img",
|
|
204
|
+
"aria-label": "Alt de la imagen"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "home block without padding",
|
|
211
|
+
"data": {
|
|
212
|
+
"classes": "lg:w-1/2",
|
|
213
|
+
"containerClasses": "py-lg border-t-8 border-neutral-dark",
|
|
214
|
+
"caller": linksContent | safe
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "home block with buttons",
|
|
219
|
+
"data": {
|
|
220
|
+
"containerClasses": "p-lg bg-neutral-lighter border-t-8 border-neutral-dark",
|
|
221
|
+
"caller": areaPersonalContent | safe,
|
|
222
|
+
"super": {
|
|
223
|
+
"backgroundFullColor": "transparent",
|
|
224
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.png&text=Imagen",
|
|
225
|
+
"classes": "lg:hidden h-72 -m-lg mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
226
|
+
"attributes": {
|
|
227
|
+
"role": "img",
|
|
228
|
+
"aria-label": "Alt de la imagen"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"right": {
|
|
232
|
+
"backgroundFullColor": "transparent",
|
|
233
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
234
|
+
"classes": "hidden lg:block w-1/2 h-96 -m-lg ml-xl bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
235
|
+
"attributes": {
|
|
236
|
+
"role": "img",
|
|
237
|
+
"aria-label": "Alt de la imagen"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "items in list",
|
|
244
|
+
"description": "Image with fixed dimensions in desktop, text flexible.",
|
|
245
|
+
"data": {
|
|
246
|
+
"classes": "lg:w-3/4",
|
|
247
|
+
"containerClasses": "p-lg bg-neutral-lighter",
|
|
248
|
+
"caller": postContent | safe,
|
|
249
|
+
"super": {
|
|
250
|
+
"backgroundFullColor": "transparent",
|
|
251
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
252
|
+
"classes": "lg:hidden h-56 -m-lg mb-base bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
253
|
+
"attributes": {
|
|
254
|
+
"role": "img",
|
|
255
|
+
"aria-label": "Alt de la imagen"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"left": {
|
|
259
|
+
"backgroundFullColor": "transparent",
|
|
260
|
+
"backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
|
|
261
|
+
"classes": "hidden lg:block w-72 -m-lg mr-lg bg-cover bg-center bg-no-repeat overflow-hidden",
|
|
262
|
+
"attributes": {
|
|
263
|
+
"role": "img",
|
|
264
|
+
"aria-label": "Alt de la imagen"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "home mini block with icon",
|
|
271
|
+
"data": {
|
|
272
|
+
"classes": "lg:w-1/4",
|
|
273
|
+
"containerClasses": "p-base bg-neutral-lighter",
|
|
274
|
+
"caller": withIconContent | safe
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
] %}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!-- card -->
|
|
2
|
+
<div {%- if params.classes %} class="{{ params.classes }}"{% endif %} {%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
3
|
+
<div {%- if params.containerClasses %} class="{{ params.containerClasses }}"{% endif %}>
|
|
4
|
+
{% if params.super %}
|
|
5
|
+
<div class="{% if params.super.classes %}{{ params.super.classes }}{% else-%} h-32 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.super.backgroundFullColor }}; {% if params.super.backgroundFullUrl %} background-image: url('{{ params.super.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.super.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
6
|
+
{{ params.super.html | safe if params.super.html}}
|
|
7
|
+
</div>
|
|
8
|
+
{% endif %}
|
|
9
|
+
<div class="flex">
|
|
10
|
+
{% if params.left %}
|
|
11
|
+
<div class="{% if params.left.classes %}{{ params.left.classes }}{% else-%} w-1/2 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.left.backgroundFullColor }}; {% if params.left.backgroundFullUrl %} background-image: url('{{ params.left.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.left.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
12
|
+
{{ params.left.html | safe if params.left.html}}
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
<div {%- if params.left or params.right %} class="flex-1"{% endif %}>
|
|
16
|
+
{% if caller %}
|
|
17
|
+
{{ caller() }} {#- if statement allows usage of `call` to be optional -#}
|
|
18
|
+
{% elseif params.caller %}
|
|
19
|
+
{{ params.caller | safe }}
|
|
20
|
+
{% endif %}
|
|
21
|
+
</div>
|
|
22
|
+
{% if params.right %}
|
|
23
|
+
<div class="{% if params.right.classes %}{{ params.right.classes }}{% else-%} w-1/2 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.right.backgroundFullColor }}; {% if params.right.backgroundFullUrl %} background-image: url('{{ params.right.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.right.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
24
|
+
{{ params.right.html | safe if params.right.html}}
|
|
25
|
+
</div>
|
|
26
|
+
{% endif %}
|
|
27
|
+
</div>
|
|
28
|
+
{% if params.sub %}
|
|
29
|
+
<div class="{% if params.sub.classes %}{{ params.sub.classes }}{% else-%} h-32 bg-cover bg-center bg-no-repeat overflow-hidden{% endif %}" style="background-color: {{ params.sub.backgroundFullColor }}; {% if params.sub.backgroundFullUrl %} background-image: url('{{ params.sub.backgroundFullUrl }}'){% endif %}" {%- for attribute, value in params.sub.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
30
|
+
{{ params.sub.html | safe if params.sub.html}}
|
|
31
|
+
</div>
|
|
32
|
+
{% endif %}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<!-- /card -->
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
params:
|
|
2
|
+
- name: containerClasses
|
|
3
|
+
type: string
|
|
4
|
+
required: false
|
|
5
|
+
description: Classes that can be added to the inner container.
|
|
6
|
+
- name: classes
|
|
7
|
+
type: string
|
|
8
|
+
required: false
|
|
9
|
+
description: Classes to add to the card component.
|
|
10
|
+
- name: attributes
|
|
11
|
+
type: object
|
|
12
|
+
required: false
|
|
13
|
+
description: HTML attributes (for example data attributes) to add to the card component.
|
|
14
|
+
- name: caller
|
|
15
|
+
type: nunjucks-block
|
|
16
|
+
required: false
|
|
17
|
+
description: Content in the flexible content area. Not strictly a parameter but [Nunjucks code convention](https://mozilla.github.io/nunjucks/templating.html#call). Using a `call` block enables you to call a macro with all the text inside the tag. This is helpful if you want to pass a lot of content into a macro. To use it, you will need to wrap the entire media-object component in a `call` block.
|
|
18
|
+
- name: super
|
|
19
|
+
type: object
|
|
20
|
+
required: false
|
|
21
|
+
description: This is an area over the card content
|
|
22
|
+
- name: backgroundFullColor
|
|
23
|
+
type: string
|
|
24
|
+
required: true
|
|
25
|
+
description: The css color used in the background image that fills all the super area.
|
|
26
|
+
- name: backgroundFullUrl
|
|
27
|
+
type: string
|
|
28
|
+
required: false
|
|
29
|
+
description: Url used in the background image that fills all the super area.
|
|
30
|
+
- name: html
|
|
31
|
+
type: string
|
|
32
|
+
required: false
|
|
33
|
+
description: HTML to use inside the super area.
|
|
34
|
+
- name: classes
|
|
35
|
+
type: string
|
|
36
|
+
required: false
|
|
37
|
+
description: Classes to add to the super area.
|
|
38
|
+
- name: attributes
|
|
39
|
+
type: object
|
|
40
|
+
required: false
|
|
41
|
+
description: HTML attributes (for example data attributes) to add to the super area.
|
|
42
|
+
- name: sub
|
|
43
|
+
type: object
|
|
44
|
+
required: false
|
|
45
|
+
description: This is an area under the card content
|
|
46
|
+
- name: backgroundFullColor
|
|
47
|
+
type: string
|
|
48
|
+
required: true
|
|
49
|
+
description: The css color used in the background image that fills all the sub area.
|
|
50
|
+
- name: backgroundFullUrl
|
|
51
|
+
type: string
|
|
52
|
+
required: false
|
|
53
|
+
description: Url used in the background image that fills all the sub area.
|
|
54
|
+
- name: html
|
|
55
|
+
type: string
|
|
56
|
+
required: false
|
|
57
|
+
description: HTML to use inside the sub area.
|
|
58
|
+
- name: classes
|
|
59
|
+
type: string
|
|
60
|
+
required: false
|
|
61
|
+
description: Classes to add to the sub area.
|
|
62
|
+
- name: attributes
|
|
63
|
+
type: object
|
|
64
|
+
required: false
|
|
65
|
+
description: HTML attributes (for example data attributes) to add to the sub area.
|
|
66
|
+
- name: left
|
|
67
|
+
type: object
|
|
68
|
+
required: false
|
|
69
|
+
description: This is an area over the card content
|
|
70
|
+
- name: backgroundFullColor
|
|
71
|
+
type: string
|
|
72
|
+
required: true
|
|
73
|
+
description: The css color used in the background image that fills all the left area.
|
|
74
|
+
- name: backgroundFullUrl
|
|
75
|
+
type: string
|
|
76
|
+
required: false
|
|
77
|
+
description: Url used in the background image that fills all the left area.
|
|
78
|
+
- name: html
|
|
79
|
+
type: string
|
|
80
|
+
required: false
|
|
81
|
+
description: HTML to use inside the left area.
|
|
82
|
+
- name: classes
|
|
83
|
+
type: string
|
|
84
|
+
required: false
|
|
85
|
+
description: Classes to add to the left area.
|
|
86
|
+
- name: attributes
|
|
87
|
+
type: object
|
|
88
|
+
required: false
|
|
89
|
+
description: HTML attributes (for example data attributes) to add to the super area.
|
|
90
|
+
- name: right
|
|
91
|
+
type: object
|
|
92
|
+
required: false
|
|
93
|
+
description: This is an area under the card content
|
|
94
|
+
- name: backgroundFullColor
|
|
95
|
+
type: string
|
|
96
|
+
required: true
|
|
97
|
+
description: The css color used in the background image that fills all the right area.
|
|
98
|
+
- name: backgroundFullUrl
|
|
99
|
+
type: string
|
|
100
|
+
required: false
|
|
101
|
+
description: Url used in the background image that fills all the right area.
|
|
102
|
+
- name: html
|
|
103
|
+
type: string
|
|
104
|
+
required: false
|
|
105
|
+
description: HTML to use inside the right area.
|
|
106
|
+
- name: classes
|
|
107
|
+
type: string
|
|
108
|
+
required: false
|
|
109
|
+
description: Classes to add to the right area.
|
|
110
|
+
- name: attributes
|
|
111
|
+
type: object
|
|
112
|
+
required: false
|
|
113
|
+
description: HTML attributes (for example data attributes) to add to the right area.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<span class="c-collapsible__show absolute inset-y-0 right-0 py-sm font-normal text-sm text-neutral-dark underline group-focus:text-black pointer-events-none " aria-hidden="false">Mostrar</span>
|
|
5
5
|
<span class="c-collapsible__hide absolute inset-y-0 right-0 py-sm font-normal text-sm text-neutral-dark underline group-focus:text-black pointer-events-none hidden" aria-hidden="true">Ocultar</span>
|
|
6
6
|
</button>
|
|
7
|
-
<div aria-hidden="true" class="c-collapsible__content hidden py-sm" {%- if params.id %} id="{{params.id}}"{% endif %}
|
|
7
|
+
<div aria-hidden="true" class="c-collapsible__content hidden py-sm" {%- if params.id %} id="{{params.id}}"{% endif %}>
|
|
8
8
|
{% if params.html %}
|
|
9
9
|
{{ params.html | safe }}
|
|
10
10
|
{% else %}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
href: params.skipLink.href if params.skipLink.href else "#content"
|
|
13
13
|
}) }}
|
|
14
14
|
</nav>
|
|
15
|
-
<div class="bg-neutral-lighter border-b border-neutral-base"
|
|
15
|
+
<div class="bg-neutral-lighter border-b border-neutral-base">
|
|
16
16
|
<div class="container mx-auto px-base">
|
|
17
17
|
<div class="flex items-center justify-between min-h-14">
|
|
18
18
|
<div class="flex flex-wrap items-center">
|