This commit is contained in:
2025-09-25 20:25:18 -04:00
commit 80b6f3b902
25 changed files with 1749 additions and 0 deletions

38
ppq-frontend/src/App.tsx Normal file
View File

@@ -0,0 +1,38 @@
import "./App.css";
import { useState } from "react";
import { BrowserRouter, Routes, Route, Link } from "react-router";
import { Toaster } from "react-hot-toast";
import { CreateEditPostPage } from "./CreateEditPostPage.tsx";
import { ListPage } from "./ListPage";
const App = () => {
return (
<div className="content bg-fuchsia-200">
<Toaster />
<div className="flex flex-col gap-8">
<div className="flex place-content-between flex-row px-16 py-8 sticky top-0">
<p className="text-3xl font-bold">ppq</p>
<Link to="/create">
<h1>upload a new picture</h1>
</Link>
</div>
<Routes>
<Route path="/" element={<ListPage />} />
<Route
path="/edit/:uuid"
element={<CreateEditPostPage />}
/>
<Route
path="/create"
element={<CreateEditPostPage isCreate />}
/>
</Routes>
</div>
</div>
);
};
export default App;