mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 06:52:17 +00:00
Initial commit
This commit is contained in:
0
themes/lhs/layouts/404.html
Normal file
0
themes/lhs/layouts/404.html
Normal file
51
themes/lhs/layouts/_default/baseof.html
Normal file
51
themes/lhs/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body id="top" class="">
|
||||
<section id="header" class="">
|
||||
{{ partial "header.html" . }}
|
||||
</section>
|
||||
|
||||
{{ block "hero" . }}
|
||||
<section id="hero">
|
||||
<div class="hero is-medium" style="background-image: linear-gradient(-249deg, black, white), url({{ default "/images/hero-bg.jpg" .Params.hero_bg_image}});">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
{{ block "hero-content" . }}
|
||||
<div class="columns _is-centered is-vcentered has-text-white has-text-centered-mobile">
|
||||
<div class="column is-full-tablet _is-offset-one-quarter-tablet is-half-desktop">
|
||||
<h1 class="title is-1 has-text-white">{{ block "title" . }}{{ end }}</h1>
|
||||
<p class="subtitle has-text-white">{{ block "subtitle" . }}{{ end }}</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container content">
|
||||
{{ block "content" .}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ block "cta" . }}
|
||||
{{ partial "design/cta.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer.html" .}}
|
||||
|
||||
<script src="/js/simplebox.min.js"></script>
|
||||
<script src="/js/site.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
28
themes/lhs/layouts/_default/list.html
Normal file
28
themes/lhs/layouts/_default/list.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
|
||||
{{- range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="posts-group">
|
||||
<h3 id="{{ .Key }}">{{ .Key }}
|
||||
</div>
|
||||
<ul class="posts-list">
|
||||
{{- range .Pages }}
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}">
|
||||
<span class="post-title">{{.Title}}</span>
|
||||
<span class="post-day">{{ .Date.Format "2006-01-01" }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
11
themes/lhs/layouts/_default/single.html
Normal file
11
themes/lhs/layouts/_default/single.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
31
themes/lhs/layouts/page/home.html
Normal file
31
themes/lhs/layouts/page/home.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{{ define "hero-content" }}
|
||||
<div class="columns _is-centered is-vcentered has-text-white has-text-centered-mobile">
|
||||
|
||||
<div class="column is-full-tablet _is-offset-one-quarter-tablet is-half-desktop">
|
||||
<h1 class="title is-1 has-text-white">{{ .Title }}</h1>
|
||||
<p class="subtitle"></p>
|
||||
<p>{{ .Params.subtitle }}</p>
|
||||
<p></p>
|
||||
|
||||
<div class="columns _is-desktop">
|
||||
<div class="column is-mobile is-multiline is-fullwidth-mobile is-half-tablet">
|
||||
<a class="button is-primary is-medium is-fullwidth has-box-shadow" href="/about">Learn more</a>
|
||||
</div>
|
||||
<div class="column is-mobile is-multiline is-fullwidth-mobile is-half-tablet">
|
||||
<a class="button is-primary is-medium is-fullwidth has-box-shadow is-inverted _is-outlined"
|
||||
href="/membership">Become a member</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "cta" }}
|
||||
{{ partial "design/bigcta.html" . }}
|
||||
{{ end }}
|
||||
36
themes/lhs/layouts/page/membership.html
Normal file
36
themes/lhs/layouts/page/membership.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{{ define "hero" }}
|
||||
<section id="hero">
|
||||
<div class="hero has-primary-gradient">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
|
||||
<div class="columns is-centered ">
|
||||
<div class="column is-four-fifths">
|
||||
<div class="columns is-vcentered has-text-centered-mobile">
|
||||
|
||||
<div class="column is-half">
|
||||
<h1 class="title is-1 has-text-white">{{ .Title }}</h1>
|
||||
<p class="subtitle has-text-white">{{ .Params.subtitle }}</p>
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<img class="hero-img" src="/images/hero-img.svg"
|
||||
onerror="this.onerror=null; this.src= '/user/themes/leighhack/images/hero-img@2x.png'">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "cta" }}
|
||||
<p></p>
|
||||
{{ end }}
|
||||
19
themes/lhs/layouts/partials/design/bigcta.html
Normal file
19
themes/lhs/layouts/partials/design/bigcta.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<section class="has-primary-gradient cta-container">
|
||||
<div class="container">
|
||||
<div class="columns is-vcentered has-text-centered-mobile">
|
||||
|
||||
<div class="column">
|
||||
<img class="cta-img" src="/images/hero-img.svg"
|
||||
onerror="this.onerror=null; this.src= '/user/themes/leighhack/images/hero-img@2x.png'">
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<h2 class="title has-text-white">Ready to become a member?</h2>
|
||||
<p class="subtitle has-text-white">Leigh Hackspace is open to everyone. Being a member gives you instant
|
||||
access to all our facilities. Start making today!</p>
|
||||
<a href="/membership" class="button is-primary is-medium has-box-shadow is-fullwidth">Become a
|
||||
Member</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
12
themes/lhs/layouts/partials/design/cta.html
Normal file
12
themes/lhs/layouts/partials/design/cta.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<section class="small_cta">
|
||||
<div class="container ">
|
||||
<div class="columns is-centered is-multiline is-vcentered is-half-desktop has-text-centered py-4">
|
||||
<div class="column is-12-mobile _is-9-desktop _is-6-widescreen has-text-weight-bold" markdown="1">
|
||||
Become a member and get instant access to all the facilities at Leigh Hackspace.
|
||||
</div>
|
||||
<div class="column is-4-tablet _is-2-desktop is-3-widescreen">
|
||||
<a href="/membership" class="button is-primary is-fullwidth is-medium has-box-shadow">Join Today</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
73
themes/lhs/layouts/partials/footer.html
Normal file
73
themes/lhs/layouts/partials/footer.html
Normal file
@@ -0,0 +1,73 @@
|
||||
<footer class="footer _footer--sticky is-black has-text-white">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
|
||||
<div class="column is-1 is-pull-right-touch">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="44" viewBox="0 0 45 44">
|
||||
<path fill="#FFF" fill-rule="evenodd"
|
||||
d="M36.249 16.101l-8.253-8.224.993-.989L22.077 0l-10.17 10.134 6.634 6.61 2.386-2.378 1.738 1.732-6.51 6.488-1.738-1.732 2.386-2.378-6.633-6.61L0 22l6.912 6.888 1.025-1.02 8.252 8.223-1.024 1.02L22.077 44l10.17-10.134-6.634-6.611-2.387 2.378-1.737-1.731 6.51-6.488 1.738 1.731-2.387 2.379 6.634 6.61L44.154 22l-6.912-6.888z">
|
||||
</path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<div class="column is-4">
|
||||
<h4 class="title is-6 has-text-white">Where we are</h4>
|
||||
<address class="is-size-6">
|
||||
Leigh Hackspace<br>
|
||||
Leigh Spinners Mill (3rd Floor)<br>
|
||||
Park Lane <br>
|
||||
Leigh <br>
|
||||
WN7 2LB
|
||||
</address>
|
||||
</div>
|
||||
|
||||
<div class="column is-5-mobile is-4">
|
||||
<h4 class="title is-size-6 has-text-white">Site Links</h4>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<ul class="has-text-white is-size-6 ">
|
||||
<li><a href="/about">About Us</a></li>
|
||||
<li><a href="/facilities">Our Facilities</a></li>
|
||||
<li><a href="/contact">Contact Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<h4 class="title is-6 has-text-white">Socials</h4>
|
||||
<div class="columns">
|
||||
<div class="column is-4">
|
||||
<ul class="has-text-white is-size-6 ">
|
||||
{{- with .Site.Params.social }}
|
||||
{{ range . -}}
|
||||
<li><a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ .name | humanize }}</a></li>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="columns is-vcentered is-size-6 is-multiline has-text-grey mt-4">
|
||||
<div class="column is-10-desktop is-offset-1-desktop">
|
||||
|
||||
<div class="level">
|
||||
<div class="level-left">
|
||||
</div>
|
||||
<div class="level-right">
|
||||
<p>© {{ .Site.Params.company }} {{ .Site.Params.copyright_years }} | Initial website by <a href="https://www.studiocosmos.co.uk"
|
||||
target="_blank" rel="noopener">COSMOS</a><br/>
|
||||
{{ .Site.Title }} is a trading name of {{ .Site.Params.Company }}, registered in England & Wales No. <a href="https://find-and-update.company-information.service.gov.uk/company/{{ .Site.Params.company_number }}">{{ .Site.Params.company_number }}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
8
themes/lhs/layouts/partials/head.html
Normal file
8
themes/lhs/layouts/partials/head.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<meta charset="utf-8">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://kit.fontawesome.com/589b48ea08.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="/css/bulma.min.css">
|
||||
<link rel="stylesheet" href="/css/leighhack.css" type="text/css" >
|
||||
49
themes/lhs/layouts/partials/header.html
Normal file
49
themes/lhs/layouts/partials/header.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<nav class="navbar is-spaced" role="navigation" aria-label="main navigation">
|
||||
<div class="container">
|
||||
|
||||
<div class="navbar-brand" style="flex-grow: 1;">
|
||||
<a class="navbar-item" href="/">
|
||||
<img class="site-logo" src="/images/logo.svg" alt="" width="152">
|
||||
</a>
|
||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar">
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
<span aria-hidden="true"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="navbar" class="navbar-menu has-text-centered-touch is-size-5-touch">
|
||||
<div class="navbar-start is-half ">
|
||||
|
||||
<a href="/about" class="active navbar-item has-shadow is-size-5">About</a>
|
||||
<a href="/facilities" class=" navbar-item has-shadow is-size-5">Facilities</a>
|
||||
<a href="/contact" class=" navbar-item has-shadow is-size-5">Contact</a>
|
||||
|
||||
|
||||
<div class="navbar-item has-shadow">
|
||||
<div class="buttons is-block-touch is-fullwidth-touch">
|
||||
<a href="/membership" class="button is-primary is-rounded is-size-5">
|
||||
<strong>Become a member</strong>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="navbar-end navbar--social-links">
|
||||
{{- with .Site.Params.social }}
|
||||
{{ range . -}}
|
||||
<div class="navbar-item is-inline-block-touch">
|
||||
<span class="icon">
|
||||
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me"
|
||||
title="{{ .name | humanize }}"><i class="fab {{ .icon }}" aria-hidden="true"></i></a>
|
||||
</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
19
themes/lhs/layouts/shortcodes/facilities.html
Normal file
19
themes/lhs/layouts/shortcodes/facilities.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<style>
|
||||
.box-height { min-height: 180px; }
|
||||
</style>
|
||||
<div class="columns pricing-tiers is-centered is-multiline">
|
||||
{{- range (where .Site.RegularPages "Section" "facilities") }}
|
||||
<div class="column is-one-quarter">
|
||||
<div class="box is-large hover-items">
|
||||
<div class=""><img src="{{ .Params.icon }}" width="32"></div>
|
||||
<h3 class="is-size-4 has-text-weight-bold">{{ .Title }}</h3>
|
||||
<div class="content mt-5 box-height">
|
||||
<p>{{ .Params.subtitle }}</p>
|
||||
</div>
|
||||
<div class="content">
|
||||
<a href="{{ .Permalink }}" class="button is-primary is-medium is-fullwidth has-box-shadow ">Learn More</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
22
themes/lhs/layouts/shortcodes/memberships.html
Normal file
22
themes/lhs/layouts/shortcodes/memberships.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<style>
|
||||
.box-height { min-height: 180px; }
|
||||
</style>
|
||||
<div class="columns pricing-tiers is-centered is-multiline">
|
||||
{{- with .Site.Params.membership }}
|
||||
{{ range . -}}
|
||||
<div class="column is-one-quarter">
|
||||
<div class="box is-large hover-items">
|
||||
<h3 class="is-size-4 has-text-weight-bold">{{ .name }}</h3>
|
||||
<div class="is-size-1 has-text-weight-bold my-5">£{{ .price }}</div>
|
||||
<div class="_is-block mt-1 is-size-6 has-text-weight-normal">per month</div>
|
||||
<div class="content mt-5 box-height">
|
||||
<p>{{ .description }}</p>
|
||||
</div>
|
||||
<div class="content">
|
||||
<a href="{{ .link }}" class="button is-primary is-medium is-fullwidth has-box-shadow ">{{ default "Join Today" .button }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
2
themes/lhs/layouts/shortcodes/rawhtml.html
Normal file
2
themes/lhs/layouts/shortcodes/rawhtml.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- raw html -->
|
||||
{{.Inner}}
|
||||
Reference in New Issue
Block a user