summaryrefslogtreecommitdiff
path: root/src/components/Title.tsx
blob: 3a69dbcf78d5dcb124bd3ef4177c442c104751fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export interface TitleProps {
  setReady: (ready: boolean) => void;
}

export const Title = ({ setReady }: TitleProps) => {
  return (
    <div style={{ textAlign: "center" }}>
      <h1>the abstraction engine</h1>
      <p>a game based on the lambda calculus</p>
      <p>
        engine{" "}
        <a
          href="https://git.simponic.xyz/the-abstraction-engine"
          target="_blank"
        >
          from scratch
        </a>
      </p>
      <br />
      <p>
        WASD/arrow keys to move, space/enter to interact after highlighting with
        the mouse
      </p>

      <br />
      <hr />
      <br />
      <button onClick={() => setReady(true)}>ready</button>
    </div>
  );
};