Showing
2 changed files
with
103 additions
and
18 deletions
1 | -/*! | ||
2 | - | ||
3 | -========================================================= | ||
4 | -* Light Bootstrap Dashboard React - v1.3.0 | ||
5 | -========================================================= | ||
6 | - | ||
7 | -* Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard-react | ||
8 | -* Copyright 2019 Creative Tim (https://www.creative-tim.com) | ||
9 | -* Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard-react/blob/master/LICENSE.md) | ||
10 | - | ||
11 | -* Coded by Creative Tim | ||
12 | - | ||
13 | -========================================================= | ||
14 | - | ||
15 | -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
16 | - | ||
17 | -*/ | ||
18 | import Dashboard from "views/Dashboard.jsx"; | 1 | import Dashboard from "views/Dashboard.jsx"; |
19 | import UserProfile from "views/UserProfile.jsx"; | 2 | import UserProfile from "views/UserProfile.jsx"; |
20 | import TableList from "views/TableList.jsx"; | 3 | import TableList from "views/TableList.jsx"; |
... | @@ -22,7 +5,7 @@ import Typography from "views/Typography.jsx"; | ... | @@ -22,7 +5,7 @@ import Typography from "views/Typography.jsx"; |
22 | import Icons from "views/Icons.jsx"; | 5 | import Icons from "views/Icons.jsx"; |
23 | import Maps from "views/Maps.jsx"; | 6 | import Maps from "views/Maps.jsx"; |
24 | import Notifications from "views/Notifications.jsx"; | 7 | import Notifications from "views/Notifications.jsx"; |
25 | -import Upgrade from "views/Upgrade.jsx"; | 8 | +import Kickboard from "views/Kickboard" |
26 | 9 | ||
27 | const dashboardRoutes = [ | 10 | const dashboardRoutes = [ |
28 | { | 11 | { |
... | @@ -74,6 +57,13 @@ const dashboardRoutes = [ | ... | @@ -74,6 +57,13 @@ const dashboardRoutes = [ |
74 | component: Notifications, | 57 | component: Notifications, |
75 | layout: "/admin" | 58 | layout: "/admin" |
76 | }, | 59 | }, |
60 | + { | ||
61 | + path: "/kickboard", | ||
62 | + name: "Kickboard", | ||
63 | + icon: "pe-7s-bicycle", | ||
64 | + component: Kickboard, | ||
65 | + layout: "/admin" | ||
66 | + }, | ||
77 | ]; | 67 | ]; |
78 | 68 | ||
79 | export default dashboardRoutes; | 69 | export default dashboardRoutes; | ... | ... |
frontend/src/views/Kickboard.jsx
0 → 100644
1 | +import React from "react"; | ||
2 | +import ChartistGraph from "react-chartist"; | ||
3 | +import {Grid, Row, Col, Table} from "react-bootstrap"; | ||
4 | +import { Card } from "components/Card/Card.jsx"; | ||
5 | +import { Tasks } from "components/Tasks/Tasks.jsx"; | ||
6 | +import { | ||
7 | + dataBar, | ||
8 | + optionsBar, | ||
9 | + responsiveBar, | ||
10 | +} from "variables/Variables.jsx"; | ||
11 | +import { thArray, tdArray } from "variables/Variables.jsx"; | ||
12 | + | ||
13 | +const Kickboard = () => { | ||
14 | + return ( | ||
15 | + <div className="content"> | ||
16 | + <Grid fluid> | ||
17 | + <Row> | ||
18 | + <Col md={3} mdOffset={9} sm={3} smOffset={9} style={{marginBottom:15}}> | ||
19 | + <input type="text" className="form-control" placeholder={"킥보드 번호로 검색하기"}/> | ||
20 | + </Col> | ||
21 | + </Row> | ||
22 | + <Row> | ||
23 | + <Col md={6}> | ||
24 | + <Card | ||
25 | + id="chartActivity" | ||
26 | + title="2014 Sales" | ||
27 | + category="All products including Taxes" | ||
28 | + stats="마지막 업데이트 2020/04/20 17:23" | ||
29 | + statsIcon="fa fa-check" | ||
30 | + content={ | ||
31 | + <div className="ct-chart"> | ||
32 | + <ChartistGraph | ||
33 | + data={dataBar} | ||
34 | + type="Bar" | ||
35 | + options={optionsBar} | ||
36 | + responsiveOptions={responsiveBar} | ||
37 | + /> | ||
38 | + </div> | ||
39 | + } | ||
40 | + /> | ||
41 | + </Col> | ||
42 | + <Col md={6}> | ||
43 | + <Card | ||
44 | + title="Tasks" | ||
45 | + category="Backend development" | ||
46 | + stats="Updated 3 minutes ago" | ||
47 | + statsIcon="fa fa-history" | ||
48 | + content={ | ||
49 | + <div className="table-full-width"> | ||
50 | + <table className="table"> | ||
51 | + <Tasks /> | ||
52 | + </table> | ||
53 | + </div> | ||
54 | + } | ||
55 | + /> | ||
56 | + </Col> | ||
57 | + </Row> | ||
58 | + <Row> | ||
59 | + <Col md={12}> | ||
60 | + <Card | ||
61 | + title="Striped Table with Hover" | ||
62 | + category="Here is a subtitle for this table" | ||
63 | + ctTableFullWidth | ||
64 | + ctTableResponsive | ||
65 | + content={ | ||
66 | + <Table striped> | ||
67 | + <thead> | ||
68 | + <tr> | ||
69 | + {thArray.map((prop, key) => { | ||
70 | + return <th key={key}>{prop}</th>; | ||
71 | + })} | ||
72 | + </tr> | ||
73 | + </thead> | ||
74 | + <tbody> | ||
75 | + {tdArray.map((prop, key) => { | ||
76 | + return ( | ||
77 | + <tr key={key}> | ||
78 | + {prop.map((prop, key) => { | ||
79 | + return <td key={key}>{prop}</td>; | ||
80 | + })} | ||
81 | + </tr> | ||
82 | + ); | ||
83 | + })} | ||
84 | + </tbody> | ||
85 | + </Table> | ||
86 | + } | ||
87 | + /> | ||
88 | + </Col> | ||
89 | + </Row> | ||
90 | + </Grid> | ||
91 | + </div> | ||
92 | + ); | ||
93 | +} | ||
94 | + | ||
95 | +export default Kickboard; |
-
Please register or login to post a comment