From 53ce28a960cc929efc4ead964d79c1b0a67f5d57 Mon Sep 17 00:00:00 2001 From: Tyler Flowers Date: Thu, 21 Dec 2023 02:48:08 -0500 Subject: Clean up Slider --- apps/website/src/components/base/Slider.astro | 66 ++++++++++++++++--------- apps/website/src/layouts/Layout.astro | 2 +- apps/website/src/pages/projects/oneconfig.astro | 4 +- 3 files changed, 47 insertions(+), 25 deletions(-) diff --git a/apps/website/src/components/base/Slider.astro b/apps/website/src/components/base/Slider.astro index 95ffd05..ae4bbae 100644 --- a/apps/website/src/components/base/Slider.astro +++ b/apps/website/src/components/base/Slider.astro @@ -4,45 +4,67 @@ import type { HTMLAttributes } from 'astro/types'; interface Props extends HTMLAttributes<'div'> { dir?: string wrapperClass?: string + childrenNum: number + childrenSize?: string + speed?: string } const { dir = 'left', wrapperClass = '', + childrenNum, + childrenSize = '256px', + speed = '15s', } = Astro.props; + ---
- +
+ + +
- - diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro index 1af3a1e..56b4abc 100644 --- a/apps/website/src/layouts/Layout.astro +++ b/apps/website/src/layouts/Layout.astro @@ -34,7 +34,7 @@ const { {title} - +
diff --git a/apps/website/src/pages/projects/oneconfig.astro b/apps/website/src/pages/projects/oneconfig.astro index e9728a1..e302059 100644 --- a/apps/website/src/pages/projects/oneconfig.astro +++ b/apps/website/src/pages/projects/oneconfig.astro @@ -126,7 +126,7 @@ import { Code } from 'astro:components'; - + @@ -136,7 +136,7 @@ import { Code } from 'astro:components'; - + -- cgit