File size: 902 Bytes
d8e039b
 
f479a01
 
47f57e6
d8e039b
 
 
 
 
 
 
f479a01
 
 
 
d8e039b
f479a01
d8e039b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { Layout } from './components/Layout'
import { Landing } from './pages/Landing'
import { Templates } from './pages/Templates'
import { Playground } from './pages/Playground'
import { Models } from './pages/Models'
import { Settings } from './pages/Settings'

function App() {
  return (
    <Router>
      <Routes>
        {/* Landing page without sidebar */}
        <Route path="/" element={<Landing />} />
        
        {/* App pages with sidebar layout */}
        <Route path="/" element={<Layout />}>
          <Route path="templates" element={<Templates />} />
          <Route path="playground" element={<Playground />} />
          <Route path="models" element={<Models />} />
          <Route path="settings" element={<Settings />} />
        </Route>
      </Routes>
    </Router>
  )
}

export default App