From dd415df86234e9ea70873cc91b21625c821d6408 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Wed, 6 May 2026 09:27:10 -0700 Subject: [PATCH] requests page and styling --- _includes/footer.njk | 6 +++--- _includes/header.njk | 11 ++++++++--- css/listings.css | 29 +++++++++++++++++++++++++++-- src/requests.njk | 31 +++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 src/requests.njk diff --git a/_includes/footer.njk b/_includes/footer.njk index b00034b..86a1659 100644 --- a/_includes/footer.njk +++ b/_includes/footer.njk @@ -6,12 +6,12 @@
  • Listings by day
  • -
  • - RSS -
  • source code
  • +
  • + RSS +
  • diff --git a/_includes/header.njk b/_includes/header.njk index 7c9c89b..a64e1eb 100644 --- a/_includes/header.njk +++ b/_includes/header.njk @@ -2,9 +2,14 @@ diff --git a/css/listings.css b/css/listings.css index 25e116f..29c66dd 100644 --- a/css/listings.css +++ b/css/listings.css @@ -92,11 +92,13 @@ /* individual listings */ -.listing { +.listing, +.request { margin-bottom: 1rem; } -.listing strong { +.listing strong, +.request strong { font-weight: bold; } @@ -108,3 +110,26 @@ font-size: .85rem; text-align: right; } + +/* Requests page */ +.title { + background-color: var(--color-gray); + padding: .25rem; + margin-bottom: .5rem; + display: flex; + justify-content: space-between; + flex-flow: row wrap; +} + +.title h2 { + text-transform: capitalize; + margin: 0; +} + +.title p { + font-family: "Bebas Neue", sans-serif; + font-size: 1.5rem; + margin: 0; + text-align: right; + margin-left: auto; +} diff --git a/src/requests.njk b/src/requests.njk new file mode 100644 index 0000000..ef0e79f --- /dev/null +++ b/src/requests.njk @@ -0,0 +1,31 @@ +--- +title: Requests for Help +--- +{% css %}{% include "css/listings.css" %}{% endcss %} + +{% if collections.requests | length == 0 %} +

    There's nothing here yet. Submit your own.

    +{% endif %} + +{% for listing in collections.requests | reverse %} + {% set tag = listing.data.tags | removeCoreTags %} +
    +
    +

    {{ listing.data.title }}

    +

    {{ tag }}

    +
    +

    + + {{ listing.data.handle }} + asks: {{ listing.data.blurb }} +

    + {% if listing.data.rate %} +

    Suggested rate: {{ listing.data.rate }}

    + {% endif %} +

    + listed on +

    +
    +{% endfor %}