-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlayout4.html
More file actions
124 lines (114 loc) · 6.4 KB
/
Copy pathlayout4.html
File metadata and controls
124 lines (114 loc) · 6.4 KB
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
<!-- This file keeps the new layout of the homepage -->
<div id="main-container z-10">
<section class="bg-center bg-no-repeat bg-contain" style="background-image: url(/static/img/MTLdonneesGRIS.png); background-color: rgba(247,248,249,255);">
<div class="container flex flex-col w-5/6 content-justify m-auto lg:max-w-2xlm pt-8 pb-8">
<h1 class="text-center text-black font-normal text-4xl mb-8 px-8">{{_('Search for a dataset')}}</h1>
{% block search %}
{% snippet 'home/snippets/frontend_search.html' %}
{% endblock %}
<div class="container mx-auto flex flex-wrap justify-center pt-4 w-4/5 md:w-3/5 lg:w-8/12">
{% set search_configs = h.homepage_search_configs() %}
<!-- quick search links -->
{% for sc in search_configs %}
<a class="rounded-full text-center text-white text-base bg-primary hover:bg-sarcelle-dark font-bold m-2 py-2 px-4" href="{{sc.link}}">{{sc.value}}</a>
{% endfor %}
<!-- end quick search links -->
</div>
</div>
</section>
{# <------------- Our data Section -------------> #}
<div class="bg-gray-100">
<section class="flex flex-col px-4 mx-auto max-w-6xl pt-16">
<div data-title="our-data">
<h2 class="text-4xl text-zambezi font-semibold"> {{ _('Our data') }}</h2>
</div>
{% set groups = h.all_groups() %}
<div data-title="collection-grid" class="flex w-full">
{% block featured_groups%}
{% snippet 'home/snippets/all_groups.html', groups=groups %}
{% endblock %}
</div>
{% if groups|length > 0 %}
<div class="flex flex-col pt-6 pb-3 items-center">
<a class="view_all text-center bg-transparent mb-4 hover:bg-primary text-primary font-semibold hover:text-white py-2 px-4 border-1 border-gray-500 hover:border-transparent rounded-full" href="{{ h.url_for('group.index') }}"> {{_('View all')}}</a>
</div>
{% endif %}
</section>
</div>
{# <------------- End of Our data Section -------------> #}
<section class="flex flex-col px-4 mx-auto max-w-6xl">
{# <------------------ Recently Updated datasets Section ---------------> #}
<div class="flex flex-col items-center pt-16 pb-16">
<h2 class="text-4xl text-zambezi font-semibold w-full"> {{_('Datasets recently updated') }}</h2>
<div class="sm:flex flex-wrap sm:-mx-4 items-center">
{% block featured_dataset %}
{% snippet 'home/snippets/latest_datasets.html' %}
{% endblock %}
</div>
</div>
{# <------------------ End of Recently Updated datasets Section ---------> #}
{#{% set datasets = h.latest_datasets() %}
{% if datasets %}
<div class="page_primary_action page_primary_action-btn">
<a class="btn btn-primary xcaret-btn-homepage" href="{{ h.url_for('dataset.search') }}"> {{_('View all Datasets')}} <i class="fa fa-lg fa-eye icon-margin"></i> </a>
</div>
{% endif %} #}
{# <------------------ News section ---------------> #}
<div class="flex flex-col pt-16 pb-16 items-center">
<h2 class="text-4xl text-zambezi font-semibold w-full">{{_('News')}}</h2>
<div class="sm:flex flex-wrap sm:-mx-4 items-center">
{% snippet 'home/snippets/news.html' %}
</div>
</div>
{# <-------------- End of News section -------------> #}
{# <------------------ Applications section ---------------> #}
<div class="flex flex-col items-center pt-16 pb-16">
<h2 class="text-4xl text-zambezi font-semibold w-full">{{_('Applications')}}</h2>
<div class="slick-showcase block flex w-full flex-row">
{% block applications %}
{% set showcases = h.get_showcases() %}
{% if showcases %}
{% snippet 'home/snippets/showcase_list.html', showcases=showcases %}
{% endif %}
</div>
<a href="{{ h.url_for('showcase_blueprint.index') }}" class="view_all text-center bg-transparent mb-4 hover:bg-primary text-primary font-semibold hover:text-white mt-4 py-2 px-4 border-1 border-gray-500 hover:border-transparent rounded-full">
{{_('All Applications')}}
</a>
{% endblock %}
</div>
{# <------------- End of Applications section -------------> #}
{# <------------------ Organizations section ---------------> #}
<div class="flex flex-col items-center pt-16 pb-16">
<h2 class="text-4xl text-zambezi font-semibold w-full">{{_('Organizations')}}</h2>
{% set org = h.all_organizations() %}
<div data-title="collection-grid" class="flex w-full">
{% block featured_organization %}
{% snippet 'home/snippets/all_organizations.html', organizations=org %}
{% endblock %}
</div>
{% if org|length > 0 %}
<a class="view_all text-center bg-transparent mb-4 hover:bg-primary text-primary font-semibold hover:text-white mt-2 py-2 px-4 border-1 border-gray-500 hover:border-transparent rounded-full" href="{{ h.url_for('organization.index') }}"> {{_('View all')}}</a>
{% endif %}
</div>
{# <------------- End of Organizations section -------------> #}
</section>
{# <------------- Powered by section -------------> #}
<div class="border-1"></div>
<div class="px-4 mx-auto max-w-6xl pt-16 pb-32">
<div class="flex justify-between items-center w-full">
<div class="w-1/3">
<a class="block w-24 font-bold" href="https://ckan.org/">
<div class="text-xs mb-2">{{_('Powered by')}}</div>
<div class="text-xl">CKAN</div>
</a>
</div>
<div class="w-2/3 text-base">
<div class="mb-2">
{{_('By opening its data to everyone, the City of Montreal allows it to be reused for different purposes, including commercial purposes. The results of this reuse can then be shared in the community, which creates a multiplier effect.')}}
</div>
<a class="text-primary font-bold" href="/pages/our-approach">{{_('Read our approach')}}</a>
</div>
</div>
</div>
{# <------------- End of Powered by section -------------> #}
</div>