Spaces:
Running
Running
Claude Opus 5.5
feat: new landing, template system, auto-layout, Free/Plus plans; remove AI and hide habits
0dcbaee Download src/App.jsx from DanilDrotik/FlowWeb: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/spaces/DanilDrotik/FlowWeb/resolve/main/src/App.jsx
- Command line
-
hf download hf://spaces/DanilDrotik/FlowWeb/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/DanilDrotik/FlowWeb/resolve/main/src/App.jsx
1.66 kB
| import React from 'react'; | |
| import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; | |
| import Layout from './layouts/Layout'; | |
| import LandingPage from './pages/LandingPage'; | |
| import AuthPage from './pages/AuthPage'; | |
| import OnboardingPage from './pages/OnboardingPage'; | |
| import DashboardPage from './pages/DashboardPage'; | |
| import ProfilePage from './pages/ProfilePage'; | |
| import CanvasPage from './pages/CanvasPage'; | |
| import SubscriptionPage from './pages/SubscriptionPage'; | |
| import SettingsPage from './pages/SettingsPage'; | |
| import ClaimPage from './pages/ClaimPage'; | |
| function App() { | |
| return ( | |
| <Router> | |
| <Routes> | |
| {/* Public Routes with standard Layout */} | |
| <Route path="/" element={<Layout><LandingPage /></Layout>} /> | |
| <Route path="/auth" element={<Layout><AuthPage /></Layout>} /> | |
| <Route path="/onboarding" element={<Layout><OnboardingPage /></Layout>} /> | |
| <Route path="/claim" element={<ClaimPage />} /> | |
| {/* Protected Dashboard Route with its own internal layout */} | |
| <Route path="/dashboard" element={<DashboardPage />} /> | |
| <Route path="/profile" element={<ProfilePage />} /> | |
| <Route path="/canvas" element={<CanvasPage />} /> | |
| <Route path="/canvas/:id" element={<CanvasPage />} /> | |
| {/* Habit tracker is hidden until habits get their own space (see ROADMAP.md) */} | |
| <Route path="/habits" element={<Navigate to="/dashboard" replace />} /> | |
| <Route path="/subscription" element={<SubscriptionPage />} /> | |
| <Route path="/settings" element={<SettingsPage />} /> | |
| </Routes> | |
| </Router> | |
| ); | |
| } | |
| export default App; | |