From e6c35cb90f01149928baaa6959f5e1744efbb9b2 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 9 Oct 2024 20:38:44 -0300 Subject: Added hover effects to Showcases --- docs/showcases/Showcase.vue | 80 ++++++++++++++++++++++++++++++++++++--------- docs/showcases/showcases.ts | 3 ++ 2 files changed, 67 insertions(+), 16 deletions(-) diff --git a/docs/showcases/Showcase.vue b/docs/showcases/Showcase.vue index a5a1e01..f790fbf 100644 --- a/docs/showcases/Showcase.vue +++ b/docs/showcases/Showcase.vue @@ -2,37 +2,85 @@ const props = defineProps({ src: { type: String, required: true }, label: { type: String, required: true }, - url: { type: String, required: true } + url: { type: String, required: true }, + icon: { type: String, required: false }, }); diff --git a/docs/showcases/showcases.ts b/docs/showcases/showcases.ts index 2b23aca..f4899c2 100644 --- a/docs/showcases/showcases.ts +++ b/docs/showcases/showcases.ts @@ -2,6 +2,7 @@ type Showcase = { label: string; src: string; url: string; + icon: string; // https://devicon.dev/ }; type Grid = T | [T, T] | [T, T, T] | [T, T, T, T]; @@ -11,11 +12,13 @@ export default [ label: "Placeholder (this is an ags v1 screenshot)", src: "/astal/showcase/aylur.png", url: "https://github.com/Aylur/dotfiles", + icon: "devicon-javascript-plain", }, { label: "Idk I just love oxocarbon", src: "/astal/showcase/contrib1.webp", url: "https://github.com/tokyob0t/dotfiles", + icon: "devicon-lua-plain", }, // add mowe shuwucases hewe~ ] satisfies Array>; -- cgit v1.2.3