Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/resource content #75

Merged
merged 2 commits into from
Dec 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion app/blueprints/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@
CLUSTER_ID: {
'title': 'Cluster Identification',
'subtitle': 'How can I identify locations of settlements?',
'description': 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus.',
'description': 'When looking at energy access and rural electrification it is crucial to '
'understand where exactly the non- or undersupplied people are living and '
'in which settlement structure, e.g. in dispersed settlements or more '
'centralized village structures. This is also required for the development '
'of the most techno-economic feasible supply option, e.g. by mini-grids. '
'In order to understand those spatial population structures we used '
'datasets created from satellite imagery which detect buildings in a high '
'spatial resolution. We used those in order to create so-called population '
'clusters which we populate with additional information through remote '
'mapping of building footprints and surveys.',
'image': 'img/img-5-resource-cluster.png'
},
OSM_ID: {
Expand Down
5 changes: 2 additions & 3 deletions app/templates/resources/selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
{% block content %}

<section id="resources-selected" class="grid-x landing-resources">
<div class="cell large-2 large-offset-1 landing-resources__text">
<div class="cell large-4 large-offset-1 landing-resources__text">
<h2>{{title}}</h2>
<p>{{subtitle}}</p>
<p>{{description}}</p>
<a class="cta" href="">Go to resource</a>
</div>
{% import "resources/card.html" as resource_card %}
<div class="cell large-8 large-offset-1">
<div class="cell large-6 large-offset-1">
<img src="{{ url_for('static', filename=image) }}">
</div>
</section>
Expand Down