diff --git a/blog/2024-11-15-playing-with-fire/1-introduction/GasketWeighted.tsx b/blog/2024-11-15-playing-with-fire/1-introduction/GasketWeighted.tsx
index d909aeb..fc3f6bb 100644
--- a/blog/2024-11-15-playing-with-fire/1-introduction/GasketWeighted.tsx
+++ b/blog/2024-11-15-playing-with-fire/1-introduction/GasketWeighted.tsx
@@ -3,16 +3,9 @@ import Canvas from "../src/Canvas";
import { Params, chaosGameWeighted } from "./chaosGameWeighted";
import TeX from '@matejmazur/react-katex';
-type Transform = (x: number, y: number) => [number, number];
+import styles from "../src/css/styles.module.css"
-function WeightInput({value, setValue, children}) {
- return (
-
- {children}
- setValue(Number(e.currentTarget.value))}/>
-
- )
-}
+type Transform = (x: number, y: number) => [number, number];
export default function GasketWeighted() {
const image = new ImageData(600, 600);
@@ -42,19 +35,23 @@ export default function GasketWeighted() {
setGame(chaosGameWeighted(params))
}, [f0Weight, f1Weight, f2Weight]);
+ const weightInput = (title, weight, setWeight) => (
+ <>
+
+
{title} weight:{weight}
+
setWeight(Number(e.currentTarget.value))}/>
+
+ >
+ )
+
return (
<>