-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
29 lines (23 loc) · 817 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
27
28
29
import React from 'react';
import { Route , Routes } from 'react-router-dom';
import {Navbar , Sidebar } from './component'
import {CampaignDetails , CreateCampaign , Home , Profile } from './pages';
function 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