import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { ThemeBrowser, ThemeDetailPage, LayoutDetailPage } from './components/themes'
import { AppHeader } from './components/AppHeader'
import { Welcome } from './components/Welcome'
import './App.css'
import './components/themes/ThemeBrowser.css'

function App() {
  return (
    <Router>
      <div className="app-root">
        <AppHeader />
        <main className="app-main">
          <Routes>
            <Route path="/" element={<Welcome />} />
            <Route path="/themes" element={<ThemeBrowser />} />
            <Route path="/themes/:themeId" element={<ThemeDetailPage />} />
            <Route path="/themes/:themeId/layouts/:layoutId" element={<LayoutDetailPage />} />
          </Routes>
        </main>
      </div>
    </Router>
  )
}

export default App
