forked from cerc-io/snowballtools-base
8ee61c0c85
* 🎨 style: adjust wavy border and add layout wavy border * ♻️ refactor: change sidebar to use `nav` * ♻️ refactor: org slug dashboard layout * ♻️ refactor: create project layout and restyling it * ♻️ refactor: remove unused style * ⚡️ feat: restyling template card * ⚡️ feat: create template icon component * ⚡️ feat: use `h2` for layout title * ⚡️ feat: Add isComingSoon property to templates and handle click event in TemplateCard component * ♻️ refactor: WavyBorder component and update CreateProjectLayout * 🎨 style: update button medium size padding * 🎨 style: update layout shadow and add new shadow for the template card * ⚡️ feat: add wavy border gradient and line svg assets * refactor: update wavy border svg * 🎨 style: adjust template card name and arrow also responsive of the list of template --------- Co-authored-by: Zachery Ng <zachery.ng@gmail.com>
58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
|
|
import Projects from './pages/org-slug';
|
|
import Settings from './pages/org-slug/Settings';
|
|
import {
|
|
projectsRoutesWithSearch,
|
|
projectsRoutesWithoutSearch,
|
|
} from './pages/org-slug/projects/routes';
|
|
import ProjectSearchLayout from './layouts/ProjectSearch';
|
|
import Index from './pages';
|
|
import Login from './pages/Login';
|
|
import { DashboardLayout } from 'pages/org-slug/layout';
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: ':orgSlug',
|
|
element: <DashboardLayout />,
|
|
children: [
|
|
{
|
|
element: <ProjectSearchLayout />,
|
|
children: [
|
|
{
|
|
path: '',
|
|
element: <Projects />,
|
|
},
|
|
{
|
|
path: 'projects',
|
|
children: projectsRoutesWithSearch,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: 'settings',
|
|
element: <Settings />,
|
|
},
|
|
{
|
|
path: 'projects',
|
|
children: projectsRoutesWithoutSearch,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/',
|
|
element: <Index />,
|
|
},
|
|
{
|
|
path: '/login',
|
|
element: <Login />,
|
|
},
|
|
]);
|
|
|
|
function App() {
|
|
return <RouterProvider router={router} />;
|
|
}
|
|
|
|
export default App;
|