feat: Hugo engine for iGaming affiliate template (layouts, assets, i18n, verified data, CI build script)
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{{- /* responsible-gambling-block.html — locale-aware RG messaging.
|
||||
Call with (dict "page" . "variant" "compact"|"full").
|
||||
Server renders the DEFAULT locale; the locale switcher updates the
|
||||
[data-age-value] / [data-rg-name] / [data-rg-link] elements client-side. */ -}}
|
||||
{{- $page := .page -}}
|
||||
{{- $variant := .variant | default "full" -}}
|
||||
{{- $brand := $page.Site.Data.brand -}}
|
||||
{{- $locales := $page.Site.Data.locales -}}
|
||||
{{- $default := "" -}}
|
||||
{{- with where $locales "locale" $brand.defaultLocale -}}{{- $default = index . 0 -}}{{- end -}}
|
||||
{{- $age := $brand.ageRestrictionDefault -}}
|
||||
{{- $orgName := "your national support service" -}}
|
||||
{{- $orgUrl := "#" -}}
|
||||
{{- with $default -}}
|
||||
{{- $age = .ageRestriction -}}
|
||||
{{- $orgName = .responsibleGamblingOrgName -}}
|
||||
{{- $orgUrl = .responsibleGamblingUrl -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq $variant "compact" -}}
|
||||
<p>This site is intended for adults aged <span data-age-value>{{ $age }}</span>+ only. Gambling should be entertainment, never a way to make money.</p>
|
||||
<p class="mt-2">Need help? Contact <a data-rg-link href="{{ $orgUrl }}" target="_blank" rel="noopener nofollow" class="font-semibold text-white underline"><span data-rg-name>{{ $orgName }}</span></a>.</p>
|
||||
{{- else -}}
|
||||
<div class="prose-content">
|
||||
<p>
|
||||
Gambling must stay fun. This site is intended for adults aged
|
||||
<strong><span data-age-value>{{ $age }}</span>+</strong> only. Never bet more than you can afford to
|
||||
lose, never chase losses, and never gamble to escape stress or debt. If it stops being enjoyable,
|
||||
it is time to stop.
|
||||
</p>
|
||||
|
||||
<h3>Tools to stay in control</h3>
|
||||
<ul>
|
||||
<li><strong>Deposit limits</strong> — cap how much you can add to your account per day, week or month.</li>
|
||||
<li><strong>Loss & wager limits</strong> — set a ceiling on stakes or net losses over a period.</li>
|
||||
<li><strong>Reality checks</strong> — on-screen reminders of how long you have been playing.</li>
|
||||
<li><strong>Time-outs</strong> — lock yourself out for 24 hours up to several weeks.</li>
|
||||
<li><strong>Self-exclusion</strong> — block access for months or years, including national schemes.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Find local support</h3>
|
||||
<p>
|
||||
Your currently selected region recommends
|
||||
<a data-rg-link href="{{ $orgUrl }}" target="_blank" rel="noopener nofollow"><span data-rg-name>{{ $orgName }}</span></a>.
|
||||
Support services for every market we cover are listed below — all offer free, confidential help.
|
||||
</p>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr><th scope="col">Region</th><th scope="col">Min. age</th><th scope="col">Support organisation</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{- range $locales -}}
|
||||
<tr>
|
||||
<td>{{ .label | default .locale }}</td>
|
||||
<td>{{ .ageRestriction }}+</td>
|
||||
<td><a href="{{ .responsibleGamblingUrl }}" target="_blank" rel="noopener nofollow">{{ .responsibleGamblingOrgName }}</a></td>
|
||||
</tr>
|
||||
{{- end -}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user