mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 14:32:25 +00:00
43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
{{ define "content" }}
|
|
{{ .Content }}
|
|
|
|
<div class="columns pricing-tiers is-centered is-multiline">
|
|
{{- with $.Site.Data.memberships.membership_levels }}
|
|
{{ range . -}}
|
|
|
|
{{ $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">{{ $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>
|
|
<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>
|
|
{{ end }}
|