1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

🔧 Add layout to PageRepositories

This commit is contained in:
Stefano Pigozzi 2021-04-21 18:32:43 +02:00
parent e1d3d5c20d
commit bc2e487e31
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
2 changed files with 25 additions and 1 deletions

View file

@ -1,12 +1,18 @@
import React from "react"
import Style from "./PageRepositories.module.css"
import classNames from "classnames"
import BoxWithHeader from "../components/BoxWithHeader"
export default function PageRepositories({ children, className, ...props }) {
return (
<div className={classNames(Style.PageRepositories, className)} {...props}>
{children}
<BoxWithHeader header={"Your active repositories"} className={Style.ActiveRepositories}>
a
</BoxWithHeader>
<BoxWithHeader header={"Your archived repositories"} className={Style.ArchivedRepositories}>
b
</BoxWithHeader>
</div>
)
}

View file

@ -1,3 +1,21 @@
.PageRepositories {
display: grid;
grid-template-areas:
"a"
"b"
;
grid-gap: 10px;
width: 100%;
height: 100%;
}
.ActiveRepositories {
grid-area: a;
}
.ArchivedRepositories {
grid-area: b;
}