From dc7a87c7504aeb9cbaf1bcb021f16e3406fac4e4 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sun, 14 Jul 2024 22:21:11 +0800 Subject: [PATCH] Use accessible stylised tooltips for adoptables --- ...es-alexandra.png => alexandra-diddles.png} | Bin src/assets/css/components.css | 3 ++ src/pages/adoptables.njk | 33 +++++++++++------- 3 files changed, 23 insertions(+), 13 deletions(-) rename src/assets/adoptables/{diddles-alexandra.png => alexandra-diddles.png} (100%) diff --git a/src/assets/adoptables/diddles-alexandra.png b/src/assets/adoptables/alexandra-diddles.png similarity index 100% rename from src/assets/adoptables/diddles-alexandra.png rename to src/assets/adoptables/alexandra-diddles.png diff --git a/src/assets/css/components.css b/src/assets/css/components.css index 713622fc..94cc1bf2 100644 --- a/src/assets/css/components.css +++ b/src/assets/css/components.css @@ -123,6 +123,9 @@ a.link-btn[href^="http"]:not([href*="leilukin.com"]) { padding-right: calc(var(- /* Adoptables wrapper */ .adoptables { + list-style-type: ""; + margin: 0; + padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; diff --git a/src/pages/adoptables.njk b/src/pages/adoptables.njk index 0f0bf544..36b92c6e 100644 --- a/src/pages/adoptables.njk +++ b/src/pages/adoptables.njk @@ -2,32 +2,39 @@ title: Adoptables desc: A collection of creatures and stuff I have adopted from other websites. isContentDivided: true +hasTooltips: true eleventyNavigation: order: 7 --- +{%- macro adoptable(url, file, alt, tooltip=alt) -%} +
  • + + {{ alt }} + +
  • +{%- endmacro -%} +

    Personal Website Adoptables

    These are adopted from other personal websites.

    -
    - - Diddles the raccoon by Alexandra - - - Moomin pixel art by Lost Letters - -
    +

    32-Bit Cafe Code Jam: Destination Vacation

    Stuff I collected from 32-Bit Cafe's Community Code Jam #4: Destination Vacation in June 2024, including a passport with stamps from the code jam entries, and extra goodies from some of the participants.

    -
    - 32-Bit Cafe's Destination Vacation code jam passport with stamps - Alexandra's stamp - Ribose's fishing button -
    +
    {% include "main/virtualpets.njk" %} \ No newline at end of file