From cd6b13627b8ac51a98fafd426fbb31376675b71a Mon Sep 17 00:00:00 2001 From: OKendigelyan Date: Thu, 3 Oct 2024 13:20:28 +0100 Subject: [PATCH] Add earn section (#1954) --- apps/web/src/Layout.tsx | 3 +- apps/web/src/assets/icons/index.ts | 1 + apps/web/src/assets/icons/percent.svg | 13 ++++++ .../components/EmptyMessage/EmptyMessage.tsx | 1 + apps/web/src/components/Main/Main.tsx | 2 +- .../components/ViewOverlay/ViewOverlay.tsx | 25 ++++++----- apps/web/src/index.scss | 2 +- apps/web/src/styles/colors.ts | 3 +- apps/web/src/views/Earn/Earn.test.tsx | 42 +++++++++++++++++++ apps/web/src/views/Earn/Earn.tsx | 31 +++++++++++++- 10 files changed, 108 insertions(+), 15 deletions(-) create mode 100644 apps/web/src/assets/icons/percent.svg create mode 100644 apps/web/src/views/Earn/Earn.test.tsx diff --git a/apps/web/src/Layout.tsx b/apps/web/src/Layout.tsx index 0ed3ff98e6..15621e8953 100644 --- a/apps/web/src/Layout.tsx +++ b/apps/web/src/Layout.tsx @@ -20,7 +20,8 @@ export const Layout = () => { base: '"header" "sidebar" "main" "footer" "nav"', md: `"header header" "sidebar nav" "sidebar main" "footer main"`, }} - height={{ md: "100vh", base: "100dvh" }} + height={{ md: "100vh" }} + minHeight={{ base: "100dvh" }} padding={{ md: "20px 46px 0", base: "54px 0 0" }} data-testid="signed-in-layout" > diff --git a/apps/web/src/assets/icons/index.ts b/apps/web/src/assets/icons/index.ts index 6c9ce6a89b..f60d24e7f0 100644 --- a/apps/web/src/assets/icons/index.ts +++ b/apps/web/src/assets/icons/index.ts @@ -43,6 +43,7 @@ export { default as MenuIcon } from "./menu.svg"; export { default as MoonIcon } from "./moon.svg"; export { default as MultisigIcon } from "./multisig.svg"; export { default as OutgoingArrowIcon } from "./outgoing-arrow.svg"; +export { default as PercentIcon } from "./percent.svg"; export { default as PencilIcon } from "./pencil.svg"; export { default as PlusIcon } from "./plus.svg"; export { default as PyramidIcon } from "./pyramid.svg"; diff --git a/apps/web/src/assets/icons/percent.svg b/apps/web/src/assets/icons/percent.svg new file mode 100644 index 0000000000..98c1533b4a --- /dev/null +++ b/apps/web/src/assets/icons/percent.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/apps/web/src/components/EmptyMessage/EmptyMessage.tsx b/apps/web/src/components/EmptyMessage/EmptyMessage.tsx index f21fcc660b..fa12197ca8 100644 --- a/apps/web/src/components/EmptyMessage/EmptyMessage.tsx +++ b/apps/web/src/components/EmptyMessage/EmptyMessage.tsx @@ -48,6 +48,7 @@ export const EmptyMessage = ({ {cta && (