Extended Version of the placeteaser
This commit is contained in:
@@ -1,58 +1,28 @@
|
||||
.LP-Place__List{
|
||||
list-style-type: none;
|
||||
|
||||
.LP-Link{
|
||||
.LP-Place{
|
||||
&:hover{
|
||||
color: $-grey;
|
||||
background-color: $-almost-white;
|
||||
|
||||
|
||||
$-hover-offset: 2px;
|
||||
position: relative;
|
||||
left: -$-hover-offset;
|
||||
>.LP-Place__Image{
|
||||
border-left: $-hover-offset $-grey solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Place__Item{
|
||||
max-width: 900px;
|
||||
min-width: 450px;
|
||||
margin: 18px 0;
|
||||
.LP-Place{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: auto;
|
||||
padding-right: 25px;
|
||||
|
||||
.LP-Place__Assets{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-left: 25px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
|
||||
.LP-Place__Info{
|
||||
.LP-Place__Title{
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.LP-Icon__List{
|
||||
justify-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
>.LP-Place__Image{
|
||||
height:168px;
|
||||
width: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.LP-PlaceList{
|
||||
.LP-PlaceList__List{
|
||||
list-style-type: none;
|
||||
|
||||
.LP-Link{
|
||||
.LP-Place{
|
||||
&:hover{
|
||||
color: $-grey;
|
||||
background-color: $-almost-white;
|
||||
|
||||
|
||||
$-hover-offset: 2px;
|
||||
position: relative;
|
||||
left: -$-hover-offset;
|
||||
>.LP-Place__Image{
|
||||
border-left: $-hover-offset $-grey solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.LP-PlaceList__Item{
|
||||
max-width: 900px;
|
||||
min-width: 450px;
|
||||
margin: 18px 0;
|
||||
}
|
||||
}
|
||||
}
|
@@ -1 +1,31 @@
|
||||
{}
|
||||
{
|
||||
"title": "PlaceList",
|
||||
"context": {
|
||||
"places": [
|
||||
{
|
||||
"image": "/images/photo_2020-04-09_18-27-13.jpg",
|
||||
"name": "Haus Maikotten",
|
||||
"location": "Münster (westfalen)",
|
||||
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
||||
},
|
||||
{
|
||||
"image": "/images/Bildschirmfoto_von_2020-07-13_11-03-07.png",
|
||||
"name": "Kokerei in Hamm",
|
||||
"location": "Hamm (westfalen)",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"image": "/images/Bildschirmfoto_von_2020-07-13_20-15-00.png",
|
||||
"name": "Noch ein Zementwerk",
|
||||
"location": "Beckum (Westfalen)",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"image": "/images/photo_2020-05-02_18-11-21.jpg",
|
||||
"name": "Zementwerk Mersmann",
|
||||
"location": "Beckum (Westfalen)",
|
||||
"description": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -1,32 +1,12 @@
|
||||
<ul class="LP-Place__List">
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/photo_2020-04-09_18-27-13.jpg' title='Haus Maikotten' location='Münster (westfalen)' description='Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'}}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_11-03-07.png' title='Kokerei in Hamm' location='Hamm (westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_20-15-00.png' title='Noch ein Zementwerk' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/photo_2020-05-02_18-11-21.jpg' title='Zementwerk Mersmann' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_20-15-00.png' title='Noch ein Zementwerk' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/photo_2020-04-09_18-27-13.jpg' title='Haus Maikotten' location='Münster (westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_20-15-00.png' title='Noch ein Zementwerk' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/photo_2020-05-02_18-11-21.jpg' title='Zementwerk Mersmann' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_20-15-00.png' title='Noch ein Zementwerk' location='Beckum (Westfalen)' }}</a>
|
||||
</li>
|
||||
<li class="LP-Place__Item">
|
||||
<a href="#" class="LP-Link">{{> @place image='/images/Bildschirmfoto_von_2020-07-13_11-03-07.png' title='Kokerei in Hamm' location='Hamm (westfalen)' }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="LP-PlaceList">
|
||||
{{> @headline headline='Listing our places'}}
|
||||
<ul class="LP-PlaceList__List">
|
||||
{{#each places}}
|
||||
<li class="LP-PlaceList__Item">
|
||||
<a href="#" class="LP-Link">
|
||||
{{> @placeteaser image=this.image title=this.name location=this.location description=this.description}}
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user