diff --git a/src/components/GeneratorCard.astro b/src/components/GeneratorCard.astro index b301bdb..9f54261 100644 --- a/src/components/GeneratorCard.astro +++ b/src/components/GeneratorCard.astro @@ -20,6 +20,7 @@ const icons: Record = { 'circle-dollar-sign': ``, 'list': ``, 'fingerprint': ``, + 'pie-chart': ``, }; --- diff --git a/src/components/generators/WheelSpinner.astro b/src/components/generators/WheelSpinner.astro new file mode 100644 index 0000000..a09e087 --- /dev/null +++ b/src/components/generators/WheelSpinner.astro @@ -0,0 +1,338 @@ +--- +// Wheel of Fortune spinner — canvas-based, vanilla JS, no libraries +--- + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+ + +
+ + + + +
+ + + + diff --git a/src/data/generators.ts b/src/data/generators.ts index 7175e3b..f4b23d2 100644 --- a/src/data/generators.ts +++ b/src/data/generators.ts @@ -90,4 +90,13 @@ export const generators: Generator[] = [ seoTitle: 'UUID Generator — UUID v4, Hex & Base64 Tokens | Randify', seoDescription: 'Generate random UUID v4, hex tokens, or base64 strings online. Cryptographically secure, runs in your browser. Free UUID and token generator.', }, + { + slug: 'wheel', + title: 'Spin the Wheel', + description: 'Add your items, spin the wheel, and let chance decide.', + icon: 'pie-chart', + status: 'live', + seoTitle: 'Spin the Wheel — Random Picker | Randify', + seoDescription: 'Spin a customizable wheel of fortune to pick a random winner, choice, or option. Add your own items and let the wheel decide.', + }, ]; diff --git a/src/pages/generators/wheel.astro b/src/pages/generators/wheel.astro new file mode 100644 index 0000000..55f057b --- /dev/null +++ b/src/pages/generators/wheel.astro @@ -0,0 +1,77 @@ +--- +import BaseLayout from '../../layouts/BaseLayout.astro'; +import WheelSpinner from '../../components/generators/WheelSpinner.astro'; +import AdBanner from '../../components/AdBanner.astro'; +import SeoBlock from '../../components/SeoBlock.astro'; +import { generators } from '../../data/generators'; + +const generator = generators.find((g) => g.slug === 'wheel')!; +--- + + +
+ + +
+
+ + randify +
+

+ {generator.title} +

+

{generator.description}

+
+ +
+ +
+ +
+ +
+ + +
+