From 397e037fe83be1e9129097945c9b33ccf435f847 Mon Sep 17 00:00:00 2001 From: Mahsa Shafaei Date: Fri, 9 Feb 2024 10:07:27 +0330 Subject: [PATCH 1/4] components of landing page is added --- app/dashboard/page.tsx | 2 +- app/globals.css | 5 +- app/page.tsx | 27 ++++++-- components/PopUp/PopUp.tsx | 63 ++++++++++++++++++ components/button/Button.tsx | 27 ++++++++ components/header/Header.tsx | 4 +- components/header/Profile.tsx | 21 ++++-- components/tabs/Tabs.tsx | 23 +++++++ components/themeRegistry/MuiThemeRegistry.tsx | 2 - components/themeRegistry/mui.d.ts | 2 + components/themeRegistry/muiTheme.ts | 1 + package.json | 25 ++++---- public/images/closeIcon.svg | 12 ++++ public/images/ergCoin.svg | 16 +++++ public/images/joinUs1.svg | 64 +++++++++++++++++++ public/images/joinUs2.svg | 64 +++++++++++++++++++ public/images/rsnCoin.svg | 16 +++++ public/lottie.json | 1 + public/next.svg | 1 - public/vercel.svg | 1 - .../dashboard/layout/Layout.tsx | 0 .../layout/navigationDrawer/MenuItem.tsx | 0 .../navigationDrawer/NavigationDrawer.tsx | 0 scenes/landing/Banner.tsx | 22 +++++++ scenes/landing/Footer.tsx | 24 +++++++ scenes/landing/JoinUs.tsx | 55 ++++++++++++++++ scenes/landing/index.ts | 9 +++ scenes/landing/reward/Reward.tsx | 17 +++++ .../reward/earnings/EarningIconItem.tsx | 20 ++++++ .../landing/reward/earnings/EarningValues.tsx | 15 +++++ scenes/landing/reward/earnings/Earnings.tsx | 32 ++++++++++ scenes/landing/statistics/StatisticBox.tsx | 17 +++++ scenes/landing/statistics/Statistics.tsx | 22 +++++++ tailwind.config.js | 3 +- yarn.lock | 13 ++++ 35 files changed, 596 insertions(+), 30 deletions(-) create mode 100644 components/PopUp/PopUp.tsx create mode 100644 components/button/Button.tsx create mode 100644 components/tabs/Tabs.tsx create mode 100644 public/images/closeIcon.svg create mode 100644 public/images/ergCoin.svg create mode 100644 public/images/joinUs1.svg create mode 100644 public/images/joinUs2.svg create mode 100644 public/images/rsnCoin.svg create mode 100644 public/lottie.json delete mode 100644 public/next.svg delete mode 100644 public/vercel.svg rename {components => scenes}/dashboard/layout/Layout.tsx (100%) rename {components => scenes}/dashboard/layout/navigationDrawer/MenuItem.tsx (100%) rename {components => scenes}/dashboard/layout/navigationDrawer/NavigationDrawer.tsx (100%) create mode 100644 scenes/landing/Banner.tsx create mode 100644 scenes/landing/Footer.tsx create mode 100644 scenes/landing/JoinUs.tsx create mode 100644 scenes/landing/index.ts create mode 100644 scenes/landing/reward/Reward.tsx create mode 100644 scenes/landing/reward/earnings/EarningIconItem.tsx create mode 100644 scenes/landing/reward/earnings/EarningValues.tsx create mode 100644 scenes/landing/reward/earnings/Earnings.tsx create mode 100644 scenes/landing/statistics/StatisticBox.tsx create mode 100644 scenes/landing/statistics/Statistics.tsx diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index c626cde..abdebe1 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -1,4 +1,4 @@ -import { Layout } from '@/components/dashboard/layout/Layout'; +import { Layout } from '@/scenes/dashboard/layout/Layout'; export default function dashboard() { return ; diff --git a/app/globals.css b/app/globals.css index daa3af3..357b3eb 100644 --- a/app/globals.css +++ b/app/globals.css @@ -2,8 +2,11 @@ @tailwind components; @tailwind utilities; +html { + font-size: 16px; +} + html, body { height: 100%; } - diff --git a/app/page.tsx b/app/page.tsx index c2e51d5..6184b80 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,5 +1,22 @@ -export default function Home() { - return ( -
- ); -} +import React from 'react'; + +import { Box } from '@mui/material'; + +import { Banner, Reward, Statistics, JoinUs, Footer } from '@/scenes/landing'; + +const Landing = () => ( + <> + + + + + + +