From 739d34e9ae646aff795fe4776645aae70d97c548 Mon Sep 17 00:00:00 2001 From: Matthew Heroux Date: Tue, 20 Feb 2024 20:39:25 -0600 Subject: [PATCH] feat: segament dice notation page (#830) Signed-off-by: hxtree --- .../src/components/DiceAnalyzer.tsx | 148 +++++++++--------- clients/admin-client/src/pages/dice.page.tsx | 4 +- 2 files changed, 78 insertions(+), 74 deletions(-) diff --git a/clients/admin-client/src/components/DiceAnalyzer.tsx b/clients/admin-client/src/components/DiceAnalyzer.tsx index 4ec8bf09..faf9389f 100644 --- a/clients/admin-client/src/components/DiceAnalyzer.tsx +++ b/clients/admin-client/src/components/DiceAnalyzer.tsx @@ -8,6 +8,7 @@ import { Chart, TextField, Button, + Paper } from '@cats-cradle/design-system/dist/main'; import axios from 'axios'; @@ -95,81 +96,84 @@ export const DiceAnalyzer = (props: DiceAnalyzerProps) => { )} - - - - - setNotation(e.target.value)} - helpBlock="Example 1d6*2+2" - variant="standard" - /> - setIterations(Number(e.target.value))} - variant="standard" - // sx={{ width: '5ch', ml: 1 }} - /> - setLuck(e.target.value)} - variant="standard" - // sx={{ width: '5ch', ml: 1 }} - /> - - - -
- - - - +
+
+ + + + + + setNotation(e.target.value)} + helpBlock="Example 1d6*2+2" + variant="standard" + /> + setIterations(Number(e.target.value))} + variant="standard" + // sx={{ width: '5ch', ml: 1 }} + /> + setLuck(e.target.value)} + variant="standard" + // sx={{ width: '5ch', ml: 1 }} + /> + + + + + + +
- - - {data.length > 0 && ( -
- + {data.length > 0 && ( +
+ + }} + /> +
+ )}
- )} +
); }; diff --git a/clients/admin-client/src/pages/dice.page.tsx b/clients/admin-client/src/pages/dice.page.tsx index aadf96f2..cba76e91 100644 --- a/clients/admin-client/src/pages/dice.page.tsx +++ b/clients/admin-client/src/pages/dice.page.tsx @@ -4,15 +4,15 @@ import { DiceAnalyzer } from '../components/DiceAnalyzer'; export default function DicePage() { return (
- +

Dice Notation Analyzer

Determine the appropriate dice notation for skill set rolls and visualizes the impact of luck. Gain valuable insights into chance's influence on game play outcomes.

-
+
); }