diff --git a/packages/chess/index.html b/packages/chess/index.html new file mode 100644 index 0000000..519fe47 --- /dev/null +++ b/packages/chess/index.html @@ -0,0 +1,12 @@ + + + + + + Chess App + + +
+ + + diff --git a/packages/chess/package.json b/packages/chess/package.json index 68159a2..74a5e61 100644 --- a/packages/chess/package.json +++ b/packages/chess/package.json @@ -8,7 +8,10 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@paratype/rete": "workspace:*" + "@paratype/rete": "workspace:*", + "@tailwindcss/vite": "^4.2.2", + "react-router-dom": "^7.14.1", + "tailwindcss": "^4.2.2" }, "devDependencies": { "vite": "^6.0.0", diff --git a/packages/chess/src/app/App.tsx b/packages/chess/src/app/App.tsx new file mode 100644 index 0000000..e67e411 --- /dev/null +++ b/packages/chess/src/app/App.tsx @@ -0,0 +1,46 @@ +import { Routes, Route } from 'react-router-dom' + +export function App() { + return ( +
+ + } /> + } /> + } /> + } /> + +
+ ) +} + +function Home() { + return ( +
+

Home

+
+ ) +} + +function Game() { + return ( +
+

Game

+
+ ) +} + +function Rules() { + return ( +
+

Rules

+
+ ) +} + +function Save() { + return ( +
+

Save

+
+ ) +} diff --git a/packages/chess/src/app/index.css b/packages/chess/src/app/index.css new file mode 100644 index 0000000..f1d8c73 --- /dev/null +++ b/packages/chess/src/app/index.css @@ -0,0 +1 @@ +@import "tailwindcss"; diff --git a/packages/chess/src/app/main.tsx b/packages/chess/src/app/main.tsx new file mode 100644 index 0000000..573ed1c --- /dev/null +++ b/packages/chess/src/app/main.tsx @@ -0,0 +1,17 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import { BrowserRouter } from 'react-router-dom' +import './index.css' +import { App } from './App' + +const container = document.getElementById('root') +if (!container) throw new Error('Failed to find the root element') + +const root = createRoot(container) +root.render( + + + + + +) diff --git a/packages/chess/vite.config.ts b/packages/chess/vite.config.ts new file mode 100644 index 0000000..a94a568 --- /dev/null +++ b/packages/chess/vite.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' +import tailwindcss from '@tailwindcss/vite' + +export default defineConfig({ + plugins: [ + tailwindcss(), + react() + ], +})