Compare commits

..

No commits in common. "0bd29fdf4fb78d1f691942ef5f136958b0facea9" and "7ebd00c633f447cd9f203d44cb859c66ad71f80a" have entirely different histories.

6 changed files with 58 additions and 35 deletions

View File

@ -8,8 +8,6 @@
a { a {
&.blur-on-hover { &.blur-on-hover {
overflow: hidden;
&:hover img { &:hover img {
filter: blur(5px); filter: blur(5px);
transform: scale(120%); transform: scale(120%);
@ -20,6 +18,10 @@
} }
} }
img {
display: block;
}
p { p {
background: rgba($color-overlay, 0.9); background: rgba($color-overlay, 0.9);
color: $color-overlay-text; color: $color-overlay-text;
@ -32,9 +34,24 @@
} }
img { img {
display: block; &.landscape {
height: 100%;
width: auto;
}
&.portrait {
height: auto;
width: 100%;
}
}
.image {
align-items: center;
display: flex;
height: 280px; height: 280px;
object-fit: cover; justify-content: center;
max-height: 280px;
width: 280px; width: 280px;
overflow: hidden;
} }
} }

View File

@ -31,18 +31,15 @@ body {
} }
header, footer { header, footer {
padding: 1rem; padding: 0 1rem;
} }
header { header {
align-items: center; align-items: center;
background: $color-background;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
position: sticky; margin-top: 1rem;
top: 0;
z-index: 1;
a img { a img {
display: block; display: block;
@ -92,7 +89,7 @@ header {
} }
main { main {
padding: 0 1rem; padding: 1rem;
& > :last-child { & > :last-child {
margin-bottom: 0 !important; margin-bottom: 0 !important;
@ -103,13 +100,17 @@ main {
} }
} }
footer nav { footer {
margin-bottom: 1rem;
nav {
align-items: end; align-items: end;
@media screen and (min-width: $small) { @media screen and (min-width: $small) {
align-items: normal; align-items: normal;
justify-content: end; justify-content: end;
} }
}
} }
nav { nav {
@ -128,7 +129,7 @@ nav {
} }
&.pagination { &.pagination {
margin-bottom: 3rem; margin-top: 2.5em;
:first-child { :first-child {
margin: 0; margin: 0;
@ -157,21 +158,36 @@ nav {
article { article {
display: flex; display: flex;
&.preview { & > .image {
margin-bottom: 3rem; display: none;
& > img { & > img {
display: none; height: auto;
height: 200px; width: 100%;
margin-right: 1.5rem; }
min-width: 200px;
object-fit: cover;
@media screen and (min-width: $small) { @media screen and (min-width: $small) {
display: block; display: block;
} }
} }
&.preview {
margin-bottom: 3rem;
& > .image {
align-items: center;
height: 200px;
justify-content: center;
min-width: 200px;
overflow: hidden;
margin-right: 1.5rem;
width: 200px;
@media screen and (min-width: $small) {
display: flex;
}
}
& > .text { & > .text {
flex-grow: 1; flex-grow: 1;
} }
@ -179,16 +195,9 @@ article {
&.page { &.page {
& > .image { & > .image {
display: none;
text-align: right; text-align: right;
& > img {
height: auto;
width: 100%;
}
@media screen and (min-width: $small) { @media screen and (min-width: $small) {
display: block;
padding-left: 1.5em; padding-left: 1.5em;
width: 60%; width: 60%;
} }

View File

@ -4,9 +4,6 @@ languageCode = 'de-de'
paginate = 3 paginate = 3
title = 'kontakt Das Kulturprojekt' title = 'kontakt Das Kulturprojekt'
[imaging]
resampleFilter = "Lanczos"
[menu] [menu]
[[menu.footer]] [[menu.footer]]
name = "Impressum" name = "Impressum"

View File

@ -5,7 +5,7 @@
{{ range .Pages }} {{ range .Pages }}
<a class="blur-on-hover" href="{{ .RelPermalink }}"> <a class="blur-on-hover" href="{{ .RelPermalink }}">
{{ with index (.Resources.ByType "image") 0 }} {{ with index (.Resources.ByType "image") 0 }}
<img alt="{{ .Title }}" src="{{ (.Fill "560x560").RelPermalink }}"> <div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }} {{ end }}
<p>{{ .Title }}</p> <p>{{ .Title }}</p>
</a> </a>

View File

@ -3,7 +3,7 @@
{{ .Content }} {{ .Content }}
<section class="gallery"> <section class="gallery">
{{ range .Resources.ByType "image" }} {{ range .Resources.ByType "image" }}
<img alt="{{ .Title }}" src="{{ (.Fill "560x560").RelPermalink }}"> <div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }} {{ end }}
</section> </section>
{{ end }} {{ end }}

View File

@ -6,7 +6,7 @@
<p class="date">{{ .Date | dateFormat "Mon, 02. January 2006" }}</p> <p class="date">{{ .Date | dateFormat "Mon, 02. January 2006" }}</p>
<article class="preview"> <article class="preview">
{{ with .Resources.GetMatch "image.jpg" }} {{ with .Resources.GetMatch "image.jpg" }}
<img alt="{{ .Title }}" src="{{ .RelPermalink }}"> <section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
{{ end }} {{ end }}
<section class="text"> <section class="text">
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
@ -31,7 +31,7 @@
{{ range first 4 (.Site.GetPage "/galerie").Pages }} {{ range first 4 (.Site.GetPage "/galerie").Pages }}
<a class="blur-on-hover" href="{{ .RelPermalink }}"> <a class="blur-on-hover" href="{{ .RelPermalink }}">
{{ with index (.Resources.ByType "image") 0 }} {{ with index (.Resources.ByType "image") 0 }}
<img alt="{{ .Title }}" src="{{ (.Fill "560x560").RelPermalink }}"> <div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }} {{ end }}
<p>{{ .Title }}</p> <p>{{ .Title }}</p>
</a> </a>