diff --git a/host/src/App.tsx b/host/src/App.tsx index 4160f47..796e902 100644 --- a/host/src/App.tsx +++ b/host/src/App.tsx @@ -4,9 +4,10 @@ import { Routes, Route } from 'react-router-dom'; const Main = loadable(() => import('@pages/Main')); const LogIn = loadable(() => import('@pages/LogIn')); const SignUp = loadable(() => import('@pages/SignUp')); -const Acoe = loadable(() => import('@pages/Acoe')); -const AcoePrivacy = loadable(() => import('./pages/components/AcoePrivacy')); -const AcoeService = loadable(() => import('./pages/components/AcoeService')); +const Acoe = loadable(() => import('@layouts/Acoe')); +const AcoePrivacy = loadable(() => import('@pages/components/AcoePrivacy')); +const AcoeService = loadable(() => import('@pages/components/AcoeService')); +const AcoeAdmin = loadable(() => import('@layouts/AcoeAdmin')); const App = () => ( @@ -16,6 +17,7 @@ const App = () => ( } > } /> } /> + } /> ); diff --git a/host/src/acoe.css b/host/src/acoe.css index cfc6c3e..10076bc 100644 --- a/host/src/acoe.css +++ b/host/src/acoe.css @@ -171,6 +171,12 @@ margin: 8px } +.mg20 { + margin: 20px +} + + + .mg40 { margin: 40px } diff --git a/host/src/pages/Acoe/index.tsx b/host/src/layouts/Acoe.tsx similarity index 78% rename from host/src/pages/Acoe/index.tsx rename to host/src/layouts/Acoe.tsx index ac70873..eb92c80 100644 --- a/host/src/pages/Acoe/index.tsx +++ b/host/src/layouts/Acoe.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AcoeNavbar from '../components/AcoeNavbar' -import AcoeFooter from '../components/AcoeFooter' +import AcoeNavbar from '../pages/components/AcoeNavbar' +import AcoeFooter from '../pages/components/AcoeFooter' import 'bootstrap/dist/css/bootstrap.css'; import { Outlet } from 'react-router-dom'; diff --git a/host/src/layouts/AcoeAdmin.tsx b/host/src/layouts/AcoeAdmin.tsx new file mode 100644 index 0000000..1b721cb --- /dev/null +++ b/host/src/layouts/AcoeAdmin.tsx @@ -0,0 +1,27 @@ +import { Tabs, Tab } from 'react-bootstrap' +import MembersManagement from '@pages/components/MembersManagement' +import FranchiseManagement from '@pages/components/FranchiseManagement' +import MemberManagement from '@pages/components/MemberManagement' + + +const AcoeAdmin = () => { + return ( + + + + + + + + + + + + ); +}; + +export default AcoeAdmin; diff --git a/host/src/pages/components/FranchiseManagement.tsx b/host/src/pages/components/FranchiseManagement.tsx new file mode 100644 index 0000000..fafbc30 --- /dev/null +++ b/host/src/pages/components/FranchiseManagement.tsx @@ -0,0 +1,30 @@ +import { Container, Row, Col, Card } from 'react-bootstrap'; + +const FranchiseManagement = () => { + + const dataArray = [ + { id: 1, name: 'Item 1', description: 'This is item 1.' }, + { id: 2, name: 'Item 2', description: 'This is item 2.' }, + { id: 3, name: 'Item 3', description: 'This is item 3.' }, + ]; + + + return ( + + + {dataArray.map((data) => ( + + + console.log(data)}> + {data.name} + {data.description} + + + + ))} + + + ); +}; + +export default FranchiseManagement; diff --git a/host/src/pages/components/MemberManagement.tsx b/host/src/pages/components/MemberManagement.tsx new file mode 100644 index 0000000..fece9e3 --- /dev/null +++ b/host/src/pages/components/MemberManagement.tsx @@ -0,0 +1,9 @@ +import { Container, Row, Col, Card } from 'react-bootstrap'; + +const MemberManagement = () => { + return ( + + ); +}; + +export default MemberManagement; diff --git a/host/src/pages/components/MembersManagement.tsx b/host/src/pages/components/MembersManagement.tsx new file mode 100644 index 0000000..f4814e0 --- /dev/null +++ b/host/src/pages/components/MembersManagement.tsx @@ -0,0 +1,10 @@ +import { Container, Row, Col, Card } from 'react-bootstrap'; + + +const MembersManagement = () => { + return ( + + ); +}; + +export default MembersManagement;