diff --git a/apps/charity/.eslintrc.js b/apps/charity/.eslintrc.js new file mode 100644 index 00000000..c3e9b2fc --- /dev/null +++ b/apps/charity/.eslintrc.js @@ -0,0 +1,17 @@ +module.exports = { + root: true, + extends: '@mantle/eslint-config-next', + settings: { + next: { + rootDir: ['apps/*/'], + }, + }, + rules: { + 'import/no-extraneous-dependencies': 'off', + 'import/prefer-default-export': 'off', + }, + parserOptions: { + tsconfigRootDir: __dirname, + project: './tsconfig.json', + }, +} diff --git a/apps/charity/.gitignore b/apps/charity/.gitignore new file mode 100644 index 00000000..5aad37ad --- /dev/null +++ b/apps/charity/.gitignore @@ -0,0 +1,37 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local +.env + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/apps/charity/.prettierrc b/apps/charity/.prettierrc new file mode 100644 index 00000000..8942e192 --- /dev/null +++ b/apps/charity/.prettierrc @@ -0,0 +1,5 @@ +{ + "semi": true, + "tabWidth": 2, + "useTabs": false +} diff --git a/apps/charity/.vscode/settings.json b/apps/charity/.vscode/settings.json new file mode 100644 index 00000000..2ba294b7 --- /dev/null +++ b/apps/charity/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "typescript.tsdk": "../../node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true +} diff --git a/apps/charity/README.md b/apps/charity/README.md new file mode 100644 index 00000000..5a41b1aa --- /dev/null +++ b/apps/charity/README.md @@ -0,0 +1,3 @@ +# App Template + +This app is about minting NFT for Selini poker night. diff --git a/apps/charity/next.config.js b/apps/charity/next.config.js new file mode 100644 index 00000000..bda9f23a --- /dev/null +++ b/apps/charity/next.config.js @@ -0,0 +1,28 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, + transpilePackages: ["@design-system/ui"], + images: { + domains: [ + "token-list.mantle.xyz", + "safe-transaction-assets.gnosis-safe.io", + "safe-transaction-assets.safe.global", + "static.alchemyapi.io", + ], + }, + experimental: { + appDir: true, + scrollRestoration: true, + }, + async redirects() { + return [ + { + source: "/", + destination: "/chivalries-of-mantle", + permanent: false, + }, + ]; + }, +}; + +module.exports = nextConfig; diff --git a/apps/charity/package.json b/apps/charity/package.json new file mode 100644 index 00000000..43a4f14d --- /dev/null +++ b/apps/charity/package.json @@ -0,0 +1,44 @@ +{ + "name": "mantle-charity", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "next dev --port 3009", + "build": "next build", + "test": "echo 'Running charity tests'", + "start": "next start --port 3009", + "lint": "eslint src --fix", + "dev:charity": "next dev --port 3009", + "lint:charity": "eslint src --fix" + }, + "dependencies": { + "@ethersproject/providers": "^5.7.2", + "@headlessui/react": "^1.7.13", + "@mantle/constants": "workspace:*", + "@mantle/ui": "workspace:*", + "@mantle/utils": "workspace:*", + "@tanstack/react-query": "^4.14.5", + "ethers": "^5.7.2", + "framer-motion": "^10.12.10", + "next": "13.3.0", + "react": "18.2.0", + "react-dom": "18.2.0", + "react-icons": "^4.8.0", + "wagmi": "^1.3.9", + "zustand": "^4.0.0-rc.1" + }, + "devDependencies": { + "@mantle/eslint-config-next": "workspace:*", + "@mantle/tailwind-config": "workspace:*", + "@mantle/tsconfig": "workspace:*", + "@types/node": "18.11.3", + "@types/react": "18.0.26", + "@types/react-dom": "18.0.10", + "autoprefixer": "^10.4.12", + "clsx": "^1.2.1", + "eslint": "^8.30.0", + "postcss": "^8.4.18", + "tailwindcss": "^3.2.1", + "typescript": "5.0.4" + } +} diff --git a/apps/charity/postcss.config.js b/apps/charity/postcss.config.js new file mode 100644 index 00000000..33ad091d --- /dev/null +++ b/apps/charity/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/apps/charity/public/android-chrome-192x192.png b/apps/charity/public/android-chrome-192x192.png new file mode 100644 index 00000000..7c7ac3d0 Binary files /dev/null and b/apps/charity/public/android-chrome-192x192.png differ diff --git a/apps/charity/public/android-chrome-512x512.png b/apps/charity/public/android-chrome-512x512.png new file mode 100644 index 00000000..d678b25b Binary files /dev/null and b/apps/charity/public/android-chrome-512x512.png differ diff --git a/apps/charity/public/apple-touch-icon.png b/apps/charity/public/apple-touch-icon.png new file mode 100644 index 00000000..15990f2b Binary files /dev/null and b/apps/charity/public/apple-touch-icon.png differ diff --git a/apps/charity/public/bg/bg-header-desktop.png b/apps/charity/public/bg/bg-header-desktop.png new file mode 100644 index 00000000..01ec2341 Binary files /dev/null and b/apps/charity/public/bg/bg-header-desktop.png differ diff --git a/apps/charity/public/bg/bg-ipad-mini.png b/apps/charity/public/bg/bg-ipad-mini.png new file mode 100644 index 00000000..18559a53 Binary files /dev/null and b/apps/charity/public/bg/bg-ipad-mini.png differ diff --git a/apps/charity/public/bg/bg-ipad.png b/apps/charity/public/bg/bg-ipad.png new file mode 100644 index 00000000..0ac71dda Binary files /dev/null and b/apps/charity/public/bg/bg-ipad.png differ diff --git a/apps/charity/public/bg/bg-mobile.png b/apps/charity/public/bg/bg-mobile.png new file mode 100644 index 00000000..5945163d Binary files /dev/null and b/apps/charity/public/bg/bg-mobile.png differ diff --git a/apps/charity/public/bitdao.svg b/apps/charity/public/bitdao.svg new file mode 100644 index 00000000..f75bf22a --- /dev/null +++ b/apps/charity/public/bitdao.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + diff --git a/apps/charity/public/favicon-16x16.png b/apps/charity/public/favicon-16x16.png new file mode 100644 index 00000000..fb0a8087 Binary files /dev/null and b/apps/charity/public/favicon-16x16.png differ diff --git a/apps/charity/public/favicon-32x32.png b/apps/charity/public/favicon-32x32.png new file mode 100644 index 00000000..f8263c9c Binary files /dev/null and b/apps/charity/public/favicon-32x32.png differ diff --git a/apps/charity/public/favicon.ico b/apps/charity/public/favicon.ico new file mode 100644 index 00000000..25690329 Binary files /dev/null and b/apps/charity/public/favicon.ico differ diff --git a/apps/charity/public/mantle.svg b/apps/charity/public/mantle.svg new file mode 100644 index 00000000..b7c68f50 --- /dev/null +++ b/apps/charity/public/mantle.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/charity/public/opengraph.png b/apps/charity/public/opengraph.png new file mode 100644 index 00000000..bf5e0048 Binary files /dev/null and b/apps/charity/public/opengraph.png differ diff --git a/apps/charity/public/preloader_animation.gif b/apps/charity/public/preloader_animation.gif new file mode 100644 index 00000000..d84d58f3 Binary files /dev/null and b/apps/charity/public/preloader_animation.gif differ diff --git a/apps/charity/public/preloader_animation_160.gif b/apps/charity/public/preloader_animation_160.gif new file mode 100644 index 00000000..4d6d1d81 Binary files /dev/null and b/apps/charity/public/preloader_animation_160.gif differ diff --git a/apps/charity/public/twitter.png b/apps/charity/public/twitter.png new file mode 100644 index 00000000..30b3013a Binary files /dev/null and b/apps/charity/public/twitter.png differ diff --git a/apps/charity/src/app/chivalries-of-mantle/page.tsx b/apps/charity/src/app/chivalries-of-mantle/page.tsx new file mode 100644 index 00000000..37f03d43 --- /dev/null +++ b/apps/charity/src/app/chivalries-of-mantle/page.tsx @@ -0,0 +1,4 @@ +// Page components +export default async function Page() { + return <>TODO; +} diff --git a/apps/charity/src/app/head.tsx b/apps/charity/src/app/head.tsx new file mode 100644 index 00000000..dc1999ba --- /dev/null +++ b/apps/charity/src/app/head.tsx @@ -0,0 +1,33 @@ +import { + ABSOLUTE_PATH, + APP_NAME, + META, + OG_TITLE, + TWITTER_DESC, + TWITTER_TITLE, +} from "@config/constants"; +import { Cookies } from "@mantle/ui"; + +export default function Head() { + return ( + <> + {APP_NAME} + + + + + + + + + + + + + + + + + + ); +} diff --git a/apps/charity/src/app/layout.tsx b/apps/charity/src/app/layout.tsx new file mode 100644 index 00000000..49646d5c --- /dev/null +++ b/apps/charity/src/app/layout.tsx @@ -0,0 +1,54 @@ +import "./styles/globals.css"; + +// Dummy components +import { + GTWalsheim, + PageWrapper, + // PageBackroundImage, + PageContainer, + SlimFooter, +} from "@mantle/ui"; + +import Head from "@app/head"; +import Providers from "@app/providers"; + +import Nav from "@components/Nav"; +import CONST from "@mantle/constants"; + +// import bgDesktop from "../../public/bg/bg-header-desktop.png"; +// import bgIpad from "../../public/bg/bg-ipad.png"; +// import bgIpadMini from "../../public/bg/bg-ipad-mini.png"; +// import bgMobile from "../../public/bg/bg-mobile.png"; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + + + {/* @ts-expect-error Server Component */} + + + // } + header={