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

🔧 Add layout to PageSettings

This commit is contained in:
Stefano Pigozzi 2021-04-21 18:42:28 +02:00
parent bc2e487e31
commit 863419d3bc
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
4 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,12 @@
import React from "react"
import Style from "./BoxHeaderOnly.module.css"
import classNames from "classnames"
export default function BoxHeaderOnly({ children, className, ...props }) {
return (
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
{children}
</div>
)
}

View file

@ -0,0 +1,9 @@
.BoxHeaderOnly {
padding: 10px 40px;
border-radius: 25px;
background-color: var(--bg-light);
font-size: x-large;
font-family: var(--font-title);
}

View file

@ -1,12 +1,28 @@
import React from "react" import React from "react"
import Style from "./PageSettings.module.css" import Style from "./PageSettings.module.css"
import classNames from "classnames" import classNames from "classnames"
import BoxHeaderOnly from "../components/BoxHeaderOnly"
import BoxWithHeader from "../components/BoxWithHeader"
export default function PageSettings({ children, className, ...props }) { export default function PageSettings({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageSettings, className)} {...props}> <div className={classNames(Style.PageSettings, className)} {...props}>
{children} <BoxHeaderOnly>
You are currently logged in as:
</BoxHeaderOnly>
<BoxHeaderOnly>
Switch theme:
</BoxHeaderOnly>
<BoxWithHeader header={"Change your email address"}>
</BoxWithHeader>
<BoxWithHeader header={"Alert settings"}>
</BoxWithHeader>
<BoxWithHeader header={"Change your password"}>
</BoxWithHeader>
</div> </div>
) )
} }

View file

@ -1,3 +1,9 @@
.PageSettings { .PageSettings {
display: flex;
flex-direction: column;
grid-gap: 10px;
width: 100%;
height: 100%;
} }