diff --git a/.prettierrc b/.tempprettier similarity index 100% rename from .prettierrc rename to .tempprettier diff --git a/src/App.tsx b/src/App.tsx index 8c25841..6012b39 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,49 @@ -import './App.css' -import Background from './components/background' +import { useState } from "react"; +import "./App.css"; +import Background from "./components/background"; +import Commission from "./components/page/commission"; +import Link from "./components/page/link"; +import Refsheet from "./components/page/refsheet"; +import LinkRow from "./components/linkrow"; +import { Button } from "./components/common/Button"; function App() { + console.log("Loading app"); + const [page, setPage] = useState("Links"); + const changePage = (page: string) => { + setPage(page); + }; return ( <> - -
-
+ +
+

Kalon the Bee

+ + + + +
+ {page === "Links" ? ( + + ) : page === "Commission" ? ( + + ) : page === "Refsheet" ? ( + + ) : ( +
+

Error, no page found

+
+ )} +
- ) + ); } -export default App +export default App; diff --git a/src/components/background.tsx b/src/components/background.tsx index 9b20d0a..a3627c7 100644 --- a/src/components/background.tsx +++ b/src/components/background.tsx @@ -1,27 +1,15 @@ -import React from "react" +import React from "react"; -const Background: React.FC<{children: React.ReactNode }> = ({ children }) => { - return ( -
-
- {Array.from({ length: 20}).map((_, row) => ( -
- {Array.from({ length: 10}).map((_, col) => ( -
-
- ))} -
- ))} - -
-
{children}
+const Background: React.FC<{ children: React.ReactNode }> = ({ children }) => { + return ( +
+
+
+ {children}
- ) -} +
+
+ ); +}; -export default Background \ No newline at end of file +export default Background; diff --git a/src/components/common/Button.tsx b/src/components/common/Button.tsx new file mode 100644 index 0000000..bdc1e4e --- /dev/null +++ b/src/components/common/Button.tsx @@ -0,0 +1,14 @@ +interface ButtonParams { + label: string; + onClick: () => void; +} + +export const Button = ({ label, onClick }: ButtonParams) => { + return ( +
+ onClick()}> + {label} + +
+ ); +}; diff --git a/src/components/linkrow.tsx b/src/components/linkrow.tsx new file mode 100644 index 0000000..f775eb3 --- /dev/null +++ b/src/components/linkrow.tsx @@ -0,0 +1,18 @@ +import React from "react"; + +const LinkRow: React.FC<{ children: React.ReactNode }> = ({ children }) => { + return ( +
+ {React.Children.map(children, (child, index) => ( + <> + {index > 0 &&
} +
+ {child} +
+ + ))} +
+ ); +}; + +export default LinkRow; diff --git a/src/components/page/commission.tsx b/src/components/page/commission.tsx new file mode 100644 index 0000000..87e6d61 --- /dev/null +++ b/src/components/page/commission.tsx @@ -0,0 +1,7 @@ +export default function Commission() { + return ( +
+

Commission stuff eventually

+
+ ); +} diff --git a/src/components/page/link.tsx b/src/components/page/link.tsx new file mode 100644 index 0000000..6b96ef2 --- /dev/null +++ b/src/components/page/link.tsx @@ -0,0 +1,7 @@ +export default function link() { + return ( +
+

Link stuff eventually

+
+ ); +} diff --git a/src/components/page/refsheet.tsx b/src/components/page/refsheet.tsx new file mode 100644 index 0000000..8107a65 --- /dev/null +++ b/src/components/page/refsheet.tsx @@ -0,0 +1,7 @@ +export default function Refsheet() { + return ( +
+

Refsheet stuff eventually

+
+ ); +} diff --git a/src/index.css b/src/index.css index 444f889..62c1b8f 100644 --- a/src/index.css +++ b/src/index.css @@ -17,11 +17,11 @@ a { font-weight: 500; - color: #646cff; + color: #dfad08; text-decoration: inherit; } a:hover { - color: #535bf2; + color: #c2aa23; } body { @@ -33,6 +33,7 @@ body { } h1 { + color: #dfad08; font-size: 3.2em; line-height: 1.1; } diff --git a/src/main.tsx b/src/main.tsx index bef5202..10ed13e 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,10 +1,10 @@ -import { StrictMode } from 'react' -import { createRoot } from 'react-dom/client' -import './index.css' -import App from './App.tsx' +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import "./index.css"; +import App from "./App.tsx"; -createRoot(document.getElementById('root')!).render( +createRoot(document.getElementById("root")!).render( - , -) + +);