Skip to content

Commit ee093bf

Browse files
committed
refactor: Rework design system page, display assets and properly extract colours
Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
1 parent bd27700 commit ee093bf

5 files changed

Lines changed: 6285 additions & 70 deletions

File tree

data/resources.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,19 @@ design:
148148
- name: "White"
149149
value: "#FFFFFF"
150150
text: "#000"
151+
roles:
152+
- name: "Brand (light)"
153+
value: "#00529B"
154+
text: "#fff"
155+
- name: "Brand (dark)"
156+
value: "#b8d6f7"
157+
text: "#000"
151158
- name: "CTA (light)"
152159
value: "#00703C"
153160
text: "#fff"
154161
- name: "CTA (dark)"
155162
value: "#4CC88A"
156163
text: "#0d1520"
157-
- name: "Brand (dark)"
158-
value: "#b8d6f7"
159-
text: "#000"
160164
assets:
161165
- name: icon
162166
description: "VanLUG icon (Tux with Vancouver flag stripes)"

layouts/_partials/section-resources.html

Lines changed: 165 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -257,119 +257,185 @@ <h3>Tools &amp; reference</h3>
257257
<div class="pf-v6-c-content">
258258
<h3>Design system</h3>
259259
<p>
260-
VanLUG's design system is based on
260+
This website uses
261261
<a
262262
href="https://www.patternfly.org/"
263263
target="_blank"
264264
rel="noopener"
265265
>PatternFly{{ partial "icon" "external" }}</a
266-
>, the open-source design system used for this website.
266+
>, Red Hat's open-source design system. All colours are drawn from the
267+
<a
268+
href="https://en.wikipedia.org/wiki/Flag_of_Vancouver"
269+
target="_blank"
270+
rel="noopener"
271+
>flag of Vancouver{{ partial "icon" "external" }}</a
272+
>:
267273
</p>
268274
</div>
275+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm">
276+
<img
277+
src="{{ "design/flag-of-vancouver.svg" | relURL }}"
278+
alt="Flag of the city of Vancouver, Canada"
279+
style="max-width: 20rem;"
280+
/>
281+
<div class="pf-v6-c-content">
282+
<small>
283+
Flag of Vancouver by
284+
<a
285+
href="https://commons.wikimedia.org/wiki/File:Flag_of_Vancouver.svg"
286+
target="_blank"
287+
rel="noopener"
288+
>Sshu94{{ partial "icon" "external" }}</a
289+
>, CC BY-SA 4.0.
290+
</small>
291+
</div>
292+
</div>
269293

270294
<div class="pf-v6-c-content">
271-
<h4>Icon &amp; logo</h4>
295+
<h4>Logo</h4>
296+
<p>
297+
From 1999 to 2026, VanLUG used an unmodified
298+
<a
299+
href="https://commons.wikimedia.org/wiki/File:Tux.svg"
300+
target="_blank"
301+
rel="noopener"
302+
>Tux{{ partial "icon" "external" }}</a
303+
>
304+
by Larry Ewing, Simon Budig and Garrett LeSage as its icon,
305+
paired with a stylized mountain logo created by Ben Holt.
306+
</p>
272307
<p>
273-
The VanLUG icon is a modified version of
308+
The current icon, adopted in 2026, is a modified
274309
<a
275310
href="https://commons.wikimedia.org/wiki/File:TuxFlat.svg"
276311
target="_blank"
277312
rel="noopener"
278-
>Tux Flat SVG{{ partial "icon" "external" }}</a>
279-
by gg3po and Iwan Gabovitch, based on
313+
>Tux Flat SVG{{ partial "icon" "external" }}</a
314+
>
315+
by gg3po and Iwan Gabovitch (based on
280316
<a
281317
href="https://commons.wikimedia.org/wiki/File:NewTux.svg"
282318
target="_blank"
283319
rel="noopener"
284-
>NewTux.svg{{ partial "icon" "external" }}</a>
320+
>NewTux.svg{{ partial "icon" "external" }}</a
321+
>
285322
by gg3po, itself based on the original
286323
<a
287324
href="https://commons.wikimedia.org/wiki/File:Tux.png"
288325
target="_blank"
289326
rel="noopener"
290-
>Tux.png{{ partial "icon" "external" }}</a>
291-
by Larry Ewing. The wavy stripes from the
292-
<a
293-
href="https://en.wikipedia.org/wiki/Flag_of_Vancouver"
294-
target="_blank"
295-
rel="noopener"
296-
>flag of Vancouver{{ partial "icon" "external" }}</a>
297-
have been added to the belly. Licensed under the
327+
>Tux.png{{ partial "icon" "external" }}</a
328+
>
329+
by Larry Ewing) with the wavy stripes of the Vancouver flag added
330+
to the belly. It is licensed under the
298331
<a
299332
href="https://www.gnu.org/licenses/gpl-2.0.html"
300333
target="_blank"
301334
rel="noopener"
302-
>GNU GPL v2{{ partial "icon" "external" }}</a>
303-
or later. The full logo combines the icon with the
304-
&ldquo;VanLUG/Vancouver Linux User Group&rdquo; wordmark, as
305-
seen on the banner and event cards.
335+
>GNU GPL v2{{ partial "icon" "external" }}</a
336+
>
337+
or later. The full logo pairs the icon with the
338+
&ldquo;VanLUG / Vancouver Linux User Group&rdquo; wordmark.
306339
</p>
307340
</div>
341+
<div class="pf-v6-l-flex pf-m-gap-lg pf-m-align-items-flex-end pf-m-wrap">
342+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm pf-m-align-items-center">
343+
<img
344+
src="{{ "design/tux.svg" | relURL }}"
345+
alt="Tux, the Linux mascot, used as the original VanLUG icon"
346+
style="height: 6rem;"
347+
/>
348+
<div class="pf-v6-c-content"><small>Original icon (1999&ndash;2026)</small></div>
349+
</div>
350+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm pf-m-align-items-center">
351+
<img
352+
src="{{ "design/icon.png" | relURL }}"
353+
alt="VanLUG icon"
354+
style="height: 6rem;"
355+
/>
356+
<div class="pf-v6-c-content"><small>Icon by Felicitas Pojtinger (2026&ndash;present)</small></div>
357+
</div>
358+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm pf-m-align-items-center">
359+
<img
360+
src="{{ "design/logo-old.svg" | relURL }}"
361+
alt="Original VanLUG logo by Ben Holt"
362+
style="height: 6rem; background: #fff; padding: 0.5rem;"
363+
/>
364+
<div class="pf-v6-c-content"><small>Original logo by Ben Holt (1999&ndash;2026)</small></div>
365+
</div>
366+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm pf-m-align-items-center">
367+
<img
368+
src="{{ "design/logo.png" | relURL }}"
369+
alt="VanLUG logo"
370+
style="height: 6rem; background: #fff; padding: 0.5rem;"
371+
/>
372+
<div class="pf-v6-c-content"><small>Logo by Felicitas Pojtinger (2026&ndash;present)</small></div>
373+
</div>
374+
</div>
308375

