Compare commits

..

No commits in common. "fb8e7a357b32b8a2c0f4dcd713260a6f23ec7d6b" and "34df74e42a3a8c7b372b0d8117be371e2de5f3f2" have entirely different histories.

3 changed files with 99 additions and 73 deletions

View File

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

View File

@ -5,44 +5,79 @@
{% 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>
<article class="LP-PlaceOverview">
<div class="LP-PlaceOverview__Info">
{% if place.images.first.filename.hero.url %} {% if place.images.first.filename.hero.url %}
<figure class="LP-PlaceDetail__Image"> <div class="LP-PlaceOveriew__Image">
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" /> <img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
</figure>
{% endif %}
</header>
<div class="LP-PlaceDetail__Description">
<p class="LP-Paragraph">{{ place.description }}</p>
</div> </div>
{% endif %}
<section class="LP-Section"> <article class="LP-PlaceOverView__Description">
<h1 class="LP-Headline">Map-Links</h1> <div class="LP-TextSection">
<div class="LP-LinkList"> <h1 class="LP-Headline LP-Headline">{{place.name}}</h1>
<p class="LP-Paragraph LP-Paragraph">{{place.description}}</p>
</div>
</article>
</div>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Sicherheitsmaßnahmen</h1>
<div class="LP-Content__Wrapper">
<div class="LP-Content">
<div class="LP-TagList">
<ul class="LP-TagList__List">
<li class="LP-TagList__Item">
<div class="LP-Tag">
<p class="LP-Paragraph LP-Paragraph">Kamera</p>
</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>
</article>
<article class="LP-Section">
<h1 class="LP-Headline LP-Headline">Links</h1>
<div class="LP-Content__Wrapper">
<div class="LP-Content">
<ul class="LP-LinkList__List"> <ul class="LP-LinkList__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-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-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-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-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> <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>
</ul> </ul>
</div> </div>
</section> </div>
</article>
<section class="LP-Section"> <article class="LP-Section">
<h1 class="LP-Headline">Bilder</h1> <h1 class="LP-Headline LP-Headline">Bilder</h1>
<div class="LP-ImageGrid"> <div class="LP-Content__Wrapper">
<ul class="LP-ImageGrid__List"> <div class=" LP-Content">
<ul class="LP-PlaceOverView__ImageList">
{% for place_image in place.images.all %} {% for place_image in place.images.all %}
<li class="LP-ImageGrid__Item"> <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> <a href="{{ place_image.filename.large.url }}" class="LP-Link"><img class="LP-Image" src="{{ place_image.filename.thumbnail.url }}"></a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</section> </div>
</article>
</article> </article>
{% endblock maincontent %} {% endblock maincontent %}