Skip to content

Commit ca69406

Browse files
committed
refactor: Use decorative images on home page for "What to expect" cards
Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
1 parent 9316254 commit ca69406

2 files changed

Lines changed: 43 additions & 27 deletions

File tree

data/content.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ home:
1919
title: What to expect
2020
cards:
2121
- title: Monthly talks
22-
body: "One or two presentations each month: sysadmin deep-dives, tooling demos, career talks, security, whatever people find interesting."
22+
body: "Sysadmin deep-dives, tooling demos, career talks, security — one or two presentations each month, followed by Q&A."
23+
image: design/wesley-tingey-bWRX_obQAl8-unsplash.jpg
2324
- title: Drop-in help sessions
24-
body: "Bring your laptop. We help people install Linux, troubleshoot problems, and get comfortable with the command line."
25+
body: "Bring your laptop to a local library. We help with installs, troubleshooting, and getting comfortable on the command line."
26+
image: design/lee-robinson-Yc9h5SJdEzI-unsplash.jpg
2527
- title: Community year-round
2628
body_key: community_year_round
29+
image: design/aaron-thomas-dMqlE7lgyOU-unsplash.jpg
2730

2831
supporters:
2932
title: Events we're supporting

layouts/_partials/section-home.html

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -121,31 +121,44 @@ <h3>{{ $c.expect.title }}</h3>
121121
</div>
122122
<div class="pf-v6-l-gallery pf-m-gutter">
123123
{{ range $c.expect.cards }}
124-
<div class="pf-v6-c-card">
125-
<div class="pf-v6-c-card__title">
126-
<div class="pf-v6-c-card__title-text">{{ .title }}</div>
127-
</div>
128-
<div class="pf-v6-c-card__body">
129-
{{ if eq .body_key "community_year_round" }}
130-
The conversation keeps going on
131-
<a
132-
href="{{ $.Site.Data.links.socials.discourse.url }}"
133-
target="_blank"
134-
rel="noopener"
135-
>Discourse<icon-discourse></icon-discourse
136-
></a>
137-
and
138-
<a
139-
href="{{ $.Site.Data.links.socials.signal.url }}"
140-
target="_blank"
141-
rel="noreferrer noopener"
142-
>Signal<icon-signal></icon-signal
143-
></a>
144-
between meetings. Ask questions, share projects, find
145-
collaborators.
146-
{{ else }}
147-
{{ .body }}
148-
{{ end }}
124+
<div
125+
class="pf-v6-c-card"
126+
{{ with .image }}
127+
style="
128+
background: url('{{ . | relURL }}') center / cover;
129+
min-height: 10rem;
130+
"
131+
{{ end }}
132+
>
133+
<div class="pf-v6-c-card__body pf-v6-l-flex pf-m-column pf-m-justify-content-flex-end pf-m-gap-sm" {{ with .image }}style="
134+
background: linear-gradient(color-mix(in srgb, var(--pf-t--global--background--color--primary--default) 60%, transparent) 0%, color-mix(in srgb, var(--pf-t--global--background--color--primary--default) 80%, transparent) 50%, var(--pf-t--global--background--color--primary--default) 100%);
135+
border-radius: inherit;
136+
"{{ end }}>
137+
<div class="pf-v6-c-content">
138+
<h4>{{ .title }}</h4>
139+
<p>
140+
{{ if eq .body_key "community_year_round" }}
141+
The conversation keeps going on
142+
<a
143+
href="{{ $.Site.Data.links.socials.discourse.url }}"
144+
target="_blank"
145+
rel="noopener"
146+
>Discourse<icon-discourse></icon-discourse
147+
></a>
148+
and
149+
<a
150+
href="{{ $.Site.Data.links.socials.signal.url }}"
151+
target="_blank"
152+
rel="noreferrer noopener"
153+
>Signal<icon-signal></icon-signal
154+
></a>
155+
between meetings. Ask questions, share projects, find
156+
collaborators.
157+
{{ else }}
158+
{{ .body }}
159+
{{ end }}
160+
</p>
161+
</div>
149162
</div>
150163
</div>
151164
{{ end }}

0 commit comments

Comments
 (0)