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

60 lines
2.8 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-29 15:04:56 +00:00
import RepositoryEditor from "../components/providers/RepositoryEditor"
import BoxConditionHashtag from "../components/interactive/BoxConditionHashtag"
import BoxConditions from "../components/interactive/BoxConditions"
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-29 15:04:56 +00:00
<RepositoryEditor>
<BoxHeader className={Style.Header}>
Create a new repository
</BoxHeader>
<BoxFull className={Style.SearchByZone} header={
<label><Checkbox/> Search by zone</label>
}>
🚧 Not implemented.
</BoxFull>
<BoxConditionHashtag className={Style.SearchByHashtags}/>
<BoxFull className={Style.SearchByTimePeriod} header={
<label><Checkbox/> Search by time period</label>
}>
🚧 Not implemented.
</BoxFull>
<BoxConditions className={Style.Conditions}/>
<BoxFull className={Style.CreateDialog} header={"Create repository"}>
<FormLabelled>
<FormLabel htmlFor={"repo-name"} text={"Repository name"}>
<InputWithIcon id={"repo-name"} icon={faFolder}/>
</FormLabel>
<FormLabel htmlFor={"filter-mode"} text={"Add tweets if they satisfy"}>
<label>
<Radio name={"filter-mode"} value={"or"}/> At least one filter
</label>
&nbsp;
<label>
<Radio name={"filter-mode"} value={"and"}/> Every filter
</label>
</FormLabel>
<Button style={{"gridColumn": "1 / 3"}} icon={faPlus} color={"Green"}>
Create repository
</Button>
</FormLabelled>
</BoxFull>
</RepositoryEditor>
2021-04-21 16:21:30 +00:00
</div>
)
}