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