From 83904d4b6cdbb77398c25235368d48e41cf016bb Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Tue, 23 Apr 2024 00:33:53 -0700 Subject: [PATCH] feat: added title to carousel and cleaned up styling --- _data/carousels.yml | 32 ++++++++++++++++---------------- _includes/carousel.html | 31 +++++++++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/_data/carousels.yml b/_data/carousels.yml index 0a25d52e..f3aef3c0 100644 --- a/_data/carousels.yml +++ b/_data/carousels.yml @@ -1,18 +1,18 @@ carousels: - images: - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_plane_launch.jpg - - image: /assets/banner_tiger.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_plane_launch.jpg - - image: /assets/banner_tiger.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_plane_launch.jpg - - image: /assets/banner_tiger.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_guatemala.jpg - - image: /assets/banner_plane_launch.jpg - - image: /assets/banner_tiger.jpg - - image: /assets/banner_guatemala.jpg \ No newline at end of file + - image: { + "url": /assets/banner_guatemala.jpg, + "title": "TEST TITLE GUATEMALAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + - image: { + "url": /assets/banner_guatemala.jpg, + "title": "TEST TITLE GUATEMALAaaaa" + } + - image: { + "url": /assets/banner_plane_launch.jpg, + "title": "TEST TITLE PLANE" + } + - image: { + "url": /assets/banner_tiger.jpg, + "title": "TEST TITLE TIGER" + } \ No newline at end of file diff --git a/_includes/carousel.html b/_includes/carousel.html index e6396993..16bc6263 100644 --- a/_includes/carousel.html +++ b/_includes/carousel.html @@ -36,7 +36,7 @@ @@ -47,7 +47,18 @@ for="{{ number }}{{ letters[forloop.index0] }}" onclick="onClick()" > + {% endfor %} + + + @@ -55,6 +66,7 @@