From cbdab153da3fe57cb9cd255b92d03e6ffa295ce9 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Tue, 24 Feb 2026 16:50:00 -0700 Subject: [PATCH] I guess DaisyUI has rotating text now... awesome! --- astro.config.mjs | 10 ++----- src/components/RotatingText.astro | 22 +++++++++++++++ src/components/RotatingText.vue | 33 ----------------------- src/components/sections/HeroSection.astro | 2 +- 4 files changed, 25 insertions(+), 42 deletions(-) create mode 100644 src/components/RotatingText.astro delete mode 100644 src/components/RotatingText.vue diff --git a/astro.config.mjs b/astro.config.mjs index 10896df..deb4cfe 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,13 +8,10 @@ const isDev = process.env.NODE_ENV === "development"; export default defineConfig({ output: "server", - prefetch: true, build: { inlineStylesheets: "auto", }, - integrations: [ - vue(), - ], + integrations: [vue()], security: { checkOrigin: true, @@ -24,10 +21,7 @@ export default defineConfig({ : { algorithm: "SHA-512", scriptDirective: { - resources: [ - "'self'", - "https://analytics.atri.dad", - ], + resources: ["'self'", "https://analytics.atri.dad"], }, directives: [ "connect-src 'self' https://analytics.atri.dad", diff --git a/src/components/RotatingText.astro b/src/components/RotatingText.astro new file mode 100644 index 0000000..6f061b1 --- /dev/null +++ b/src/components/RotatingText.astro @@ -0,0 +1,22 @@ +--- +interface Props { + items: Array<{ + text: string; + className: string; + }>; +} + +const { items } = Astro.props; +--- + + + + { + items.map((item) => ( + + {item.text} + + )) + } + + diff --git a/src/components/RotatingText.vue b/src/components/RotatingText.vue deleted file mode 100644 index 4899e5a..0000000 --- a/src/components/RotatingText.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - diff --git a/src/components/sections/HeroSection.astro b/src/components/sections/HeroSection.astro index 2daf522..70f3288 100644 --- a/src/components/sections/HeroSection.astro +++ b/src/components/sections/HeroSection.astro @@ -2,7 +2,7 @@ import { siteConfig } from "../../config/site"; import Icon from "../Icon.astro"; import Section from "../Section.astro"; -import RotatingText from "../RotatingText.vue"; +import RotatingText from "../RotatingText.astro"; import StatusIndicator from "../StatusIndicator.vue"; const rotatingText = (siteConfig.hero as any).rotatingText as