-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
26 lines (23 loc) · 829 Bytes
/
App.jsx
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
import React from 'react'
import { Route,Routes } from 'react-router';
import {Sidebar,Navbar} from './components';
import { CampaignDetails, CreateCampaign, Home, Profile } from './pages';
const App = () => {
return (
<div className="relative sm:-8 p-4 bg-[#13131a] min-h-screen flex flex-row">
<div className="sm:flex hidden mr-10 relative">
<Sidebar />
</div>
<div className="flex-1 max-sm:w-full max-w-[1280px] mx-auto sm:pr-5">
<Navbar />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/profile" element={<Profile />} />
<Route path="/create-campaign" element={<CreateCampaign />} />
<Route path="/campaign-details/:id" element={<CampaignDetails />} />
</Routes>
</div>
</div>
)
}
export default App