From 5add95f819be556b688c5b866d44a3b5b3ae112f Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sun, 15 Dec 2024 23:55:24 +0530 Subject: [PATCH 1/2] update redirect links --- frontend/src/components/HeroSection.jsx | 4 ++++ frontend/src/components/InfoCards.jsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/HeroSection.jsx b/frontend/src/components/HeroSection.jsx index 89707c9..058aa19 100644 --- a/frontend/src/components/HeroSection.jsx +++ b/frontend/src/components/HeroSection.jsx @@ -1,5 +1,6 @@ import React, { useEffect, useRef } from 'react' import * as THREE from 'three' +import { Link } from 'react-router-dom' const HeroSection = () => { const canvasRef = useRef(null) @@ -35,9 +36,12 @@ const HeroSection = () => {
from top creators around the world.

+ + + ) diff --git a/frontend/src/components/InfoCards.jsx b/frontend/src/components/InfoCards.jsx index 6f1b902..5e54e92 100644 --- a/frontend/src/components/InfoCards.jsx +++ b/frontend/src/components/InfoCards.jsx @@ -45,7 +45,7 @@ const InfoCards = () => { 'Understand the process of buying, selling, and creating NFTs with our easy-to-follow guide.', buttonText: 'Get Started', badge: 'Guide', - link:'/how-it-works', + link:'/about', }, ] From 393b7a90b84b8649c1d34ab1fd7ae2c5dbbc056e Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sun, 15 Dec 2024 23:55:38 +0530 Subject: [PATCH 2/2] added hashloaders --- frontend/package-lock.json | 11 +++++ frontend/package.json | 1 + frontend/src/pages/CreatorsPage.jsx | 70 +++++++++++++++++------------ frontend/src/pages/ExplorePage.jsx | 9 +++- 4 files changed, 60 insertions(+), 31 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5b0aa49..235fb76 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -23,6 +23,7 @@ "react-countup": "^6.5.3", "react-dom": "^18.3.1", "react-router-dom": "^6.26.1", + "react-spinners": "^0.15.0", "three": "^0.168.0" }, "devDependencies": { @@ -4843,6 +4844,16 @@ "react-dom": ">=16.8" } }, + "node_modules/react-spinners": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/react-spinners/-/react-spinners-0.15.0.tgz", + "integrity": "sha512-ZO3/fNB9Qc+kgpG3SfdlMnvTX6LtLmTnOogb3W6sXIaU/kZ1ydEViPfZ06kSOaEsor58C/tzXw2wROGQu3X2pA==", + "license": "MIT", + "peerDependencies": { + "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 7a9f85d..3b4d775 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,6 +25,7 @@ "react-countup": "^6.5.3", "react-dom": "^18.3.1", "react-router-dom": "^6.26.1", + "react-spinners": "^0.15.0", "three": "^0.168.0" }, "devDependencies": { diff --git a/frontend/src/pages/CreatorsPage.jsx b/frontend/src/pages/CreatorsPage.jsx index 133e487..3e18674 100644 --- a/frontend/src/pages/CreatorsPage.jsx +++ b/frontend/src/pages/CreatorsPage.jsx @@ -3,6 +3,8 @@ import './CreatorsPage.css' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faGithub } from '@fortawesome/free-brands-svg-icons' import CountUp from 'react-countup' +import { HashLoader } from 'react-spinners' + const CreatorsPage = () => { const [contributors, setContributors] = useState([]) const [repoStats, setRepoStats] = useState({}) @@ -90,38 +92,45 @@ const CreatorsPage = () => { // Render contributors const renderContributors = () => { return ( -
- {contributors.map((contributor) => ( + // adding the preloader + +
- {contributor.login} -

{contributor.login}

-

{contributor.type}

-
- {contributor.contributions} contributions -
-
- - {getIcon('external-link')} - - - {getIcon('github')} + {contributors.map((contributor) => ( +
+ {contributor.login} +

{contributor.login}

+

{contributor.type}

+
+ {contributor.contributions} contributions +
+
+ + {getIcon('external-link')} + + + {getIcon('github')} +
+ ))}
- ))} -
+ + + + ) } @@ -138,7 +147,10 @@ const CreatorsPage = () => {
{loading ? ( -
+ //
+
+ +
) : ( <>

diff --git a/frontend/src/pages/ExplorePage.jsx b/frontend/src/pages/ExplorePage.jsx index 512a748..f8156a6 100644 --- a/frontend/src/pages/ExplorePage.jsx +++ b/frontend/src/pages/ExplorePage.jsx @@ -4,6 +4,7 @@ import NFTCard from '../components/NFTCard' import { connectWallet } from '../utils/ethereum' import { ethers } from 'ethers' import { useNavigate } from 'react-router-dom' +import { HashLoader } from 'react-spinners'; const ExplorePage = () => { const [nfts, setNfts] = useState([]) @@ -125,9 +126,13 @@ const ExplorePage = () => { if (loading) { return ( -
- Loading NFTs... Please wait. + //
+ // Loading NFTs... Please wait. + //
+
+
+ ) }