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:
parent
bc2e487e31
commit
863419d3bc
4 changed files with 44 additions and 1 deletions
12
code/frontend/src/components/BoxHeaderOnly.js
Normal file
12
code/frontend/src/components/BoxHeaderOnly.js
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
9
code/frontend/src/components/BoxHeaderOnly.module.css
Normal file
9
code/frontend/src/components/BoxHeaderOnly.module.css
Normal 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);
|
||||||
|
}
|
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
.PageSettings {
|
.PageSettings {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
grid-gap: 10px;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue