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

57 lines
2.4 KiB
JavaScript

import React from "react"
import Style from "./PageDashboard.module.css"
import classNames from "classnames"
import BoxHeader from "../components/BoxHeader"
import BoxFull from "../components/BoxFull"
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"
import FormLabelled from "../components/FormLabelled"
import FormLabel from "../components/FormLabel"
export default function PageDashboard({ children, className, ...props }) {
return (
<div className={classNames(Style.PageHome, className)} {...props}>
<BoxHeader className={Style.Header}>
Create a new repository
</BoxHeader>
<BoxFull className={Style.SearchByZone} header={
<span><Checkbox/> Search by zone</span>
}>
🚧 Not implemented.
</BoxFull>
<BoxFull className={Style.SearchByHashtags} header={
<span><Checkbox/> Search by hashtag</span>
}>
🚧 Not implemented.
</BoxFull>
<BoxFull className={Style.SearchByTimePeriod} header={
<span><Checkbox/> Search by time period</span>
}>
🚧 Not implemented.
</BoxFull>
<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>
</div>
)
}