Compare commits

..

No commits in common. "aba952f0d78db7f20cbc44ca8e25440c6b6973c9" and "2bc97bc413d962c35c70f5aa5b3e461b0f7c166f" have entirely different histories.

10 changed files with 16 additions and 142 deletions

View File

@ -1,31 +0,0 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --baseURL="https://staging.www.kontakt-bamberg.de/"
- name: deploy
image: appleboy/drone-scp
settings:
host: dragon.luj0ga.de
port: 4222
username: www-data
key:
from_secret: ssh_key
passphrase:
from_secret: ssh_passphrase
target: /var/www/staging.www.kontakt-bamberg.de/
source: public/*
strip_components: 1
rm: yes
when:
event:
- push
branch:
- main

View File

@ -1,6 +1,4 @@
$color-background: #fff; $color-background: #fff;
$color-burger: #231f20; $color-burger: #231f20;
$color-link: #000; $color-link: #000;
$color-overlay: #231f20; $color-text: #000;
$color-overlay-text: #fff;
$color-text: #000;

View File

@ -1,57 +0,0 @@
@import 'breakpoints';
@import 'colors';
.gallery {
display: flex;
flex-wrap: wrap;
gap: 1rem;
a {
&.blur-on-hover {
&:hover img {
filter: blur(5px);
transform: scale(120%);
}
img {
transition: all 500ms;
}
}
img {
display: block;
}
p {
background: rgba($color-overlay, 0.9);
color: $color-overlay-text;
margin-bottom: 0;
padding: 0.5em 1em;
position: absolute;
transform: translateY(-100%);
width: 280px;
}
}
img {
&.landscape {
height: 100%;
width: auto;
}
&.portrait {
height: auto;
width: 100%;
}
}
.image {
align-items: center;
display: flex;
height: 280px;
justify-content: center;
max-height: 280px;
width: 280px;
overflow: hidden;
}
}

View File

@ -1,7 +1,6 @@
@import 'breakpoints'; @import 'breakpoints';
@import 'colors'; @import 'colors';
@import 'fonts'; @import 'fonts';
@import 'gallery';
* { * {
box-sizing: border-box; box-sizing: border-box;
@ -9,17 +8,13 @@
padding: 0; padding: 0;
} }
:root {
font-size: 16px;
}
body { body {
background: $color-background; background: $color-background;
color: $color-text; color: $color-text;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-family: "Maven Pro", sans-serif; font-family: "Maven Pro", sans-serif;
font-size: 1.125rem; font-size: 18px;
line-height: 1.5; line-height: 1.5;
margin: 0 auto; margin: 0 auto;
max-width: $large; max-width: $large;
@ -241,6 +236,15 @@ hr {
margin: 3em 0; margin: 3em 0;
} }
.blur-on-hover {
transition: all 500ms;
&:hover {
filter: blur(5px);
transform: scale(120%);
}
}
.date { .date {
margin-bottom: 0; margin-bottom: 0;

View File

@ -7,3 +7,5 @@ menu:
![kontakt Das Kulturfestival (Symbolbild)](/symbolbild.jpg) ![kontakt Das Kulturfestival (Symbolbild)](/symbolbild.jpg)
by [ChrisU](https://instagram.com/chrisu_photography) by [ChrisU](https://instagram.com/chrisu_photography)
# Aktuelles

View File

@ -1,7 +0,0 @@
---
title: Galerie
menu:
main:
weight: 40
---

View File

@ -1,14 +0,0 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<section class="gallery">
{{ range .Pages }}
<a class="blur-on-hover" href="{{ .RelPermalink }}">
{{ with index (.Resources.ByType "image") 0 }}
<div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }}
<p>{{ .Title }}</p>
</a>
{{ end }}
</section>
{{ end }}

View File

@ -1,9 +0,0 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<section class="gallery">
{{ range .Resources.ByType "image" }}
<div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }}
</section>
{{ end }}

View File

@ -1,6 +1,5 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
<h1 id="aktuelles">Aktuelles</h1>
{{ $pagination := .Paginate .RegularPages }} {{ $pagination := .Paginate .RegularPages }}
{{ $days := dict "Monday" "Mo" "Tuesday" "Di" "Wednesday" "Mi" "Thursday" "Do" "Friday" "Fr" "Saturday" "Sa" "Sunday" "So" }} {{ $days := dict "Monday" "Mo" "Tuesday" "Di" "Wednesday" "Mi" "Thursday" "Do" "Friday" "Fr" "Saturday" "Sa" "Sunday" "So" }}
{{ $months := dict "January" "Januar" "February" "Februar" "March" "März" "April" "April" "May" "Mai" "June" "Juni" "July" "Juli" "August" "August" "September" "September" "October" "Oktober" "November" "November" "December" "Dezember" }} {{ $months := dict "January" "Januar" "February" "Februar" "March" "März" "April" "April" "May" "Mai" "June" "Juni" "July" "Juli" "August" "August" "September" "September" "October" "Oktober" "November" "November" "December" "Dezember" }}
@ -28,15 +27,4 @@
</nav> </nav>
{{ end }} {{ end }}
{{ end }} {{ end }}
<h1 id="galerie">Galerie</h1>
<section class="gallery">
{{ range first 4 (.Site.GetPage "/galerie").Pages }}
<a class="blur-on-hover" href="{{ .RelPermalink }}">
{{ with index (.Resources.ByType "image") 0 }}
<div class="image"><img alt="{{ .Title }}" class="{{ if lt .Height .Width }}landscape{{ else }}portrait{{ end }}" src="{{ .RelPermalink }}"></div>
{{ end }}
<p>{{ .Title }}</p>
</a>
{{ end }}
</section>
{{ end }} {{ end }}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB