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:
parent
1a5f72c6b4
commit
e1d3d5c20d
2 changed files with 25 additions and 1 deletions
|
@ -1,12 +1,18 @@
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import Style from "./PageAlerts.module.css"
|
import Style from "./PageAlerts.module.css"
|
||||||
import classNames from "classnames"
|
import classNames from "classnames"
|
||||||
|
import BoxWithHeader from "../components/BoxWithHeader"
|
||||||
|
|
||||||
|
|
||||||
export default function PageAlerts({ children, className, ...props }) {
|
export default function PageAlerts({ children, className, ...props }) {
|
||||||
return (
|
return (
|
||||||
<div className={classNames(Style.PageAlerts, className)} {...props}>
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
.PageAlerts {
|
.PageAlerts {
|
||||||
|
display: grid;
|
||||||
|
|
||||||
|
grid-template-areas:
|
||||||
|
"a"
|
||||||
|
"b"
|
||||||
|
;
|
||||||
|
|
||||||
|
grid-gap: 10px;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.YourAlerts {
|
||||||
|
grid-area: a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.CreateAlert {
|
||||||
|
grid-area: b;
|
||||||
|
}
|
Loading…
Reference in a new issue