From 2b51cd9c8d2de5fddea74f653b3c3296a433fa4a Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Thu, 2 Dec 2021 20:52:38 +0000 Subject: [PATCH] tablet navigation: removed code redundancy & fixed alignment (#1241) * minor design changes to tablet navigation * added white icon logo * reduced code redundancy in tablet view & fixed alignment --- components/Logo.tsx | 20 +++++++----- components/Shell.tsx | 60 ++++++++--------------------------- public/cal-com-icon-white.svg | 1 + 3 files changed, 27 insertions(+), 54 deletions(-) create mode 100644 public/cal-com-icon-white.svg diff --git a/components/Logo.tsx b/components/Logo.tsx index 2d99aa2e..f9c2686d 100644 --- a/components/Logo.tsx +++ b/components/Logo.tsx @@ -1,13 +1,17 @@ -export default function Logo({ small }: { small?: boolean }) { +export default function Logo({ small, icon }: { small?: boolean; icon?: boolean }) { return ( -

+

- Cal + {icon ? ( + Cal + ) : ( + Cal + )}

); diff --git a/components/Shell.tsx b/components/Shell.tsx index 9f0bac8f..61eef5fb 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -196,60 +196,22 @@ export default function Shell(props: {
-
+
-
+
- + - -
-
- -
-
-
-
-
-
-
-
+ {/* logo icon for tablet */} - -

- - Cal - -

+
+ -
- + + + + + +
diff --git a/public/cal-com-icon-white.svg b/public/cal-com-icon-white.svg new file mode 100644 index 00000000..3cfc84b8 --- /dev/null +++ b/public/cal-com-icon-white.svg @@ -0,0 +1 @@ + \ No newline at end of file