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/PageHome.js

58 lines
2.3 KiB
JavaScript
Raw Normal View History

2021-04-21 16:21:30 +00:00
import React from "react"
import Style from "./PageHome.module.css"
import classNames from "classnames"
2021-04-21 16:46:35 +00:00
import BoxHeaderOnly from "../components/BoxHeaderOnly"
import BoxWithHeader from "../components/BoxWithHeader"
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"
import LabelledForm from "../components/LabelledForm"
import Label from "../components/Label"
2021-04-21 16:21:30 +00:00
export default function PageHome({ children, className, ...props }) {
return (
<div className={classNames(Style.PageHome, className)} {...props}>
2021-04-21 16:46:35 +00:00
<BoxHeaderOnly className={Style.Header}>
Create a new repository
</BoxHeaderOnly>
2021-04-22 17:10:36 +00:00
<BoxWithHeader className={Style.SearchByZone} header={
<span><Checkbox/> Search by zone</span>
}>
2021-04-21 16:46:35 +00:00
</BoxWithHeader>
2021-04-22 17:10:36 +00:00
<BoxWithHeader className={Style.SearchByHashtags} header={
<span><Checkbox/> Search by hashtag</span>
}>
2021-04-21 16:46:35 +00:00
</BoxWithHeader>
2021-04-22 17:10:36 +00:00
<BoxWithHeader className={Style.SearchByTimePeriod} header={
<span><Checkbox/> Search by time period</span>
}>
2021-04-21 16:46:35 +00:00
</BoxWithHeader>
<BoxWithHeader className={Style.CreateDialog} header={"Create repository"}>
2021-04-22 17:10:36 +00:00
<LabelledForm action={""}>
<Label for_={"repo-name"} text={"Repository name"}>
<InputWithIcon id={"repo-name"} icon={faFolder}/>
</Label>
<Label for={"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>
</Label>
<Button style={{"grid-column": "1 / 3"}} icon={faPlus} color={"Green"}>
Create repository
</Button>
</LabelledForm>
2021-04-21 16:46:35 +00:00
</BoxWithHeader>
2021-04-21 16:21:30 +00:00
</div>
)
}