2021-04-21 16:21:30 +00:00
|
|
|
import React from "react"
|
2021-04-25 15:22:52 +00:00
|
|
|
import Style from "./PageDashboard.module.css"
|
2021-04-21 16:21:30 +00:00
|
|
|
import classNames from "classnames"
|
2021-04-23 00:24:38 +00:00
|
|
|
import BoxHeader from "../components/BoxHeader"
|
2021-04-23 00:26:16 +00:00
|
|
|
import BoxFull from "../components/BoxFull"
|
2021-04-22 17:10:36 +00:00
|
|
|
import Checkbox from "../components/Checkbox"
|
|
|
|
import InputWithIcon from "../components/InputWithIcon"
|
|
|
|
import { faFolder, faPlus } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
import Radio from "../components/Radio"
|
|
|
|
import Button from "../components/Button"
|
2021-04-26 16:36:41 +00:00
|
|
|
import FormLabelled from "../components/FormLabelled"
|
|
|
|
import FormLabel from "../components/FormLabel"
|
2021-04-21 16:21:30 +00:00
|
|
|
|
|
|
|
|
2021-04-25 15:22:52 +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-22 17:10:36 +00:00
|
|
|
<span><Checkbox/> Search by zone</span>
|
|
|
|
}>
|
2021-04-25 15:22:52 +00:00
|
|
|
🚧 Not implemented.
|
2021-04-23 00:26:16 +00:00
|
|
|
</BoxFull>
|
|
|
|
<BoxFull className={Style.SearchByHashtags} header={
|
2021-04-22 17:10:36 +00:00
|
|
|
<span><Checkbox/> Search by hashtag</span>
|
|
|
|
}>
|
2021-04-25 15:22:52 +00:00
|
|
|
🚧 Not implemented.
|
2021-04-23 00:26:16 +00:00
|
|
|
</BoxFull>
|
|
|
|
<BoxFull className={Style.SearchByTimePeriod} header={
|
2021-04-22 17:10:36 +00:00
|
|
|
<span><Checkbox/> Search by time period</span>
|
|
|
|
}>
|
2021-04-25 15:22:52 +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>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<Radio name={"filter-mode"} value={"and"}/> Every filter
|
|
|
|
</label>
|
2021-04-26 16:36:41 +00:00
|
|
|
</FormLabel>
|
2021-04-25 15:22:52 +00:00
|
|
|
<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>
|
|
|
|
)
|
|
|
|
}
|