diff --git a/package-lock.json b/package-lock.json index 4876581..5a15a6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,6 +25,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-toastify": "^9.1.1", + "react-type-animation": "^2.1.2", "styled-components": "^5.3.8", "twilio": "^4.8.0", "use-metamask": "^1.3.3", @@ -6627,6 +6628,16 @@ "react-dom": ">=16.6.0" } }, + "node_modules/react-type-animation": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/react-type-animation/-/react-type-animation-2.1.2.tgz", + "integrity": "sha512-6/t4Whl87sLR0c8kzvJngTrCV6OVy3jEeUZoe2svVu9VaYr951VD7OeUie1rIyeD8JfpBIqZGYrPFHZQ04XHrw==", + "peerDependencies": { + "prop-types": "^15.5.4", + "react": ">= 15.0.0", + "react-dom": ">= 15.0.0" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", @@ -13209,6 +13220,12 @@ "prop-types": "^15.6.2" } }, + "react-type-animation": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/react-type-animation/-/react-type-animation-2.1.2.tgz", + "integrity": "sha512-6/t4Whl87sLR0c8kzvJngTrCV6OVy3jEeUZoe2svVu9VaYr951VD7OeUie1rIyeD8JfpBIqZGYrPFHZQ04XHrw==", + "requires": {} + }, "read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/package.json b/package.json index df1ae69..89ec0c9 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-toastify": "^9.1.1", + "react-type-animation": "^2.1.2", "styled-components": "^5.3.8", "twilio": "^4.8.0", "use-metamask": "^1.3.3", diff --git a/src/assets/BorrowSs.jpeg b/src/assets/BorrowSs.jpeg new file mode 100644 index 0000000..6862236 Binary files /dev/null and b/src/assets/BorrowSs.jpeg differ diff --git a/src/assets/DashImg.jpeg b/src/assets/DashImg.jpeg new file mode 100644 index 0000000..2a423c8 Binary files /dev/null and b/src/assets/DashImg.jpeg differ diff --git a/src/assets/GroupCoin.jpeg b/src/assets/GroupCoin.jpeg new file mode 100644 index 0000000..dd66b7a Binary files /dev/null and b/src/assets/GroupCoin.jpeg differ diff --git a/src/assets/LandingImg.jpeg b/src/assets/LandingImg.jpeg new file mode 100644 index 0000000..92185dc Binary files /dev/null and b/src/assets/LandingImg.jpeg differ diff --git a/src/assets/LendingSs.jpeg b/src/assets/LendingSs.jpeg new file mode 100644 index 0000000..84ddfe1 Binary files /dev/null and b/src/assets/LendingSs.jpeg differ diff --git a/src/assets/ethLogo.png b/src/assets/ethLogo.png new file mode 100644 index 0000000..421df3a Binary files /dev/null and b/src/assets/ethLogo.png differ diff --git a/src/assets/token.png b/src/assets/token.png new file mode 100644 index 0000000..6cb9cd4 Binary files /dev/null and b/src/assets/token.png differ diff --git a/src/assets/undraw_join_re_w1lh.svg b/src/assets/undraw_join_re_w1lh.svg new file mode 100644 index 0000000..205ea75 --- /dev/null +++ b/src/assets/undraw_join_re_w1lh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/undraw_sharing_knowledge_03vp.svg b/src/assets/undraw_sharing_knowledge_03vp.svg new file mode 100644 index 0000000..8ce61d5 --- /dev/null +++ b/src/assets/undraw_sharing_knowledge_03vp.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/undraw_warning_re_eoyh.svg b/src/assets/undraw_warning_re_eoyh.svg new file mode 100644 index 0000000..951a905 --- /dev/null +++ b/src/assets/undraw_warning_re_eoyh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Background.jsx b/src/components/Background.jsx new file mode 100644 index 0000000..30f1ed6 --- /dev/null +++ b/src/components/Background.jsx @@ -0,0 +1,53 @@ +import React from "react"; +import Spline from "@splinetool/react-spline"; +import LendingSs from "../assets/lendingSs.jpeg"; +import Image from "next/Image"; +import BorrowSs from "../assets/borrowSs.jpeg"; +import { TypeAnimation } from "react-type-animation"; + +const Background = () => { + return ( + <> +
+ +
+ +
+
+ + repeat={Infinity} // Repeat this Animation Sequence infinitely + /> +
+
+ gg + +
+
+ + ); +}; + +export default Background; diff --git a/src/components/DashImg.jsx b/src/components/DashImg.jsx new file mode 100644 index 0000000..5732ffc --- /dev/null +++ b/src/components/DashImg.jsx @@ -0,0 +1,15 @@ +import Image from "next/Image"; +import React from "react"; +import DImg from "../assets/DashImg.jpeg"; + +export const DashImg = () => { + return ( +
+ DashBoardImg +
+ ); +}; diff --git a/src/components/Details.jsx b/src/components/Details.jsx new file mode 100644 index 0000000..29ffa18 --- /dev/null +++ b/src/components/Details.jsx @@ -0,0 +1,96 @@ +import Image from "next/image"; +import React from "react"; +import matic from "../assets/matic.png"; +import usdc from "../assets/usdc.png"; +import ethLogo from "../assets/ethLogo.png"; + +const Details = () => { + return ( +
+
+
+
+ {" "} + Access the financial services with decentralized protocol{" "} +
+
+ {" "} + More about tokens supported by this DeFi +
+
+
+
+
+ nft +
+
+ USDC +
+
+ USDC is a fully-reserved stablecoin, which is a type of + cryptocurrency, or digital asset. Unlike other cryptocurrencies + that fluctuate in price, USDC is designed to maintain price + equivalence to the U.S. dollar +
+
+
+
+ nft +
+
+ Etherium +
+
+ Ethereum is a decentralized, open-source blockchain with smart + contract functionality. Ether is the native cryptocurrency of the + platform. +
+
+
+
+ nft +
+
+ Matic +
+
+ Polygon (MATIC) is an Ethereum token that powers the Polygon + Network, a scaling solution for Ethereum. Polygon aims to provide + faster and cheaper transactions on Ethereum using Layer 2 + sidechains +
+
+
+
+
+ ); +}; + +export default Details; diff --git a/src/components/ParaImg.jsx b/src/components/ParaImg.jsx new file mode 100644 index 0000000..f898a69 --- /dev/null +++ b/src/components/ParaImg.jsx @@ -0,0 +1,147 @@ +import { Container } from "@mui/system"; +import Image from "next/Image"; +import React from "react"; +import joinImg from "../assets/undraw_join_re_w1lh.svg"; +import warningImg from "../assets/undraw_warning_re_eoyh.svg"; +import sharingImg from "../assets/undraw_sharing_knowledge_03vp.svg"; + +const ParaImg = () => { + return ( +
+
+
+
+ +
+
+ {" "} + Meet DeFi{" "} +
+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus + consequuntur quod odit, nulla soluta deserunt commodi nobis, + quidem sed distinctio deleniti ut eligendi veniam quaerat + vitae! Voluptatem laboriosam eaque nobis! +

+
+
+ +
+ join +
+
+
+
Competitive Returns
+

+ Take advantage of some of the highest and most consistent + returns in DeFi on a growing range of assets +

+
+
+
+
+ + +
+ join +
+
+
+
+
Competitive Returns
+

+ Take advantage of some of the highest and most consistent + returns in DeFi on a growing range of assets +

+
+
+ +
+ join +
+
+
+
+
+ Competitive Returns +
+

+ Take advantage of some of the highest and most consistent + returns in DeFi on a growing range of assets +

+
+
+
+
+
+
+
+ ); +}; + +export default ParaImg; diff --git a/src/pages/Footer.jsx b/src/pages/Footer.jsx new file mode 100644 index 0000000..45b8f38 --- /dev/null +++ b/src/pages/Footer.jsx @@ -0,0 +1,20 @@ +import React from "react"; + +const Footer = () => { + const year = new Date().getFullYear(); + + return ( + + ); +}; + +export default Footer; diff --git a/src/pages/index.jsx b/src/pages/index.jsx index e6148ad..65e2663 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,7 +1,11 @@ -import Head from 'next/head' +import Head from "next/head"; +import Background from "../components/Background"; +import { DashImg } from "../components/DashImg"; +import Details from "../components/Details"; +import ParaImg from "../components/ParaImg"; +import Footer from "./Footer"; export default function Home() { - return ( <> @@ -11,9 +15,15 @@ export default function Home() {
-
- Get started +
+
+ +
+ + +
- ) + ); } diff --git a/src/pages/landing.jsx b/src/pages/landing.jsx deleted file mode 100644 index e33b16e..0000000 --- a/src/pages/landing.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import Spline from "@splinetool/react-spline"; - -export default function App() { - return ( -
-
- -
- -
- lorejbafba jhaifbaiufgba jafb afaoi -
-
- ); -} \ No newline at end of file diff --git a/src/pages/registration.jsx b/src/pages/registration.jsx index 17c75ec..a457ece 100644 --- a/src/pages/registration.jsx +++ b/src/pages/registration.jsx @@ -1,15 +1,23 @@ import { TextField } from "@mui/material"; -import { DatePicker, LocalizationProvider } from "@mui/x-date-pickers"; -import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment"; +import { ThemeProvider, createTheme } from '@mui/material/styles'; import { useRouter } from "next/router"; +import Image from "next/Image"; import React from "react"; import { useState } from "react"; // import { useMetamaskAuth, withConnectedRoute } from "../auth/authConfig"; import { JUST_LOGGED_IN } from "../constants/routes"; import axios from "axios"; import AddImages from "./addImages"; +import TokenImg from "../assets/token.png" + const API_URL = process.env.SERVER_URL || ""; + +const darkTheme = createTheme({ + palette: { + mode: 'dark', + }, +}); // import { ToastContainer, toast } from "react-toastify"; // import "react-toastify/dist/ReactToastify.css"; @@ -17,6 +25,8 @@ const invalidNumber = () => { toast("Enter a Valid No."); }; + + // import { sendOTP, verifyOTP } from "../pages/api/otpVerification.js"; const Registration = () => { @@ -139,8 +149,14 @@ const Registration = () => { // if (isProcessingLogin) return


Loading ....

; return ( -
-
+ +
+
+
+ Join the Decentralized Finance Revolution Today - Sign Up Now! +
+ +
{ id="outlined-required" name="firstName" label="First Name" + placeholder="John" size="small" /> @@ -184,7 +201,7 @@ const Registration = () => {
-
+
{
+ + ); }; diff --git a/src/pages/styles/globals.css b/src/pages/styles/globals.css index 4af8dd0..554ef9e 100644 --- a/src/pages/styles/globals.css +++ b/src/pages/styles/globals.css @@ -16,4 +16,5 @@ code { @tailwind components; @tailwind utilities; -@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap'); \ No newline at end of file +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz@9..144') \ No newline at end of file