From 444612882cf29665acab7f3ff7439cf52e3db665 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Thu, 19 Jan 2023 23:54:39 +0100 Subject: [PATCH] update web app structure and remove borders --- apps/vite/src/app.tsx | 94 ++++++++--------------------- apps/vite/src/components/topbar.tsx | 2 + apps/vite/styles/app.css | 17 ++++-- 3 files changed, 39 insertions(+), 74 deletions(-) diff --git a/apps/vite/src/app.tsx b/apps/vite/src/app.tsx index 5fca5d89..2a5e7c34 100644 --- a/apps/vite/src/app.tsx +++ b/apps/vite/src/app.tsx @@ -10,31 +10,32 @@ import { Paragraph, Shape, Sidebar, + SidebarMembers, } from '@status-im/components' import { Stack, styled, TamaguiProvider } from '@tamagui/core' -import { AnimatePresence } from 'tamagui' +// import { AnimatePresence } from 'tamagui' import tamaguiConfig from '../tamagui.config' import { Topbar } from './components/topbar' type ThemeVars = 'light' | 'dark' -const AnimatableDrawer = styled(Stack, { - variants: { - fromRight: { - true: { - x: 500, - width: 0, - }, - }, - fromLeft: { - true: { - x: 500, - width: 250, - }, - }, - }, -}) +// const AnimatableDrawer = styled(Stack, { +// variants: { +// fromRight: { +// true: { +// x: 500, +// width: 0, +// }, +// }, +// fromLeft: { +// true: { +// x: 500, +// width: 250, +// }, +// }, +// }, +// }) function App() { const [theme, setTheme] = useState('light') @@ -47,7 +48,7 @@ function App() { } return ( - +
) diff --git a/apps/vite/src/components/topbar.tsx b/apps/vite/src/components/topbar.tsx index c3bf872b..dc432bdd 100644 --- a/apps/vite/src/components/topbar.tsx +++ b/apps/vite/src/components/topbar.tsx @@ -17,6 +17,8 @@ export const Topbar = (props: Props) => { alignItems="center" justifyContent="space-between" padding={16} + borderBottomWidth={1} + borderColor="$neutral-10" > diff --git a/apps/vite/styles/app.css b/apps/vite/styles/app.css index a2a5e941..6a1f9316 100644 --- a/apps/vite/styles/app.css +++ b/apps/vite/styles/app.css @@ -5,6 +5,11 @@ body, overscroll-behavior: none; } +*::selection { + color: #fff; + background: hsla(229, 71%, 57%, 1); +} + #app { height: 100%; display: grid; @@ -15,11 +20,15 @@ body, display: grid; grid-template-rows: 56px 1fr 100px; height: 100vh; - overflow: hidden; - border: 1px solid rgba(0, 0, 0, 0.1); - border-width: 0 1px; } +/* #main, +#sidebar, +#members, +#main > div { + border: 1px solid rgba(0, 0, 0, 0.1); +} */ + #sidebar { overflow: auto; height: 100vh; @@ -32,5 +41,5 @@ body, #members { width: 352px; - color: #000; + overflow: auto; }