nimbus-gui/src/components/PageWrapper.jsx
2023-08-07 14:38:53 +03:00

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 };