From f6ecba8c8b2ed752c4f73af4e0eb0a7488801a9e Mon Sep 17 00:00:00 2001 From: Ivana Andersson Date: Mon, 21 Aug 2023 15:57:23 +0300 Subject: [PATCH] feat: create `NimbusLogoMark` component and add it to pages --- src/components/Logos/NimbusLogo.tsx | 3 ++- src/components/Logos/NimbusLogoMark.tsx | 20 +++++++++++++++++++ .../PageWrappers/PageWrapperShadow.tsx | 12 +++++++++-- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 src/components/Logos/NimbusLogoMark.tsx diff --git a/src/components/Logos/NimbusLogo.tsx b/src/components/Logos/NimbusLogo.tsx index 729c7c16..5ea1fc94 100644 --- a/src/components/Logos/NimbusLogo.tsx +++ b/src/components/Logos/NimbusLogo.tsx @@ -1,6 +1,7 @@ import { XStack } from 'tamagui' import BetaTag from './BetaTag' import './NimbusLogo.css' +import NimbusLogoMark from './NimbusLogoMark' const NimbusLogo = () => { return ( @@ -11,7 +12,7 @@ const NimbusLogo = () => { }} space={'$3'} > - marks + marks diff --git a/src/components/Logos/NimbusLogoMark.tsx b/src/components/Logos/NimbusLogoMark.tsx new file mode 100644 index 00000000..c86820bd --- /dev/null +++ b/src/components/Logos/NimbusLogoMark.tsx @@ -0,0 +1,20 @@ +const NimbusLogoMark = () => { + return ( +
+ + + +
+ ) +} + +export default NimbusLogoMark diff --git a/src/components/PageWrappers/PageWrapperShadow.tsx b/src/components/PageWrappers/PageWrapperShadow.tsx index 73c89bcd..c0e0f2b3 100644 --- a/src/components/PageWrappers/PageWrapperShadow.tsx +++ b/src/components/PageWrappers/PageWrapperShadow.tsx @@ -1,13 +1,20 @@ import { ReactNode } from 'react' import './layout.css' +import NimbusLogoMark from '../Logos/NimbusLogoMark' type PageWrapperShadowProps = { breadcrumbBar?: ReactNode rightImageSrc?: string + rightImageLogo?: boolean children: ReactNode } -const PageWrapperShadow = ({ breadcrumbBar, rightImageSrc, children }: PageWrapperShadowProps) => { +const PageWrapperShadow = ({ + breadcrumbBar, + rightImageSrc, + rightImageLogo, + children, +}: PageWrapperShadowProps) => { return (
@@ -18,7 +25,8 @@ const PageWrapperShadow = ({ breadcrumbBar, rightImageSrc, children }: PageWrapp
- background + background + {rightImageLogo ? : null}