Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/HeroSection.jsx
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -35,9 +36,12 @@ const HeroSection = () => {
<br />
from top creators around the world.
</p>
<Link to ="/explore" >
<button className="bg-gradient-to-r from-blue-400 to-purple-500 text-white rounded-full px-8 py-3 text-lg hover:opacity-90 transition-opacity">
Get Started
</button>
</Link>

</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/InfoCards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
]

Expand Down
70 changes: 41 additions & 29 deletions frontend/src/pages/CreatorsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({})
Expand Down Expand Up @@ -90,38 +92,45 @@ const CreatorsPage = () => {
// Render contributors
const renderContributors = () => {
return (
<div
className="contributor-contributors-grid"
id="contributorsGrid"
>
{contributors.map((contributor) => (
// adding the preloader


<div
className="contributor-contributor-card"
key={contributor.login}
className="contributor-contributors-grid"
id="contributorsGrid"
>
<img
src={contributor.avatar_url}
alt={contributor.login}
/>
<h3>{contributor.login}</h3>
<p>{contributor.type}</p>
<div className="contributor-contributions">
{contributor.contributions} contributions
</div>
<div className="contributor-footer">
<a
href={contributor.html_url}
target="_blank"
rel="noopener noreferrer"
>
{getIcon('external-link')}
<FontAwesomeIcon icon={faGithub} />
</a>
{getIcon('github')}
{contributors.map((contributor) => (
<div
className="contributor-contributor-card"
key={contributor.login}
>
<img
src={contributor.avatar_url}
alt={contributor.login}
/>
<h3>{contributor.login}</h3>
<p>{contributor.type}</p>
<div className="contributor-contributions">
{contributor.contributions} contributions
</div>
<div className="contributor-footer">
<a
href={contributor.html_url}
target="_blank"
rel="noopener noreferrer"
>
{getIcon('external-link')}
<FontAwesomeIcon icon={faGithub} />
</a>
{getIcon('github')}
</div>
</div>
))}
</div>
))}
</div>




)
}

Expand All @@ -138,7 +147,10 @@ const CreatorsPage = () => {
<section className=" dark:bg-slate-900">
<div className="contributor-contributors">
{loading ? (
<div id="loading" className="contributor-loading"></div>
// <div id="loading" className="contributor-loading"></div>
<div className="flex justify-center items-center min-h-screen">
<HashLoader color={'#252550'} size={50} loading={loading} />
</div>
) : (
<>
<h2 className="dark:text-white">
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/pages/ExplorePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([])
Expand Down Expand Up @@ -125,9 +126,13 @@ const ExplorePage = () => {

if (loading) {
return (
<div className="text-center py-10">
Loading NFTs... Please wait.
// <div className="text-center py-10">
// Loading NFTs... Please wait.
// </div>
<div className="flex justify-center items-center min-h-screen">
<HashLoader color={"#252550"} size={50} loading={loading} />
</div>

)
}

Expand Down
Loading