From d98361583f5b46f27312639f7b0731e270bcc554 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 25 Jul 2023 20:45:27 +0300 Subject: [PATCH] Update Tab --- src/components/TopBar/Tab.jsx | 25 ++++++ src/components/TopBar/TopBar.css | 138 +++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 src/components/TopBar/Tab.jsx create mode 100644 src/components/TopBar/TopBar.css diff --git a/src/components/TopBar/Tab.jsx b/src/components/TopBar/Tab.jsx new file mode 100644 index 00000000..f04a3201 --- /dev/null +++ b/src/components/TopBar/Tab.jsx @@ -0,0 +1,25 @@ +import { XStack, Stack, Text } from "tamagui"; +import "./TopBar.css"; +import { Icon } from "../Icon"; +const Tab = ({ icon, text }) => { + const styl = { + border: "none", + display: "flex", + padding: "6px 12px 6px 6px", + "align-items": " center", + gap: "8px", + "border-radius": "10px", + background: " #131D2F", + width: "136px", + height: "32px", + }; + return ( + <> + + + {text} + + + ); +}; +export { Tab }; diff --git a/src/components/TopBar/TopBar.css b/src/components/TopBar/TopBar.css new file mode 100644 index 00000000..18b4cba1 --- /dev/null +++ b/src/components/TopBar/TopBar.css @@ -0,0 +1,138 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +.topbar { + margin: 0; + padding: 0; + box-sizing: border-box; + display: flex; + align-items: center; + gap: 15px; + padding: 15px 25px; + background-color: rgba(9, 16, 28, 0.96); + max-width: 1812px; + border-top-left-radius: 25px; + border-top-right-radius: 25px; +} + +.topbar_left { + display: flex; + align-items: center; + gap: 10px; + min-width: 15vw; + box-shadow: 40px 12px 62px -19px rgba(9, 16, 28, 0.9); + z-index: 1; +} + +.topbar_middle { + max-width: 75vw; + width: 75vw; + overflow: auto; + flex: 1; + display: flex; + align-items: center; + gap: 10px; +} + +.topbar_middle::-webkit-scrollbar { + width: 0.5em; + /* Set the width of the scrollbar */ +} + +.topbar_middle::-webkit-scrollbar-thumb { + background-color: darkgrey; + /* Set the color of the scrollbar thumb */ +} + +.topbar_middle::-webkit-scrollbar { + width: 0.5em; +} + +.topbar_middle::-webkit-scrollbar-thumb { + background-color: #888; +} +/* Hide scrollbar for Firefox */ + +.topbar_middle { + scrollbar-width: none; +} + +.topbar_middle::-webkit-scrollbar, +.topbar_middle::-webkit-scrollbar-thumb { + /* Hide scrollbar for Edge */ + display: none; +} + +.topbar_right { + display: flex; + align-items: center; + gap: 15px; + min-width: 10vw; + box-shadow: -40px 0px 8px 4px rgba(9, 16, 28, 0.592); +} + +.topbar_actions { + display: flex; + align-items: center; + gap: 5px; +} + +.icon_btn { + border: none; + background-color: transparent; + cursor: pointer; + position: relative; +} + +.bg_icon_btn { + border: none; + background-color: #1d2738; + cursor: pointer; + padding: 8px; + border-radius: 5px; + display: flex; + align-items: center; +} + + + +.img_text_btn .profile { + position: relative; +} + +.badge_top { + width: 6px; + height: 6px; + background-color: #223bc4; + position: absolute; + right: 0; + top: 0; + border-radius: 100%; +} + +.badge_bottom { + width: 6px; + height: 6px; + background-color: #1c8a80; + position: absolute; + right: 0; + bottom: 0; + border-radius: 100%; +} + +.outlined_btn { + border: none; + border: 1px solid #1d2738; + background-color: transparent; + cursor: pointer; + padding: 10px; + border-radius: 5px; + display: flex; + align-items: center; + gap: 15px; + color: #fff; + font-weight: bold; +}