From 002b5ff18d43daa2ef2e9bd2e12f384d672fba00 Mon Sep 17 00:00:00 2001 From: Rebecca-Chou Date: Tue, 27 Sep 2022 19:47:21 -0400 Subject: [PATCH] adjust space --- components/BottomNav.module.css | 10 ++++++--- components/BottomNav.tsx | 40 +++++++++++++++++++++------------ pages/playground.tsx | 4 +++- 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/components/BottomNav.module.css b/components/BottomNav.module.css index 072bf61..a97b565 100644 --- a/components/BottomNav.module.css +++ b/components/BottomNav.module.css @@ -2,15 +2,19 @@ display: flex; flex-flow: center; align-items: center; - justify-content: space-around; - /* or inline-flex */ + justify-content: space-between; + margin: calc(40rem / 16) calc(40rem / 16); +} + +.subBox { + display: inline-block; } .item { - display: inline-block; color: var(--primary-text); font-size: calc(28rem / 16); position: relative; + margin: calc(24rem / 16); } .item:after { diff --git a/components/BottomNav.tsx b/components/BottomNav.tsx index f1b1048..146335f 100644 --- a/components/BottomNav.tsx +++ b/components/BottomNav.tsx @@ -11,14 +11,26 @@ interface PageLinks { export function BottomNav(props: PageLinks) { return (
- - - View Demographics - - - View Co-ops - - +
+ + + + + + + View Demographics + +
+
+ + View Co-ops + + + + + + +
); } @@ -30,8 +42,8 @@ interface ArrowProps { function Arrow({ isPointRight }: ArrowProps) { return ( @@ -49,10 +61,10 @@ function Arrow({ isPointRight }: ArrowProps) { -

+

+ {""} +

);