309376
<div class="pf-v6-c-content">
310377
<h4>Fonts</h4>
311378
</div>
312-
<dl
313-
class="pf-v6-c-description-list pf-m-horizontal pf-m-compact"
314-
>
379+
<div class="pf-v6-l-flex pf-m-gap-sm pf-m-wrap">
315380
{{ range $key, $val := .Site.Data.resources.design.fonts }}
316-
<div class="pf-v6-c-description-list__group">
317-
<dt class="pf-v6-c-description-list__term">
318-
<span class="pf-v6-c-description-list__text">{{ $key | title }}</span>
319-
</dt>
320-
<dd class="pf-v6-c-description-list__description">
321-
<div class="pf-v6-c-description-list__text">
322-
<a
323-
href="{{ $val.url }}"
324-
target="_blank"
325-
rel="noopener"
326-
>{{ $val.name }}{{ partial "icon" "external" }}</a>
327-
</div>
328-
</dd>
329-
</div>
381+
<span class="pf-v6-c-label pf-m-compact pf-m-outline">
382+
<a
383+
href="{{ $val.url }}"
384+
target="_blank"
385+
rel="noopener"
386+
class="pf-v6-c-label__content"
387+
>
388+
<span class="pf-v6-c-label__text">{{ $key | title }}: {{ $val.name }}</span>
389+
<span class="pf-v6-c-label__icon">
390+
<i class="fa-solid fa-arrow-up-right-from-square" aria-hidden="true"></i>
391+
</span>
392+
</a>
393+
</span>
330394
{{ end }}
331-
</dl>
395+
</div>
332396

