Skip to content

Commit

Permalink
feat(dashboard): add portfolio redirection on click (made with <3 foo…
Browse files Browse the repository at this point in the history
…ter)
  • Loading branch information
mael-app committed Jan 17, 2025
1 parent 36ebbe4 commit 5cf04d9
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import {vars} from "./api/api";

function App() {

const [error, setError] = React.useState<{ title?: string, message?: string } | null>(null);
const [error, setError] = React.useState<{
title?: string,
message?: string
} | null>(null);

useEffect(() => {
vars.setErrorPopup = (title: string | null, message: string | null) => {
Expand All @@ -28,20 +31,41 @@ function App() {
<BrowserRouter>
<div className={"h-screen flex flex-col"}>
<TopBar/>
{error && <FullError title={error.title} message={error.message}/>}
{error &&
<FullError title={error.title} message={error.message}/>}
<div className={"h-auto grow p-2"}>
<Routes>
<Route path="/" element={<HomePage/>}/>
<Route path="/auth" element={<AuthPage/>}/>
<Route path="/calendar" element={<CalendarPage/>}/>
<Route path="/sync" element={<SyncPage/>}/>
<Route path="/moulinettes" element={<MouliPage/>}/>
<Route path="/moulinettes/:project_slug" element={<MouliPage />}/>
<Route path="/moulinettes/:project_slug"
element={<MouliPage/>}/>
</Routes>
</div>
<div>
<footer className={"bg-gray-800 text-white p-2"}>
<p className={"text-center"}>Made with ❤️ by Eliot & Maël</p>
<p className={"text-center"}>
Made with ❤️ by
<a
href="https://github.com/EliotAmn"
target="_blank"
rel="noopener noreferrer"
className={"text-blue-400 hover:underline ml-1"}
>
Eliot
</a>
&
<a
href="https://justmael.me"
target="_blank"
rel="noopener noreferrer"
className={"text-blue-400 hover:underline ml-1"}
>
Maël
</a>
</p>
</footer>
</div>

Expand Down

0 comments on commit 5cf04d9

Please sign in to comment.