Clean up Membership data

This commit is contained in:
2023-11-28 11:14:10 +00:00
parent 5c0e37c91f
commit 65c21db841
2 changed files with 35 additions and 20 deletions

View File

@@ -1,45 +1,53 @@
# Membership levels, this is used on the website and also presented as JSON for other services to use. # Membership levels, this is used on the website and also presented as JSON for other services to use.
membership_levels: membership_levels:
- name: "Member" - name: "Member"
price: 24 value: 24
currency: 'GBP'
description: "Our standard membership that allows usage of the hackspace facilities." description: "Our standard membership that allows usage of the hackspace facilities."
link: "https://pay.gocardless.com/AL00024VQTCKBK" link: "https://pay.gocardless.com/AL00024VQTCKBK"
- name: "Member+" - name: "Member+"
price: 30 value: 30
currency: 'GBP'
description: "Standard membership with an additional donation." description: "Standard membership with an additional donation."
link: "https://pay.gocardless.com/AL00024VQW2FWQ" link: "https://pay.gocardless.com/AL00024VQW2FWQ"
- name: "Concession" - name: "Concession"
price: "18" value: "18"
currency: 'GBP'
description: "A subsidised membership for pensioners, students, and low income earners." description: "A subsidised membership for pensioners, students, and low income earners."
link: "https://pay.gocardless.com/AL0002BMN4S3AX" link: "https://pay.gocardless.com/AL0002BMN4S3AX"
- name: "Family" - name: "Family"
price: 40 value: 40
currency: 'GBP'
description: "A discounted family membership for two adults and two children." description: "A discounted family membership for two adults and two children."
link: "https://pay.gocardless.com/AL000637J3VZP7" link: "https://pay.gocardless.com/AL000637J3VZP7"
- name: "Day Pass" - name: "Day Pass"
price: 5 value: 5
period: "daily" currency: 'GBP'
billing_interval: "daily"
description: "Access to the hackspace's facilities for a day." description: "Access to the hackspace's facilities for a day."
link: "mailto:info@leighhack.org?subject=Day%20Pass" link: "mailto:info@leighhack.org?subject=Day%20Pass"
button: "Enquire" button: "Enquire"
- name: "Patron" - name: "Patron"
price: 5 value: 5
currency: 'GBP'
description: "Support the hackspace without being a member." description: "Support the hackspace without being a member."
link: "https://pay.gocardless.com/AL000FDGN4Q6AC" link: "https://pay.gocardless.com/AL000FDGN4Q6AC"
- name: "Business" - name: "Business"
price: 0 value: 0
currency: 'GBP'
description: "Access to the hackspace for a business or community group." description: "Access to the hackspace for a business or community group."
link: "mailto:info@leighhack.org?subject=Corporate%20Membership" link: "mailto:info@leighhack.org?subject=Corporate%20Membership"
button: "Enquire" button: "Enquire"
- name: "Creator Pod" - name: "Creator Pod"
price: 0 value: 0
currency: 'GBP'
description: "An enhanced membership which includes a dedicated space for your personal use." description: "An enhanced membership which includes a dedicated space for your personal use."
link: "mailto:info@leighhack.org?subject=Artist%20Pod%20Lease" link: "mailto:info@leighhack.org?subject=Artist%20Pod%20Lease"
button: "Enquire" button: "Enquire"

View File

@@ -5,22 +5,29 @@
{{- with $.Site.Data.memberships.membership_levels }} {{- with $.Site.Data.memberships.membership_levels }}
{{ range . -}} {{ range . -}}
{{ $period := (default "monthly" .period) }} {{ $billing_interval := (default "monthly" .billing_interval) }}
{{ if eq $period "yearly" }} {{ if eq $billing_interval "yearly" }}
{{ $period = "per year" }} {{ $billing_interval = "per year" }}
{{ else if eq $period "monthly" }} {{ else if eq $billing_interval "monthly" }}
{{ $period = "per month" }} {{ $billing_interval = "per month" }}
{{ else if eq $period "weekly" }} {{ else if eq $billing_interval "weekly" }}
{{ $period = "per weekly" }} {{ $billing_interval = "per weekly" }}
{{ else if eq $period "daily" }} {{ else if eq $billing_interval "daily" }}
{{ $period = "per day" }} {{ $billing_interval = "per day" }}
{{ end }}
{{ $currency := (default "GBP" .currency )}}
{{ if eq $currency "GBP" }}
{{ $currency = "£" }}
{{ else if eq $currency "EUR" }}
{{ $currency = "€" }}
{{ end }} {{ end }}
<div class="column is-one-quarter"> <div class="column is-one-quarter">
<div class="box is-large hover-items"> <div class="box is-large hover-items">
<h3 class="is-size-4 has-text-weight-bold">{{ .name }}</h3> <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-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">{{ $period }}</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"> <div class="content mt-5 pricing-description is-size-6">
<p>{{ .description }}</p> <p>{{ .description }}</p>
</div> </div>