mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-28 23:44:19 +00:00
🔧 Add layout to PageRepositories
This commit is contained in:
parent
e1d3d5c20d
commit
bc2e487e31
2 changed files with 25 additions and 1 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue