summaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-01 16:31:27 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-01 16:31:27 -0700
commit5148ee2063846d37f9152a9dfa64fcd40cc0454b (patch)
treeba19032f6296c97e9dd8ce91253886bf24d5b441 /src/App.tsx
parent17e95224a083ccd9e522f8712bb10846a2dada8a (diff)
downloadthe-abstraction-engine-5148ee2063846d37f9152a9dfa64fcd40cc0454b.tar.gz
the-abstraction-engine-5148ee2063846d37f9152a9dfa64fcd40cc0454b.zip
get something on the screen
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx56
1 files changed, 26 insertions, 30 deletions
diff --git a/src/App.tsx b/src/App.tsx
index afe48ac..9c5f790 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,35 +1,31 @@
-import { useState } from 'react'
-import reactLogo from './assets/react.svg'
-import viteLogo from '/vite.svg'
-import './App.css'
+import { GameCanvas } from "./components/GameCanvas";
-function App() {
- const [count, setCount] = useState(0)
+const WIDTH = 800;
+const HEIGHT = 800;
+export const App = () => {
return (
- <>
- <div>
- <a href="https://vitejs.dev" target="_blank">
- <img src={viteLogo} className="logo" alt="Vite logo" />
- </a>
- <a href="https://react.dev" target="_blank">
- <img src={reactLogo} className="logo react" alt="React logo" />
- </a>
+ <div className="main">
+ <div className="header">
+ <div className="nav">
+ <h1>the abstraction engine</h1>
+ </div>
</div>
- <h1>Vite + React</h1>
- <div className="card">
- <button onClick={() => setCount((count) => count + 1)}>
- count is {count}
- </button>
- <p>
- Edit <code>src/App.tsx</code> and save to test HMR
- </p>
+ <div className="content">
+ <GameCanvas width={WIDTH} height={HEIGHT} />
</div>
- <p className="read-the-docs">
- Click on the Vite and React logos to learn more
- </p>
- </>
- )
-}
-
-export default App
+ <div className="footer">
+ <span>
+ built by{" "}
+ <a
+ href="https://git.simponic.xyz/simponic"
+ target="_blank"
+ className="tf"
+ >
+ simponic
+ </a>
+ </span>
+ </div>
+ </div>
+ );
+};