diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..631a509 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +SITE_NAME="EntGamers" + +DISCORD_JOIN_WEBHOOK_URL="https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index e9aedd1..4b11d9a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,6 +18,7 @@ }, "plugins": [ "react", + "@emotion", "@typescript-eslint" ], "rules": { @@ -37,7 +38,11 @@ ".tsx" ] } - ] + ], + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "error", + "@emotion/pkg-renaming": "error", + "react/no-unknown-property": ["error", { "ignore": ["css"] }] }, "settings": { "react": { diff --git a/.gitignore b/.gitignore index 22813e7..5e0054b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,10 +27,8 @@ yarn-error.log* # local env files .env -.env.local -.env.development.local -.env.test.local -.env.production.local +.env.* +!.env.example # vercel .vercel diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..75fac8e --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run lint diff --git a/next.config.js b/next.config.js index e61ca03..955ab25 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,11 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { +const withBundleAnalyzer = require('@next/bundle-analyzer')({ + enabled: process.env.ANALYZE === 'true', + openAnalyzer: false +}) + +const nextConfig = withBundleAnalyzer({ reactStrictMode: true -} +}) module.exports = nextConfig diff --git a/package.json b/package.json index 3f1aa9f..e823bd6 100644 --- a/package.json +++ b/package.json @@ -10,26 +10,41 @@ "postinstall": "husky install" }, "dependencies": { - "next": "12.2.5", + "@emotion/react": "^11.10.4", + "@emotion/styled": "^11.10.4", + "@fortawesome/fontawesome-svg-core": "^6.2.0", + "@fortawesome/free-brands-svg-icons": "^6.2.0", + "@fortawesome/free-solid-svg-icons": "^6.2.0", + "@fortawesome/react-fontawesome": "^0.2.0", + "@mui/material": "^5.10.6", + "formik": "^2.2.9", + "gsap": "^3.11.1", + "next": "12.3.1", + "next-connect": "^0.13.0", "react": "18.2.0", - "react-dom": "18.2.0" + "react-dom": "18.2.0", + "sharp": "^0.31.0", + "swiper": "^8.4.2", + "yup": "^0.32.11" }, "devDependencies": { - "@commitlint/cli": "^17.0.3", - "@commitlint/config-conventional": "^17.0.3", - "@types/node": "18.7.3", - "@types/react": "18.0.17", - "@typescript-eslint/eslint-plugin": "^5.33.0", - "@typescript-eslint/parser": "^5.33.0", - "eslint": "^8.0.1", - "eslint-config-next": "12.2.5", + "@commitlint/cli": "^17.1.2", + "@commitlint/config-conventional": "^17.1.0", + "@emotion/eslint-plugin": "^11.10.0", + "@next/bundle-analyzer": "^12.3.1", + "@types/node": "18.7.18", + "@types/react": "18.0.20", + "@typescript-eslint/eslint-plugin": "^5.38.0", + "@typescript-eslint/parser": "^5.38.0", + "eslint": "^8.23.1", + "eslint-config-next": "12.3.1", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.25.2", - "eslint-plugin-n": "^15.0.0", + "eslint-plugin-n": "^15.2.5", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-react": "^7.30.1", + "eslint-plugin-promise": "^6.0.1", + "eslint-plugin-react": "^7.31.8", "husky": "^8.0.1", - "typescript": "4.7.4" + "typescript": "4.8.3" } } diff --git a/public/.gitkeep b/public/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/public/favicon.ico b/public/favicon.ico index 718d6fe..186408f 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/fonts/open-sans-v29-latin-300.woff b/public/fonts/open-sans-v29-latin-300.woff new file mode 100644 index 0000000..fd25416 Binary files /dev/null and b/public/fonts/open-sans-v29-latin-300.woff differ diff --git a/public/fonts/open-sans-v29-latin-300.woff2 b/public/fonts/open-sans-v29-latin-300.woff2 new file mode 100644 index 0000000..e7341dc Binary files /dev/null and b/public/fonts/open-sans-v29-latin-300.woff2 differ diff --git a/public/fonts/open-sans-v29-latin-500.woff b/public/fonts/open-sans-v29-latin-500.woff new file mode 100644 index 0000000..ce838eb Binary files /dev/null and b/public/fonts/open-sans-v29-latin-500.woff differ diff --git a/public/fonts/open-sans-v29-latin-500.woff2 b/public/fonts/open-sans-v29-latin-500.woff2 new file mode 100644 index 0000000..b9bc72c Binary files /dev/null and b/public/fonts/open-sans-v29-latin-500.woff2 differ diff --git a/public/fonts/open-sans-v29-latin-700.woff b/public/fonts/open-sans-v29-latin-700.woff new file mode 100644 index 0000000..1b546f6 Binary files /dev/null and b/public/fonts/open-sans-v29-latin-700.woff differ diff --git a/public/fonts/open-sans-v29-latin-700.woff2 b/public/fonts/open-sans-v29-latin-700.woff2 new file mode 100644 index 0000000..00582c6 Binary files /dev/null and b/public/fonts/open-sans-v29-latin-700.woff2 differ diff --git a/public/fonts/open-sans-v29-latin-regular.woff b/public/fonts/open-sans-v29-latin-regular.woff new file mode 100644 index 0000000..b9f6e3e Binary files /dev/null and b/public/fonts/open-sans-v29-latin-regular.woff differ diff --git a/public/fonts/open-sans-v29-latin-regular.woff2 b/public/fonts/open-sans-v29-latin-regular.woff2 new file mode 100644 index 0000000..f143cd4 Binary files /dev/null and b/public/fonts/open-sans-v29-latin-regular.woff2 differ diff --git a/public/fonts/permanent-marker-v16-latin-regular.woff b/public/fonts/permanent-marker-v16-latin-regular.woff new file mode 100644 index 0000000..458b4bb Binary files /dev/null and b/public/fonts/permanent-marker-v16-latin-regular.woff differ diff --git a/public/fonts/permanent-marker-v16-latin-regular.woff2 b/public/fonts/permanent-marker-v16-latin-regular.woff2 new file mode 100644 index 0000000..203ccae Binary files /dev/null and b/public/fonts/permanent-marker-v16-latin-regular.woff2 differ diff --git a/public/images/backgrounds/Forest.png b/public/images/backgrounds/Forest.png new file mode 100644 index 0000000..25a427f Binary files /dev/null and b/public/images/backgrounds/Forest.png differ diff --git a/public/images/backgrounds/ForestLayer01.png b/public/images/backgrounds/ForestLayer01.png new file mode 100644 index 0000000..621ff3e Binary files /dev/null and b/public/images/backgrounds/ForestLayer01.png differ diff --git a/public/images/backgrounds/ForestLayer02.png b/public/images/backgrounds/ForestLayer02.png new file mode 100644 index 0000000..b64e05f Binary files /dev/null and b/public/images/backgrounds/ForestLayer02.png differ diff --git a/public/images/backgrounds/ForestLayer03.png b/public/images/backgrounds/ForestLayer03.png new file mode 100644 index 0000000..b4ea39f Binary files /dev/null and b/public/images/backgrounds/ForestLayer03.png differ diff --git a/public/images/backgrounds/ForestLayer04.png b/public/images/backgrounds/ForestLayer04.png new file mode 100644 index 0000000..eed0fee Binary files /dev/null and b/public/images/backgrounds/ForestLayer04.png differ diff --git a/public/images/backgrounds/ForestLayer05.png b/public/images/backgrounds/ForestLayer05.png new file mode 100644 index 0000000..e26f050 Binary files /dev/null and b/public/images/backgrounds/ForestLayer05.png differ diff --git a/public/images/backgrounds/ForestNight.png b/public/images/backgrounds/ForestNight.png new file mode 100644 index 0000000..9d2fb47 Binary files /dev/null and b/public/images/backgrounds/ForestNight.png differ diff --git a/public/images/backgrounds/ForestNightLayer01.png b/public/images/backgrounds/ForestNightLayer01.png new file mode 100644 index 0000000..208a89f Binary files /dev/null and b/public/images/backgrounds/ForestNightLayer01.png differ diff --git a/public/images/backgrounds/ForestNightLayer02.png b/public/images/backgrounds/ForestNightLayer02.png new file mode 100644 index 0000000..924ac0e Binary files /dev/null and b/public/images/backgrounds/ForestNightLayer02.png differ diff --git a/public/images/backgrounds/ForestNightLayer03.png b/public/images/backgrounds/ForestNightLayer03.png new file mode 100644 index 0000000..4033247 Binary files /dev/null and b/public/images/backgrounds/ForestNightLayer03.png differ diff --git a/public/images/backgrounds/ForestNightLayer04.png b/public/images/backgrounds/ForestNightLayer04.png new file mode 100644 index 0000000..ccfa05b Binary files /dev/null and b/public/images/backgrounds/ForestNightLayer04.png differ diff --git a/public/images/backgrounds/ForestNightLayer05.png b/public/images/backgrounds/ForestNightLayer05.png new file mode 100644 index 0000000..df717ab Binary files /dev/null and b/public/images/backgrounds/ForestNightLayer05.png differ diff --git a/public/images/backgrounds/MysteriousForest.jpg b/public/images/backgrounds/MysteriousForest.jpg new file mode 100644 index 0000000..4c8cf28 Binary files /dev/null and b/public/images/backgrounds/MysteriousForest.jpg differ diff --git a/public/images/backgrounds/MysteriousForestLayer01.png b/public/images/backgrounds/MysteriousForestLayer01.png new file mode 100644 index 0000000..c611302 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer01.png differ diff --git a/public/images/backgrounds/MysteriousForestLayer02.png b/public/images/backgrounds/MysteriousForestLayer02.png new file mode 100644 index 0000000..4120a9a Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer02.png differ diff --git a/public/images/backgrounds/MysteriousForestLayer03.png b/public/images/backgrounds/MysteriousForestLayer03.png new file mode 100644 index 0000000..5a94896 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer03.png differ diff --git a/public/images/backgrounds/MysteriousForestLayer04.png b/public/images/backgrounds/MysteriousForestLayer04.png new file mode 100644 index 0000000..3d4a951 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer04.png differ diff --git a/public/images/backgrounds/MysteriousForestLayer05.png b/public/images/backgrounds/MysteriousForestLayer05.png new file mode 100644 index 0000000..b16789a Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer05.png differ diff --git a/public/images/backgrounds/MysteriousForestLayer06.png b/public/images/backgrounds/MysteriousForestLayer06.png new file mode 100644 index 0000000..0fee017 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestLayer06.png differ diff --git a/public/images/backgrounds/MysteriousForestNight.jpg b/public/images/backgrounds/MysteriousForestNight.jpg new file mode 100644 index 0000000..38eab74 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNight.jpg differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer01.png b/public/images/backgrounds/MysteriousForestNightLayer01.png new file mode 100644 index 0000000..cb4f786 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer01.png differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer02.png b/public/images/backgrounds/MysteriousForestNightLayer02.png new file mode 100644 index 0000000..044f040 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer02.png differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer03.png b/public/images/backgrounds/MysteriousForestNightLayer03.png new file mode 100644 index 0000000..60f4f14 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer03.png differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer04.png b/public/images/backgrounds/MysteriousForestNightLayer04.png new file mode 100644 index 0000000..0a09b88 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer04.png differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer05.png b/public/images/backgrounds/MysteriousForestNightLayer05.png new file mode 100644 index 0000000..049ec58 Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer05.png differ diff --git a/public/images/backgrounds/MysteriousForestNightLayer06.png b/public/images/backgrounds/MysteriousForestNightLayer06.png new file mode 100644 index 0000000..20fd18c Binary files /dev/null and b/public/images/backgrounds/MysteriousForestNightLayer06.png differ diff --git a/public/images/backgrounds/SkyNight.png b/public/images/backgrounds/SkyNight.png new file mode 100644 index 0000000..c2b9d36 Binary files /dev/null and b/public/images/backgrounds/SkyNight.png differ diff --git a/public/images/backgrounds/SkyNightLayer01.png b/public/images/backgrounds/SkyNightLayer01.png new file mode 100644 index 0000000..5a3f8b8 Binary files /dev/null and b/public/images/backgrounds/SkyNightLayer01.png differ diff --git a/public/images/backgrounds/SkyNightLayer02.png b/public/images/backgrounds/SkyNightLayer02.png new file mode 100644 index 0000000..c41d7e6 Binary files /dev/null and b/public/images/backgrounds/SkyNightLayer02.png differ diff --git a/public/images/backgrounds/SkyNightLayer03.png b/public/images/backgrounds/SkyNightLayer03.png new file mode 100644 index 0000000..2d26916 Binary files /dev/null and b/public/images/backgrounds/SkyNightLayer03.png differ diff --git a/public/images/backgrounds/SkyNightLayer04.png b/public/images/backgrounds/SkyNightLayer04.png new file mode 100644 index 0000000..79c61c1 Binary files /dev/null and b/public/images/backgrounds/SkyNightLayer04.png differ diff --git a/public/images/backgrounds/bricks.png b/public/images/backgrounds/bricks.png new file mode 100644 index 0000000..8dd132d Binary files /dev/null and b/public/images/backgrounds/bricks.png differ diff --git a/public/images/defaults/og.jpg b/public/images/defaults/og.jpg new file mode 100644 index 0000000..7766d11 Binary files /dev/null and b/public/images/defaults/og.jpg differ diff --git a/public/images/team/SrJuggernaut.png b/public/images/team/SrJuggernaut.png new file mode 100644 index 0000000..631a77d Binary files /dev/null and b/public/images/team/SrJuggernaut.png differ diff --git a/src/assets/images/Clanes.png b/src/assets/images/Clanes.png new file mode 100644 index 0000000..3f8808e Binary files /dev/null and b/src/assets/images/Clanes.png differ diff --git a/src/assets/images/EntGamers.png b/src/assets/images/EntGamers.png new file mode 100644 index 0000000..f01dcbd Binary files /dev/null and b/src/assets/images/EntGamers.png differ diff --git a/src/assets/images/EntGamersOutlineBlanco.png b/src/assets/images/EntGamersOutlineBlanco.png new file mode 100644 index 0000000..583a757 Binary files /dev/null and b/src/assets/images/EntGamersOutlineBlanco.png differ diff --git a/src/assets/images/EntGamersOutlineNegro.png b/src/assets/images/EntGamersOutlineNegro.png new file mode 100644 index 0000000..7383541 Binary files /dev/null and b/src/assets/images/EntGamersOutlineNegro.png differ diff --git a/src/assets/images/EntGamersTextNoOutline.png b/src/assets/images/EntGamersTextNoOutline.png new file mode 100644 index 0000000..a0472d7 Binary files /dev/null and b/src/assets/images/EntGamersTextNoOutline.png differ diff --git a/src/assets/images/EntGamersTextOutlineBlanco.png b/src/assets/images/EntGamersTextOutlineBlanco.png new file mode 100644 index 0000000..f7979f8 Binary files /dev/null and b/src/assets/images/EntGamersTextOutlineBlanco.png differ diff --git a/src/assets/images/EntGamersTextOutlineNegro.png b/src/assets/images/EntGamersTextOutlineNegro.png new file mode 100644 index 0000000..3c2a8cc Binary files /dev/null and b/src/assets/images/EntGamersTextOutlineNegro.png differ diff --git a/src/assets/images/gaming/Badge.png b/src/assets/images/gaming/Badge.png new file mode 100644 index 0000000..0af6864 Binary files /dev/null and b/src/assets/images/gaming/Badge.png differ diff --git a/src/assets/images/gaming/BadgeBook.png b/src/assets/images/gaming/BadgeBook.png new file mode 100644 index 0000000..729457c Binary files /dev/null and b/src/assets/images/gaming/BadgeBook.png differ diff --git a/src/assets/images/gaming/BadgeShield.png b/src/assets/images/gaming/BadgeShield.png new file mode 100644 index 0000000..6d8c2cc Binary files /dev/null and b/src/assets/images/gaming/BadgeShield.png differ diff --git a/src/assets/images/gaming/BadgeSword.png b/src/assets/images/gaming/BadgeSword.png new file mode 100644 index 0000000..98e24c1 Binary files /dev/null and b/src/assets/images/gaming/BadgeSword.png differ diff --git a/src/assets/images/gaming/Button.png b/src/assets/images/gaming/Button.png new file mode 100644 index 0000000..3294618 Binary files /dev/null and b/src/assets/images/gaming/Button.png differ diff --git a/src/assets/images/gaming/ButtonA.png b/src/assets/images/gaming/ButtonA.png new file mode 100644 index 0000000..be3c477 Binary files /dev/null and b/src/assets/images/gaming/ButtonA.png differ diff --git a/src/assets/images/gaming/ButtonAPressed.png b/src/assets/images/gaming/ButtonAPressed.png new file mode 100644 index 0000000..94b7a6b Binary files /dev/null and b/src/assets/images/gaming/ButtonAPressed.png differ diff --git a/src/assets/images/gaming/ButtonB.png b/src/assets/images/gaming/ButtonB.png new file mode 100644 index 0000000..d835678 Binary files /dev/null and b/src/assets/images/gaming/ButtonB.png differ diff --git a/src/assets/images/gaming/ButtonBPressed.png b/src/assets/images/gaming/ButtonBPressed.png new file mode 100644 index 0000000..823346f Binary files /dev/null and b/src/assets/images/gaming/ButtonBPressed.png differ diff --git a/src/assets/images/gaming/ButtonPressed.png b/src/assets/images/gaming/ButtonPressed.png new file mode 100644 index 0000000..6a689eb Binary files /dev/null and b/src/assets/images/gaming/ButtonPressed.png differ diff --git a/src/assets/images/gaming/ButtonX.png b/src/assets/images/gaming/ButtonX.png new file mode 100644 index 0000000..c4a29ee Binary files /dev/null and b/src/assets/images/gaming/ButtonX.png differ diff --git a/src/assets/images/gaming/ButtonXPressed.png b/src/assets/images/gaming/ButtonXPressed.png new file mode 100644 index 0000000..d8ba71e Binary files /dev/null and b/src/assets/images/gaming/ButtonXPressed.png differ diff --git a/src/assets/images/gaming/ButtonY.png b/src/assets/images/gaming/ButtonY.png new file mode 100644 index 0000000..3a0fd53 Binary files /dev/null and b/src/assets/images/gaming/ButtonY.png differ diff --git a/src/assets/images/gaming/ButtonYPressed.png b/src/assets/images/gaming/ButtonYPressed.png new file mode 100644 index 0000000..3a0fd53 Binary files /dev/null and b/src/assets/images/gaming/ButtonYPressed.png differ diff --git a/src/assets/images/gaming/LevelUpAmarillo.png b/src/assets/images/gaming/LevelUpAmarillo.png new file mode 100644 index 0000000..32e0bf8 Binary files /dev/null and b/src/assets/images/gaming/LevelUpAmarillo.png differ diff --git a/src/assets/images/gaming/LevelUpAzul.png b/src/assets/images/gaming/LevelUpAzul.png new file mode 100644 index 0000000..e26038d Binary files /dev/null and b/src/assets/images/gaming/LevelUpAzul.png differ diff --git a/src/assets/images/gaming/LevelUpRojo.png b/src/assets/images/gaming/LevelUpRojo.png new file mode 100644 index 0000000..5d69f2a Binary files /dev/null and b/src/assets/images/gaming/LevelUpRojo.png differ diff --git a/src/assets/images/gaming/LevelUpVerde.png b/src/assets/images/gaming/LevelUpVerde.png new file mode 100644 index 0000000..95e7410 Binary files /dev/null and b/src/assets/images/gaming/LevelUpVerde.png differ diff --git a/src/assets/images/gaming/Talking.gif b/src/assets/images/gaming/Talking.gif new file mode 100644 index 0000000..1e6ddbb Binary files /dev/null and b/src/assets/images/gaming/Talking.gif differ diff --git a/src/assets/logos/EntGamers.tsx b/src/assets/logos/EntGamers.tsx new file mode 100644 index 0000000..340b578 --- /dev/null +++ b/src/assets/logos/EntGamers.tsx @@ -0,0 +1,378 @@ +import { FC, SVGProps } from 'react' + +const SvgComponent:FC> = (props) => ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +) + +export default SvgComponent diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx new file mode 100644 index 0000000..f2bc01a --- /dev/null +++ b/src/components/Seo.tsx @@ -0,0 +1,38 @@ +import Head from 'next/head' +import { FC } from 'react' + +export type SeoProps = { + title?: string + description?: string + image?: string +} + +const SITE_NAME = process.env.SITE_NAME || 'EntGamers' + +const Seo: FC = ({ title, description, image }) => { + return ( + + {!!title && ( + <> + {`${title} - ${SITE_NAME}`} + + + + )} + {!!description && ( + <> + + + + + )} + {!!image && ( + <> + + + + )} + + ) +} +export default Seo diff --git a/src/components/layouts/Contained.tsx b/src/components/layouts/Contained.tsx new file mode 100644 index 0000000..7a7e69a --- /dev/null +++ b/src/components/layouts/Contained.tsx @@ -0,0 +1,27 @@ +import { Container } from '@mui/material' +import { FC } from 'react' + +import Header from '@components/layouts/Header' +import Footer from '@components/layouts/Footer' + +import { ContainedProps } from '@interfaces' + +const Contained: FC = ({ children }) => { + return ( + <> +
+ + {children} + +