mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Clean up Membership data
This commit is contained in:
@@ -1,45 +1,53 @@
|
||||
# Membership levels, this is used on the website and also presented as JSON for other services to use.
|
||||
membership_levels:
|
||||
- name: "Member"
|
||||
price: 24
|
||||
value: 24
|
||||
currency: 'GBP'
|
||||
description: "Our standard membership that allows usage of the hackspace facilities."
|
||||
link: "https://pay.gocardless.com/AL00024VQTCKBK"
|
||||
|
||||
- name: "Member+"
|
||||
price: 30
|
||||
value: 30
|
||||
currency: 'GBP'
|
||||
description: "Standard membership with an additional donation."
|
||||
link: "https://pay.gocardless.com/AL00024VQW2FWQ"
|
||||
|
||||
- name: "Concession"
|
||||
price: "18"
|
||||
value: "18"
|
||||
currency: 'GBP'
|
||||
description: "A subsidised membership for pensioners, students, and low income earners."
|
||||
link: "https://pay.gocardless.com/AL0002BMN4S3AX"
|
||||
|
||||
- name: "Family"
|
||||
price: 40
|
||||
value: 40
|
||||
currency: 'GBP'
|
||||
description: "A discounted family membership for two adults and two children."
|
||||
link: "https://pay.gocardless.com/AL000637J3VZP7"
|
||||
|
||||
- name: "Day Pass"
|
||||
price: 5
|
||||
period: "daily"
|
||||
value: 5
|
||||
currency: 'GBP'
|
||||
billing_interval: "daily"
|
||||
description: "Access to the hackspace's facilities for a day."
|
||||
link: "mailto:info@leighhack.org?subject=Day%20Pass"
|
||||
button: "Enquire"
|
||||
|
||||
- name: "Patron"
|
||||
price: 5
|
||||
value: 5
|
||||
currency: 'GBP'
|
||||
description: "Support the hackspace without being a member."
|
||||
link: "https://pay.gocardless.com/AL000FDGN4Q6AC"
|
||||
|
||||
- name: "Business"
|
||||
price: 0
|
||||
value: 0
|
||||
currency: 'GBP'
|
||||
description: "Access to the hackspace for a business or community group."
|
||||
link: "mailto:info@leighhack.org?subject=Corporate%20Membership"
|
||||
button: "Enquire"
|
||||
|
||||
- name: "Creator Pod"
|
||||
price: 0
|
||||
value: 0
|
||||
currency: 'GBP'
|
||||
description: "An enhanced membership which includes a dedicated space for your personal use."
|
||||
link: "mailto:info@leighhack.org?subject=Artist%20Pod%20Lease"
|
||||
button: "Enquire"
|
||||
|
||||
@@ -5,22 +5,29 @@
|
||||
{{- with $.Site.Data.memberships.membership_levels }}
|
||||
{{ range . -}}
|
||||
|
||||
{{ $period := (default "monthly" .period) }}
|
||||
{{ if eq $period "yearly" }}
|
||||
{{ $period = "per year" }}
|
||||
{{ else if eq $period "monthly" }}
|
||||
{{ $period = "per month" }}
|
||||
{{ else if eq $period "weekly" }}
|
||||
{{ $period = "per weekly" }}
|
||||
{{ else if eq $period "daily" }}
|
||||
{{ $period = "per day" }}
|
||||
{{ $billing_interval := (default "monthly" .billing_interval) }}
|
||||
{{ if eq $billing_interval "yearly" }}
|
||||
{{ $billing_interval = "per year" }}
|
||||
{{ else if eq $billing_interval "monthly" }}
|
||||
{{ $billing_interval = "per month" }}
|
||||
{{ else if eq $billing_interval "weekly" }}
|
||||
{{ $billing_interval = "per weekly" }}
|
||||
{{ else if eq $billing_interval "daily" }}
|
||||
{{ $billing_interval = "per day" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $currency := (default "GBP" .currency )}}
|
||||
{{ if eq $currency "GBP" }}
|
||||
{{ $currency = "£" }}
|
||||
{{ else if eq $currency "EUR" }}
|
||||
{{ $currency = "€" }}
|
||||
{{ end }}
|
||||
|
||||
<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 pricing-price">£{{ default " POA" .price }}</div>
|
||||
<div class="_is-block mt-1 is-size-7 has-text-weight-normal">{{ $period }}</div>
|
||||
<div class="is-size-1 has-text-weight-bold pricing-price">{{ $currency }}{{ default " POA" .value }}</div>
|
||||
<div class="_is-block mt-1 is-size-7 has-text-weight-normal">{{ $billing_interval }}</div>
|
||||
<div class="content mt-5 pricing-description is-size-6">
|
||||
<p>{{ .description }}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user