1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/code/frontend/src/routes/PageDashboard.js

58 lines
2.4 KiB
JavaScript
Raw Normal View History

2021-04-21 16:21:30 +00:00
import React from "react"
import Style from "./PageDashboard.module.css"
2021-04-21 16:21:30 +00:00
import classNames from "classnames"
2021-04-29 14:58:31 +00:00
import BoxHeader from "../components/base/BoxHeader"
import BoxFull from "../components/base/BoxFull"
import Checkbox from "../components/base/Checkbox"
import InputWithIcon from "../components/base/InputWithIcon"
2021-04-22 17:10:36 +00:00
import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons"
2021-04-29 14:58:31 +00:00
import Radio from "../components/base/Radio"
import Button from "../components/base/Button"
import FormLabelled from "../components/base/FormLabelled"
import FormLabel from "../components/base/formparts/FormLabel"
2021-04-21 16:21:30 +00:00
export default function PageDashboard({ children, className, ...props }) {
2021-04-21 16:21:30 +00:00
return (
<div className={classNames(Style.PageHome, className)} {...props}>
2021-04-23 00:24:38 +00:00
<BoxHeader className={Style.Header}>
2021-04-21 16:46:35 +00:00
Create a new repository
2021-04-23 00:24:38 +00:00
</BoxHeader>
2021-04-23 00:26:16 +00:00
<BoxFull className={Style.SearchByZone} header={
2021-04-27 15:14:13 +00:00
<label><Checkbox/> Search by zone</label>
2021-04-22 17:10:36 +00:00
}>
🚧 Not implemented.
2021-04-23 00:26:16 +00:00
</BoxFull>
<BoxFull className={Style.SearchByHashtags} header={
2021-04-27 15:14:13 +00:00
<label><Checkbox/> Search by hashtag</label>
2021-04-22 17:10:36 +00:00
}>
🚧 Not implemented.
2021-04-23 00:26:16 +00:00
</BoxFull>
<BoxFull className={Style.SearchByTimePeriod} header={
2021-04-27 15:14:13 +00:00
<label><Checkbox/> Search by time period</label>
2021-04-22 17:10:36 +00:00
}>
🚧 Not implemented.
2021-04-23 00:26:16 +00:00
</BoxFull>
<BoxFull className={Style.CreateDialog} header={"Create repository"}>
2021-04-26 16:36:41 +00:00
<FormLabelled>
<FormLabel htmlFor={"repo-name"} text={"Repository name"}>
2021-04-22 17:10:36 +00:00
<InputWithIcon id={"repo-name"} icon={faFolder}/>
2021-04-26 16:36:41 +00:00
</FormLabel>
<FormLabel htmlFor={"filter-mode"} text={"Add tweets if they satisfy"}>
2021-04-22 17:10:36 +00:00
<label>
<Radio name={"filter-mode"} value={"or"}/> At least one filter
</label>
&nbsp;
<label>
<Radio name={"filter-mode"} value={"and"}/> Every filter
</label>
2021-04-26 16:36:41 +00:00
</FormLabel>
<Button style={{"gridColumn": "1 / 3"}} icon={faPlus} color={"Green"}>
2021-04-22 17:10:36 +00:00
Create repository
</Button>
2021-04-26 16:36:41 +00:00
</FormLabelled>
2021-04-23 00:26:16 +00:00
</BoxFull>
2021-04-21 16:21:30 +00:00
</div>
)
}