mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 13:22:22 +00:00
Update hero
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
title: Welcome!
|
title: Welcome!
|
||||||
subtitle: Leigh Hackspace is a social enterprise created for the benefit of our members and the wider Leigh community.
|
subtitle: Leigh Hackspace is a social enterprise created for the benefit of our members and the wider Leigh community.
|
||||||
layout: home
|
layout: home
|
||||||
|
hero_image: /images/rose_logo.svg
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< rawhtml >}}
|
{{< rawhtml >}}
|
||||||
|
|||||||
@@ -162,7 +162,8 @@ address {
|
|||||||
min-height: 240px;
|
min-height: 240px;
|
||||||
|
|
||||||
&-img {
|
&-img {
|
||||||
margin-bottom: -4.5rem;
|
//margin-bottom: -4.5rem;
|
||||||
|
max-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
|
|||||||
@@ -18,24 +18,21 @@
|
|||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns _is-centered is-vcentered">
|
<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="columns is-vcentered has-text-centered-mobile">
|
||||||
|
<div class="column">
|
||||||
<div class="column is-half">
|
|
||||||
{{ block "hero-content" . }}
|
{{ block "hero-content" . }}
|
||||||
<h1 class="title is-1 has-text-white">{{ .Title }}</h1>
|
<h1 class="title is-1 has-text-white">{{ .Title }}</h1>
|
||||||
<p class="subtitle has-text-white">{{ .Params.subtitle }}</p>
|
<p class="subtitle has-text-white">{{ .Params.subtitle }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ if .Params.hero_image }}
|
||||||
<div class="column">
|
<div class="column is-half">
|
||||||
{{ block "hero-image" . }}
|
{{ block "hero-image" . }}
|
||||||
{{ if .Params.hero_image }}
|
<img class="image hero-img" src="{{ .Params.hero_image }}">
|
||||||
<img class="hero-img" src="{{ .Params.hero_image }}">
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="navbar" class="navbar-menu has-text-centered-touch is-size-5-touch">
|
<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 }}
|
{{- range site.Menus.main }}
|
||||||
<a href="{{ .URL }}" class="active navbar-item has-shadow is-size-5">{{ .Name }}</a>
|
<a href="{{ .URL }}" class="active navbar-item has-shadow is-size-5">{{ .Name }}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user