Compare commits

...

4 commits

Author SHA1 Message Date
irl
ac636aeb21 misc: add .hugo_build.lock to .gitignore 2026-02-08 14:18:26 +00:00
irl
fd8d2641b9 fix: responsive fixes 2026-02-08 13:41:56 +00:00
irl
bcdfb3c0fd feat: layout for GLNs 2026-02-08 13:41:32 +00:00
irl
7d650337f1 feat: move example content to an example directory 2026-02-08 13:41:17 +00:00
14 changed files with 112 additions and 2 deletions

2
.gitignore vendored
View file

@ -24,3 +24,5 @@ _gen
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
.hugo_build.lock

View file

@ -51,6 +51,10 @@
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
padding: 0 20px; padding: 0 20px;
@media (max-width: v.$bp_mobile) {
padding: 0;
}
} }
.contact-method__name { .contact-method__name {

47
assets/css/datapage.scss Normal file
View file

@ -0,0 +1,47 @@
@use "hugo:vars" as v;
@media(min-width: v.$bp_mobile) {
.datapage {
display: flex;
flex-direction: row;
gap: 1rem;
}
.datapage__content {
order: 1;
}
.datapage__data {
order: 2;
min-width: 350px;
}
.datapage__datacard {
background-color: white;
box-shadow: 0 1.5rem 4rem rgba(22,28,45,0.05) !important;
padding: 1.5rem;
}
}
.datapage__datacard {
address {
white-space: preserve-breaks;
font-style: normal;
}
h3 {
font-weight: 600;
}
h4 {
color: v.$color_tertiary;
font-variant: small-caps;
}
}
.datapage__content {
img {
max-width: 100%;
}
}

View file

@ -2,6 +2,11 @@
.flex-section { .flex-section {
margin: 48px 95px; margin: 48px 95px;
@media (max-width: v.$bp_mobile) {
margin-left: 0;
margin-right: 0;
}
} }
.flex-section__title { .flex-section__title {

View file

@ -10,6 +10,10 @@
box-sizing: border-box; box-sizing: border-box;
max-width: v.$max_content_width; max-width: v.$max_content_width;
} }
@media (max-width: v.$bp_mobile) {
padding: 10px 20px;
}
} }
.full-section__content { .full-section__content {

View file

@ -5,11 +5,16 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
&>div { & > div {
flex: 0 0 50%;
box-sizing: border-box; box-sizing: border-box;
max-width: calc(v.$max_content_width / 2); max-width: calc(v.$max_content_width / 2);
} }
@media (min-width: v.$bp_mobile) {
& > div {
flex: 0 0 50%;
}
}
} }
.half-section__content { .half-section__content {

View file

@ -9,6 +9,10 @@
flex-direction: column; flex-direction: column;
padding: 0 20px; padding: 0 20px;
margin-bottom: 2rem; margin-bottom: 2rem;
@media (max-width: v.$bp_mobile) {
padding: 0;
}
} }
.team-member__photo { .team-member__photo {

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

39
layouts/gln.html Normal file
View file

@ -0,0 +1,39 @@
{{ define "main" }}
<h1 class="page__title">{{ .Title }}</h1>
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
<div class="page__date">
{{ T "Updated" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</div>
<div class="datapage">
<div class="datapage__data">
<div class="datapage__datacard">
<h3>{{ T "Location Details" }}</h3>
<h4>{{ T "Address" }}</h4>
<address>{{ .Params.address }}</address>
<h4>
{{ T "Telephone" }}
</h4>
<p>
<a href="tel:{{ .Params.telephone }}">{{ .Params.telephone }}</a>
</p>
<h4 class="fw-bold text-uppercase text-gray-700 mb-2">
GLN
</h4>
<p>
{{ with resources.Get (printf "/images/gln/%s.png" .Params.gln) }}
<img src="{{ .RelPermalink }}" alt="{{ .Params.gln }}" style="width: 100%;">
{{ end }}
</p>
</div>
</div>
<div class="datapage__content">
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</div>
</div>
{{ end }}