From a19faf26f6b3c536b04020900da74015b1a74bb0 Mon Sep 17 00:00:00 2001 From: Austin Quinn Date: Fri, 3 Feb 2023 12:14:31 -0600 Subject: [PATCH] Next mig start point --- next.config.js | 5 + package.json | 8 +- {src/static => public}/dyad-logo.svg | 0 {src/static => public}/dyad.jpg | Bin src/components/Leaderboard.jsx | 33 ++++--- src/components/LoadingCore.jsx | 2 +- src/components/LoadingInplace.jsx | 2 +- src/components/Menu.jsx | 8 +- src/components/Navbar.jsx | 27 ++++-- src/components/NavbarLogo.jsx | 12 ++- src/components/Pagination.jsx | 1 + src/components/ProgressBar.jsx | 4 +- src/components/Skeletion.jsx | 22 ++--- src/hooks/useAvgMintedFromIndexer.js | 2 +- src/hooks/useMinXpFromIndexer.js | 2 +- src/hooks/useNftSyncSimulation.js | 8 +- src/pages/_app.jsx | 20 ++++ src/pages/_document.jsx | 29 ++++++ src/pages/index.jsx | 41 +++++++++ src/pages/leaderboard.jsx | 41 +++++++++ src/utils/supabase.js | 4 +- src/utils/wagmi-config.js | 2 +- yarn.lock | 133 +++++++++++++++++++++++++++ 23 files changed, 350 insertions(+), 56 deletions(-) create mode 100644 next.config.js rename {src/static => public}/dyad-logo.svg (100%) rename {src/static => public}/dyad.jpg (100%) create mode 100644 src/pages/_app.jsx create mode 100644 src/pages/_document.jsx create mode 100644 src/pages/index.jsx create mode 100644 src/pages/leaderboard.jsx diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..ffdd99a --- /dev/null +++ b/next.config.js @@ -0,0 +1,5 @@ +const nextConfig = { + /* config options here */ +}; + +module.exports = nextConfig; diff --git a/package.json b/package.json index 25aa74c..7c70e1e 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "ethers": "^5.7.0", "framer-motion": "^7.2.1", "lodash": "^4.17.21", + "next": "^13.1.6", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^4.4.0", @@ -30,10 +31,9 @@ "web-vitals": "^2.1.4" }, "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" + "dev": "next dev", + "build": "next build", + "start": "next start" }, "eslintConfig": { "extends": [ diff --git a/src/static/dyad-logo.svg b/public/dyad-logo.svg similarity index 100% rename from src/static/dyad-logo.svg rename to public/dyad-logo.svg diff --git a/src/static/dyad.jpg b/public/dyad.jpg similarity index 100% rename from src/static/dyad.jpg rename to public/dyad.jpg diff --git a/src/components/Leaderboard.jsx b/src/components/Leaderboard.jsx index 5fb3f08..f22310d 100644 --- a/src/components/Leaderboard.jsx +++ b/src/components/Leaderboard.jsx @@ -65,20 +65,25 @@ export default function Leaderboard() { )} - {nfts.length > 0 && ( - - )} - {nfts.map((nft) => { - return ( - - ); - })} + + {nfts.length > 0 && ( + + )} + + + {nfts.map((nft) => { + return ( + + ); + })} +
{count > DEFAULT_ROWS_PER_PAGE && (