diff --git a/src/components/generators/DiceGenerator.astro b/src/components/generators/DiceGenerator.astro new file mode 100644 index 0000000..42543dd --- /dev/null +++ b/src/components/generators/DiceGenerator.astro @@ -0,0 +1,170 @@ +--- +// Interactive dice generator — runs on the client via inline script +--- + +
+
+
+ + +
+
+ +
+ {['4','6','8','10','12','20','100'].map((s) => ( + + ))} +
+
+
+ + + +
+
+ + + + +
+ +
+ +
+
+ + diff --git a/src/data/generators.ts b/src/data/generators.ts index 012f729..ba12ae7 100644 --- a/src/data/generators.ts +++ b/src/data/generators.ts @@ -40,7 +40,7 @@ export const generators: Generator[] = [ title: 'Dice', description: 'Roll one or more dice with any number of sides.', icon: 'dice-6', - status: 'coming-soon', + status: 'live', }, { slug: 'cards', diff --git a/src/pages/generators/dice.astro b/src/pages/generators/dice.astro new file mode 100644 index 0000000..0c505d3 --- /dev/null +++ b/src/pages/generators/dice.astro @@ -0,0 +1,63 @@ +--- +import BaseLayout from '../../layouts/BaseLayout.astro'; +import DiceGenerator from '../../components/generators/DiceGenerator.astro'; +import AdBanner from '../../components/AdBanner.astro'; +import { generators } from '../../data/generators'; + +const generator = generators.find((g) => g.slug === 'dice')!; +--- + + +
+ + +
+
+ + randify +
+

+ {generator.title} Generator +

+

{generator.description}

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