333397
<div class="pf-v6-c-content">
334-
<h4>Colours (Vancouver flag palette)</h4>
398+
<h4>Colours</h4>
335399
</div>
336-
<dl
337-
class="pf-v6-c-description-list pf-m-horizontal pf-m-compact"
338-
>
400+
<div class="pf-v6-l-flex pf-m-gap-sm pf-m-wrap">
339401
{{ range .Site.Data.resources.design.colours }}
340-
<div class="pf-v6-c-description-list__group">
341-
<dt class="pf-v6-c-description-list__term">
342-
<span class="pf-v6-c-description-list__text"
343-
>{{ .name }}</span
344-
>
345-
</dt>
346-
<dd class="pf-v6-c-description-list__description">
347-
<div class="pf-v6-c-description-list__text">
348-
<span
349-
class="pf-v6-c-label pf-m-compact pf-m-custom"
350-
style="
351-
--pf-v6-c-label--BackgroundColor: {{ .value }};
352-
--pf-v6-c-label--Color: {{ .text }};
353-
"
354-
>
355-
<span class="pf-v6-c-label__content">{{ .value }}</span>
356-
</span>
357-
</div>
358-
</dd>
359-
</div>
402+
<span
403+
class="pf-v6-c-label pf-m-compact pf-m-custom"
404+
style="
405+
--pf-v6-c-label--BackgroundColor: {{ .value }};
406+
--pf-v6-c-label--Color: {{ .text }};
407+
"
408+
>
409+
<span class="pf-v6-c-label__content">
410+
<span class="pf-v6-c-label__text">{{ .name }} {{ .value }}</span>
411+
</span>
412+
</span>
413+
{{ end }}
414+
{{ range .Site.Data.resources.design.roles }}
415+
<span
416+
class="pf-v6-c-label pf-m-compact pf-m-outline pf-m-custom"
417+
style="
418+
--pf-v6-c-label--BackgroundColor: {{ .value }};
419+
--pf-v6-c-label--Color: {{ .text }};
420+
"
421+
>
422+
<span class="pf-v6-c-label__content">
423+
<span class="pf-v6-c-label__text">{{ .name }} {{ .value }}</span>
424+
</span>
425+
</span>
360426
{{ end }}
361-
</dl>
427+
</div>
362428

363429
<div class="pf-v6-c-content">
364430
<h4>Assets</h4>
365431
<p>
366-
All assets are created and maintained with
432+
Created with
367433
<a
368434
href="https://inkscape.org/"
369435
target="_blank"
370436
rel="noopener"
371437
>Inkscape{{ partial "icon" "external" }}</a
372-
>. All files are in
438+
>. Source files are in
373439
<a
374440
href="{{ .Site.Data.site.source }}/tree/main/static/design"
375441
target="_blank"
@@ -381,13 +447,45 @@ <h4>Assets</h4>
381447
target="_blank"
382448
rel="noopener"
383449
>Unsplash{{ partial "icon" "external" }}</a
384-
>:
450+
>.
385451
</p>
386452
</div>
387453

454+
<div class="pf-v6-l-flex pf-m-gap-lg pf-m-align-items-flex-start pf-m-wrap">
455+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm pf-v6-u-flex-1" style="min-width: 15rem;">
456+
<img
457+
src="{{ "design/header.png" | relURL }}"
458+
alt="VanLUG header banner"
459+
style="max-width: 100%; height: 10rem; object-fit: contain;"
460+
/>
461+
<div class="pf-v6-c-content">
462+
<small>
463+
header.svg / header.png. Banner for Luma, OpenGraph and the home page.
464+
Photo by
465+
<a href="https://unsplash.com/photos/Yc9h5SJdEzI" target="_blank" rel="noopener">Lee Robinson{{ partial "icon" "external" }}</a>.
466+
</small>
467+
</div>
468+
</div>
469+
<div class="pf-v6-l-flex pf-m-column pf-m-gap-sm">
470+
<img
471+
src="{{ "design/card-talks.png" | relURL }}"
472+
alt="VanLUG Linux Talks event card"
473+
style="height: 10rem; object-fit: contain;"
474+
/>
475+
<div class="pf-v6-c-content">
476+
<small>
477+
Example event card (card-talks.svg / card-talks.png).
478+
Photo by
479+
<a href="https://unsplash.com/photos/bWRX_obQAl8" target="_blank" rel="noopener">Wesley Tingey{{ partial "icon" "external" }}</a>.
480+
</small>
481+
</div>
482+
</div>
483+
</div>
484+
388485
<table
389486
class="pf-v6-c-table pf-m-compact pf-m-grid-md"
390487
role="grid"
488+
aria-label="Design assets"
391489
>
392490
<thead class="pf-v6-c-table__thead">
393491
<tr class="pf-v6-c-table__tr" role="row">
@@ -418,7 +516,7 @@ <h4>Assets</h4>
418516
{{ range .Site.Data.resources.design.assets }}
419517
<tr class="pf-v6-c-table__tr" role="row">
420518
<td class="pf-v6-c-table__td" role="cell">
421-
<a href="{{ printf "design/%s.svg" .name | relURL }}" target="_blank">{{ .name }}.svg</a>/<a href="{{ printf "design/%s.png" .name | relURL }}" target="_blank">{{ .name }}.png</a>
519+
<a href="{{ printf "design/%s.svg" .name | relURL }}" target="_blank">{{ .name }}.svg</a> / <a href="{{ printf "design/%s.png" .name | relURL }}" target="_blank">{{ .name }}.png</a>
422520
</td>
423521
<td class="pf-v6-c-table__td" role="cell">
424522
{{ .description }}
@@ -436,7 +534,7 @@ <h4>Assets</h4>
436534
>source</a
437535
>)
438536
{{ else }}
439-
&mdash;
537+
n/a
440538
{{ end }}
441539
</td>
442540
</tr>

0 commit comments

Comments
 (0)