Skip to content

Commit

Permalink
Migrating to Next.js and adding download script.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiandrex committed Jul 12, 2021
1 parent f785246 commit b740ea8
Show file tree
Hide file tree
Showing 35 changed files with 17,567 additions and 13,602 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
build/
build/
.next/
50 changes: 2 additions & 48 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,49 +1,3 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"react/react-in-jsx-scope": "off",
"eol-last": [
"error",
"always"
]
}
}
"extends": "next"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ yarn-error.log*
.eslintcache

.vercel
.next
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "none"
}
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# League of React

* [Color palette](https://colorhunt.co/palette/219713)
Visualize the League of Legends champions.

* [Free icons - FontAwesome](https://fontawesome.com/)
## Screenshots

**Homepage**
![Homepage screenshot](/docs/images/home.png)

**Champion page**
![Champion page screenshot](/docs/images/champion.png)

## Upcoming features

- [ ] Desktop design.
- [ ] Filter champions.
- [ ] Extract the color of the champions.

## Resources

- [Data Dragon](https://developer.riotgames.com/docs/lol#data-dragon)
- [Color Hunt](https://colorhunt.co/palette/219713)
- [FontAwesome](https://fontawesome.com/)
Binary file added docs/images/champion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"compilerOptions": {
"baseUrl": "./src"
"baseUrl": ".",
"paths": {
"@/assets/*": ["src/assets/*"],
"@/components/*": ["src/components/*"],
"@/hooks/*": ["src/hooks/*"],
"@/public/*": ["public/*"],
"@/styles/*": ["src/styles/*"]
}
}
}
}
14 changes: 14 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
images: {
domains: ["ddragon.leagueoflegends.com"]
},
reactStrictMode: true,
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: ["@svgr/webpack"]
});

return config;
}
};
Loading

0 comments on commit b740ea8

Please sign in to comment.