2023-08-23 21:39:54 -04:00
|
|
|
import { JSX } from "preact/jsx-runtime";
|
|
|
|
import { EggbugImg, Main, render_and_copy } from "./common.tsx";
|
2023-08-23 20:31:10 -04:00
|
|
|
|
2023-08-23 21:39:54 -04:00
|
|
|
const GolfBall = () => (
|
2023-08-23 21:31:10 -04:00
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
resize: "both",
|
|
|
|
overflow: "hidden",
|
|
|
|
position: "relative",
|
|
|
|
// TODO: V REMOVE ME V
|
|
|
|
outline: "1px solid red",
|
2023-08-23 21:39:54 -04:00
|
|
|
width: "10rem",
|
2023-08-23 21:31:10 -04:00
|
|
|
height: "10rem",
|
2023-08-23 21:39:54 -04:00
|
|
|
transition: "all 5s",
|
|
|
|
gridArea: "1 / 1",
|
2023-08-23 21:31:10 -04:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<EggbugImg
|
|
|
|
type="golfball"
|
2023-08-23 20:31:10 -04:00
|
|
|
style={{
|
2023-08-23 21:31:10 -04:00
|
|
|
margin: 0,
|
2023-08-23 20:31:10 -04:00
|
|
|
position: "absolute",
|
|
|
|
right: 0,
|
|
|
|
bottom: 0,
|
|
|
|
width: "5rem",
|
2023-08-23 21:31:10 -04:00
|
|
|
height: "5rem",
|
2023-08-23 20:31:10 -04:00
|
|
|
pointerEvents: "none",
|
|
|
|
}}
|
2023-08-23 21:31:10 -04:00
|
|
|
/>
|
2023-08-23 20:31:10 -04:00
|
|
|
</div>
|
|
|
|
);
|
2023-08-23 21:31:10 -04:00
|
|
|
|
2023-08-23 21:39:54 -04:00
|
|
|
render_and_copy(
|
|
|
|
<Main style={{ display: "grid" }}>
|
|
|
|
<GolfBall />
|
|
|
|
</Main>
|
|
|
|
);
|
|
|
|
|
2023-08-23 21:31:10 -04:00
|
|
|
// OOOO: score with like a dial thing and an arrow pointing to it
|
2023-08-23 21:39:54 -04:00
|
|
|
// TWO DIALS WILL LOOK EVEN COOLER
|
|
|
|
// lower is better, just have to add the dials
|
2023-08-23 21:31:10 -04:00
|
|
|
// might be possible to have multiple holes with a details element that comes into frame hm
|
2023-08-23 21:39:54 -04:00
|
|
|
|
|
|
|
// hm this kinda sucks. you just drag it to the hole, there's no challenge
|
|
|
|
// i could have the ball be in a different place but then that would feel bad
|
|
|
|
// i think i'll go for the toy angle.
|
|
|
|
// keep the dials, have a "course"
|