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-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
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>
}>
🚧 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>
}>
🚧 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>
}>
🚧 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>
)
}