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')}