From cebad8a7b016ab8e3a6b09e959e5df67ca7b1a52 Mon Sep 17 00:00:00 2001 From: Matthias Puchstein Date: Sat, 12 Jul 2025 13:48:23 +0200 Subject: [PATCH] restructured `DreamArchive` by introducing detailed subroutes and dedicated pages (`WorldwideEvents`, `CulturalLandscapes`, etc.), added `ScrollToTop` for improved UX, and removed deprecated `Archive` component. Signed-off-by: Matthias Puchstein --- src/App.tsx | 89 +-- src/components/Navbar.tsx | 6 +- src/components/ScrollToTop.tsx | 15 + src/pages/dreamarchive/CulturalLandscapes.tsx | 306 ++++++++++ src/pages/dreamarchive/DreamArchiveIndex.tsx | 145 +++++ src/pages/dreamarchive/LivingConditions.tsx | 366 ++++++++++++ src/pages/dreamarchive/ResearchLive.tsx | 565 ++++++++++++++++++ src/pages/dreamarchive/Technology.tsx | 396 ++++++++++++ src/pages/dreamarchive/UserDreams.tsx | 427 +++++++++++++ src/pages/dreamarchive/WorldwideEvents.tsx | 242 ++++++++ 10 files changed, 2481 insertions(+), 76 deletions(-) create mode 100644 src/components/ScrollToTop.tsx create mode 100644 src/pages/dreamarchive/CulturalLandscapes.tsx create mode 100644 src/pages/dreamarchive/DreamArchiveIndex.tsx create mode 100644 src/pages/dreamarchive/LivingConditions.tsx create mode 100644 src/pages/dreamarchive/ResearchLive.tsx create mode 100644 src/pages/dreamarchive/Technology.tsx create mode 100644 src/pages/dreamarchive/UserDreams.tsx create mode 100644 src/pages/dreamarchive/WorldwideEvents.tsx diff --git a/src/App.tsx b/src/App.tsx index e1b298e..1dc8a85 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,84 +4,20 @@ import Navbar from './components/Navbar'; import TopBar from './components/TopBar'; import SplashScreen from './components/SplashScreen'; import {BrowserRouter, Route, Routes, useLocation} from 'react-router-dom'; -import {formatDateSimple} from './utils/DateUtils'; import Feed from "./pages/Feed.tsx"; import DreamPage from "./pages/DreamPage.tsx"; import ProfilePage from "./pages/ProfilePage.tsx"; import Home from "./pages/Home.tsx"; import Overview from "./pages/Overview.tsx"; import ChipOverview from "./pages/ChipOverview.tsx"; - -function Archive() { - return ( -
-

Dream Archive

- -
-
- -
-
- -
-
- -
- {[1, 2, 3].map((item) => ( -
-
-

- Dream #{item} -

- - {formatDateSimple(new Date())} - -
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Vivamus lacinia, nunc eu tincidunt faucibus... -

-
- -
-
- ))} -
-
- ); -} - +import DreamArchiveIndex from "./pages/dreamarchive/DreamArchiveIndex.tsx"; +import WorldwideEvents from "./pages/dreamarchive/WorldwideEvents.tsx"; +import CulturalLandscapes from "./pages/dreamarchive/CulturalLandscapes.tsx"; +import LivingConditions from "./pages/dreamarchive/LivingConditions.tsx"; +import Technology from "./pages/dreamarchive/Technology.tsx"; +import UserDreams from "./pages/dreamarchive/UserDreams.tsx"; +import ResearchLive from "./pages/dreamarchive/ResearchLive.tsx"; +import ScrollToTop from "./components/ScrollToTop.tsx"; export default function App() { const [isLoading, setIsLoading] = useState(true); @@ -97,6 +33,7 @@ export default function App() { return (
+
@@ -119,7 +56,13 @@ function AppContent() { }/> }/> }/> - }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> }/> }/> diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index d940c42..f7e2f8b 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -6,7 +6,7 @@ import {getBackgroundStyle} from '../styles/StyleUtils'; export default function Navbar() { return (<>