Live Demo => xuhaojun.github.io/pokemon-calc
Welcome to Pokemon Calc! This project is an open-source web application that provides type calculations (to determine strengths and weaknesses), a Pokédex (for searching and viewing Pokémon details), and more. The source code is available on GitHub for anyone to contribute to or modify.
Pokédex data is from PokéAPI.
Inspired by Pokemon Types with Heat Map, Pokémon Type Calculator, TradingView Stock Heatmap, poe.ninja.
- Type Calculations: Determine the strengths and weaknesses of Pokémon types against each other.
- Pokédex: Search for Pokémon and view detailed information about them, including stats, abilities, evolutions, and more.
- Responsive Design: Optimized for both desktop and mobile devices.
- Multilingual: en, zh-Hant, zh-Hans, ja, ko
nodejs, static website
- Framework: Next.js (SSG)
- UI: shadcn and D3.js
- Locales: lingui
Setup Next.js SSG work with Github page,actions by gregrickaby/nextjs-github-pages
- nodejs: 20(lts/iron)
- pnpm: 9
pnpm install
## next.js dev
npm run dev
## open http://localhost:3000/pokemon-calc
Update pokemon data:
node download-pokemon-data.js
Contributions are welcome! To contribute:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes.
-
Commit your changes:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature/your-feature-name
-
Create a Pull Request.
To add translations:
- Navigate to the
src/locales/
directory. - Add or update the
.po
files for the language you are contributing to. - Follow the standard steps above to commit and push your changes.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions, feel free to reach out:
- Email: [email protected]
- GitHub: XuHaoJun