Skip to content

Commit 16f8e34

Browse files
committed
Add: tidied up the template
1 parent 7e1de9b commit 16f8e34

13 files changed

Lines changed: 111 additions & 312 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>devs-sesa-beginner-hackathon-2026</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "devs-sesa-beginner-hackathon-2026",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc -b && vite build",
9+
"lint": "eslint .",
10+
"preview": "vite preview"
11+
},
12+
"dependencies": {
13+
"react": "^19.2.4",
14+
"react-dom": "^19.2.4",
15+
"react-router": "^7.14.1"
16+
},
17+
"devDependencies": {
18+
"@eslint/js": "^9.39.4",
19+
"@types/node": "^24.12.2",
20+
"@types/react": "^19.2.14",
21+
"@types/react-dom": "^19.2.3",
22+
"@vitejs/plugin-react": "^6.0.1",
23+
"eslint": "^9.39.4",
24+
"eslint-plugin-react-hooks": "^7.0.1",
25+
"eslint-plugin-react-refresh": "^0.5.2",
26+
"globals": "^17.4.0",
27+
"typescript": "~6.0.2",
28+
"typescript-eslint": "^8.58.0",
29+
"vite": "^8.0.4"
30+
}
31+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Routes, Route } from "react-router";
2+
import Home from "./pages/home/Home";
3+
4+
// Defines which URL path corresponds to which page component.
5+
function App() {
6+
return (
7+
<Routes>
8+
<Route path="/" element={<Home />} />
9+
</Routes>
10+
);
11+
}
12+
13+
export default App;

src/.ipynb_checkpoints/index-checkpoint.css

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { StrictMode } from "react";
2+
import { createRoot } from "react-dom/client";
3+
import { HashRouter } from "react-router";
4+
import App from "./App";
5+
import "./index.css";
6+
7+
// Entry point of the application.
8+
createRoot(document.getElementById("root")!).render(
9+
<StrictMode>
10+
<HashRouter>
11+
<App />
12+
</HashRouter>
13+
</StrictMode>,
14+
);

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { Routes, Route } from "react-router";
22
import Home from "./pages/home/Home";
3-
import ApiExample from "./pages/api-example/ApiExample";
43

54
// Defines which URL path corresponds to which page component.
65
function App() {
76
return (
87
<Routes>
98
<Route path="/" element={<Home />} />
10-
<Route path="/api-example" element={<ApiExample />} />
119
</Routes>
1210
);
1311
}

src/index.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
body {
2-
margin: 0;
3-
font-family: sans-serif;
4-
background-color: #0f172a;
5-
color: white;
6-
}
7-
8-
.page {
9-
max-width: 1100px;
10-
margin: 0 auto;
11-
padding: 60px 40px;
12-
}

src/pages/api-example/ApiExample.module.css

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/pages/api-example/ApiExample.tsx

Lines changed: 0 additions & 93 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Button from "../../components/button/Button";
2+
import styles from "./Home.module.css";
3+
import {useState} from "react";
4+
5+
// The home page of the application.
6+
7+
8+
// function Home() {
9+
10+
// let [x, setX] = useState<number>(0);
11+
// function print() {
12+
// setX(a => a+1);
13+
// console.log(`PRINTED: ${x}`);
14+
// }
15+
16+
// return (
17+
// <div>
18+
// <header className="page"></header>
19+
// <canvas id=""></canvas>
20+
// </div>
21+
// );
22+
// }
23+
24+
export default Home;

0 commit comments

Comments
 (0)