Compare commits

...

3 Commits

Author SHA1 Message Date
fb8e7a357b Updated icon path 2020-08-10 19:14:38 +02:00
f9cb21dc8e Adjusted template 2020-08-10 19:10:46 +02:00
06b7686264 Adjusted template 2020-08-10 19:06:45 +02:00
3 changed files with 73 additions and 99 deletions

View File

@ -18,10 +18,11 @@ body {
.LP-Main { .LP-Main {
display: table; display: table;
flex-direction: row-reverse; flex-direction: row-reverse;
height: calc(100% - 61px); } height: calc(100% - 61px);
width: 100%; }
.LP-Main .LP-Main__Content { .LP-Main .LP-Main__Content {
display: table-cell; display: table-cell;
width: calc(100% -300px); width: calc(100% - 300px);
min-height: 1px; min-height: 1px;
padding: 25px; } padding: 25px; }
.LP-Main .LP-Main__Sidebar { .LP-Main .LP-Main__Sidebar {

View File

@ -4,32 +4,40 @@
{% block title %}Lost Places{% endblock %} {% block title %}Lost Places{% endblock %}
{% block maincontent %} {% block maincontent %}
<ul class="LP-Place__List"> <div class="LP-PlaceList">
{% for place in place_list %} <h1 class="LP-Headline">Listing our places</h1>
<li class="LP-Place__Item"> <ul class="LP-PlaceList__List">
<a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link"> {% for place in place_list %}
<article class="LP-Place"> <li class="LP-PlaceList__Item">
<div class="LP-Place__ImageContainer"> <a href="{% url 'place_detail' pk=place.pk %}" class="LP-Link">
<img class="LP-Place__Image" src="{{ place.images.first.filename.thumbnail.url }}" /> <article class="LP-PlaceTeaser LP-PlaceTeaser--extended">
</div> <div class="LP-PlaceTeaser__Image">
<div class="LP-Place__Assets"> <img class="LP-Image" src="{{ place.images.first.filename.thumbnail.url }}" />
<div class="LP-Place__Info"> </div>
<h3 class="LP-Place__Title">{{place.name}}</h3> <div class="LP-PlaceTeaser__Meta">
<p class="LP-Place__Detail">{{place.location}}</p> <div class="LP-PlaceTeaser__Info">
</div> <span class="LP-PlaceTeaser__Title">
<p class="LP-TextSection LP-Place__Description"> <h2 class="LP-Headline LP-Headline--teaser">{{place.name}}</h2>
{{place.description|truncatechars:210|truncatewords:-1}} </span>
</p> <span class="LP-PlaceTeaser__Detail">
<p class="LP-Paragraph">{{place.location}}</p>
<ul class="LP-Icon__List"> </span>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/favourite.svg' %}" /></li> </div>
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/location.svg' %}" /></li> <div class="LP-PlaceTeaser__Description">
<li class="LP-Icon__Item"><img class="LP-Icon" src="{% static 'icons/flag.svg' %}" /></li> <p class="LP-Paragraph">{{place.description|truncatechars:210|truncatewords:-1}}</p>
</ul> </div>
</div> <div class="LP-PlaceTeaser__Icons">
</article> <ul class="LP-Icon__List">
</a> <li class="LP-Icon__Item"><img class="LP-Icon" src="{% static '/icons/favourite.svg' %}" /></li>
</li> <li class="LP-Icon__Item"><img class="LP-Icon" src="{% static '/icons/location.svg' %}" /></li>
{% endfor %} <li class="LP-Icon__Item"><img class="LP-Icon" src="{% static '/icons/flag.svg' %}" /></li>
</ul> </ul>
</div>
</div>
</article>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endblock maincontent %} {% endblock maincontent %}

View File

@ -5,79 +5,44 @@
{% block title %}{{place.name}}{% endblock %} {% block title %}{{place.name}}{% endblock %}
{% block maincontent %} {% block maincontent %}
<article class="LP-PlaceDetail">
<header class="LP-PlaceDetail__Header">
<h1 class="LP-Headline">{{ place.name }}</h1>
{% if place.images.first.filename.hero.url %}
<figure class="LP-PlaceDetail__Image">
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
</figure>
{% endif %}
</header>
<div class="LP-PlaceDetail__Description">
<article class="LP-PlaceOverview"> <p class="LP-Paragraph">{{ place.description }}</p>
<div class="LP-PlaceOverview__Info">
{% if place.images.first.filename.hero.url %}
<div class="LP-PlaceOveriew__Image">
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
</div>
{% endif %}
<article class="LP-PlaceOverView__Description">
<div class="LP-TextSection">
<h1 class="LP-Headline LP-Headline">{{place.name}}</h1>
<p class="LP-Paragraph LP-Paragraph">{{place.description}}</p>
</div>
</article>
</div> </div>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Sicherheitsmaßnahmen</h1> <section class="LP-Section">
<div class="LP-Content__Wrapper"> <h1 class="LP-Headline">Map-Links</h1>
<div class="LP-Content"> <div class="LP-LinkList">
<div class="LP-TagList"> <ul class="LP-LinkList__List">
<ul class="LP-TagList__List"> <li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
<li class="LP-TagList__Item"> <li class="LP-LinkList__Item"><a target="_blank" href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
<div class="LP-Tag"> <li class="LP-LinkList__Item"><a target="_blank" href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16" class="LP-Link"><span class="LP-Text">OSM</span></a></li>
<p class="LP-Paragraph LP-Paragraph">Kamera</p> </ul>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Wachhund</p>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Zaun</p>
</div>
</li>
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Security</p>
</div>
</li>
</ul>
</div>
</div>
</div> </div>
</article> </section>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Links</h1> <section class="LP-Section">
<div class="LP-Content__Wrapper"> <h1 class="LP-Headline">Bilder</h1>
<div class="LP-Content"> <div class="LP-ImageGrid">
<ul class="LP-LinkList__List"> <ul class="LP-ImageGrid__List">
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.google.com/maps?q={{place.latitude}},{{place.longitude}}" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li> {% for place_image in place.images.all %}
<li class="LP-LinkList__Item"><a target="_blank" href="https://www.tim-online.nrw.de/tim-online2/?center={{place.latitude}},{{place.longitude}}&icon=true&bg=dop" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li> <li class="LP-ImageGrid__Item">
<li class="LP-LinkList__Item"><a target="_blank" href="http://www.openstreetmap.org/?mlat={{place.latitude}}&mlon={{place.longitude}}&zoom=16" class="LP-Link"><span class="LP-Text">OSM</span></a></li> <a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
</ul> </li>
</div> {% endfor %}
</ul>
</div> </div>
</article> </section>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Bilder</h1>
<div class="LP-Content__Wrapper">
<div class=" LP-Content">
<ul class="LP-PlaceOverView__ImageList">
{% for place_image in place.images.all %}
<li class="LP-PlaceOverView__ImageItem">
<a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
</li>
{% endfor %}
</ul>
</div>
</div>
</article>
</article> </article>
{% endblock maincontent %} {% endblock maincontent %}