From c8296242be92d0a76e3d762f952d2d549a570ab0 Mon Sep 17 00:00:00 2001 From: Urban Date: Tue, 23 Apr 2024 21:50:03 +0200 Subject: [PATCH] feat(dapp): banner (#634) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Urban Vidovič --- .changeset/lemon-snakes-taste.md | 5 ++++ .../dapp/src/app/[locale]/(public)/layout.tsx | 24 ++++++++++------- packages/dapp/src/app/[locale]/app/layout.tsx | 26 ++++++++++++------- packages/dapp/src/components/Banner/index.tsx | 21 +++++++++++++++ .../components/ConnectedProvider/index.tsx | 10 +++---- 5 files changed, 62 insertions(+), 24 deletions(-) create mode 100644 .changeset/lemon-snakes-taste.md create mode 100644 packages/dapp/src/components/Banner/index.tsx diff --git a/.changeset/lemon-snakes-taste.md b/.changeset/lemon-snakes-taste.md new file mode 100644 index 000000000..d3586bc56 --- /dev/null +++ b/.changeset/lemon-snakes-taste.md @@ -0,0 +1,5 @@ +--- +"@blockchain-lab-um/dapp": patch +--- + +Adds banner at the top of dapp. diff --git a/packages/dapp/src/app/[locale]/(public)/layout.tsx b/packages/dapp/src/app/[locale]/(public)/layout.tsx index f50522c79..5feddb4fa 100644 --- a/packages/dapp/src/app/[locale]/(public)/layout.tsx +++ b/packages/dapp/src/app/[locale]/(public)/layout.tsx @@ -1,3 +1,4 @@ +import Banner from '@/components/Banner'; import PublicFooter from '@/components/PublicFooter'; import PublicNavbar from '@/components/PublicNavbar'; @@ -7,17 +8,22 @@ export default async function PublicLayout({ children: React.ReactNode; }) { return ( -
-
- +
+
+
-
-
- {children} +
+
+ +
+
+
+ {children} +
+
+
+
-
-
-
); diff --git a/packages/dapp/src/app/[locale]/app/layout.tsx b/packages/dapp/src/app/[locale]/app/layout.tsx index 94aa900d3..960433f88 100644 --- a/packages/dapp/src/app/[locale]/app/layout.tsx +++ b/packages/dapp/src/app/[locale]/app/layout.tsx @@ -6,6 +6,7 @@ import { SignInModal } from '@/components/SignInModal'; import ToastWrapper from '@/components/ToastWrapper'; import { Providers } from '@/components/Providers'; import { ScrollShadow } from '@nextui-org/react'; +import Banner from '@/components/Banner'; export default async function AppLayout({ children, @@ -14,17 +15,22 @@ export default async function AppLayout({ }) { return ( -
-
- +
+
+ +
+
+
+ +
+ + {children} +
- - {children} -
diff --git a/packages/dapp/src/components/Banner/index.tsx b/packages/dapp/src/components/Banner/index.tsx new file mode 100644 index 000000000..b83348dd9 --- /dev/null +++ b/packages/dapp/src/components/Banner/index.tsx @@ -0,0 +1,21 @@ +import { Link } from '@nextui-org/react'; + +export default function Banner() { + return ( +
+
+

+ Support Masca on{' '} + + Gitcoin Grants + + ! +

+
+
+ ); +} diff --git a/packages/dapp/src/components/ConnectedProvider/index.tsx b/packages/dapp/src/components/ConnectedProvider/index.tsx index 669309189..a7908a6c6 100644 --- a/packages/dapp/src/components/ConnectedProvider/index.tsx +++ b/packages/dapp/src/components/ConnectedProvider/index.tsx @@ -50,13 +50,13 @@ const ConnectedProvider = ({ children }: ConnectedProviderProps) => {
  • -
    +
    {t('features.feat-1')}
    -
    +
    {t('features.desc-1-1')} {t('features.desc-1-2')} @@ -75,7 +75,7 @@ const ConnectedProvider = ({ children }: ConnectedProviderProps) => { {t('features.feat-2')}
    -
    +
    {t('features.desc-2-1')} {t('features.desc-2-2')} @@ -88,13 +88,13 @@ const ConnectedProvider = ({ children }: ConnectedProviderProps) => {
  • -
    +
    {t('features.feat-3')}
    -
    +
    {t('features.desc-3-1')} {t('features.desc-3-2')}