1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-28 23:44:19 +00:00

🚧 Start building PageDashboard

This commit is contained in:
Stefano Pigozzi 2021-04-29 17:04:56 +02:00
parent 5479a8dc35
commit 7b320f01c3
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
2 changed files with 47 additions and 40 deletions

View file

@ -10,11 +10,15 @@ import Radio from "../components/base/Radio"
import Button from "../components/base/Button" import Button from "../components/base/Button"
import FormLabelled from "../components/base/FormLabelled" import FormLabelled from "../components/base/FormLabelled"
import FormLabel from "../components/base/formparts/FormLabel" import FormLabel from "../components/base/formparts/FormLabel"
import RepositoryEditor from "../components/providers/RepositoryEditor"
import BoxConditionHashtag from "../components/interactive/BoxConditionHashtag"
import BoxConditions from "../components/interactive/BoxConditions"
export default function PageDashboard({ children, className, ...props }) { export default function PageDashboard({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageHome, className)} {...props}> <div className={classNames(Style.PageHome, className)} {...props}>
<RepositoryEditor>
<BoxHeader className={Style.Header}> <BoxHeader className={Style.Header}>
Create a new repository Create a new repository
</BoxHeader> </BoxHeader>
@ -23,16 +27,13 @@ export default function PageDashboard({ children, className, ...props }) {
}> }>
🚧 Not implemented. 🚧 Not implemented.
</BoxFull> </BoxFull>
<BoxFull className={Style.SearchByHashtags} header={ <BoxConditionHashtag className={Style.SearchByHashtags}/>
<label><Checkbox/> Search by hashtag</label>
}>
🚧 Not implemented.
</BoxFull>
<BoxFull className={Style.SearchByTimePeriod} header={ <BoxFull className={Style.SearchByTimePeriod} header={
<label><Checkbox/> Search by time period</label> <label><Checkbox/> Search by time period</label>
}> }>
🚧 Not implemented. 🚧 Not implemented.
</BoxFull> </BoxFull>
<BoxConditions className={Style.Conditions}/>
<BoxFull className={Style.CreateDialog} header={"Create repository"}> <BoxFull className={Style.CreateDialog} header={"Create repository"}>
<FormLabelled> <FormLabelled>
<FormLabel htmlFor={"repo-name"} text={"Repository name"}> <FormLabel htmlFor={"repo-name"} text={"Repository name"}>
@ -52,6 +53,7 @@ export default function PageDashboard({ children, className, ...props }) {
</Button> </Button>
</FormLabelled> </FormLabelled>
</BoxFull> </BoxFull>
</RepositoryEditor>
</div> </div>
) )
} }

View file

@ -6,8 +6,9 @@
"b c" "b c"
"b d" "b d"
"b e" "b e"
"b f"
; ;
grid-template-rows: auto 1fr 1fr auto; grid-template-rows: auto auto auto 1fr auto;
grid-gap: 10px; grid-gap: 10px;
@ -31,6 +32,10 @@
grid-area: d; grid-area: d;
} }
.CreateDialog { .Conditions {
grid-area: e; grid-area: e;
} }
.CreateDialog {
grid-area: f;
}