Update: services and signup page style

This commit is contained in:
hyzen
2026-06-13 13:43:06 +05:30
parent b4ee52377e
commit 25d7f545cf
6 changed files with 26 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
{{ end }}
{{ with $registrationServices }}
<h2>Need Registration</h2>
<h2 class="services-group__title">Need Registration</h2>
<ol class="uninotes-list uninotes-list--subjects">
{{ range . }}
<li class="uninotes-list__item">
@@ -28,7 +28,7 @@
{{ end }}
{{ with $openServices }}
<h2>Without Registration</h2>
<h2 class="services-group__title">Without Registration</h2>
<ol class="uninotes-list uninotes-list--subjects">
{{ range . }}
<li class="uninotes-list__item">

View File

@@ -2,22 +2,16 @@
<div class="auth-page">
<div class="auth-card">
<h1 class="auth-page__title">{{ .Title }}</h1>
{{ with site.GetPage "/services" }}
{{ $registrationServices := slice }}
{{ range .Pages.ByWeight }}
{{ if index .Params "registration-needed" }}
{{ $registrationServices = $registrationServices | append . }}
{{ end }}
{{ end }}
{{ with $registrationServices }}
<p class="auth-page__services">
By signing up, you will get access to these services:
{{ range $index, $service := . }}{{ if $index }}, {{ end }}<a href="{{ $service.RelPermalink }}"
>{{ $service.LinkTitle }}</a
>{{ end }}.
</p>
{{ end }}
{{ end }}
{{ with site.GetPage "/services" }} {{ $registrationServices := slice }} {{ range
.Pages.ByWeight }} {{ if index .Params "registration-needed" }} {{ $registrationServices =
$registrationServices | append . }} {{ end }} {{ end }} {{ with $registrationServices }}
<p class="auth-page__services">
(By signing up, you will get access to the following services: {{ range $index, $service
:= . }}{{ if $index }}, {{ end }}<a href="{{ $service.RelPermalink }}"
>{{ $service.LinkTitle }}</a
>{{ end }})
</p>
{{ end }} {{ end }}
<div id="auth-message" class="auth-message" aria-live="polite"></div>
<!-- ── STEP 1 — Account details ───────────────────────────────── -->