Compare commits
4 commits
9be694621f
...
ac636aeb21
| Author | SHA1 | Date | |
|---|---|---|---|
| ac636aeb21 | |||
| fd8d2641b9 | |||
| bcdfb3c0fd | |||
| 7d650337f1 |
14 changed files with 112 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -24,3 +24,5 @@ _gen
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
.hugo_build.lock
|
||||||
|
|
|
||||||
|
|
@ -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
47
assets/css/datapage.scss
Normal 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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
39
layouts/gln.html
Normal file
39
layouts/gln.html
Normal 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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue