From bab04e91d823d49ccf5b65960a1f385aad6bede6 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 25 Jul 2023 20:45:15 +0300 Subject: [PATCH] Create TopBar --- src/components/PageWrapper/PageWrapper.jsx | 37 ++++--- src/components/TopBar/TopBar.jsx | 101 ++++++++++++++++++ src/components/TopBar/index.jsx | 1 + .../DeviceHealthCheck/DeviceHealthCheck.jsx | 76 ++++++------- 4 files changed, 166 insertions(+), 49 deletions(-) create mode 100644 src/components/TopBar/TopBar.jsx create mode 100644 src/components/TopBar/index.jsx diff --git a/src/components/PageWrapper/PageWrapper.jsx b/src/components/PageWrapper/PageWrapper.jsx index 76be395d..e15e5a3f 100644 --- a/src/components/PageWrapper/PageWrapper.jsx +++ b/src/components/PageWrapper/PageWrapper.jsx @@ -1,4 +1,5 @@ -import { XStack, styled } from "tamagui"; +import { XStack, YStack, styled } from "tamagui"; +import { TopBar } from "../TopBar"; const Background = styled("div", { display: "flex", @@ -10,22 +11,32 @@ const Background = styled("div", { const PageWrapper = ({ children }) => { return ( - - {children} - + + + + {children} + + + ); }; diff --git a/src/components/TopBar/TopBar.jsx b/src/components/TopBar/TopBar.jsx new file mode 100644 index 00000000..03b53105 --- /dev/null +++ b/src/components/TopBar/TopBar.jsx @@ -0,0 +1,101 @@ +//import { Image, XStack } from "tamagui"; +import RedDot from "/top-bar-icons/red.png"; +import YelloDot from "/top-bar-icons/yellow.png"; +import BlueDot from "/top-bar-icons/blue.png"; +import Arrow from "/top-bar-icons/chevron-left.png"; +import CommunitiesIcon from "/top-bar-icons/communities.png"; +import MessagesIcon from "/top-bar-icons/messages.png"; +import WalletIcon from "/top-bar-icons/wallet.png"; +import BrowserIcon from "/top-bar-icons/browser.png"; +import NodesIcon from "/top-bar-icons/nodes.png"; +import Rarible from "/top-bar-icons/Rarible.png"; +import User from "/top-bar-icons/user.png"; +import FullScreen from "/top-bar-icons/full-screen.png"; +import Bell from "/top-bar-icons/bell.png"; + +import "./TopBar.css"; +import { ReactButton } from "../ReactButton"; +import { Button, Tabs, XStack } from "tamagui"; +import { Icon } from "../Icon"; +import { IconButton } from "../IconButton"; +import { Tab } from "./Tab"; + +const TopBar = () => { + const bgIconBtn = { + border: "none", + "background-color": "#1d2738", + cursor: "pointer", + padding: "8px", + "border-radius": "5px", + display: "flex", + "align-items": "center", + }; + return ( + + +
+ + + +
+ + + + + + + + +
+
+ {Array.from({ length: 9 }).map((e, i) => ( + + ))} +
+
+ +

Jump to

+
+ + + +
+
+ ); +}; + +export { TopBar }; diff --git a/src/components/TopBar/index.jsx b/src/components/TopBar/index.jsx new file mode 100644 index 00000000..7cc3ff04 --- /dev/null +++ b/src/components/TopBar/index.jsx @@ -0,0 +1 @@ +export { TopBar } from "./TopBar"; diff --git a/src/pages/DeviceHealthCheck/DeviceHealthCheck.jsx b/src/pages/DeviceHealthCheck/DeviceHealthCheck.jsx index 593346fe..9a4a738a 100644 --- a/src/pages/DeviceHealthCheck/DeviceHealthCheck.jsx +++ b/src/pages/DeviceHealthCheck/DeviceHealthCheck.jsx @@ -7,6 +7,7 @@ import { BackgroundImage } from "../../components/BackgroundImage"; import { PageWrapper } from "../../components/PageWrapper"; import { StatisticBoxes } from "./StatisticBoxes/StatisticBoxes"; import { StatisticTexts } from "./StatisticTexts"; +import { TopBar } from "../../components/TopBar"; const DeviceHealthCheck = () => { const continueHandler = (e) => { @@ -14,43 +15,46 @@ const DeviceHealthCheck = () => { }; return ( - - - - + + + + + + + + + + Continue + + + + + - - - - - - Continue - - - - - + + ); };