Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #67

Merged
merged 3 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions host/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<Routes>
Expand All @@ -16,6 +17,7 @@ const App = () => (
<Route path='/acoe' element={<Acoe />} >
<Route path="privacy" element={<AcoePrivacy />} />
<Route path="service" element={<AcoeService />} />
<Route path="admin" element={<AcoeAdmin/>} />
</Route>
</Routes>
);
Expand Down
6 changes: 6 additions & 0 deletions host/src/acoe.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
margin: 8px
}

.mg20 {
margin: 20px
}



.mg40 {
margin: 40px
}
Expand Down
4 changes: 2 additions & 2 deletions host/src/pages/Acoe/index.tsx → host/src/layouts/Acoe.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
27 changes: 27 additions & 0 deletions host/src/layouts/AcoeAdmin.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Tabs
defaultActiveKey="member"
id="uncontrolled-tab-example"
className="mb-3 mgt10 mg20"
>
<Tab eventKey="member" title="회원관리">
<MembersManagement />
</Tab>
<Tab eventKey="franchise" title="프렌차이즈 관리">
<FranchiseManagement />
</Tab>
<Tab eventKey="cafe" title="카페 관리">
<MemberManagement />
</Tab>
</Tabs>
);
};

export default AcoeAdmin;
30 changes: 30 additions & 0 deletions host/src/pages/components/FranchiseManagement.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Container>
<Row>
{dataArray.map((data) => (
<Col md={4} key={data.id}>
<Card>
<Card.Body onClick ={() => console.log(data)}>
<Card.Title>{data.name}</Card.Title>
<Card.Text>{data.description}</Card.Text>
</Card.Body>
</Card>
</Col>
))}
</Row>
</Container>
);
};

export default FranchiseManagement;
9 changes: 9 additions & 0 deletions host/src/pages/components/MemberManagement.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Container, Row, Col, Card } from 'react-bootstrap';

const MemberManagement = () => {
return (
<Container></Container>
);
};

export default MemberManagement;
10 changes: 10 additions & 0 deletions host/src/pages/components/MembersManagement.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Container, Row, Col, Card } from 'react-bootstrap';


const MembersManagement = () => {
return (
<Container></Container>
);
};

export default MembersManagement;