mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-24 00:58:19 +00:00
44 lines
961 B
JavaScript
44 lines
961 B
JavaScript
import { XStack, YStack, styled } from "tamagui";
|
|
import { TopBar } from "./TopBar";
|
|
|
|
const Background = styled("div", {
|
|
display: "flex",
|
|
justifyContent: "center",
|
|
backgroundColor: "white",
|
|
width: "100vw",
|
|
});
|
|
|
|
const PageWrapper = ({ children }) => {
|
|
return (
|
|
<Background>
|
|
<div
|
|
style={{
|
|
border: "4px solid #09101C",
|
|
"border-radius": "30px",
|
|
padding: "0",
|
|
margin: "0",
|
|
}}
|
|
>
|
|
<YStack>
|
|
<TopBar />
|
|
<XStack
|
|
space={"$8"}
|
|
style={{
|
|
background:
|
|
"linear-gradient(180deg, rgba(245,242,254,1) 0%, rgba(255,255,255,1) 100%)",
|
|
width: "100%",
|
|
display: "flex",
|
|
justifyContent: "end",
|
|
alignItems: "center",
|
|
}}
|
|
>
|
|
{children}
|
|
</XStack>
|
|
</YStack>
|
|
</div>
|
|
</Background>
|
|
);
|
|
};
|
|
|
|
export { PageWrapper };
|