mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-21 15:48:25 +00:00
Create page wrapper
This commit is contained in:
parent
143bef3a65
commit
18443f3139
33
src/components/PageWrapper/PageWrapper.jsx
Normal file
33
src/components/PageWrapper/PageWrapper.jsx
Normal file
@ -0,0 +1,33 @@
|
||||
import { XStack, styled } from "tamagui";
|
||||
|
||||
const Background = styled("div", {
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
backgroundColor: "white",
|
||||
width: "100vw",
|
||||
});
|
||||
|
||||
const PageWrapper = ({ children, ...props }) => {
|
||||
return (
|
||||
<Background>
|
||||
<XStack
|
||||
space={"$5"}
|
||||
style={{
|
||||
background: "rgb(245,242,254)",
|
||||
background:
|
||||
"linear-gradient(180deg, rgba(245,242,254,1) 0%, rgba(255,255,255,1) 100%)",
|
||||
borderRadius: "25px",
|
||||
border: "4px solid #09101C",
|
||||
width: "100%",
|
||||
display: "flex",
|
||||
justifyContent: "end",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</XStack>
|
||||
</Background>
|
||||
);
|
||||
};
|
||||
|
||||
export { PageWrapper };
|
1
src/components/PageWrapper/index.jsx
Normal file
1
src/components/PageWrapper/index.jsx
Normal file
@ -0,0 +1 @@
|
||||
export { PageWrapper } from "./PageWrapper";
|
Loading…
x
Reference in New Issue
Block a user