Style statistic boxes

This commit is contained in:
RadoslavDimchev 2023-07-22 14:28:06 +03:00
parent 90da64e5bf
commit 83c32f46d7
4 changed files with 12 additions and 7 deletions

View File

@ -7,11 +7,11 @@ const Background = styled("div", {
width: "100vw",
});
const PageWrapper = ({ children, ...props }) => {
const PageWrapper = ({ children }) => {
return (
<Background>
<XStack
space={"$5"}
space={"$8"}
style={{
background: "rgb(245,242,254)",
background:

View File

@ -4,6 +4,7 @@ const ShadowBox = styled("div", {
boxSizing: "border-box",
borderRadius: "16px",
boxShadow: "0px 4px 20px 0px rgba(9, 16, 28, 0.08)",
width: "100%",
});
export { ShadowBox };

View File

@ -1,4 +1,4 @@
import { H3, H4, Paragraph, Separator, Text, XStack, YStack } from "tamagui";
import { Paragraph, Separator, Text, XStack, YStack } from "tamagui";
import { IconText } from "../../../../components/IconText/IconText";
import { ShadowBox } from "../../../../components/ShadowBox";
@ -23,7 +23,7 @@ const StatisticBox = ({
{memory}
</Paragraph>
</YStack>
{children !== undefined ? children : null}
{children && children}
</XStack>
<Separator borderColor={"#e3e3e3"} marginVertical={5} />
<XStack space={"$4"} style={{ padding: "5px 16px 10px 16px" }}>

View File

@ -46,9 +46,13 @@ const StatisticBoxes = () => {
stateIcon="/icons/active.png"
stateText="Fair"
>
<YStack space={"$2"}>
<Paragraph color={"black"}>Uptime</Paragraph>
<Paragraph color={"black"}>23:20:02</Paragraph>
<YStack>
<Paragraph color={"#838d9d"} fontWeight={"bold"}>
Uptime
</Paragraph>
<Paragraph color={"#09101C"} size={"$5"}>
23:20:02
</Paragraph>
</YStack>
</StatisticBox>
</XStack>