observatorio-jekyll-theme 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +168 -0
  3. data/README.md +164 -0
  4. data/_config.yml +112 -0
  5. data/_data/assets.json +4 -0
  6. data/_data/en.yml +106 -0
  7. data/_data/es.yml +131 -0
  8. data/_data/forms/asociate.yml +55 -0
  9. data/_data/forms/contacto.yml +59 -0
  10. data/_data/forms/dona.yml +60 -0
  11. data/_data/forms/newsletter.yml +18 -0
  12. data/_data/forms/shipping_address.yml +94 -0
  13. data/_data/forms/sumate.yml +46 -0
  14. data/_data/forms/user.yml +13 -0
  15. data/_data/layouts/about.yml +112 -0
  16. data/_data/layouts/banner_1.yml +65 -0
  17. data/_data/layouts/banner_2.yml +89 -0
  18. data/_data/layouts/biblioteca.yml +110 -0
  19. data/_data/layouts/cart.yml +222 -0
  20. data/_data/layouts/confirmation.yml +68 -0
  21. data/_data/layouts/contacto.yml +82 -0
  22. data/_data/layouts/email.yml +56 -0
  23. data/_data/layouts/integrante.yml +60 -0
  24. data/_data/layouts/menu.yml +73 -0
  25. data/_data/layouts/payment.yml +126 -0
  26. data/_data/layouts/peticiones.yml +87 -0
  27. data/_data/layouts/post.yml +135 -0
  28. data/_data/layouts/product.yml +142 -0
  29. data/_data/layouts/shipment.yml +126 -0
  30. data/_data/layouts/theme.yml +266 -0
  31. data/_includes/5b0263ea6cfc4dab9f3d3fcec87a8337.webp +0 -0
  32. data/_includes/archive.html +14 -0
  33. data/_includes/archive_layout_about.html +0 -0
  34. data/_includes/archive_layout_articulos.html +14 -0
  35. data/_includes/archive_layout_banner-1.html +0 -0
  36. data/_includes/archive_layout_banner-2.html +0 -0
  37. data/_includes/archive_layout_banner_1.html +0 -0
  38. data/_includes/archive_layout_banner_2.html +0 -0
  39. data/_includes/archive_layout_biblioteca.html +16 -0
  40. data/_includes/archive_layout_contacto.html +0 -0
  41. data/_includes/archive_layout_integrantes.html +26 -0
  42. data/_includes/archive_layout_layout.html +0 -0
  43. data/_includes/archive_layout_menu.html +0 -0
  44. data/_includes/archive_layout_theme.html +0 -0
  45. data/_includes/archive_post.html +0 -0
  46. data/_includes/boolean.html +30 -0
  47. data/_includes/cart_add.html +8 -0
  48. data/_includes/cart_controller.html +11 -0
  49. data/_includes/contact.html +23 -0
  50. data/_includes/content.html +1 -0
  51. data/_includes/country.html +53 -0
  52. data/_includes/device_detector.html +15 -0
  53. data/_includes/donacion.html +125 -0
  54. data/_includes/email.html +1 -0
  55. data/_includes/file.html +35 -0
  56. data/_includes/floating_alert.html +6 -0
  57. data/_includes/footer.html +11 -0
  58. data/_includes/form/boolean.html +1 -0
  59. data/_includes/form/content.html +1 -0
  60. data/_includes/form/email.html +1 -0
  61. data/_includes/form/file.html +1 -0
  62. data/_includes/form/hidden.html +1 -0
  63. data/_includes/form/image.html +1 -0
  64. data/_includes/form/input.html +1 -0
  65. data/_includes/form/markdown_content.html +1 -0
  66. data/_includes/form/number.html +1 -0
  67. data/_includes/form/predefined_array.html +1 -0
  68. data/_includes/form/section.html +1 -0
  69. data/_includes/form/separator.html +1 -0
  70. data/_includes/form/string.html +1 -0
  71. data/_includes/form/submit.html +1 -0
  72. data/_includes/form/tel.html +1 -0
  73. data/_includes/form/text.html +1 -0
  74. data/_includes/form/url.html +1 -0
  75. data/_includes/hidden.html +5 -0
  76. data/_includes/image.html +32 -0
  77. data/_includes/input.html +49 -0
  78. data/_includes/intento%20logo%20b_edited.webp +0 -0
  79. data/_includes/item.html +38 -0
  80. data/_includes/logo.png +0 -0
  81. data/_includes/logo.svg +1560 -0
  82. data/_includes/markdown_content.html +1 -0
  83. data/_includes/matomo.html +15 -0
  84. data/_includes/menu.html +27 -0
  85. data/_includes/navbar.html +32 -0
  86. data/_includes/newsletter.html +10 -0
  87. data/_includes/notification.html +5 -0
  88. data/_includes/number.html +1 -0
  89. data/_includes/pack.html +1 -0
  90. data/_includes/password.html +1 -0
  91. data/_includes/pay_what_you_can_controller.html +13 -0
  92. data/_includes/picture.html +23 -0
  93. data/_includes/post.html +48 -0
  94. data/_includes/postal_code.html +45 -0
  95. data/_includes/predefined_array.html +39 -0
  96. data/_includes/preload_font.html +1 -0
  97. data/_includes/product.html +38 -0
  98. data/_includes/search.html +25 -0
  99. data/_includes/section.html +1 -0
  100. data/_includes/separator.html +1 -0
  101. data/_includes/share.html +22 -0
  102. data/_includes/share_box.html +29 -0
  103. data/_includes/social_networks.html +8 -0
  104. data/_includes/state.html +52 -0
  105. data/_includes/string.html +3 -0
  106. data/_includes/subitem.html +7 -0
  107. data/_includes/submit.html +5 -0
  108. data/_includes/tel.html +1 -0
  109. data/_includes/text.html +32 -0
  110. data/_includes/url.html +1 -0
  111. data/_includes/video.html +7 -0
  112. data/_layouts/about.html +52 -0
  113. data/_layouts/acciones.html +21 -0
  114. data/_layouts/archive.html +5 -0
  115. data/_layouts/asociate.html +20 -0
  116. data/_layouts/biblioteca.html +85 -0
  117. data/_layouts/cart.html +72 -0
  118. data/_layouts/confirmation.html +23 -0
  119. data/_layouts/contacto.html +47 -0
  120. data/_layouts/default.html +72 -0
  121. data/_layouts/dona.html +20 -0
  122. data/_layouts/home.html +142 -0
  123. data/_layouts/integrante.html +26 -0
  124. data/_layouts/layout-categories.html +5 -0
  125. data/_layouts/layout.html +6 -0
  126. data/_layouts/page.html +5 -0
  127. data/_layouts/participa.html +12 -0
  128. data/_layouts/payment.html +21 -0
  129. data/_layouts/peticiones.html +24 -0
  130. data/_layouts/post.html +91 -0
  131. data/_layouts/product.html +110 -0
  132. data/_layouts/shipment.html +52 -0
  133. data/_layouts/sumate.html +20 -0
  134. data/_sass/accessibility.scss +54 -0
  135. data/_sass/content.scss +11 -0
  136. data/_sass/editor.scss +29 -0
  137. data/_sass/embed.scss +13 -0
  138. data/_sass/floating_alert.scss +48 -0
  139. data/_sass/fonts.scss +29 -0
  140. data/_sass/helpers.scss +379 -0
  141. data/_sass/menu.scss +36 -0
  142. data/_sass/share_box.scss +26 -0
  143. data/_sass/slider.scss +29 -0
  144. data/_sass/snap.scss +60 -0
  145. data/_sass/toggler.scss +62 -0
  146. data/assets/css/styles.scss +173 -0
  147. data/assets/data/site.json +10 -0
  148. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  149. data/assets/fonts/roboto/v27/KFOjCnqEu92Fr1Mu51TzBhc9-subset.woff2 +0 -0
  150. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1MmgWxP-subset.woff2 +0 -0
  151. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1Mu52xP-subset.woff2 +0 -0
  152. data/assets/fonts/roboto/v27/KFOlCnqEu92Fr1MmWUlvAw-subset.woff2 +0 -0
  153. data/assets/fonts/roboto/v27/KFOmCnqEu92Fr1Me5Q-subset.woff2 +0 -0
  154. data/assets/js/pack.9dc6883564ec9354c89d.js +114 -0
  155. data/assets/js/pack.9dc6883564ec9354c89d.js.map +1 -0
  156. data/assets/templates/alert.html +9 -0
  157. data/assets/templates/cart.html +67 -0
  158. data/assets/templates/confirmation.html +67 -0
  159. data/assets/templates/payment_methods.html +64 -0
  160. data/assets/templates/recover_order.html +13 -0
  161. data/assets/templates/results.html +53 -0
  162. data/assets/templates/shipping_methods.html +38 -0
  163. metadata +568 -0
@@ -0,0 +1,266 @@
1
+ ---
2
+ title:
3
+ type: string
4
+ required: true
5
+ label:
6
+ en: Title
7
+ es: Título
8
+ help:
9
+ en: 'The name you want to give to this customization'
10
+ es: 'El nombre que quieras darle a esta personalización'
11
+ font_family_sans_serif:
12
+ type: predefined_value
13
+ label:
14
+ en: Select a typography for the site
15
+ es: Selecciona una tipografía para el sitio
16
+ help:
17
+ en: 'If you want us to add support for a typography, please send us an e-mail'
18
+ es: 'Si quieres que agreguemos una tipografía, por favor envíanos un e-mail'
19
+ default:
20
+ en: sans-serif
21
+ es: sans-serif
22
+ values:
23
+ en:
24
+ sans-serif: 'Sans Serif'
25
+ Roboto: 'Roboto'
26
+ es:
27
+ sans-serif: 'Sans Serif'
28
+ Roboto: 'Roboto'
29
+ headings_font_family:
30
+ type: predefined_value
31
+ label:
32
+ en: Select a typography for the headings
33
+ es: Selecciona una tipografía para los títulos del sitio
34
+ help:
35
+ en: 'If you want us to add support for a typography, please send us an e-mail'
36
+ es: 'Si quieres que agreguemos una tipografía, por favor envíanos un e-mail'
37
+ default:
38
+ en: sans-serif
39
+ es: sans-serif
40
+ values:
41
+ en:
42
+ sans-serif: 'Sans Serif'
43
+ Roboto: 'Roboto'
44
+ es:
45
+ sans-serif: 'Sans Serif'
46
+ Roboto: 'Roboto'
47
+ enable_rounded:
48
+ type: boolean
49
+ label:
50
+ en: 'Rounded corners'
51
+ es: 'Esquinas redondeadas'
52
+ help:
53
+ en: 'For buttons, form inputs, etc.'
54
+ es: 'De los botones, campos de formularios, etc.'
55
+ default:
56
+ es: false
57
+ en: false
58
+ enable_shadows:
59
+ type: boolean
60
+ label:
61
+ en: 'Shadows'
62
+ es: 'Sombras'
63
+ help:
64
+ en: 'Shadows behind elements'
65
+ es: 'Sombras en los elementos'
66
+ default:
67
+ es: false
68
+ en: false
69
+ body_bg:
70
+ type: color
71
+ label:
72
+ en: 'Background color'
73
+ es: 'Color de fondo'
74
+ help:
75
+ en: "Site's background color"
76
+ es: 'Color de fondo del sitio'
77
+ default:
78
+ es: '#FFFFFF'
79
+ en: '#FFFFFF'
80
+ body_color:
81
+ type: color
82
+ label:
83
+ en: 'Text color'
84
+ es: 'Color del texto'
85
+ help:
86
+ en: ''
87
+ es: ''
88
+ default:
89
+ es: '#212529'
90
+ en: '#212529'
91
+ primary:
92
+ type: color
93
+ label:
94
+ en: 'Primary color'
95
+ es: 'Color principal'
96
+ help:
97
+ en: 'Highlights certain elements'
98
+ es: 'Resalta algunos elementos'
99
+ default:
100
+ es: '#007bff'
101
+ en: '#007bff'
102
+ secondary:
103
+ type: color
104
+ label:
105
+ en: 'Secondary color'
106
+ es: 'Color secundario'
107
+ help:
108
+ en: 'Highlights certain elements'
109
+ es: 'Resalta algunos elementos'
110
+ default:
111
+ es: '#6c757d'
112
+ en: '#6c757d'
113
+ link_color:
114
+ type: color
115
+ label:
116
+ en: 'Link color'
117
+ es: 'Color de los vínculos'
118
+ help:
119
+ en: ''
120
+ es: ''
121
+ default:
122
+ es: '#007bff'
123
+ en: '#007bff'
124
+ link_hover_color:
125
+ type: color
126
+ label:
127
+ en: 'Link color when selected'
128
+ es: 'Color de los vínculos al seleccionarlos'
129
+ help:
130
+ en: ''
131
+ es: ''
132
+ default:
133
+ es: '#0056b3'
134
+ en: '#0056b3'
135
+ h1_font_size:
136
+ type: float
137
+ unit: rem
138
+ label:
139
+ en: 'Height for first level headings'
140
+ es: 'Altura de los títulos de primer nivel'
141
+ help:
142
+ en: 'Proportional to font base height. For instance, 2 is double height.'
143
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
144
+ default:
145
+ es: 2.5
146
+ en: 2.5
147
+ h2_font_size:
148
+ type: float
149
+ unit: rem
150
+ label:
151
+ en: 'Height for second level headings'
152
+ es: 'Altura de los títulos de segundo nivel'
153
+ help:
154
+ en: 'Proportional to font base height. For instance, 2 is double height.'
155
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
156
+ default:
157
+ es: 2
158
+ en: 2
159
+ h3_font_size:
160
+ type: float
161
+ unit: rem
162
+ label:
163
+ en: 'Height for third level headings'
164
+ es: 'Altura de los títulos de tercer nivel'
165
+ help:
166
+ en: 'Proportional to font base height. For instance, 2 is double height.'
167
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
168
+ default:
169
+ es: 1.75
170
+ en: 1.75
171
+ h4_font_size:
172
+ type: float
173
+ unit: rem
174
+ label:
175
+ en: 'Height for fourth level headings'
176
+ es: 'Altura de los títulos de cuarto nivel'
177
+ help:
178
+ en: 'Proportional to font base height. For instance, 2 is double height.'
179
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
180
+ default:
181
+ es: 1.5
182
+ en: 1.5
183
+ h5_font_size:
184
+ type: float
185
+ unit: rem
186
+ label:
187
+ en: 'Height for fifth level headings'
188
+ es: 'Altura de los títulos de quinto nivel'
189
+ help:
190
+ en: 'Proportional to font base height. For instance, 2 is double height.'
191
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
192
+ default:
193
+ es: 1.25
194
+ en: 1.25
195
+ h6_font_size:
196
+ type: float
197
+ unit: rem
198
+ label:
199
+ en: 'Height for sixth level headings'
200
+ es: 'Altura de los títulos de sexto nivel'
201
+ help:
202
+ en: 'Proportional to font base height. For instance, 2 is double height.'
203
+ es: 'En proporción al alto base de la tipografía. Por ejemplo 2 es el doble.'
204
+ default:
205
+ es: 1
206
+ en: 1
207
+ mark_bg:
208
+ type: color
209
+ label:
210
+ en: 'Highlight color'
211
+ es: 'Color de resaltado'
212
+ help:
213
+ en: 'Default color for highlighted text'
214
+ es: 'Color por defecto para el texto resaltado'
215
+ default:
216
+ es: '#fcf8e3'
217
+ en: '#fcf8e3'
218
+ navbar_light_color:
219
+ type: color
220
+ label:
221
+ en: 'Navigation bar item color'
222
+ es: 'Color de ítem en la barra de navegación'
223
+ help:
224
+ en: 'Text and icons'
225
+ es: 'Texto e íconos'
226
+ default:
227
+ es: '#ced4da'
228
+ en: '#ced4da'
229
+ navbar_light_hover_color:
230
+ type: color
231
+ label:
232
+ en: 'Navigation bar item color when selected'
233
+ es: 'Color de ítem seleccionado en la barra de navegación'
234
+ help:
235
+ en: 'Text and icons'
236
+ es: 'Texto e íconos'
237
+ default:
238
+ es: '#6c757d'
239
+ en: '#6c757d'
240
+ navbar_light_active_color:
241
+ type: color
242
+ label:
243
+ en: 'Navigation bar item color when active'
244
+ es: 'Color de ítem activo en la barra de navegación'
245
+ help:
246
+ en: 'Text and icons'
247
+ es: 'Texto e íconos'
248
+ default:
249
+ es: '#212529'
250
+ en: '#212529'
251
+ order:
252
+ type: order
253
+ label:
254
+ en: Order
255
+ es: Orden
256
+ help:
257
+ en: Position in articles list
258
+ es: La posición del artículo en la lista de artículos
259
+ draft:
260
+ type: boolean
261
+ label:
262
+ en: Draft
263
+ es: Borrador
264
+ help:
265
+ en: This post isn't ready to be published yet
266
+ es: Este artículo aun no está listo para publicar
@@ -0,0 +1,14 @@
1
+ <section class="row no-gutters justify-content-center">
2
+ <header class="col-10 mb-3">
3
+ <h1>{{ include.page.title }}</h1>
4
+ </header>
5
+
6
+ <div class="col-10 container">
7
+ <div class="row justify-content-start row-cols-1 row-cols-md-2 row-cols-lg-3">
8
+ {% for post in include.page.posts %}
9
+ {%- if site.ignored_layouts contains post.layout -%}{%- continue -%}{%- endif -%}
10
+ {%- include_cached post.html post=post -%}
11
+ {% endfor %}
12
+ </div>
13
+ </div>
14
+ </section>
File without changes
@@ -0,0 +1,14 @@
1
+ <section class="row no-gutters justify-content-center">
2
+ <header class="col-10 mb-3">
3
+ <h1>{{ include.page.title }}</h1>
4
+ </header>
5
+
6
+ <div class="col-10 container">
7
+ <div class="row justify-content-start row-cols-1 row-cols-md-2 row-cols-lg-3">
8
+ {% for post in include.page.posts %}
9
+ {%- if site.ignored_layouts contains post.layout -%}{%- continue -%}{%- endif -%}
10
+ {%- include_cached post.html post=post -%}
11
+ {% endfor %}
12
+ </div>
13
+ </div>
14
+ </section>
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ {% comment %}
2
+ Trae todos los archivos por biblioteca y categoria para mostrarlos como
3
+ botones.
4
+ {% endcomment %}
5
+ {%- assign categorias = site.archives.layout-categories | where: '_layout', 'biblioteca' -%}
6
+
7
+ <section id="biblioteca" class="d-flex flex-column background-blue justify-content-around p-5">
8
+ {% for post in categorias %}
9
+ {%- if site.ignored_layouts contains post.layout -%}{%- continue -%}{%- endif -%}
10
+ {% if post.categories.size == 0 %}{% continue %}{% endif %}
11
+ <a
12
+ href="{{ post.url }}"
13
+ class="btn btn-outline-light btn-lg btn-block font-weight-bold">
14
+ {{ post.categories }}</a>
15
+ {% endfor %}
16
+ </section>
File without changes
@@ -0,0 +1,26 @@
1
+ {%- assign integrantes = site.posts | where: 'layout', 'integrante' -%}
2
+ {%- assign about = site.posts | find: 'layout', 'about' -%}
3
+
4
+ <section id="integrantes" class="container" itemscope itemtype="https://schema.org/Organization">
5
+ <meta itemprop="name" content="{{ about.title }}" />
6
+ <meta itemprop="url" content="{{ site.url }}" />
7
+
8
+ <div class="row justify-content-center row-cols-1 row-cols-md-3">
9
+ {% for post in integrantes %}
10
+ <article
11
+ itemprop="member"
12
+ itemscope
13
+ itemtype="https://schema.org/Person"
14
+ id="{{ post.slug }}"
15
+ class="col text-center mb-3">
16
+
17
+ {%- include_cached picture.html image=post.image default_description=post.title height=15 width=15 extra='border border-white rounded-circle'-%}
18
+
19
+ <header class="mt-3">
20
+ <h1 class="f-3 text-uppercase p-author h-card" itemprop="name">{{ post.title }}</h1>
21
+ <div class="lead p-job-title" itemprop="jobTitle">{{ post.description | markdownify }}</div>
22
+ </header>
23
+ </article>
24
+ {% endfor %}
25
+ </div>
26
+ </section>
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,30 @@
1
+ {%- assign name = include.field[0] -%}
2
+ {%- assign id = include.field[1].id | default: name -%}
3
+ {%- assign label = include.field[1].label[site.locale] -%}
4
+ {%- assign help = include.field[1].help[site.locale] -%}
5
+ {%- assign autocomplete = include.field[1].autocomplete -%}
6
+
7
+ <div class="form-check text-left">
8
+ <input
9
+ {% if help %}
10
+ aria-describedby="help-{{ id }}"
11
+ {% endif %}
12
+ {% if include.field[1].required %}
13
+ required
14
+ {% endif %}
15
+ type="checkbox"
16
+ name="{{ name }}"
17
+ id="{{ id }}"
18
+ {% if autocomplete %}
19
+ autocomplete="{{ autocomplete }}"
20
+ {% endif %}
21
+ class="form-check-input" />
22
+
23
+ <label class="form-check-label" for="{{ id }}">{{ label }}</label>
24
+
25
+ {%- if help -%}
26
+ <small id="help-{{ id }}" class="form-text">
27
+ {{ help }}
28
+ </small>
29
+ {%- endif -%}
30
+ </div>
@@ -0,0 +1,8 @@
1
+ <button
2
+ {{ include.product.in_stock | value_unless: 'disabled' }}
3
+ data-action="cart#add"
4
+ data-stock-add
5
+ class="btn btn-success btn-block btn-lg">
6
+ <span class="when-parent-disabled">{{ site.cart.out_of_stock }}</span>
7
+ <span class="when-parent-enabled">{{ site.cart.add }}</span>
8
+ </button>
@@ -0,0 +1,11 @@
1
+ data-controller="cart"
2
+ data-target="stock.product"
3
+ data-sku="{{ include.product.sku }}"
4
+ data-cart-url="{{ include.product.url }}"
5
+ data-cart-variant-id="{{ include.product.variant_id }}"
6
+ data-cart-image="{{ include.product.image.path | thumbnail: 212, 300 }}"
7
+ data-cart-title="{{ include.product.title }}"
8
+ data-cart-price="{{ include.product.price }}"
9
+ data-cart-in-stock="{{ include.product.in_stock }}"
10
+ data-cart-stock="{{ include.product.stock }}"
11
+ data-cart-extra="{{ include.extra | join: '|' }}"
@@ -0,0 +1,23 @@
1
+ {% comment %}
2
+ Esta imagen obtiene una cookie desde la API de Sutty para autorizar el
3
+ envío del formulario.
4
+ {% endcomment %}
5
+ <img class="d-none invisible" src="https://api.{{ site.hostname }}/v1/sites/{{ site.hostname }}/contact/cookie.png" />
6
+
7
+ {% comment %}
8
+ El formulario se envía a la API. La definición del formulario se
9
+ encuentra en _data/forms/contacto.yml
10
+ {% endcomment %}
11
+ <form
12
+ data-turbo="false"
13
+ data-controller="contact"
14
+ data-delay="60"
15
+ action="https://api.{{ site.hostname }}/v1/sites/{{ site.hostname }}/contact/{{ include.name }}"
16
+ method="post">
17
+ {%- for field in include.form -%}
18
+ {% assign template = field[1].type | append: '.html' %}
19
+ <div class="col{{ field[1].col | default: 12 | prepend: '-' }}">
20
+ {% include {{ template }} field=field %}
21
+ </div>
22
+ {%- endfor -%}
23
+ </form>
@@ -0,0 +1 @@
1
+ {% include text.html field=field %}
@@ -0,0 +1,53 @@
1
+ {% if include.form %}
2
+ {%- assign name = include.field[0] | append: ']' | prepend: '[' | prepend: include.form -%}
3
+ {%- assign id = include.field[1].id | default: name | replace: '[', '_' | remove: ']' -%}
4
+ {% else %}
5
+ {%- assign name = include.field[0] -%}
6
+ {%- assign id = include.field[1].id | default: name %}
7
+ {% endif %}
8
+
9
+ {%- assign label = include.field[1].label[site.locale] -%}
10
+ {%- assign help = include.field[1].help[site.locale] -%}
11
+ {%- assign error = include.field[1].error[site.locale] -%}
12
+ {%- assign autocomplete = include.field[1].autocomplete -%}
13
+
14
+ <div class="form-group" data-controller="country" data-country-group="{{ include.field[1].group }}">
15
+ <label for="{{ id }}">
16
+ {{ label }}
17
+ {% if include.field[1].required %}*{% endif %}
18
+ </label>
19
+
20
+ <input data-target="country.id" type="hidden" name="{{ name }}" id="{{ id }}" value="" />
21
+ <input data-target="country.iso" type="hidden" name="{{ include.form }}_ignore_{{ include.field[0] }}_iso" value="" />
22
+
23
+ <input
24
+ data-target="country.name"
25
+ {% if help %}
26
+ aria-describedby="help-{{ id }}"
27
+ {% endif %}
28
+ {% if include.field[1].required %}
29
+ required
30
+ {% endif %}
31
+ type="{{ include.field[1].type }}"
32
+ {% if autocomplete %}
33
+ autocomplete="{{ autocomplete }}"
34
+ {% endif %}
35
+ name="{{ include.form }}_ignore_{{ include.field[0] }}"
36
+ id="{{ include.form }}_ignore_{{ include.field[0] }}"
37
+ disabled
38
+ list="list-{{ id }}"
39
+ class="form-control" />
40
+
41
+ {%- if error -%}
42
+ <div class="invalid-feedback">{{ error }}</div>
43
+ {%- endif -%}
44
+
45
+ {%- if help -%}
46
+ <small id="help-{{ id }}" class="form-text">
47
+ {{ help }}
48
+ </small>
49
+ {%- endif -%}
50
+
51
+ <datalist id="list-{{ id }}" data-target="country.list">
52
+ </datalist>
53
+ </div>
@@ -0,0 +1,15 @@
1
+ <div data-controller="device-detector" class="position-fixed top-0 right-0 background-pink-t3 pointer-event-none">
2
+ <span data-device-detector-target="clientName"></span>
3
+ &nbsp;
4
+ <span data-device-detector-target="clientVersion"></span>
5
+ &nbsp;
6
+ (<span data-device-detector-target="deviceType"></span>)
7
+ &nbsp;
8
+ <span data-device-detector-target="osName"></span>
9
+ &nbsp;
10
+ <span data-device-detector-target="osVersion"></span>
11
+ &nbsp;
12
+ <span data-device-detector-target="viewportWidth"></span>
13
+ x <span data-device-detector-target="viewportHeight"></span>
14
+ x <span data-device-detector-target="devicePixelRatio"></span>
15
+ </div>
@@ -0,0 +1,125 @@
1
+ {% comment %}
2
+ Traer la donación pasada como parámetro o la que se haya establecido por
3
+ defecto para el layout correspondiente.
4
+
5
+ product = producto
6
+ page = post que incluye esta donación
7
+ icon = ícono del botón
8
+ class = clases extra para el botón
9
+ boton = texto opcional para el botón
10
+ {% endcomment %}
11
+ {%- assign product = include.product | default: include.page -%}
12
+ {%- assign donacion = include.page.donacion | default: product.donacion -%}
13
+
14
+ <input data-controller="open" data-action="donacion" type="checkbox" id="donacion" class="d_toggler sr-only">
15
+ <label class="btn-block" for="donacion">
16
+ <span class="btn {{ include.class }} btn-block">
17
+ {{ include.boton | default: donacion.boton }}
18
+
19
+ {% if include.icon %}
20
+ <i class="{{ include.icon }}"></i>
21
+ {% endif %}
22
+ </span>
23
+
24
+ <div class="telon d_share-box"></div>
25
+ </label>
26
+
27
+ <form
28
+ data-pay-what-you-can-target="form"
29
+ {% include_cached pay_what_you_can_controller.html product=product url=include.page.pdf.path %}
30
+ style="z-index: 1011"
31
+ class="d_share-box pointer-event-none d_toggled d-flex align-items-center justify-content-center"
32
+ itemscope
33
+ itemtype="https://schema.org/Offer">
34
+ <meta itemprop="sku" content="{{ product.sku }}" />
35
+ <meta itemprop="availableDeliveryMethod" content="http://purl.org/goodrelations/v1#DirectDownload" />
36
+ <meta itemprop="acceptedPaymentMethod" content="http://purl.org/goodrelations/v1#PayPal" />
37
+
38
+ <div class="box inside background-white pointer-event-auto row no-gutters align-items-center justify-content-center p-5">
39
+ <div class="row">
40
+ <div class="col-md-9 black font-weight-light lead text-md-justify hyphens-md e-content">
41
+ {{ donacion.content | markdownify }}
42
+ </div>
43
+
44
+ <div class="col-md-3 d-flex justify-content-center">
45
+ {% if include.page.image.path %}
46
+ <picture>
47
+ <source srcset="{{ include.page.image.path | thumbnail: nil, 370 }}" media="(max-width: 767px)" />
48
+ <img class="cover shadow w-200px" src="{{ include.page.image.path | thumbnail: nil, 300 }}" loading="lazy" />
49
+ </picture>
50
+ {% else %}
51
+ {% include_cached logo_horizontal.svg %}
52
+ {% endif %}
53
+ </div>
54
+
55
+ <div class="col-md-3 mb-3 mb-md-0">
56
+ <h2>{{ site.i18n.donacion.monto }}</h2>
57
+
58
+ <label class="sr-only" for="price">{{ site.i18n.donacion.monto }}</label>
59
+ <input id="price" name="price" type="number" class="form-control" min="1" value="1" data-name="price" data-action="pay-what-you-can#store" required/>
60
+ </div>
61
+
62
+ <div class="col-md-3 mb-3 mb-md-0">
63
+ <div class="row">
64
+ <div class="col-6">
65
+ <input id="currency-ars" type="radio" class="sr-only" name="currency" value="ARS" data-name="currency" data-action="pay-what-you-can#store" required/>
66
+ <label for="currency-ars" itemprop="priceCurrency" class="d-flex flex-column justify-content-center">
67
+ <span class="btn border mb-3">ARS</span>
68
+
69
+ {% include mp-logo.svg %}
70
+ </label>
71
+ </div>
72
+
73
+ <div class="col-6">
74
+ <input id="currency-usd" type="radio" class="sr-only" name="currency" value="USD" data-name="currency" data-action="pay-what-you-can#store" required/>
75
+ <label for="currency-usd" itemprop="priceCurrency" class="d-flex flex-column justify-content-center">
76
+ <span class="btn border mb-3">USD</span>
77
+
78
+ {% include pp-logo.svg %}
79
+ </label>
80
+ </div>
81
+
82
+ <div class="col-12 text-center">
83
+ {% comment %}
84
+ Este input invisible es para que Bootstrap pueda mostrar el
85
+ error si querés mandar el formulario sin elegir una moneda.
86
+ {% endcomment %}
87
+ <input type="radio" class="d-none" name="currency" value="" />
88
+ <div class="invalid-feedback">
89
+ {{ site.i18n.donacion.currency }}
90
+ </div>
91
+
92
+ <p data-controller="cart-paypal-confirmation"></p>
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <div class="col-md-3">
98
+ <button class="btn btn-primary btn-block mb-2" data-action="pay-what-you-can#pay">
99
+ <span class="hide-when-disabled">{{ donacion.boton }}</span>
100
+ <span class="show-when-disabled">
101
+ <span class="sr-only">{{ site.i18n.donacion.espera }}</span>
102
+ <i class="fa fa-fw fa-spinner fa-spin"></i>
103
+ </span>
104
+ </button>
105
+
106
+ {% if include.page.pdf.path %}
107
+ <div class="d-flex align-items-center justify-content-between">
108
+ <a
109
+ download
110
+ href="{{ include.page.pdf.path | uri_escape }}"
111
+ class="btn btn-transparent border black btn-block">
112
+ {{ site.i18n.libro.download }}
113
+ </a>
114
+ </div>
115
+ {% endif %}
116
+ </div>
117
+
118
+ <div class="col-md-3"></div>
119
+
120
+ <div class="col-12">
121
+ {{ site.i18n.donacion.medios | markdownify | replace: '<p>', '<p class="mb-0 mt-3"><small>' | replace: '</p>', '</small></p>' }}
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </form>
@@ -0,0 +1 @@
1
+ {% include input.html field=field %}