diff --git a/content/_index.de.md b/content/_index.de.md index fd8dcbeae9e89bbdde19dc9188a4880e3d69c8de..b7de9e5ea4889bf3f85b42df4671a3b81454fa5b 100644 --- a/content/_index.de.md +++ b/content/_index.de.md @@ -1,5 +1,7 @@ --- header: StuStaNet e.V. +hero: true +headerImage: header-home.jpg --- ### Nächste Sprechstunden diff --git a/content/_index.en.md b/content/_index.en.md index 41835f06055b2a820431cf4d6794f123b6e5c502..186e373ad58459be65b789a9ff73719c1a1fca92 100644 --- a/content/_index.en.md +++ b/content/_index.en.md @@ -1,5 +1,7 @@ --- header: StuStaNet e.V. +hero: true +headerImage: header-home.jpg --- ### Next Office Hours diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0bab7520333164945ba5702427ac1b30774f8a72..94beb9edff105104898dd6bbb9c7c07b03f619d3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -83,8 +83,8 @@ </ul> </nav> - <article> - <header> + <article{{ if .Params.Hero }} class="big-hero"{{ end }}> + <header{{ if .Params.HeaderImage }} style="background-image: url(/{{ .Params.HeaderImage }});"{{ end }}> <h1>{{ .Params.Header | default .Title }}</h1> {{ with .Params.SubHeader }} <span class="subtitle">{{.}}</span> diff --git a/static/css/main.css b/static/css/main.css index e0c7d6bede03fb760d83dc721af831c7bae0cdbc..04a1018ec841c6dfc594d8bc6b9e19b60c781cb4 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -352,7 +352,7 @@ header { max-width: 100%; background-image: url(/header.jpg); background-size: cover; - background-position-y: 30%; + background-position: 50% 10%; background-blend-mode: soft-light; } @@ -362,6 +362,10 @@ header h1 { text-shadow: 0px 0px 1px rgba(0,0,0,0.8); } +.big-hero header h1 { + padding: 125px 0; +} + .yellow header { background-color: rgb(255, 232, 89); @@ -589,6 +593,10 @@ footer .lang-dropdown { line-height: inherit; } + .big-hero header h1 { + padding: 100px 0; + } + article > *, article .container, footer .container { diff --git a/static/header-home.jpg b/static/header-home.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b90d113eed23a86014a1dd57f57b698d3568ba1d Binary files /dev/null and b/static/header-home.jpg differ