forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
8bf5316c34
commit
a8697f5eea
9
assets/images/banner/.directory
Normal file
9
assets/images/banner/.directory
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Dolphin]
|
||||
HeaderColumnWidths=733,143,94,163
|
||||
PreviewsShown=false
|
||||
SortOrder=1
|
||||
SortRole=modificationtime
|
||||
Timestamp=2022,5,6,15,38,7.939
|
||||
Version=4
|
||||
ViewMode=1
|
||||
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_type,Details_permissions,CustomizedDetails
|
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
BIN
assets/images/banner/home.webp
Normal file
BIN
assets/images/banner/home.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 110 KiB |
|
@ -61,3 +61,4 @@
|
|||
.no_underline {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,3 +25,10 @@ summary {
|
|||
list-style: none;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sticky {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
background-color: var(--background-alt);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{ block "css" . -}}{{- end }}
|
||||
<body>
|
||||
<div id="container">
|
||||
<header>
|
||||
<header class="sticky">
|
||||
{{ partial "snippets/header" . }}
|
||||
</header>
|
||||
{{ partial "snippets/banner" . -}}
|
||||
|
|
|
@ -20,10 +20,16 @@
|
|||
{{ end }}
|
||||
|
||||
{{ if resources.GetMatch $banner }}
|
||||
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
|
||||
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); min-height: 33vh; display: flex; justify-content: center; align-items: center; background-position: bottom center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-attachment:fixed; padding-top: 5rem;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
|
||||
{{ else if .Resources.Match "banner*" }}
|
||||
{{ $img = (.Resources.GetMatch "banner*") }}
|
||||
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); background-size: cover; min-height: 33vh; display: flex; justify-content: center; align-items: center;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
|
||||
<div style="background-image:linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url({{- $img.Permalink -}}); min-height: 33vh; display: flex; justify-content: center; align-items: center; background-position: bottom center;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-attachment:fixed; padding-top: 5rem;"><h1 style="font-size: 350%; color: white;">{{ $title }}</h1></div>
|
||||
{{ else }}
|
||||
<h1 style="margin-top: 1rem; margin-left: 2rem; margin-bottom: 0; color: white;">{{ $title }}</h1>
|
||||
<h1 style="margin-left: 2rem; margin-bottom: 0; color: white; padding-top: 5rem;">{{ $title }}</h1>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user