mirror of
https://github.com/tiennm99/try-superpowers.git
synced 2026-08-10 10:23:13 +00:00
34 lines
758 B
TypeScript
34 lines
758 B
TypeScript
interface MenuProps {
|
|
onPlay: () => void;
|
|
}
|
|
|
|
export function Menu({ onPlay }: MenuProps) {
|
|
return (
|
|
<div style={{
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
alignItems: "center",
|
|
gap: "24px",
|
|
}}>
|
|
<h1 style={{ fontSize: "48px" }}>⚡ Pikachu Onet Connect</h1>
|
|
<p style={{ fontSize: "18px", color: "#aaa" }}>
|
|
Match pairs of tiles by connecting them with up to 3 lines
|
|
</p>
|
|
<button
|
|
onClick={onPlay}
|
|
style={{
|
|
padding: "16px 48px",
|
|
fontSize: "24px",
|
|
background: "#e94560",
|
|
color: "#fff",
|
|
border: "none",
|
|
borderRadius: "8px",
|
|
cursor: "pointer",
|
|
}}
|
|
>
|
|
Play
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|