Kickboard.jsx 2.75 KB
import React from "react";
import ChartistGraph from "react-chartist";
import {Grid, Row, Col, Table} from "react-bootstrap";
import { Card } from "components/Card/Card.jsx";
import { Tasks } from "components/Tasks/Tasks.jsx";
import {
  dataBar,
  optionsBar,
  responsiveBar,
} from "variables/Variables.jsx";
import { thArray, tdArray } from "variables/Variables.jsx";

const Kickboard = () => {
  return (
    <div className="content">
      <Grid fluid>
        <Row>
          <Col md={3} mdOffset={9} sm={3} smOffset={9} style={{marginBottom:15}}>
            <input type="text" className="form-control" placeholder={"킥보드 번호로 검색하기"}/>
          </Col>
        </Row>
        <Row>
          <Col md={6}>
            <Card
              id="chartActivity"
              title="2014 Sales"
              category="All products including Taxes"
              stats="마지막 업데이트 2020/04/20 17:23"
              statsIcon="fa fa-check"
              content={
                <div className="ct-chart">
                  <ChartistGraph
                    data={dataBar}
                    type="Bar"
                    options={optionsBar}
                    responsiveOptions={responsiveBar}
                  />
                </div>
              }
            />
          </Col>
          <Col md={6}>
            <Card
              title="Tasks"
              category="Backend development"
              stats="Updated 3 minutes ago"
              statsIcon="fa fa-history"
              content={
                <div className="table-full-width">
                  <table className="table">
                    <Tasks />
                  </table>
                </div>
              }
            />
          </Col>
        </Row>
        <Row>
          <Col md={12}>
            <Card
              title="Striped Table with Hover"
              category="Here is a subtitle for this table"
              ctTableFullWidth
              ctTableResponsive
              content={
                <Table striped>
                  <thead>
                  <tr>
                    {thArray.map((prop, key) => {
                      return <th key={key}>{prop}</th>;
                    })}
                  </tr>
                  </thead>
                  <tbody>
                  {tdArray.map((prop, key) => {
                    return (
                      <tr key={key}>
                        {prop.map((prop, key) => {
                          return <td key={key}>{prop}</td>;
                        })}
                      </tr>
                    );
                  })}
                  </tbody>
                </Table>
              }
            />
          </Col>
        </Row>
      </Grid>
    </div>
  );
}

export default Kickboard;