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

🔧 Add layout to PageAlerts

This commit is contained in:
Stefano Pigozzi 2021-04-21 18:32:36 +02:00
parent 1a5f72c6b4
commit e1d3d5c20d
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 "./PageAlerts.module.css"
import classNames from "classnames"
import BoxWithHeader from "../components/BoxWithHeader"
export default function PageAlerts({ children, className, ...props }) {
return (
<div className={classNames(Style.PageAlerts, className)} {...props}>
{children}
<BoxWithHeader header={"Your alerts"} className={Style.YourAlerts}>
a
</BoxWithHeader>
<BoxWithHeader header={"Create new alert"} className={Style.CreateAlert}>
b
</BoxWithHeader>
</div>
)
}

View file

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