-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
268 lines (267 loc) · 15.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
---
layout: default
title: datos.gob.mx
---
<section id="banner">
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 col-lg-offset-4 col-md-offset-4">
<p>Genera <a href="/impacto"><u>impacto</u></a> usando <a href="http://busca.datos.gob.mx" target="_blank"><u>datos</u></a> y <a href="/herramientas"><u>herramientas</u></a> para detonar innovación y conocimiento</p>
<a href="#" id="toggle-video" class="more-link hidden-sm hidden-xs">Conoce Más</a>
<a href="//www.youtube.com/watch?v=PgP7EXU8YX0" class="more-link hidden-lg hidden-md" target="_blank">Conoce Más</a>
</div>
</div>
<div id="home-video" class="row hidden-xs hidden-sm">
<div class="col-lg-6 col-md-6 col-lg-offset-3 col-md-offset-3">
<div class="video">
<iframe src="//www.youtube.com/embed/PgP7EXU8YX0?rel=0&showinfo=0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</section>
<section id="highlights">
<div class="content">
<div class="overlay"></div>
<div class="container-fluid fixed">
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h5>Datos</h5>
<p>Descarga Datos Abiertos de</p>
<form class="form" id="search-form">
<div class="form-group">
<input type="text" class="form-control" name="keyword" id="search-keyword" placeholder="ej. Contratos">
</div>
<button type="submit" class="btn btn-default">Buscar</button>
</form>
<div class="hidden-xs hidden-sm">
<ul class="nav nav-tabs tabs" role="tablist">
<li role="presentation" class="active">
<a href="#tab-recents" aria-controls="tab-recents" role="tab" data-toggle="tab">Recientes</a>
</li>
<li role="presentation">
<a href="#tab-downloads" aria-controls="tab-downloads" role="tab" data-toggle="tab">Más Descargados</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="tab-recents">
<table><tbody></tbody></table>
</div>
<div role="tabpanel" class="tab-pane" id="tab-downloads">
<table><tbody></tbody></table>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h5>Herramientas</h5>
<ul class="nav nav-tabs tool-tabs tabs" role="tablist">
<li role="presentation" class="active">
<a href="#tab-web" aria-controls="tab-web" data-toggle="tab">Web</a>
</li>
<li role="presentation">
<a href="#tab-mobile" aria-controls="tab-mobile" data-toggle="tab">Apps</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="tab-web">
<div class="tool">
{% assign web_tool = site.posts | where: 'sub_section', 'herramientas' | where: 'featured', true | where: 'published', true %}
{% if web_tool.size == 0 %}
{% assign web_tool = site.posts | where: 'sub_section', 'herramientas' | where: 'published', true %}
{% endif %}
{% for post in web_tool limit:1 %}
<h3><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.title | truncatewords: 10 }}</a></h3>
<a href="{{ post.permalink }}" class="btn btn-default">Conoce la herramienta</a>
{% endfor %}
</div>
</div>
<div role="tabpanel" class="tab-pane" id="tab-mobile">
<div class="tool">
{% assign app = site.posts | where: 'sub_section', 'apps' | where: 'featured', true | where: 'published', true %}
{% if app.size == 0 %}
{% assign app = site.posts | where: 'sub_section', 'apps' | where: 'published', true %}
{% endif %}
{% for post in app limit:1 %}
<h3><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.title | truncatewords: 10 }}</a></h3>
<a href="{{ post.permalink }}" class="btn btn-default">Conoce la herramienta</a>
{% endfor %}
</div>
</div>
</div>
{% assign posts = site.posts | where: 'section', 'impacto' | where: 'featured' , true | where: 'published', true %}
{% if posts.size == 0 %}
{% assign posts = site.posts | where: 'section', 'impacto' | where: 'published', true %}
{% endif %}
{% for post in posts limit:1 %}
<h5>Impacto</h5>
<div class="news">
<h3><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.title }}</a></h3>
<a href="{{ post.permalink }}">leer más</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<section id="categories" class="hidden-xs hidden-sm">
<ul>
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'salud' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'salud' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/salud" id="item-health">Salud</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'geoespacial' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'geoespacial' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/geoespacial" id="item-geospatial">Geoespacial</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'seguridad-y-justicia' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'seguridad-y-justicia' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/seguridad-y-justicia" id="item-security">Seguridad y justicia</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'energia-y-medio-ambiente' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'energia-y-medio-ambiente' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/energia-y-medio-ambiente" id="item-energy">Energia y Medio Ambiente</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'educacion' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'educacion' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/educacion" id="item-education">Educación</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'economia' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'economia' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/economia" id="item-economy">Economía</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'cultura-y-turismo' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'cultura-y-turismo' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/cultura-y-turismo" id="item-culture">Cultura y turismo</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'finanzas-y-contrataciones' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'finanzas-y-contrataciones' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/finanzas-y-contrataciones" id="item-finance">Finanzas y contrataciones</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'infraestructura' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'infraestructura' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/infraestructura" id="item-infrastructure">Infraestructura</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'desarrollo-sostenible' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'desarrollo-sostenible' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/desarrollo-sostenible" id="item-development">Desarrollo Sostenible</a>
</li>
{% endif %}
{% assign tools = site.posts | where: 'section', 'herramientas' | where: 'category', 'gobiernos-locales' | where: 'published', true %}
{% assign impact = site.posts | where: 'section', 'impacto' | where: 'category', 'gobiernos-locales' | where: 'published', true %}
{% if tools.size > 0 or impact.size > 0 %}
<li>
<a href="/tema/gobiernos-locales" id="item-government">Gobiernos Locales</a>
</li>
{% endif %}
</ul>
</section>
<section id="info">
<div class="container-fluid fixed">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 widget">
<a href="http://busca.datos.gob.mx">
<img src="assets/img/ic-data.png" alt="Datos">
<span>Datos</span>
</a>
<p>Explora, descarga y utiliza tus datos.</p>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 widget">
<a href="/herramientas">
<img src="assets/img/ic-tools.png" alt="Herramientas">
<span>Herramientas</span>
</a>
<p>Interactúa con aplicaciones y visualizaciones para generar nuevo conocimiento.</p>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 widget">
<a href="/impacto">
<img src="assets/img/ic-impact.png" alt="Impacto">
<span>Impacto</span>
</a>
<p>Descubre cómo los datos abiertos generan valor con historias de uso, noticias y eventos.</p>
</div>
</div>
</div>
</section>
<section id="slider" class="carousel slide container-fluid" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#slider" data-slide-to="0" class="active"></li>
<li data-target="#slider" data-slide-to="1"></li>
<li data-target="#slider" data-slide-to="2"></li>
<li data-target="#slider" data-slide-to="3"></li>
</ol>
<div class="carousel-inner" role="listbox">
{% assign posts = site.posts | where: 'section', 'impacto' | where: 'published', true %}
{% for post in posts limit:4 %}
<div class="item {% if forloop.first %}active{% endif %}">
<a href="{{ post.permalink }}" alt="{{ post.title }}"><img src="{{ "/assets/img/impacto/" | append: post.featured_img | prepend: site.baseurl | prepend: site.url }}" alt="{{ post.title }}"></a>
<div class="carousel-caption">
<p class="breadcrumb"><a href="/impacto">Impacto</a> / <span>{{ post.sub_section }}</span></p>
<p><small>{{ post.author }}</small></p>
<h3><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.title }}</a></h3>
<p class="hidden-sm hidden-xs"><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.content | strip_html | truncatewords: 30 }}</a></p>
<p class="hidden-lg hidden-md"><a href="{{ post.permalink }}" alt="{{ post.title }}">{{ post.content | strip_html | truncatewords: 15 }}</a></p>
</div>
</div>
{% endfor %}
</div>
<a class="left carousel-control" href="#slider" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#slider" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</section>
<section id="tweets" class="container-fluid fixed hidden-xs hidden-sm">
<h3>#DatosAbiertos</h3>
<div id="tweets-container" class="row equal-height"></div>
</section>
<section id="subscribe" class="hidden-xs hidden-sm">
<div class="container-fluid">
<div class="row">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-xs-offset-1">
<p>¿Te interesa saber más sobre <a href="#">datos.gob.mx</a>?</p>
</div>
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
<form action="//gob.us9.list-manage.com/subscribe/post-json?u=2128f25c973f219e1b51af623&id=99ced13731&c=?" method="get" id="subscribe-form" class="form" role="form" novalidate>
<div class="form-group">
<input type="text" class="form-control" name="EMAIL" placeholder="Correo electrónico">
</div>
<button type="submit" class="btn btn-default">Enviar</button>
</form>
</div>
</div>
</div>
</section>