Update hero

This commit is contained in:
2023-11-09 16:06:22 +00:00
parent c64d7c47ae
commit 7f14d8d070
4 changed files with 10 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
title: Welcome!
subtitle: Leigh Hackspace is a social enterprise created for the benefit of our members and the wider Leigh community.
layout: home
hero_image: /images/rose_logo.svg
---
{{< rawhtml >}}

View File

@@ -162,7 +162,8 @@ address {
min-height: 240px;
&-img {
margin-bottom: -4.5rem;
//margin-bottom: -4.5rem;
max-height: 300px;
}
.subtitle {

View File

@@ -18,24 +18,21 @@
<div class="hero-body">
<div class="container">
<div class="columns _is-centered is-vcentered">
<div class="column is-four-fifths">
<div class="column">
<div class="columns is-vcentered has-text-centered-mobile">
<div class="column is-half">
<div class="column">
{{ block "hero-content" . }}
<h1 class="title is-1 has-text-white">{{ .Title }}</h1>
<p class="subtitle has-text-white">{{ .Params.subtitle }}</p>
{{ end }}
</div>
<div class="column">
{{ if .Params.hero_image }}
<div class="column is-half">
{{ block "hero-image" . }}
{{ if .Params.hero_image }}
<img class="hero-img" src="{{ .Params.hero_image }}">
{{ end }}
<img class="image hero-img" src="{{ .Params.hero_image }}">
{{ end }}
</div>
{{ end }}
</div>
</div>
</div>

View File

@@ -14,7 +14,7 @@
</div>
<div id="navbar" class="navbar-menu has-text-centered-touch is-size-5-touch">
<div class="navbar-start is-half ">
<div class="navbar-start is-half">
{{- range site.Menus.main }}
<a href="{{ .URL }}" class="active navbar-item has-shadow is-size-5">{{ .Name }}</a>