From 6460547d537c24affa930bbcfc991c56dcf43e2d Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sat, 22 Apr 2023 16:39:31 -0500 Subject: [PATCH] hide nav on mobile --- src/assets/icons/back.svg | 3 +++ src/assets/icons/big-receive.svg | 3 +++ src/assets/svg/Back.tsx | 6 ++++++ src/components/App.tsx | 4 ++-- src/components/NavBar.tsx | 17 +++++++++++------ src/components/layout/BackButton.tsx | 6 ++++++ src/components/layout/index.tsx | 2 +- src/routes/Admin.tsx | 2 ++ src/routes/Receive.tsx | 4 +++- src/routes/Send.tsx | 2 ++ src/routes/Settings.tsx | 2 ++ 11 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 src/assets/icons/back.svg create mode 100644 src/assets/icons/big-receive.svg create mode 100644 src/assets/svg/Back.tsx create mode 100644 src/components/layout/BackButton.tsx diff --git a/src/assets/icons/back.svg b/src/assets/icons/back.svg new file mode 100644 index 0000000..ed9db93 --- /dev/null +++ b/src/assets/icons/back.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icons/big-receive.svg b/src/assets/icons/big-receive.svg new file mode 100644 index 0000000..35cf595 --- /dev/null +++ b/src/assets/icons/big-receive.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/svg/Back.tsx b/src/assets/svg/Back.tsx new file mode 100644 index 0000000..5447ec9 --- /dev/null +++ b/src/assets/svg/Back.tsx @@ -0,0 +1,6 @@ +export function Back() { + return ( + + + ) +} \ No newline at end of file diff --git a/src/components/App.tsx b/src/components/App.tsx index da0cc5c..26e6105 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3,9 +3,9 @@ import { DefaultMain, NodeManagerGuard, SafeArea } from "~/components/layout"; import BalanceBox from "~/components/BalanceBox"; import NavBar from "~/components/NavBar"; import ReloadPrompt from "~/components/Reload"; -import { Scan } from '~/assets/svg/Scan'; import { A } from 'solid-start'; import { Activity } from './Activity'; +import settings from '~/assets/icons/settings.svg'; export default function App() { return ( @@ -14,7 +14,7 @@ export default function App() {
logo - + Settings
diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 2cb104c..c13fbc4 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -1,18 +1,18 @@ import mutiny_m from '~/assets/icons/m.svg'; -// import scan from '~/assets/icons/scan.svg'; import airplane from '~/assets/icons/airplane.svg'; import settings from '~/assets/icons/settings.svg'; +import receive from '~/assets/icons/big-receive.svg'; import { A } from "solid-start"; -type ActiveTab = 'home' | 'scan' | 'send' | 'settings' | 'none'; +type ActiveTab = 'home' | 'scan' | 'send' | 'receive' | 'settings' | 'none'; export default function NavBar(props: { activeTab: ActiveTab }) { - const activeStyle = 'h-full border-t-2 border-b-2 border-b-sidebar-gray flex flex-col justify-center md:border-t-0 md:border-b-0 md:p-2 md:bg-black md:rounded-lg' - const inactiveStyle = "md:p-2 md:hover:bg-white/5 md:rounded-lg md:active:bg-m-blue" + const activeStyle = 'border-t-0 border-b-0 p-2 bg-black rounded-lg' + const inactiveStyle = "p-2 hover:bg-white/5 rounded-lg active:bg-m-blue" return ( -