diff --git a/package-lock.json b/package-lock.json index ea396f4..0286d6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,13 +8,19 @@ "name": "react_capstone", "version": "0.1.0", "dependencies": { + "@reduxjs/toolkit": "^1.9.5", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", + "axios": "^1.4.0", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-redux": "^8.1.2", "react-router-dom": "^6.14.2", "react-scripts": "5.0.1", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", "web-vitals": "^2.1.4" }, "devDependencies": { @@ -3265,6 +3271,29 @@ } } }, + "node_modules/@reduxjs/toolkit": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.5.tgz", + "integrity": "sha512-Rt97jHmfTeaxL4swLRNPD/zV4OxTes4la07Xc4hetpUW/vc75t5m1ANyxG6ymnEQ2FsLQsoMlYB2vV1sO3m8tQ==", + "dependencies": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18", + "react-redux": "^7.2.1 || ^8.0.2" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, "node_modules/@remix-run/router": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.7.2.tgz", @@ -4067,6 +4096,15 @@ "@types/node": "*" } }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", + "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, "node_modules/@types/html-minifier-terser": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", @@ -4514,6 +4552,11 @@ "integrity": "sha512-cputDpIbFgLUaGQn6Vqg3/YsJwxUwHLO13v3i5ouxT4lat0khip9AEWxtERujXV9wxIB1EyF97BSJFt6vpdI8g==", "dev": true }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz", + "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" + }, "node_modules/@types/ws": { "version": "8.5.5", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", @@ -5366,6 +5409,29 @@ "node": ">=4" } }, + "node_modules/axios": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", + "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/axobject-query": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", @@ -9231,6 +9297,19 @@ "he": "bin/he" } }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, "node_modules/hoopy": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", @@ -15353,6 +15432,11 @@ "node": ">= 0.10" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -15645,6 +15729,49 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, + "node_modules/react-redux": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.1.2.tgz", + "integrity": "sha512-xJKYI189VwfsFc4CJvHqHlDrzyFTY/3vZACbE+rr/zQ34Xx1wQfB4OTOSeOSNrF6BDVe8OOdxIrAnMGXA3ggfw==", + "dependencies": { + "@babel/runtime": "^7.12.1", + "@types/hoist-non-react-statics": "^3.3.1", + "@types/use-sync-external-store": "^0.0.3", + "hoist-non-react-statics": "^3.3.2", + "react-is": "^18.0.0", + "use-sync-external-store": "^1.0.0" + }, + "peerDependencies": { + "@types/react": "^16.8 || ^17.0 || ^18.0", + "@types/react-dom": "^16.8 || ^17.0 || ^18.0", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0", + "react-native": ">=0.59", + "redux": "^4 || ^5.0.0-beta.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-redux/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, "node_modules/react-refresh": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", @@ -16218,6 +16345,22 @@ "node": ">=8" } }, + "node_modules/redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, + "node_modules/redux-thunk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", + "peerDependencies": { + "redux": "^4" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", @@ -16405,6 +16548,11 @@ "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" }, + "node_modules/reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" + }, "node_modules/resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", @@ -18678,6 +18826,14 @@ "requires-port": "^1.0.0" } }, + "node_modules/use-sync-external-store": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/package.json b/package.json index 943ac84..0eef56b 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,19 @@ "version": "0.1.0", "private": true, "dependencies": { + "@reduxjs/toolkit": "^1.9.5", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", + "axios": "^1.4.0", + "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-redux": "^8.1.2", "react-router-dom": "^6.14.2", "react-scripts": "5.0.1", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", "web-vitals": "^2.1.4" }, "scripts": { diff --git a/public/images/africa/angola.png b/public/images/africa/angola.png new file mode 100644 index 0000000..25c05e8 Binary files /dev/null and b/public/images/africa/angola.png differ diff --git a/public/images/africa/argelia.png b/public/images/africa/argelia.png new file mode 100644 index 0000000..38f1984 Binary files /dev/null and b/public/images/africa/argelia.png differ diff --git a/public/images/africa/benin.png b/public/images/africa/benin.png new file mode 100644 index 0000000..98d5d06 Binary files /dev/null and b/public/images/africa/benin.png differ diff --git a/public/images/africa/botsuana.png b/public/images/africa/botsuana.png new file mode 100644 index 0000000..d884d1e Binary files /dev/null and b/public/images/africa/botsuana.png differ diff --git a/public/images/africa/burkina_faso.png b/public/images/africa/burkina_faso.png new file mode 100644 index 0000000..05ef9f7 Binary files /dev/null and b/public/images/africa/burkina_faso.png differ diff --git a/public/images/africa/burundi.png b/public/images/africa/burundi.png new file mode 100644 index 0000000..ed3087d Binary files /dev/null and b/public/images/africa/burundi.png differ diff --git a/public/images/africa/cabo_verde.png b/public/images/africa/cabo_verde.png new file mode 100644 index 0000000..e85f478 Binary files /dev/null and b/public/images/africa/cabo_verde.png differ diff --git a/public/images/africa/camerun.png b/public/images/africa/camerun.png new file mode 100644 index 0000000..de567f8 Binary files /dev/null and b/public/images/africa/camerun.png differ diff --git a/public/images/africa/chad.png b/public/images/africa/chad.png new file mode 100644 index 0000000..1240507 Binary files /dev/null and b/public/images/africa/chad.png differ diff --git a/public/images/africa/comores.png b/public/images/africa/comores.png new file mode 100644 index 0000000..7ff8ad5 Binary files /dev/null and b/public/images/africa/comores.png differ diff --git a/public/images/africa/congo.png b/public/images/africa/congo.png new file mode 100644 index 0000000..f9e437b Binary files /dev/null and b/public/images/africa/congo.png differ diff --git a/public/images/africa/costa_de_marfil.png b/public/images/africa/costa_de_marfil.png new file mode 100644 index 0000000..e9e29e0 Binary files /dev/null and b/public/images/africa/costa_de_marfil.png differ diff --git a/public/images/africa/egipto.png b/public/images/africa/egipto.png new file mode 100644 index 0000000..527e3d8 Binary files /dev/null and b/public/images/africa/egipto.png differ diff --git a/public/images/africa/eritrea.png b/public/images/africa/eritrea.png new file mode 100644 index 0000000..4acbb84 Binary files /dev/null and b/public/images/africa/eritrea.png differ diff --git a/public/images/africa/esuati.png b/public/images/africa/esuati.png new file mode 100644 index 0000000..4022f87 Binary files /dev/null and b/public/images/africa/esuati.png differ diff --git a/public/images/africa/esuatini.png b/public/images/africa/esuatini.png new file mode 100644 index 0000000..4022f87 Binary files /dev/null and b/public/images/africa/esuatini.png differ diff --git a/public/images/africa/etiopia.png b/public/images/africa/etiopia.png new file mode 100644 index 0000000..0e20f86 Binary files /dev/null and b/public/images/africa/etiopia.png differ diff --git a/public/images/africa/gabon.png b/public/images/africa/gabon.png new file mode 100644 index 0000000..bcb0c6b Binary files /dev/null and b/public/images/africa/gabon.png differ diff --git a/public/images/africa/gambia.png b/public/images/africa/gambia.png new file mode 100644 index 0000000..8198975 Binary files /dev/null and b/public/images/africa/gambia.png differ diff --git a/public/images/africa/ghana.png b/public/images/africa/ghana.png new file mode 100644 index 0000000..a697268 Binary files /dev/null and b/public/images/africa/ghana.png differ diff --git a/public/images/africa/guinea.png b/public/images/africa/guinea.png new file mode 100644 index 0000000..cbe0873 Binary files /dev/null and b/public/images/africa/guinea.png differ diff --git a/public/images/africa/guinea_bissau.png b/public/images/africa/guinea_bissau.png new file mode 100644 index 0000000..f7b29d7 Binary files /dev/null and b/public/images/africa/guinea_bissau.png differ diff --git a/public/images/africa/guinea_ecuatorial.png b/public/images/africa/guinea_ecuatorial.png new file mode 100644 index 0000000..bce8acd Binary files /dev/null and b/public/images/africa/guinea_ecuatorial.png differ diff --git a/public/images/africa/isla_mauricio.png b/public/images/africa/isla_mauricio.png new file mode 100644 index 0000000..38e0502 Binary files /dev/null and b/public/images/africa/isla_mauricio.png differ diff --git a/public/images/africa/kenia.png b/public/images/africa/kenia.png new file mode 100644 index 0000000..bc9cec5 Binary files /dev/null and b/public/images/africa/kenia.png differ diff --git a/public/images/africa/lesotho.png b/public/images/africa/lesotho.png new file mode 100644 index 0000000..9cb829e Binary files /dev/null and b/public/images/africa/lesotho.png differ diff --git a/public/images/africa/liberia.png b/public/images/africa/liberia.png new file mode 100644 index 0000000..2b5ff50 Binary files /dev/null and b/public/images/africa/liberia.png differ diff --git a/public/images/africa/libia.png b/public/images/africa/libia.png new file mode 100644 index 0000000..ed5307e Binary files /dev/null and b/public/images/africa/libia.png differ diff --git a/public/images/africa/madagascar.png b/public/images/africa/madagascar.png new file mode 100644 index 0000000..976bdc4 Binary files /dev/null and b/public/images/africa/madagascar.png differ diff --git a/public/images/africa/malawi.png b/public/images/africa/malawi.png new file mode 100644 index 0000000..d1b4b63 Binary files /dev/null and b/public/images/africa/malawi.png differ diff --git a/public/images/africa/mali.png b/public/images/africa/mali.png new file mode 100644 index 0000000..976a222 Binary files /dev/null and b/public/images/africa/mali.png differ diff --git a/public/images/africa/marruecos.png b/public/images/africa/marruecos.png new file mode 100644 index 0000000..00f7870 Binary files /dev/null and b/public/images/africa/marruecos.png differ diff --git a/public/images/africa/mauritania.png b/public/images/africa/mauritania.png new file mode 100644 index 0000000..e10bda5 Binary files /dev/null and b/public/images/africa/mauritania.png differ diff --git a/src/images/america/Caribean/martinica.png b/public/images/africa/mayotte.png similarity index 100% rename from src/images/america/Caribean/martinica.png rename to public/images/africa/mayotte.png diff --git a/public/images/africa/mozambique.png b/public/images/africa/mozambique.png new file mode 100644 index 0000000..85a1595 Binary files /dev/null and b/public/images/africa/mozambique.png differ diff --git a/public/images/africa/namibia.png b/public/images/africa/namibia.png new file mode 100644 index 0000000..7340bca Binary files /dev/null and b/public/images/africa/namibia.png differ diff --git a/public/images/africa/nigeria.png b/public/images/africa/nigeria.png new file mode 100644 index 0000000..b894dc6 Binary files /dev/null and b/public/images/africa/nigeria.png differ diff --git a/public/images/africa/niguer.png b/public/images/africa/niguer.png new file mode 100644 index 0000000..1083a2e Binary files /dev/null and b/public/images/africa/niguer.png differ diff --git a/src/images/america/North/san_pedro_miquelon.png b/public/images/africa/reinion.png similarity index 100% rename from src/images/america/North/san_pedro_miquelon.png rename to public/images/africa/reinion.png diff --git a/public/images/africa/republica_centroafricana.png b/public/images/africa/republica_centroafricana.png new file mode 100644 index 0000000..aec0788 Binary files /dev/null and b/public/images/africa/republica_centroafricana.png differ diff --git a/public/images/africa/republica_del_congo.png b/public/images/africa/republica_del_congo.png new file mode 100644 index 0000000..43a4173 Binary files /dev/null and b/public/images/africa/republica_del_congo.png differ diff --git a/public/images/africa/ruanda.png b/public/images/africa/ruanda.png new file mode 100644 index 0000000..27a478b Binary files /dev/null and b/public/images/africa/ruanda.png differ diff --git a/public/images/africa/sahara_occidental.png b/public/images/africa/sahara_occidental.png new file mode 100644 index 0000000..2229993 Binary files /dev/null and b/public/images/africa/sahara_occidental.png differ diff --git a/public/images/africa/santa_elena.png b/public/images/africa/santa_elena.png new file mode 100644 index 0000000..a5cfb56 Binary files /dev/null and b/public/images/africa/santa_elena.png differ diff --git a/public/images/africa/santo_tome.png b/public/images/africa/santo_tome.png new file mode 100644 index 0000000..43ecbd4 Binary files /dev/null and b/public/images/africa/santo_tome.png differ diff --git a/public/images/africa/seicheles.png b/public/images/africa/seicheles.png new file mode 100644 index 0000000..8919317 Binary files /dev/null and b/public/images/africa/seicheles.png differ diff --git a/public/images/africa/senegal.png b/public/images/africa/senegal.png new file mode 100644 index 0000000..df1fe34 Binary files /dev/null and b/public/images/africa/senegal.png differ diff --git a/public/images/africa/sierra_leona.png b/public/images/africa/sierra_leona.png new file mode 100644 index 0000000..d4263af Binary files /dev/null and b/public/images/africa/sierra_leona.png differ diff --git a/public/images/africa/somalia.png b/public/images/africa/somalia.png new file mode 100644 index 0000000..3a4dca5 Binary files /dev/null and b/public/images/africa/somalia.png differ diff --git a/public/images/africa/sudafrica.png b/public/images/africa/sudafrica.png new file mode 100644 index 0000000..b9be5d5 Binary files /dev/null and b/public/images/africa/sudafrica.png differ diff --git a/public/images/africa/sudan.png b/public/images/africa/sudan.png new file mode 100644 index 0000000..6956605 Binary files /dev/null and b/public/images/africa/sudan.png differ diff --git a/public/images/africa/sudan_del_sur.png b/public/images/africa/sudan_del_sur.png new file mode 100644 index 0000000..cd5536c Binary files /dev/null and b/public/images/africa/sudan_del_sur.png differ diff --git a/public/images/africa/tanzania.png b/public/images/africa/tanzania.png new file mode 100644 index 0000000..408a680 Binary files /dev/null and b/public/images/africa/tanzania.png differ diff --git a/public/images/africa/territorio_britanico_del_oceano_indico.png b/public/images/africa/territorio_britanico_del_oceano_indico.png new file mode 100644 index 0000000..c191296 Binary files /dev/null and b/public/images/africa/territorio_britanico_del_oceano_indico.png differ diff --git a/public/images/africa/togo.png b/public/images/africa/togo.png new file mode 100644 index 0000000..53a7e0a Binary files /dev/null and b/public/images/africa/togo.png differ diff --git a/public/images/africa/tunez.png b/public/images/africa/tunez.png new file mode 100644 index 0000000..08836f6 Binary files /dev/null and b/public/images/africa/tunez.png differ diff --git a/public/images/africa/uganda.png b/public/images/africa/uganda.png new file mode 100644 index 0000000..8259cc9 Binary files /dev/null and b/public/images/africa/uganda.png differ diff --git a/public/images/africa/yibuti.png b/public/images/africa/yibuti.png new file mode 100644 index 0000000..e10a9b5 Binary files /dev/null and b/public/images/africa/yibuti.png differ diff --git a/public/images/africa/zambia.png b/public/images/africa/zambia.png new file mode 100644 index 0000000..6c2607b Binary files /dev/null and b/public/images/africa/zambia.png differ diff --git a/public/images/africa/zimbabue.png b/public/images/africa/zimbabue.png new file mode 100644 index 0000000..fb1bc7c Binary files /dev/null and b/public/images/africa/zimbabue.png differ diff --git a/src/images/america/Caribean/Isla_san_martin.png b/public/images/america/Isla_san_martin.png similarity index 100% rename from src/images/america/Caribean/Isla_san_martin.png rename to public/images/america/Isla_san_martin.png diff --git a/src/images/america/south/Uruguay.png b/public/images/america/Uruguay.png similarity index 100% rename from src/images/america/south/Uruguay.png rename to public/images/america/Uruguay.png diff --git a/src/images/america/Caribean/anguila.png b/public/images/america/anguila.png similarity index 100% rename from src/images/america/Caribean/anguila.png rename to public/images/america/anguila.png diff --git a/src/images/america/Caribean/antigua_y_barbuda.png b/public/images/america/antigua_y_barbuda.png similarity index 100% rename from src/images/america/Caribean/antigua_y_barbuda.png rename to public/images/america/antigua_y_barbuda.png diff --git a/src/images/america/south/Argentina.png b/public/images/america/argentina.png similarity index 100% rename from src/images/america/south/Argentina.png rename to public/images/america/argentina.png diff --git a/src/images/america/Caribean/aruba.png b/public/images/america/aruba.png similarity index 100% rename from src/images/america/Caribean/aruba.png rename to public/images/america/aruba.png diff --git a/src/images/america/Caribean/Bahamas.png b/public/images/america/bahamas.png similarity index 100% rename from src/images/america/Caribean/Bahamas.png rename to public/images/america/bahamas.png diff --git a/src/images/america/Caribean/barbados.png b/public/images/america/barbados.png similarity index 100% rename from src/images/america/Caribean/barbados.png rename to public/images/america/barbados.png diff --git a/src/images/america/central/belize.png b/public/images/america/belize.png similarity index 100% rename from src/images/america/central/belize.png rename to public/images/america/belize.png diff --git a/src/images/america/North/bermudas.png b/public/images/america/bermudas.png similarity index 100% rename from src/images/america/North/bermudas.png rename to public/images/america/bermudas.png diff --git a/src/images/america/south/Bolivia.png b/public/images/america/bolivia.png similarity index 100% rename from src/images/america/south/Bolivia.png rename to public/images/america/bolivia.png diff --git a/src/images/america/south/brasil.png b/public/images/america/brasil.png similarity index 100% rename from src/images/america/south/brasil.png rename to public/images/america/brasil.png diff --git a/src/images/america/North/canada.png b/public/images/america/canada.png similarity index 100% rename from src/images/america/North/canada.png rename to public/images/america/canada.png diff --git "a/src/images/america/Caribean/caribe_neerland\303\251s.png" b/public/images/america/caribe_neerlandes.png similarity index 100% rename from "src/images/america/Caribean/caribe_neerland\303\251s.png" rename to public/images/america/caribe_neerlandes.png diff --git a/src/images/america/south/Chile.png b/public/images/america/chile.png similarity index 100% rename from src/images/america/south/Chile.png rename to public/images/america/chile.png diff --git a/src/images/america/south/colombia.png b/public/images/america/colombia.png similarity index 100% rename from src/images/america/south/colombia.png rename to public/images/america/colombia.png diff --git a/src/images/america/central/costa_rica.png b/public/images/america/costa_rica.png similarity index 100% rename from src/images/america/central/costa_rica.png rename to public/images/america/costa_rica.png diff --git a/src/images/america/Caribean/cuba.png b/public/images/america/cuba.png similarity index 100% rename from src/images/america/Caribean/cuba.png rename to public/images/america/cuba.png diff --git "a/src/images/america/Caribean/cura\303\247ao.png" b/public/images/america/curacao.png similarity index 100% rename from "src/images/america/Caribean/cura\303\247ao.png" rename to public/images/america/curacao.png diff --git a/src/images/america/Caribean/dominica.png b/public/images/america/dominica.png similarity index 100% rename from src/images/america/Caribean/dominica.png rename to public/images/america/dominica.png diff --git a/src/images/america/south/ecuador.png b/public/images/america/ecuador.png similarity index 100% rename from src/images/america/south/ecuador.png rename to public/images/america/ecuador.png diff --git a/src/images/america/central/el_salvador.png b/public/images/america/el_salvador.png similarity index 100% rename from src/images/america/central/el_salvador.png rename to public/images/america/el_salvador.png diff --git a/src/images/america/south/georgia_del_sur.png b/public/images/america/georgia_del_sur.png similarity index 100% rename from src/images/america/south/georgia_del_sur.png rename to public/images/america/georgia_del_sur.png diff --git a/src/images/america/Caribean/granada.png b/public/images/america/granada.png similarity index 100% rename from src/images/america/Caribean/granada.png rename to public/images/america/granada.png diff --git a/src/images/america/North/groenlandia.png b/public/images/america/groenlandia.png similarity index 100% rename from src/images/america/North/groenlandia.png rename to public/images/america/groenlandia.png diff --git a/src/images/america/south/guayana_francesa.png b/public/images/america/guadalupe.png similarity index 100% rename from src/images/america/south/guayana_francesa.png rename to public/images/america/guadalupe.png diff --git a/src/images/america/central/guatemala.png b/public/images/america/guatemala.png similarity index 100% rename from src/images/america/central/guatemala.png rename to public/images/america/guatemala.png diff --git a/src/images/america/south/guayana.png b/public/images/america/guayana.png similarity index 100% rename from src/images/america/south/guayana.png rename to public/images/america/guayana.png diff --git a/public/images/america/guayana_francesa.png b/public/images/america/guayana_francesa.png new file mode 100644 index 0000000..191ebdf Binary files /dev/null and b/public/images/america/guayana_francesa.png differ diff --git a/src/images/america/Caribean/haiti.png b/public/images/america/haiti.png similarity index 100% rename from src/images/america/Caribean/haiti.png rename to public/images/america/haiti.png diff --git a/src/images/america/central/honduras.png b/public/images/america/honduras.png similarity index 100% rename from src/images/america/central/honduras.png rename to public/images/america/honduras.png diff --git a/src/images/america/south/isla_bouvet.png b/public/images/america/isla_bouvet.png similarity index 100% rename from src/images/america/south/isla_bouvet.png rename to public/images/america/isla_bouvet.png diff --git a/src/images/america/Caribean/islas_caiman.png b/public/images/america/islas_caiman.png similarity index 100% rename from src/images/america/Caribean/islas_caiman.png rename to public/images/america/islas_caiman.png diff --git a/src/images/america/south/islas_malvinas.png b/public/images/america/islas_malvinas.png similarity index 100% rename from src/images/america/south/islas_malvinas.png rename to public/images/america/islas_malvinas.png diff --git a/src/images/america/Caribean/islas_turcas.png b/public/images/america/islas_turcas.png similarity index 100% rename from src/images/america/Caribean/islas_turcas.png rename to public/images/america/islas_turcas.png diff --git a/src/images/america/Caribean/islas_virgenes_americanas.png b/public/images/america/islas_virgenes_americanas.png similarity index 100% rename from src/images/america/Caribean/islas_virgenes_americanas.png rename to public/images/america/islas_virgenes_americanas.png diff --git a/src/images/america/Caribean/islas_virgenes_UK.png b/public/images/america/islas_virgenes_uk.png similarity index 100% rename from src/images/america/Caribean/islas_virgenes_UK.png rename to public/images/america/islas_virgenes_uk.png diff --git a/src/images/america/Caribean/jamaica.png b/public/images/america/jamaica.png similarity index 100% rename from src/images/america/Caribean/jamaica.png rename to public/images/america/jamaica.png diff --git a/public/images/america/martinica.png b/public/images/america/martinica.png new file mode 100644 index 0000000..191ebdf Binary files /dev/null and b/public/images/america/martinica.png differ diff --git a/src/images/america/central/mexico.png b/public/images/america/mexico.png similarity index 100% rename from src/images/america/central/mexico.png rename to public/images/america/mexico.png diff --git a/src/images/america/Caribean/montserrat.png b/public/images/america/montserrat.png similarity index 100% rename from src/images/america/Caribean/montserrat.png rename to public/images/america/montserrat.png diff --git a/src/images/america/central/nicaragua.png b/public/images/america/nicaragua.png similarity index 100% rename from src/images/america/central/nicaragua.png rename to public/images/america/nicaragua.png diff --git a/src/images/america/central/panama.png b/public/images/america/panama.png similarity index 100% rename from src/images/america/central/panama.png rename to public/images/america/panama.png diff --git a/src/images/america/south/Paraguay.png b/public/images/america/paraguay.png similarity index 100% rename from src/images/america/south/Paraguay.png rename to public/images/america/paraguay.png diff --git a/src/images/america/south/peru.png b/public/images/america/peru.png similarity index 100% rename from src/images/america/south/peru.png rename to public/images/america/peru.png diff --git a/src/images/america/Caribean/puerto_rico.png b/public/images/america/puerto_rico.png similarity index 100% rename from src/images/america/Caribean/puerto_rico.png rename to public/images/america/puerto_rico.png diff --git a/src/images/america/Caribean/republica_dominicana.png b/public/images/america/republica_dominicana.png similarity index 100% rename from src/images/america/Caribean/republica_dominicana.png rename to public/images/america/republica_dominicana.png diff --git a/src/images/america/Caribean/saint_marteen.png b/public/images/america/saint_maarten.png similarity index 100% rename from src/images/america/Caribean/saint_marteen.png rename to public/images/america/saint_maarten.png diff --git "a/src/images/america/Caribean/san_bartolom\303\251.png" b/public/images/america/san_bartolome.png similarity index 100% rename from "src/images/america/Caribean/san_bartolom\303\251.png" rename to public/images/america/san_bartolome.png diff --git a/src/images/america/Caribean/san_cristobal_y_nieves.png b/public/images/america/san_cristobal_y_nieves.png similarity index 100% rename from src/images/america/Caribean/san_cristobal_y_nieves.png rename to public/images/america/san_cristobal_y_nieves.png diff --git a/public/images/america/san_pedro_miquelon.png b/public/images/america/san_pedro_miquelon.png new file mode 100644 index 0000000..191ebdf Binary files /dev/null and b/public/images/america/san_pedro_miquelon.png differ diff --git a/src/images/america/Caribean/san_vicente_y_las_granadinas.png b/public/images/america/san_vicente_y_las_granadinas.png similarity index 100% rename from src/images/america/Caribean/san_vicente_y_las_granadinas.png rename to public/images/america/san_vicente_y_las_granadinas.png diff --git a/src/images/america/Caribean/santa_lucia.png b/public/images/america/santa_lucia.png similarity index 100% rename from src/images/america/Caribean/santa_lucia.png rename to public/images/america/santa_lucia.png diff --git a/src/images/america/south/surinam.png b/public/images/america/surinam.png similarity index 100% rename from src/images/america/south/surinam.png rename to public/images/america/surinam.png diff --git a/src/images/america/Caribean/trinidad_tobago.png b/public/images/america/trinidad_tobago.png similarity index 100% rename from src/images/america/Caribean/trinidad_tobago.png rename to public/images/america/trinidad_tobago.png diff --git a/src/images/america/North/USA.png b/public/images/america/usa.png similarity index 100% rename from src/images/america/North/USA.png rename to public/images/america/usa.png diff --git a/src/images/america/south/venezuela.png b/public/images/america/venezuela.png similarity index 100% rename from src/images/america/south/venezuela.png rename to public/images/america/venezuela.png diff --git a/public/images/asia/afganistan.png b/public/images/asia/afganistan.png new file mode 100644 index 0000000..a768504 Binary files /dev/null and b/public/images/asia/afganistan.png differ diff --git a/public/images/asia/armenia.png b/public/images/asia/armenia.png new file mode 100644 index 0000000..5326e5d Binary files /dev/null and b/public/images/asia/armenia.png differ diff --git a/public/images/asia/azerbaiyan.png b/public/images/asia/azerbaiyan.png new file mode 100644 index 0000000..750c139 Binary files /dev/null and b/public/images/asia/azerbaiyan.png differ diff --git a/public/images/asia/bahrain.png b/public/images/asia/bahrain.png new file mode 100644 index 0000000..25bc3ef Binary files /dev/null and b/public/images/asia/bahrain.png differ diff --git a/public/images/asia/bangladesh.png b/public/images/asia/bangladesh.png new file mode 100644 index 0000000..c2150e3 Binary files /dev/null and b/public/images/asia/bangladesh.png differ diff --git a/public/images/asia/brunei.png b/public/images/asia/brunei.png new file mode 100644 index 0000000..b8c934e Binary files /dev/null and b/public/images/asia/brunei.png differ diff --git a/public/images/asia/butan.png b/public/images/asia/butan.png new file mode 100644 index 0000000..1d23efc Binary files /dev/null and b/public/images/asia/butan.png differ diff --git a/public/images/asia/camboya.png b/public/images/asia/camboya.png new file mode 100644 index 0000000..6221dbc Binary files /dev/null and b/public/images/asia/camboya.png differ diff --git a/public/images/asia/catar.png b/public/images/asia/catar.png new file mode 100644 index 0000000..dafb787 Binary files /dev/null and b/public/images/asia/catar.png differ diff --git a/public/images/asia/china.png b/public/images/asia/china.png new file mode 100644 index 0000000..b0781a5 Binary files /dev/null and b/public/images/asia/china.png differ diff --git a/public/images/asia/chipre.png b/public/images/asia/chipre.png new file mode 100644 index 0000000..042cf12 Binary files /dev/null and b/public/images/asia/chipre.png differ diff --git a/public/images/asia/corea_del_norte.png b/public/images/asia/corea_del_norte.png new file mode 100644 index 0000000..4348404 Binary files /dev/null and b/public/images/asia/corea_del_norte.png differ diff --git a/public/images/asia/corea_del_sur.png b/public/images/asia/corea_del_sur.png new file mode 100644 index 0000000..00e690a Binary files /dev/null and b/public/images/asia/corea_del_sur.png differ diff --git a/public/images/asia/emiratos_arabes_unidos.png b/public/images/asia/emiratos_arabes_unidos.png new file mode 100644 index 0000000..c141788 Binary files /dev/null and b/public/images/asia/emiratos_arabes_unidos.png differ diff --git a/public/images/asia/filipinas.png b/public/images/asia/filipinas.png new file mode 100644 index 0000000..b533c6f Binary files /dev/null and b/public/images/asia/filipinas.png differ diff --git a/public/images/asia/georgia.png b/public/images/asia/georgia.png new file mode 100644 index 0000000..26a0f99 Binary files /dev/null and b/public/images/asia/georgia.png differ diff --git a/public/images/asia/hong_kong.png b/public/images/asia/hong_kong.png new file mode 100644 index 0000000..c25ac64 Binary files /dev/null and b/public/images/asia/hong_kong.png differ diff --git a/public/images/asia/india.png b/public/images/asia/india.png new file mode 100644 index 0000000..cd9945d Binary files /dev/null and b/public/images/asia/india.png differ diff --git a/public/images/asia/indonesia.png b/public/images/asia/indonesia.png new file mode 100644 index 0000000..abbced5 Binary files /dev/null and b/public/images/asia/indonesia.png differ diff --git a/public/images/asia/iran.png b/public/images/asia/iran.png new file mode 100644 index 0000000..d5b9c82 Binary files /dev/null and b/public/images/asia/iran.png differ diff --git a/public/images/asia/iraq.png b/public/images/asia/iraq.png new file mode 100644 index 0000000..2608a53 Binary files /dev/null and b/public/images/asia/iraq.png differ diff --git a/public/images/asia/israel.png b/public/images/asia/israel.png new file mode 100644 index 0000000..f2f70ce Binary files /dev/null and b/public/images/asia/israel.png differ diff --git a/public/images/asia/japon.png b/public/images/asia/japon.png new file mode 100644 index 0000000..a3edc90 Binary files /dev/null and b/public/images/asia/japon.png differ diff --git a/public/images/asia/jordania.png b/public/images/asia/jordania.png new file mode 100644 index 0000000..29dd06f Binary files /dev/null and b/public/images/asia/jordania.png differ diff --git a/public/images/asia/kazajistan.png b/public/images/asia/kazajistan.png new file mode 100644 index 0000000..8ba05e4 Binary files /dev/null and b/public/images/asia/kazajistan.png differ diff --git a/public/images/asia/kirguistan.png b/public/images/asia/kirguistan.png new file mode 100644 index 0000000..9d63190 Binary files /dev/null and b/public/images/asia/kirguistan.png differ diff --git a/public/images/asia/kuwait.png b/public/images/asia/kuwait.png new file mode 100644 index 0000000..f48bed3 Binary files /dev/null and b/public/images/asia/kuwait.png differ diff --git a/public/images/asia/laos.png b/public/images/asia/laos.png new file mode 100644 index 0000000..065467d Binary files /dev/null and b/public/images/asia/laos.png differ diff --git a/public/images/asia/libano.png b/public/images/asia/libano.png new file mode 100644 index 0000000..213a3d4 Binary files /dev/null and b/public/images/asia/libano.png differ diff --git a/public/images/asia/macao.png b/public/images/asia/macao.png new file mode 100644 index 0000000..1d2bc93 Binary files /dev/null and b/public/images/asia/macao.png differ diff --git a/public/images/asia/malasia.png b/public/images/asia/malasia.png new file mode 100644 index 0000000..96cd251 Binary files /dev/null and b/public/images/asia/malasia.png differ diff --git a/public/images/asia/maldivas.png b/public/images/asia/maldivas.png new file mode 100644 index 0000000..0b2f36a Binary files /dev/null and b/public/images/asia/maldivas.png differ diff --git a/public/images/asia/mongolia.png b/public/images/asia/mongolia.png new file mode 100644 index 0000000..3fbd334 Binary files /dev/null and b/public/images/asia/mongolia.png differ diff --git a/public/images/asia/mynmar.png b/public/images/asia/mynmar.png new file mode 100644 index 0000000..427707e Binary files /dev/null and b/public/images/asia/mynmar.png differ diff --git a/public/images/asia/nepal.png b/public/images/asia/nepal.png new file mode 100644 index 0000000..8f374c9 Binary files /dev/null and b/public/images/asia/nepal.png differ diff --git a/public/images/asia/oman.png b/public/images/asia/oman.png new file mode 100644 index 0000000..07e30f1 Binary files /dev/null and b/public/images/asia/oman.png differ diff --git a/public/images/asia/pakistan.png b/public/images/asia/pakistan.png new file mode 100644 index 0000000..0409a33 Binary files /dev/null and b/public/images/asia/pakistan.png differ diff --git a/public/images/asia/palestina.png b/public/images/asia/palestina.png new file mode 100644 index 0000000..1d6e6b7 Binary files /dev/null and b/public/images/asia/palestina.png differ diff --git a/public/images/asia/saudi_arabia.png b/public/images/asia/saudi_arabia.png new file mode 100644 index 0000000..ffce98a Binary files /dev/null and b/public/images/asia/saudi_arabia.png differ diff --git a/public/images/asia/singapur.png b/public/images/asia/singapur.png new file mode 100644 index 0000000..3c8503f Binary files /dev/null and b/public/images/asia/singapur.png differ diff --git a/public/images/asia/siria.png b/public/images/asia/siria.png new file mode 100644 index 0000000..44b365d Binary files /dev/null and b/public/images/asia/siria.png differ diff --git a/public/images/asia/sri_lanka.png b/public/images/asia/sri_lanka.png new file mode 100644 index 0000000..0e667ed Binary files /dev/null and b/public/images/asia/sri_lanka.png differ diff --git a/public/images/asia/tailandia.png b/public/images/asia/tailandia.png new file mode 100644 index 0000000..5f0a433 Binary files /dev/null and b/public/images/asia/tailandia.png differ diff --git a/public/images/asia/taiwan.png b/public/images/asia/taiwan.png new file mode 100644 index 0000000..72edbbe Binary files /dev/null and b/public/images/asia/taiwan.png differ diff --git a/public/images/asia/tayikistan.png b/public/images/asia/tayikistan.png new file mode 100644 index 0000000..cc78f0b Binary files /dev/null and b/public/images/asia/tayikistan.png differ diff --git a/public/images/asia/timor_oriental.png b/public/images/asia/timor_oriental.png new file mode 100644 index 0000000..0fb2335 Binary files /dev/null and b/public/images/asia/timor_oriental.png differ diff --git a/public/images/asia/turkmenistan.png b/public/images/asia/turkmenistan.png new file mode 100644 index 0000000..3417aee Binary files /dev/null and b/public/images/asia/turkmenistan.png differ diff --git a/public/images/asia/turquia.png b/public/images/asia/turquia.png new file mode 100644 index 0000000..0fd60ea Binary files /dev/null and b/public/images/asia/turquia.png differ diff --git a/public/images/asia/uzbekistan.png b/public/images/asia/uzbekistan.png new file mode 100644 index 0000000..04de9c1 Binary files /dev/null and b/public/images/asia/uzbekistan.png differ diff --git a/public/images/asia/vietnam.png b/public/images/asia/vietnam.png new file mode 100644 index 0000000..f0336f2 Binary files /dev/null and b/public/images/asia/vietnam.png differ diff --git a/public/images/asia/yemen.png b/public/images/asia/yemen.png new file mode 100644 index 0000000..d3948de Binary files /dev/null and b/public/images/asia/yemen.png differ diff --git a/public/images/australia/australia.png b/public/images/australia/australia.png new file mode 100644 index 0000000..90c2df2 Binary files /dev/null and b/public/images/australia/australia.png differ diff --git a/public/images/australia/isla_cocos.png b/public/images/australia/isla_cocos.png new file mode 100644 index 0000000..a6d6d7f Binary files /dev/null and b/public/images/australia/isla_cocos.png differ diff --git a/public/images/australia/isla_navidad.png b/public/images/australia/isla_navidad.png new file mode 100644 index 0000000..4908fd4 Binary files /dev/null and b/public/images/australia/isla_navidad.png differ diff --git a/public/images/australia/isla_norfolk.png b/public/images/australia/isla_norfolk.png new file mode 100644 index 0000000..8790939 Binary files /dev/null and b/public/images/australia/isla_norfolk.png differ diff --git a/public/images/australia/islas_hearld.png b/public/images/australia/islas_hearld.png new file mode 100644 index 0000000..5ecd6ce Binary files /dev/null and b/public/images/australia/islas_hearld.png differ diff --git a/public/images/australia/nueva_zelandia.png b/public/images/australia/nueva_zelandia.png new file mode 100644 index 0000000..5319153 Binary files /dev/null and b/public/images/australia/nueva_zelandia.png differ diff --git a/public/images/europe/albania.png b/public/images/europe/albania.png new file mode 100644 index 0000000..7d2b02e Binary files /dev/null and b/public/images/europe/albania.png differ diff --git a/public/images/europe/alemania.png b/public/images/europe/alemania.png new file mode 100644 index 0000000..5d6b64d Binary files /dev/null and b/public/images/europe/alemania.png differ diff --git a/public/images/europe/andorra.png b/public/images/europe/andorra.png new file mode 100644 index 0000000..c4f2854 Binary files /dev/null and b/public/images/europe/andorra.png differ diff --git a/public/images/europe/austria.png b/public/images/europe/austria.png new file mode 100644 index 0000000..3d0ce65 Binary files /dev/null and b/public/images/europe/austria.png differ diff --git a/public/images/europe/belarus.png b/public/images/europe/belarus.png new file mode 100644 index 0000000..60375db Binary files /dev/null and b/public/images/europe/belarus.png differ diff --git a/public/images/europe/belgica.png b/public/images/europe/belgica.png new file mode 100644 index 0000000..fea5fee Binary files /dev/null and b/public/images/europe/belgica.png differ diff --git a/public/images/europe/bosnia.png b/public/images/europe/bosnia.png new file mode 100644 index 0000000..36cca23 Binary files /dev/null and b/public/images/europe/bosnia.png differ diff --git a/public/images/europe/bulgaria.png b/public/images/europe/bulgaria.png new file mode 100644 index 0000000..b503b23 Binary files /dev/null and b/public/images/europe/bulgaria.png differ diff --git a/public/images/europe/chequia.png b/public/images/europe/chequia.png new file mode 100644 index 0000000..255dc76 Binary files /dev/null and b/public/images/europe/chequia.png differ diff --git a/public/images/europe/ciudad_del_vaticano.png b/public/images/europe/ciudad_del_vaticano.png new file mode 100644 index 0000000..e8c5d4e Binary files /dev/null and b/public/images/europe/ciudad_del_vaticano.png differ diff --git a/public/images/europe/croacia.png b/public/images/europe/croacia.png new file mode 100644 index 0000000..3fb5ab5 Binary files /dev/null and b/public/images/europe/croacia.png differ diff --git a/public/images/europe/dinamarca.png b/public/images/europe/dinamarca.png new file mode 100644 index 0000000..6e7aab9 Binary files /dev/null and b/public/images/europe/dinamarca.png differ diff --git a/public/images/europe/eslovaquia.png b/public/images/europe/eslovaquia.png new file mode 100644 index 0000000..bcf364d Binary files /dev/null and b/public/images/europe/eslovaquia.png differ diff --git a/public/images/europe/eslovenia.png b/public/images/europe/eslovenia.png new file mode 100644 index 0000000..74407b5 Binary files /dev/null and b/public/images/europe/eslovenia.png differ diff --git a/public/images/europe/espana.png b/public/images/europe/espana.png new file mode 100644 index 0000000..44e29fb Binary files /dev/null and b/public/images/europe/espana.png differ diff --git a/public/images/europe/estonia.png b/public/images/europe/estonia.png new file mode 100644 index 0000000..d0b0a1a Binary files /dev/null and b/public/images/europe/estonia.png differ diff --git a/public/images/europe/finlandia.png b/public/images/europe/finlandia.png new file mode 100644 index 0000000..6edb2d7 Binary files /dev/null and b/public/images/europe/finlandia.png differ diff --git a/public/images/europe/francia.png b/public/images/europe/francia.png new file mode 100644 index 0000000..555b83f Binary files /dev/null and b/public/images/europe/francia.png differ diff --git a/public/images/europe/gibraltar.png b/public/images/europe/gibraltar.png new file mode 100644 index 0000000..3631abb Binary files /dev/null and b/public/images/europe/gibraltar.png differ diff --git a/public/images/europe/grecia.png b/public/images/europe/grecia.png new file mode 100644 index 0000000..1a07dcb Binary files /dev/null and b/public/images/europe/grecia.png differ diff --git a/public/images/europe/guernsey.png b/public/images/europe/guernsey.png new file mode 100644 index 0000000..440e3a6 Binary files /dev/null and b/public/images/europe/guernsey.png differ diff --git a/public/images/europe/hungria.png b/public/images/europe/hungria.png new file mode 100644 index 0000000..25f31d0 Binary files /dev/null and b/public/images/europe/hungria.png differ diff --git a/public/images/europe/irlanda.png b/public/images/europe/irlanda.png new file mode 100644 index 0000000..5445f96 Binary files /dev/null and b/public/images/europe/irlanda.png differ diff --git a/public/images/europe/isla_man.png b/public/images/europe/isla_man.png new file mode 100644 index 0000000..fd4797b Binary files /dev/null and b/public/images/europe/isla_man.png differ diff --git a/public/images/europe/isla_san_martin.png b/public/images/europe/isla_san_martin.png new file mode 100644 index 0000000..fd4797b Binary files /dev/null and b/public/images/europe/isla_san_martin.png differ diff --git a/src/images/europe/islandia.png b/public/images/europe/islandia.png similarity index 100% rename from src/images/europe/islandia.png rename to public/images/europe/islandia.png diff --git a/public/images/europe/islas_aland.png b/public/images/europe/islas_aland.png new file mode 100644 index 0000000..b44c023 Binary files /dev/null and b/public/images/europe/islas_aland.png differ diff --git a/public/images/europe/islas_feroe.png b/public/images/europe/islas_feroe.png new file mode 100644 index 0000000..c627d2c Binary files /dev/null and b/public/images/europe/islas_feroe.png differ diff --git a/public/images/europe/italia.png b/public/images/europe/italia.png new file mode 100644 index 0000000..1e7e18d Binary files /dev/null and b/public/images/europe/italia.png differ diff --git a/public/images/europe/jersey.png b/public/images/europe/jersey.png new file mode 100644 index 0000000..4babbf3 Binary files /dev/null and b/public/images/europe/jersey.png differ diff --git a/public/images/europe/kosovo.png b/public/images/europe/kosovo.png new file mode 100644 index 0000000..e7e1f91 Binary files /dev/null and b/public/images/europe/kosovo.png differ diff --git a/public/images/europe/letonia.png b/public/images/europe/letonia.png new file mode 100644 index 0000000..c42c6f5 Binary files /dev/null and b/public/images/europe/letonia.png differ diff --git a/public/images/europe/liechtenstein.png b/public/images/europe/liechtenstein.png new file mode 100644 index 0000000..bbf8979 Binary files /dev/null and b/public/images/europe/liechtenstein.png differ diff --git a/public/images/europe/lituania.png b/public/images/europe/lituania.png new file mode 100644 index 0000000..7f41db0 Binary files /dev/null and b/public/images/europe/lituania.png differ diff --git a/public/images/europe/luxemburgo.png b/public/images/europe/luxemburgo.png new file mode 100644 index 0000000..511fff4 Binary files /dev/null and b/public/images/europe/luxemburgo.png differ diff --git a/public/images/europe/macedonia_del_norte.png b/public/images/europe/macedonia_del_norte.png new file mode 100644 index 0000000..e63f185 Binary files /dev/null and b/public/images/europe/macedonia_del_norte.png differ diff --git a/public/images/europe/malta.png b/public/images/europe/malta.png new file mode 100644 index 0000000..85a2636 Binary files /dev/null and b/public/images/europe/malta.png differ diff --git a/public/images/europe/moldavia.png b/public/images/europe/moldavia.png new file mode 100644 index 0000000..90548a4 Binary files /dev/null and b/public/images/europe/moldavia.png differ diff --git a/public/images/europe/montenegro.png b/public/images/europe/montenegro.png new file mode 100644 index 0000000..ddf0b0f Binary files /dev/null and b/public/images/europe/montenegro.png differ diff --git a/public/images/europe/noruega.png b/public/images/europe/noruega.png new file mode 100644 index 0000000..ef848cb Binary files /dev/null and b/public/images/europe/noruega.png differ diff --git a/public/images/europe/paises_bajos.png b/public/images/europe/paises_bajos.png new file mode 100644 index 0000000..33d5e67 Binary files /dev/null and b/public/images/europe/paises_bajos.png differ diff --git a/public/images/europe/polonia.png b/public/images/europe/polonia.png new file mode 100644 index 0000000..5c5a738 Binary files /dev/null and b/public/images/europe/polonia.png differ diff --git a/public/images/europe/portugal.png b/public/images/europe/portugal.png new file mode 100644 index 0000000..2d7f541 Binary files /dev/null and b/public/images/europe/portugal.png differ diff --git a/public/images/europe/principado_de_monaco.png b/public/images/europe/principado_de_monaco.png new file mode 100644 index 0000000..9f67e12 Binary files /dev/null and b/public/images/europe/principado_de_monaco.png differ diff --git a/public/images/europe/reino_unido.png b/public/images/europe/reino_unido.png new file mode 100644 index 0000000..ae273ca Binary files /dev/null and b/public/images/europe/reino_unido.png differ diff --git a/public/images/europe/rumania.png b/public/images/europe/rumania.png new file mode 100644 index 0000000..3ffe707 Binary files /dev/null and b/public/images/europe/rumania.png differ diff --git a/public/images/europe/rusia.png b/public/images/europe/rusia.png new file mode 100644 index 0000000..435c53b Binary files /dev/null and b/public/images/europe/rusia.png differ diff --git a/public/images/europe/san_marino.png b/public/images/europe/san_marino.png new file mode 100644 index 0000000..e1b480e Binary files /dev/null and b/public/images/europe/san_marino.png differ diff --git a/public/images/europe/serbia.png b/public/images/europe/serbia.png new file mode 100644 index 0000000..40c397e Binary files /dev/null and b/public/images/europe/serbia.png differ diff --git a/public/images/europe/suecia.png b/public/images/europe/suecia.png new file mode 100644 index 0000000..45e5fa2 Binary files /dev/null and b/public/images/europe/suecia.png differ diff --git a/public/images/europe/suiza.png b/public/images/europe/suiza.png new file mode 100644 index 0000000..17ede2f Binary files /dev/null and b/public/images/europe/suiza.png differ diff --git a/public/images/europe/svalbard_jan_mayen.png b/public/images/europe/svalbard_jan_mayen.png new file mode 100644 index 0000000..ef848cb Binary files /dev/null and b/public/images/europe/svalbard_jan_mayen.png differ diff --git a/public/images/europe/ukrania.png b/public/images/europe/ukrania.png new file mode 100644 index 0000000..eb83c04 Binary files /dev/null and b/public/images/europe/ukrania.png differ diff --git a/public/images/oceania/american_samoa.png b/public/images/oceania/american_samoa.png new file mode 100644 index 0000000..c003a16 Binary files /dev/null and b/public/images/oceania/american_samoa.png differ diff --git a/public/images/oceania/antarctica.png b/public/images/oceania/antarctica.png new file mode 100644 index 0000000..7db3c77 Binary files /dev/null and b/public/images/oceania/antarctica.png differ diff --git a/public/images/oceania/cook_island.png b/public/images/oceania/cook_island.png new file mode 100644 index 0000000..e34e264 Binary files /dev/null and b/public/images/oceania/cook_island.png differ diff --git a/public/images/oceania/fiji.png b/public/images/oceania/fiji.png new file mode 100644 index 0000000..6feb491 Binary files /dev/null and b/public/images/oceania/fiji.png differ diff --git a/public/images/oceania/french_polynesia.png b/public/images/oceania/french_polynesia.png new file mode 100644 index 0000000..9818b40 Binary files /dev/null and b/public/images/oceania/french_polynesia.png differ diff --git a/public/images/oceania/french_southern_antarctic_territories.png b/public/images/oceania/french_southern_antarctic_territories.png new file mode 100644 index 0000000..3495e57 Binary files /dev/null and b/public/images/oceania/french_southern_antarctic_territories.png differ diff --git a/public/images/oceania/guam.png b/public/images/oceania/guam.png new file mode 100644 index 0000000..4a942ee Binary files /dev/null and b/public/images/oceania/guam.png differ diff --git a/public/images/oceania/kiribati.png b/public/images/oceania/kiribati.png new file mode 100644 index 0000000..61ce624 Binary files /dev/null and b/public/images/oceania/kiribati.png differ diff --git a/public/images/oceania/marshall_islands.png b/public/images/oceania/marshall_islands.png new file mode 100644 index 0000000..b1f3d6d Binary files /dev/null and b/public/images/oceania/marshall_islands.png differ diff --git a/public/images/oceania/micronesia.png b/public/images/oceania/micronesia.png new file mode 100644 index 0000000..f9ec30a Binary files /dev/null and b/public/images/oceania/micronesia.png differ diff --git a/public/images/oceania/nauru.png b/public/images/oceania/nauru.png new file mode 100644 index 0000000..d126d48 Binary files /dev/null and b/public/images/oceania/nauru.png differ diff --git a/public/images/oceania/new_caledonia.png b/public/images/oceania/new_caledonia.png new file mode 100644 index 0000000..191ebdf Binary files /dev/null and b/public/images/oceania/new_caledonia.png differ diff --git a/public/images/oceania/niue.png b/public/images/oceania/niue.png new file mode 100644 index 0000000..9066bbe Binary files /dev/null and b/public/images/oceania/niue.png differ diff --git a/public/images/oceania/northern_marianas_islands.png b/public/images/oceania/northern_marianas_islands.png new file mode 100644 index 0000000..a811e57 Binary files /dev/null and b/public/images/oceania/northern_marianas_islands.png differ diff --git a/public/images/oceania/palaos.png b/public/images/oceania/palaos.png new file mode 100644 index 0000000..5b0507e Binary files /dev/null and b/public/images/oceania/palaos.png differ diff --git a/public/images/oceania/papua_new_guinea.png b/public/images/oceania/papua_new_guinea.png new file mode 100644 index 0000000..9c96197 Binary files /dev/null and b/public/images/oceania/papua_new_guinea.png differ diff --git a/public/images/oceania/pitcairn_islands.png b/public/images/oceania/pitcairn_islands.png new file mode 100644 index 0000000..7a1362c Binary files /dev/null and b/public/images/oceania/pitcairn_islands.png differ diff --git a/public/images/oceania/samoa.png b/public/images/oceania/samoa.png new file mode 100644 index 0000000..6b34ceb Binary files /dev/null and b/public/images/oceania/samoa.png differ diff --git a/public/images/oceania/solomon_islands.png b/public/images/oceania/solomon_islands.png new file mode 100644 index 0000000..b220e63 Binary files /dev/null and b/public/images/oceania/solomon_islands.png differ diff --git a/public/images/oceania/tokelau.png b/public/images/oceania/tokelau.png new file mode 100644 index 0000000..3c62894 Binary files /dev/null and b/public/images/oceania/tokelau.png differ diff --git a/public/images/oceania/tonga.png b/public/images/oceania/tonga.png new file mode 100644 index 0000000..357750a Binary files /dev/null and b/public/images/oceania/tonga.png differ diff --git a/public/images/oceania/tuvalu.png b/public/images/oceania/tuvalu.png new file mode 100644 index 0000000..c7c9b84 Binary files /dev/null and b/public/images/oceania/tuvalu.png differ diff --git a/public/images/oceania/us_minor_outlying_islands.png b/public/images/oceania/us_minor_outlying_islands.png new file mode 100644 index 0000000..4b49051 Binary files /dev/null and b/public/images/oceania/us_minor_outlying_islands.png differ diff --git a/public/images/oceania/vanuatu.png b/public/images/oceania/vanuatu.png new file mode 100644 index 0000000..50f3cee Binary files /dev/null and b/public/images/oceania/vanuatu.png differ diff --git a/public/images/oceania/wallis_futuna.png b/public/images/oceania/wallis_futuna.png new file mode 100644 index 0000000..80f2212 Binary files /dev/null and b/public/images/oceania/wallis_futuna.png differ diff --git a/src/App.js b/src/App.js index 9c6bfb4..c35b82b 100644 --- a/src/App.js +++ b/src/App.js @@ -1,18 +1,25 @@ import React from 'react'; import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; +import { Provider } from 'react-redux'; +import store from './redux/store'; import HomePage from './components/HomePage'; -import DetailsPage from './components/DetailsPage'; import Navbar from './components/Navbar'; +import Countries from './components/Countries'; +import DetailsPage from './components/DetailsPage'; // asegúrate de importar DetailsPage function App() { return ( - - - - } /> - } /> - - + + + + + } /> + } /> + } /> + } /> + + + ); } diff --git a/src/components/Countries.js b/src/components/Countries.js new file mode 100644 index 0000000..3bc1b90 --- /dev/null +++ b/src/components/Countries.js @@ -0,0 +1,104 @@ +import React, { useEffect } from 'react'; +import { useParams, Link } from 'react-router-dom'; +import { useSelector, useDispatch } from 'react-redux'; +import axios from 'axios'; +import { updateCountries, updateCountryData } from '../redux/actions/countriesActions'; +import flagsData from '../flagData'; +import '../styles/Countries.css'; + +import continent1 from '../imagesContinents/continents/africa.png'; +import continent2 from '../imagesContinents/continents/america.png'; +import continent3 from '../imagesContinents/continents/asia.png'; +import continent4 from '../imagesContinents/continents/australia.png'; +import continent5 from '../imagesContinents/continents/europa.png'; +import continent6 from '../imagesContinents/continents/oceania.png'; + +function getContinentImage(continent) { + switch (continent) { + case 'africa': + return continent1; + case 'america': + return continent2; + case 'asia': + return continent3; + case 'australia': + return continent4; + case 'europa': + return continent5; + case 'oceania': + return continent6; + default: + return null; + } +} + +const Countries = () => { + const { continent } = useParams(); + const countries = useSelector((state) => state.countries.countries); + const dispatch = useDispatch(); + + useEffect(() => { + const countriesOfContinent = flagsData[continent]; + dispatch(updateCountries(countriesOfContinent)); + }, [continent, dispatch]); + + if (!Array.isArray(countries)) { + return ( +
+

{`Error: ${continent} It is not a valid continent.`}

+
+ ); + } + + const handleCountryClick = async (country) => { + try { + const response = await axios.get(`https://restcountries.com/v3/alpha/${country.countryCode}`); + if (response.data && response.data.length > 0) { + console.log(response.data); + dispatch(updateCountryData(response.data[0])); + } else { + console.log('No se devolvieron datos válidos del país en la API'); + } + } catch (error) { + console.log('Error al obtener los datos del país:', error); + } + }; + + const capitalizeFirstLetter = ( + string, + ) => string.charAt(0).toUpperCase() + string.slice(1).toLowerCase(); + + return ( +
+ {continent} +

{capitalizeFirstLetter(continent)}

+
+ {countries.map((country) => ( + +
handleCountryClick(country)} + onKeyDown={(e) => { + if (e.key === 'Enter' || e.key === ' ') handleCountryClick(country); + }} + tabIndex="0" + role="button" + > + {country.name} +

{country.name}

+
+ + ))} +
+
+ ); +}; + +export default Countries; diff --git a/src/components/DetailsPage.js b/src/components/DetailsPage.js index c033b11..bd61ab9 100644 --- a/src/components/DetailsPage.js +++ b/src/components/DetailsPage.js @@ -1,7 +1,65 @@ import React from 'react'; +import { useSelector } from 'react-redux'; // Importamos useSelector desde react-redux +import '../styles/DetailsPage.css'; -const DetailsPage = () => ( -

Details Page

-); +const DetailsPage = () => { + // Accedemos a los datos del país desde el estado de Redux + const countryData = useSelector((state) => state.countries.countryData); + + // Verificamos que countryData no sea null o undefined + if (!countryData) { + return
Loading...
; + } + + // podemos desestructurar sus propiedades de manera segura + const { + name, capital, population, region, languages, area, flags, currencies, + } = countryData; + + // Comprobaciones antes de acceder a las propiedades + const commonName = name?.common ?? 'N/A'; + const capitalName = capital?.[0] ?? 'N/A'; + const populationCount = population ?? 'N/A'; + const regionName = region ?? 'N/A'; + const languageNames = languages ? Object.values(languages).join(', ') : 'N/A'; + const areaSize = area ?? 'N/A'; + const countryFlag = flags?.[0] ?? ''; + const countryCurrency = currencies ? Object.keys(currencies).join(', ') : 'N/A'; + + return ( +
+
+

+ {commonName} +

+ {`${commonName} +

+ Capital: + {capitalName} +

+

+ Population: + {populationCount} +

+

+ Area: + {areaSize} +

+

+ Region: + {regionName} +

+

+ Languages: + {languageNames} +

+

+ Currency: + {countryCurrency} +

+
+
+ ); +}; export default DetailsPage; diff --git a/src/components/HomePage.js b/src/components/HomePage.js index 3bc4dc2..d4500e2 100644 --- a/src/components/HomePage.js +++ b/src/components/HomePage.js @@ -1,7 +1,43 @@ import React from 'react'; +import '../styles/HomePage.css'; +import { Link } from 'react-router-dom'; + +import continent1 from '../imagesContinents/continents/africa.png'; +import continent2 from '../imagesContinents/continents/america.png'; +import continent3 from '../imagesContinents/continents/asia.png'; +import continent4 from '../imagesContinents/continents/australia.png'; +import continent5 from '../imagesContinents/continents/europa.png'; +import continent6 from '../imagesContinents/continents/oceania.png'; const HomePage = () => ( -

Home Page

+
+
+
+ + Africa + + + America + +
+
+ + Asia + + + Australia + +
+
+ + Europa + + + Oceania + +
+
+
); export default HomePage; diff --git a/src/components/Navbar.js b/src/components/Navbar.js index 9ab92ab..cf64d97 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -3,8 +3,9 @@ import { NavLink } from 'react-router-dom'; const Navbar = () => ( ); diff --git a/src/flagData.js b/src/flagData.js new file mode 100644 index 0000000..692ab4d --- /dev/null +++ b/src/flagData.js @@ -0,0 +1,1261 @@ +const flagsData = { + africa: [ + { + name: 'Argelia', + countryCode: 'DZ', + imagePath: '/images/africa/argelia.png', + }, + { + name: 'Egipto', + countryCode: 'EG', + imagePath: '/images/africa/egipto.png', + }, + { + name: 'Libia', + countryCode: 'LY', + imagePath: '/images/africa/libia.png', + }, + { + name: 'Marruecos', + countryCode: 'MA', + imagePath: '/images/africa/marruecos.png', + }, + { + name: 'Sáhara Occidental', + countryCode: 'EH', + imagePath: '/images/africa/sahara_occidental.png', + }, + { + name: 'Sudán', + countryCode: 'SD', + imagePath: '/images/africa/sudan.png', + }, + { + name: 'Sudán del Sur', + countryCode: 'SS', + imagePath: '/images/africa/sudan_del_sur.png', + }, + { + name: 'Túnez', + countryCode: 'TN', + imagePath: '/images/africa/tunez.png', + }, + { + name: 'Botsuana', + countryCode: 'BW', + imagePath: '/images/africa/botsuana.png', + }, + { + name: 'Esuatini', + countryCode: 'SZ', + imagePath: '/images/africa/esuatini.png', + }, + { + name: 'Lesotho', + countryCode: 'LS', + imagePath: '/images/africa/lesotho.png', + }, + { + name: 'Namibia', + countryCode: 'NA', + imagePath: '/images/africa/namibia.png', + }, + { + name: 'Sudáfrica', + countryCode: 'ZA', + imagePath: '/images/africa/sudafrica.png', + }, + { + name: 'Benín', + countryCode: 'BJ', + imagePath: '/images/africa/benin.png', + }, + { + name: 'Burkina Faso', + countryCode: 'BF', + imagePath: '/images/africa/burkina_faso.png', + }, + { + name: 'Cabo Verde', + countryCode: 'CV', + imagePath: '/images/africa/cabo_verde.png', + }, + { + name: 'Costa de Marfil', + countryCode: 'CI', + imagePath: '/images/africa/costa_de_marfil.png', + }, + { + name: 'Gambia', + countryCode: 'GM', + imagePath: '/images/africa/gambia.png', + }, + { + name: 'Ghana', + countryCode: 'GH', + imagePath: '/images/africa/ghana.png', + }, + { + name: 'Guinea', + countryCode: 'GN', + imagePath: '/images/africa/guinea.png', + }, + { + name: 'Guinea-Bissau', + countryCode: 'GW', + imagePath: '/images/africa/guinea_bissau.png', + }, + { + name: 'Liberia', + countryCode: 'LR', + imagePath: '/images/africa/liberia.png', + }, + { + name: 'Malí', + countryCode: 'ML', + imagePath: '/images/africa/mali.png', + }, + { + name: 'Mauritania', + countryCode: 'MR', + imagePath: '/images/africa/mauritania.png', + }, + { + name: 'Níger', + countryCode: 'NE', + imagePath: '/images/africa/niguer.png', + }, + { + name: 'Nigeria', + countryCode: 'NG', + imagePath: '/images/africa/nigeria.png', + }, + { + name: 'Santa Elena, Ascensión y Tristán de Acuña', + countryCode: 'SH', + imagePath: '/images/africa/santa_elena.png', + }, + { + name: 'Senegal', + countryCode: 'SN', + imagePath: '/images/africa/senegal.png', + }, + { + name: 'Sierra Leona', + countryCode: 'SL', + imagePath: '/images/africa/sierra_leona.png', + }, + { + name: 'Togo', + countryCode: 'TG', + imagePath: '/images/africa/togo.png', + }, + { + name: 'Burundi', + countryCode: 'BI', + imagePath: '/images/africa/burundi.png', + }, + { + name: 'Comores', + countryCode: 'KM', + imagePath: '/images/africa/comores.png', + }, + { + name: 'Eritrea', + countryCode: 'ER', + imagePath: '/images/africa/eritrea.png', + }, + { + name: 'Etiopía', + countryCode: 'ET', + imagePath: '/images/africa/etiopia.png', + }, + { + name: 'Isla Mauricio', + countryCode: 'MU', + imagePath: '/images/africa/isla_mauricio.png', + }, + { + name: 'Kenia', + countryCode: 'KE', + imagePath: '/images/africa/kenia.png', + }, + { + name: 'Madagascar', + countryCode: 'MG', + imagePath: '/images/africa/madagascar.png', + }, + { + name: 'Malaui', + countryCode: 'MW', + imagePath: '/images/africa/malawi.png', + }, + { + name: 'Mayotte', + countryCode: 'YT', + imagePath: '/images/africa/mayotte.png', + }, + { + name: 'Mozambique', + countryCode: 'MZ', + imagePath: '/images/africa/mozambique.png', + }, + { + name: 'Reunión', + countryCode: 'RE', + imagePath: '/images/africa/reinion.png', + }, + { + name: 'Ruanda', + countryCode: 'RW', + imagePath: '/images/africa/ruanda.png', + }, + { + name: 'Seychelles', + countryCode: 'SC', + imagePath: '/images/africa/seicheles.png', + }, + { + name: 'Somalia', + countryCode: 'SO', + imagePath: '/images/africa/somalia.png', + }, + { + name: 'Tanzania', + countryCode: 'TZ', + imagePath: '/images/africa/tanzania.png', + }, + { + name: 'Territorio Británico del Océano Índico', + countryCode: 'IO', + imagePath: '/images/africa/territorio_britanico_del_oceano_indico.png', + }, + { + name: 'Uganda', + countryCode: 'UG', + imagePath: '/images/africa/uganda.png', + }, + { + name: 'Yibuti', + countryCode: 'DJ', + imagePath: '/images/africa/yibuti.png', + }, + { + name: 'Zambia', + countryCode: 'ZM', + imagePath: '/images/africa/zambia.png', + }, + { + name: 'Angola', + countryCode: 'AO', + imagePath: '/images/africa/angola.png', + }, + { + name: 'Camerún', + countryCode: 'CM', + imagePath: '/images/africa/camerun.png', + }, + { + name: 'Chad', + countryCode: 'TD', + imagePath: '/images/africa/chad.png', + }, + { + name: 'Gabón', + countryCode: 'GA', + imagePath: '/images/africa/gabon.png', + }, + { + name: 'Guinea Ecuatorial', + countryCode: 'GQ', + imagePath: '/images/africa/guinea_ecuatorial.png', + }, + { + name: 'República Centroafricana', + countryCode: 'CF', + imagePath: '/images/africa/republica_centroafricana.png', + }, + { + name: 'República del Congo', + countryCode: 'CG', + imagePath: '/images/africa/republica_del_congo.png', + }, + { + name: 'República Democrática del Congo', + countryCode: 'CD', + imagePath: '/images/africa/congo.png', + }, + { + name: 'Santo Tomé y Príncipe', + countryCode: 'ST', + imagePath: '/images/africa/santo_tome.png', + }, + ], + america: [ + { + name: 'Bermudas', + countryCode: 'BM', + imagePath: '/images/america/bermudas.png', + }, + { + name: 'Canadá', + countryCode: 'CA', + imagePath: '/images/america/canada.png', + }, + { + name: 'Estados Unidos de América', + countryCode: 'US', + imagePath: '/images/america/usa.png', + }, + { + name: 'Groenlandia', + countryCode: 'GL', + imagePath: '/images/america/groenlandia.png', + }, + { + name: 'San Pedro y Miquelón', + countryCode: 'PM', + imagePath: '/images/america/san_pedro_miquelon.png', + }, + { + name: 'Belize', + countryCode: 'BZ', + imagePath: '/images/america/belize.png', + }, + { + name: 'Costa Rica', + countryCode: 'CR', + imagePath: '/images/america/costa_rica.png', + }, + { + name: 'El Salvador', + countryCode: 'SV', + imagePath: '/images/america/el_salvador.png', + }, + { + name: 'Guatemala', + countryCode: 'GT', + imagePath: '/images/america/guatemala.png', + }, + { + name: 'Honduras', + countryCode: 'HN', + imagePath: '/images/america/honduras.png', + }, + { + name: 'México', + countryCode: 'MX', + imagePath: '/images/america/mexico.png', + }, + { + name: 'Nicaragua', + countryCode: 'NI', + imagePath: '/images/america/nicaragua.png', + }, + { + name: 'Panamá', + countryCode: 'PA', + imagePath: '/images/america/panama.png', + }, + { + name: 'Argentina', + countryCode: 'AR', + imagePath: '/images/america/argentina.png', + }, + { + name: 'Bolivia', + countryCode: 'BO', + imagePath: '/images/america/bolivia.png', + }, + { + name: 'Brasil', + countryCode: 'BR', + imagePath: '/images/america/brasil.png', + }, + { + name: 'Chile', + countryCode: 'CL', + imagePath: '/images/america/chile.png', + }, + { + name: 'Colombia', + countryCode: 'CO', + imagePath: '/images/america/colombia.png', + }, + { + name: 'Ecuador', + countryCode: 'EC', + imagePath: '/images/america/ecuador.png', + }, + { + name: 'Georgia del Sur y las Islas Sandwich del Sur', + countryCode: 'GS', + imagePath: '/images/america/georgia_del_sur.png', + }, + { + name: 'Guayana', + countryCode: 'GY', + imagePath: '/images/america/guayana.png', + }, + { + name: 'Guayana Francesa', + countryCode: 'GF', + imagePath: '/images/america/guayana_francesa.png', + }, + { + name: 'Isla Bouvet', + countryCode: 'BV', + imagePath: '/images/america/isla_bouvet.png', + }, + { + name: 'Islas Malvinas', + countryCode: 'FK', + imagePath: '/images/america/islas_malvinas.png', + }, + { + name: 'Paraguay', + countryCode: 'PY', + imagePath: '/images/america/paraguay.png', + }, + { + name: 'Perú', + countryCode: 'PE', + imagePath: '/images/america/peru.png', + }, + { + name: 'Surinam', + countryCode: 'SR', + imagePath: '/images/america/surinam.png', + }, + { + name: 'Uruguay', + countryCode: 'UY', + imagePath: '/images/america/uruguay.png', + }, + { + name: 'Venezuela', + countryCode: 'VE', + imagePath: '/images/america/venezuela.png', + }, + { + name: 'Anguila', + countryCode: 'AI', + imagePath: '/images/america/anguila.png', + }, + { + name: 'Antigua y Barbuda', + countryCode: 'AG', + imagePath: '/images/america/antigua_y_barbuda.png', + }, + { + name: 'Aruba', + countryCode: 'AW', + imagePath: '/images/america/aruba.png', + }, + { + name: 'Bahamas', + countryCode: 'BS', + imagePath: '/images/america/bahamas.png', + }, + { + name: 'Barbados', + countryCode: 'BB', + imagePath: '/images/america/barbados.png', + }, + { + name: 'Caribe Neerlandés', + countryCode: 'BQ', + imagePath: '/images/america/caribe_neerlandes.png', + }, + { + name: 'Cuba', + countryCode: 'CU', + imagePath: '/images/america/cuba.png', + }, + { + name: 'Curaçao', + countryCode: 'CW', + imagePath: '/images/america/curacao.png', + }, + { + name: 'Dominica', + countryCode: 'DM', + imagePath: '/images/america/dominica.png', + }, + { + name: 'Granada', + countryCode: 'GD', + imagePath: '/images/america/granada.png', + }, + { + name: 'Guadalupe', + countryCode: 'GP', + imagePath: '/images/america/guadalupe.png', + }, + { + name: 'Haití', + countryCode: 'HT', + imagePath: '/images/america/haiti.png', + }, + { + name: 'Isla de San Martín', + countryCode: 'MF', + imagePath: '/images/america/isla_san_martin.png', + }, + { + name: 'Islas Caimán', + countryCode: 'KY', + imagePath: '/images/america/islas_caiman.png', + }, + { + name: 'Islas Turcas y Caicos', + countryCode: 'TC', + imagePath: '/images/america/islas_turcas.png', + }, + { + name: 'Islas Vírgenes (UK)', + countryCode: 'VG', + imagePath: '/images/america/islas_virgenes_uk.png', + }, + { + name: 'Islas Vírgenes Americanas', + countryCode: 'VI', + imagePath: '/images/america/islas_virgenes_americanas.png', + }, + { + name: 'Jamaica', + countryCode: 'JM', + imagePath: '/images/america/jamaica.png', + }, + { + name: 'Martinica', + countryCode: 'MQ', + imagePath: '/images/america/martinica.png', + }, + { + name: 'Montserrat', + countryCode: 'MS', + imagePath: '/images/america/montserrat.png', + }, + { + name: 'Puerto Rico', + countryCode: 'PR', + imagePath: '/images/america/puerto_rico.png', + }, + { + name: 'República Dominicana', + countryCode: 'DO', + imagePath: '/images/america/republica_dominicana.png', + }, + { + name: 'San Bartolomé', + countryCode: 'BL', + imagePath: '/images/america/san_bartolome.png', + }, + { + name: 'San Cristóbal y Nieves', + countryCode: 'KN', + imagePath: '/images/america/san_cristobal_y_nieves.png', + }, + { + name: 'San Vicente y las Granadinas', + countryCode: 'VC', + imagePath: '/images/america/san_vicente_y_las_granadinas.png', + }, + { + name: 'Santa Lucía', + countryCode: 'LC', + imagePath: '/images/america/santa_lucia.png', + }, + { + name: 'Saint Maarten', + countryCode: 'SX', + imagePath: '/images/america/saint_maarten.png', + }, + { + name: 'Trinidad y Tobago', + countryCode: 'TT', + imagePath: '/images/america/trinidad_tobago.png', + }, + ], + asia: [ + { + name: 'Japón', + countryCode: 'JP', + imagePath: '/images/asia/japon.png', + }, + { + name: 'China', + countryCode: 'CN', + imagePath: '/images/asia/china.png', + }, + { + name: 'Arabia Saudita', + countryCode: 'SA', + imagePath: '/images/asia/saudi_arabia.png', + }, + { + name: 'Armenia', + countryCode: 'AM', + imagePath: '/images/asia/armenia.png', + }, + { + name: 'Azerbaiyán', + countryCode: 'AZ', + imagePath: '/images/asia/azerbaiyan.png', + }, + { + name: 'Bahrein', + countryCode: 'BH', + imagePath: '/images/asia/bahrain.png', + }, + { + name: 'Catar', + countryCode: 'QA', + imagePath: '/images/asia/catar.png', + }, + { + name: 'Chipre', + countryCode: 'CY', + imagePath: '/images/asia/chipre.png', + }, + { + name: 'Emiratos Árabes Unidos', + countryCode: 'AE', + imagePath: '/images/asia/emiratos_arabes_unidos.png', + }, + { + name: 'Georgia', + countryCode: 'GE', + imagePath: '/images/asia/georgia.png', + }, + { + name: 'Iraq', + countryCode: 'IQ', + imagePath: '/images/asia/iraq.png', + }, + { + name: 'Israel', + countryCode: 'IL', + imagePath: '/images/asia/israel.png', + }, + { + name: 'Jordania', + countryCode: 'JO', + imagePath: '/images/asia/jordania.png', + }, + { + name: 'Kuwait', + countryCode: 'KW', + imagePath: '/images/asia/kuwait.png', + }, + { + name: 'Líbano', + countryCode: 'LB', + imagePath: '/images/asia/libano.png', + }, + { + name: 'Omán', + countryCode: 'OM', + imagePath: '/images/asia/oman.png', + }, + { + name: 'Palestina', + countryCode: 'PS', + imagePath: '/images/asia/palestina.png', + }, + { + name: 'Siria', + countryCode: 'SY', + imagePath: '/images/asia/siria.png', + }, + { + name: 'Turquía', + countryCode: 'TR', + imagePath: '/images/asia/turquia.png', + }, + { + name: 'Yemen', + countryCode: 'YE', + imagePath: '/images/asia/yemen.png', + }, + { + name: 'Kazajistán', + countryCode: 'KZ', + imagePath: '/images/asia/kazajistan.png', + }, + { + name: 'Kirguistán', + countryCode: 'KG', + imagePath: '/images/asia/kirguistan.png', + }, + { + name: 'Tayikistán', + countryCode: 'TJ', + imagePath: '/images/asia/tayikistan.png', + }, + { + name: 'Turkmenistán', + countryCode: 'TM', + imagePath: '/images/asia/turkmenistan.png', + }, + { + name: 'Uzbekistán', + countryCode: 'UZ', + imagePath: '/images/asia/uzbekistan.png', + }, + { + name: 'Afganistán', + countryCode: 'AF', + imagePath: '/images/asia/afganistan.png', + }, + { + name: 'Bangladesh', + countryCode: 'BD', + imagePath: '/images/asia/bangladesh.png', + }, + { + name: 'Bután', + countryCode: 'BT', + imagePath: '/images/asia/butan.png', + }, + { + name: 'India', + countryCode: 'IN', + imagePath: '/images/asia/india.png', + }, + { + name: 'Irán', + countryCode: 'IR', + imagePath: '/images/asia/iran.png', + }, + { + name: 'Maldivas', + countryCode: 'MV', + imagePath: '/images/asia/maldivas.png', + }, + { + name: 'Nepal', + countryCode: 'NP', + imagePath: '/images/asia/nepal.png', + }, + { + name: 'Pakistán', + countryCode: 'PK', + imagePath: '/images/asia/pakistan.png', + }, + { + name: 'Sri Lanka', + countryCode: 'LK', + imagePath: '/images/asia/sri_lanka.png', + }, + { + name: 'Brunéi', + countryCode: 'BN', + imagePath: '/images/asia/brunei.png', + }, + { + name: 'Camboya', + countryCode: 'KH', + imagePath: '/images/asia/camboya.png', + }, + { + name: 'Filipinas', + countryCode: 'PH', + imagePath: '/images/asia/filipinas.png', + }, + { + name: 'Indonesia', + countryCode: 'ID', + imagePath: '/images/asia/indonesia.png', + }, + { + name: 'Laos', + countryCode: 'LA', + imagePath: '/images/asia/laos.png', + }, + { + name: 'Malasia', + countryCode: 'MY', + imagePath: '/images/asia/malasia.png', + }, + { + name: 'Myanmar', + countryCode: 'MM', + imagePath: '/images/asia/mynmar.png', + }, + { + name: 'Singapur', + countryCode: 'SG', + imagePath: '/images/asia/singapur.png', + }, + { + name: 'Tailandia', + countryCode: 'TH', + imagePath: '/images/asia/tailandia.png', + }, + { + name: 'Timor Oriental', + countryCode: 'TL', + imagePath: '/images/asia/timor_oriental.png', + }, + { + name: 'Vietnam', + countryCode: 'VN', + imagePath: '/images/asia/vietnam.png', + }, + { + name: 'Corea del Norte', + countryCode: 'KP', + imagePath: '/images/asia/corea_del_norte.png', + }, + { + name: 'Corea del Sur', + countryCode: 'KR', + imagePath: '/images/asia/corea_del_sur.png', + }, + { + name: 'Hong Kong', + countryCode: 'HK', + imagePath: '/images/asia/hong_kong.png', + }, + { + name: 'Macao', + countryCode: 'MO', + imagePath: '/images/asia/macao.png', + }, + { + name: 'Mongolia', + countryCode: 'MN', + imagePath: '/images/asia/mongolia.png', + }, + { + name: 'Taiwán', + countryCode: 'TW', + imagePath: '/images/asia/taiwan.png', + }, + ], + australia: [ + { + name: 'Australia', + countryCode: 'AU', + imagePath: '/images/australia/australia.png', + }, + { + name: 'Isla de Navidad', + countryCode: 'CX', + imagePath: '/images/australia/isla_navidad.png', + }, + { + name: 'Isla Norfolk', + countryCode: 'NF', + imagePath: '/images/australia/isla_norfolk.png', + }, + { + name: 'Islas Cocos', + countryCode: 'CC', + imagePath: '/images/australia/isla_cocos.png', + }, + { + name: 'Islas Heard y McDonald', + countryCode: 'HM', + imagePath: '/images/australia/islas_hearld.png', + }, + { + name: 'Nueva Zelandia', + countryCode: 'NZ', + imagePath: '/images/australia/nueva_zelandia.png', + }, + ], + europa: [ + { + name: 'Alemania', + countryCode: 'DE', + imagePath: '/images/europe/alemania.png', + }, + { + name: 'Austria', + countryCode: 'AT', + imagePath: '/images/europe/austria.png', + }, + { + name: 'Bélgica', + countryCode: 'BE', + imagePath: '/images/europe/belgica.png', + }, + { + name: 'Francia', + countryCode: 'FR', + imagePath: '/images/europe/francia.png', + }, + { + name: 'Liechtenstein', + countryCode: 'LI', + imagePath: '/images/europe/liechtenstein.png', + }, + { + name: 'Luxemburgo', + countryCode: 'LU', + imagePath: '/images/europe/luxemburgo.png', + }, + { + name: 'Países Bajos', + countryCode: 'NL', + imagePath: '/images/europe/paises_bajos.png', + }, + { + name: 'Principado de Mónaco', + countryCode: 'MC', + imagePath: '/images/europe/principado_de_monaco.png', + }, + { + name: 'Suiza', + countryCode: 'CH', + imagePath: '/images/europe/suiza.png', + }, + { + name: 'Belarús', + countryCode: 'BY', + imagePath: '/images/europe/belarus.png', + }, + { + name: 'Bulgaria', + countryCode: 'BG', + imagePath: '/images/europe/bulgaria.png', + }, + { + name: 'Chequia', + countryCode: 'CZ', + imagePath: '/images/europe/chequia.png', + }, + { + name: 'Eslovaquia', + countryCode: 'SK', + imagePath: '/images/europe/eslovaquia.png', + }, + { + name: 'Hungría', + countryCode: 'HU', + imagePath: '/images/europe/hungria.png', + }, + { + name: 'Moldavia', + countryCode: 'MD', + imagePath: '/images/europe/moldavia.png', + }, + { + name: 'Polonia', + countryCode: 'PL', + imagePath: '/images/europe/polonia.png', + }, + { + name: 'Rumania', + countryCode: 'RO', + imagePath: '/images/europe/rumania.png', + }, + { + name: 'Rusia', + countryCode: 'RU', + imagePath: '/images/europe/rusia.png', + }, + { + name: 'Ucrania', + countryCode: 'UA', + imagePath: '/images/europe/ukrania.png', + }, + { + name: 'Bailía de Guernsey', + countryCode: 'GG', + imagePath: '/images/europe/guernsey.png', + }, + { + name: 'Dinamarca', + countryCode: 'DK', + imagePath: '/images/europe/dinamarca.png', + }, + { + name: 'Estonia', + countryCode: 'EE', + imagePath: '/images/europe/estonia.png', + }, + { + name: 'Finlandia', + countryCode: 'FI', + imagePath: '/images/europe/finlandia.png', + }, + { + name: 'Irlanda', + countryCode: 'IE', + imagePath: '/images/europe/irlanda.png', + }, + { + name: 'Isla de Man', + countryCode: 'IM', + imagePath: '/images/europe/isla_man.png', + }, + { + name: 'Islandia', + countryCode: 'IS', + imagePath: '/images/europe/islandia.png', + }, + { + name: 'Islas Åland', + countryCode: 'AX', + imagePath: '/images/europe/islas_aland.png', + }, + { + name: 'Islas Feroe', + countryCode: 'FO', + imagePath: '/images/europe/islas_feroe.png', + }, + { + name: 'Jersey', + countryCode: 'JE', + imagePath: '/images/europe/jersey.png', + }, + { + name: 'Letonia', + countryCode: 'LV', + imagePath: '/images/europe/letonia.png', + }, + { + name: 'Lituania', + countryCode: 'LT', + imagePath: '/images/europe/lituania.png', + }, + { + name: 'Noruega', + countryCode: 'NO', + imagePath: '/images/europe/noruega.png', + }, + { + name: 'Reino Unido', + countryCode: 'GB', + imagePath: '/images/europe/reino_unido.png', + }, + { + name: 'Suecia', + countryCode: 'SE', + imagePath: '/images/europe/suecia.png', + }, + { + name: 'Svalbard y Jan Mayen', + countryCode: 'SJ', + imagePath: '/images/europe/svalbard_jan_mayen.png', + }, + { + name: 'Albania', + countryCode: 'AL', + imagePath: '/images/europe/albania.png', + }, + { + name: 'Andorra', + countryCode: 'AD', + imagePath: '/images/europe/andorra.png', + }, + { + name: 'Bosnia y Hercegovina', + countryCode: 'BA', + imagePath: '/images/europe/bosnia.png', + }, + { + name: 'Ciudad del Vaticano', + countryCode: 'VA', + imagePath: '/images/europe/ciudad_del_vaticano.png', + }, + { + name: 'Croacia', + countryCode: 'HR', + imagePath: '/images/europe/croacia.png', + }, + { + name: 'Eslovenia', + countryCode: 'SI', + imagePath: '/images/europe/eslovenia.png', + }, + { + name: 'España', + countryCode: 'ES', + imagePath: '/images/europe/espana.png', + }, + { + name: 'Gibraltar', + countryCode: 'GI', + imagePath: '/images/europe/gibraltar.png', + }, + { + name: 'Grecia', + countryCode: 'GR', + imagePath: '/images/europe/grecia.png', + }, + { + name: 'Italia', + countryCode: 'IT', + imagePath: '/images/europe/italia.png', + }, + { + name: 'Kosovo', + countryCode: 'XK', + imagePath: '/images/europe/kosovo.png', + }, + { + name: 'Macedonia del Norte', + countryCode: 'MK', + imagePath: '/images/europe/macedonia_del_norte.png', + }, + { + name: 'Malta', + countryCode: 'MT', + imagePath: '/images/europe/malta.png', + }, + { + name: 'Montenegro', + countryCode: 'ME', + imagePath: '/images/europe/montenegro.png', + }, + { + name: 'Portugal', + countryCode: 'PT', + imagePath: '/images/europe/portugal.png', + }, + { + name: 'San Marino', + countryCode: 'SM', + imagePath: '/images/europe/san_marino.png', + }, + { + name: 'Serbia', + countryCode: 'RS', + imagePath: '/images/europe/serbia.png', + }, + ], + oceania: [ + { + name: 'Islas Cook', + countryCode: 'CK', + imagePath: '/images/oceania/cook_island.png', + }, + { + name: 'Islas Pitcairn', + countryCode: 'PN', + imagePath: '/images/oceania/pitcairn_islands.png', + }, + { + name: 'Niue', + countryCode: 'NU', + imagePath: '/images/oceania/niue.png', + }, + { + name: 'Polinesia Francesa', + countryCode: 'PF', + imagePath: '/images/oceania/french_polynesia.png', + }, + { + name: 'Samoa', + countryCode: 'WS', + imagePath: '/images/oceania/samoa.png', + }, + { + name: 'Samoa Americana', + countryCode: 'AS', + imagePath: '/images/oceania/american_samoa.png', + }, + { + name: 'Tokelau', + countryCode: 'TK', + imagePath: '/images/oceania/tokelau.png', + }, + { + name: 'Tonga', + countryCode: 'TO', + imagePath: '/images/oceania/tonga.png', + }, + { + name: 'Tuvalu', + countryCode: 'TV', + imagePath: '/images/oceania/tuvalu.png', + }, + { + name: 'Wallis y Futuna', + countryCode: 'WF', + imagePath: '/images/oceania/wallis_futuna.png', + }, + { + name: 'Fiyi', + countryCode: 'FJ', + imagePath: '/images/oceania/fiji.png', + }, + { + name: 'Islas Salomón', + countryCode: 'SB', + imagePath: '/images/oceania/solomon_islands.png', + }, + { + name: 'Nueva Caledonia', + countryCode: 'NC', + imagePath: '/images/oceania/new_caledonia.png', + }, + { + name: 'Papúa Nueva Guinea', + countryCode: 'PG', + imagePath: '/images/oceania/papua_new_guinea.png', + }, + { + name: 'Vanuatu', + countryCode: 'VU', + imagePath: '/images/oceania/vanuatu.png', + }, + { + name: 'Estados Federados de Micronesia', + countryCode: 'FM', + imagePath: '/images/oceania/micronesia.png', + }, + { + name: 'Guam', + countryCode: 'GU', + imagePath: '/images/oceania/guam.png', + }, + { + name: 'Islas Marianas del Norte', + countryCode: 'MP', + imagePath: '/images/oceania/northern_marianas_islands.png', + }, + { + name: 'Islas Marshall', + countryCode: 'MH', + imagePath: '/images/oceania/marshall_islands.png', + }, + { + name: 'Islas ultramarinas menores de los Estados Unidos', + countryCode: 'UM', + imagePath: '/images/oceania/us_minor_outlying_islands.png', + }, + { + name: 'Kiribati', + countryCode: 'KI', + imagePath: '/images/oceania/kiribati.png', + }, + { + name: 'Nauru', + countryCode: 'NR', + imagePath: '/images/oceania/nauru.png', + }, + { + name: 'Palaos', + countryCode: 'PW', + imagePath: '/images/oceania/palaos.png', + }, + { + name: 'Antártida', + countryCode: 'AQ', + imagePath: '/images/oceania/antarctica.png', + }, + { + name: 'Territorios Australes y Antárticos Franceses', + countryCode: 'TF', + imagePath: '/images/oceania/french_southern_antarctic_territories.png', + }, + ], +}; + +export default flagsData; diff --git a/src/images/continents/map-afrika.png b/src/imagesContinents/continents/africa.png similarity index 100% rename from src/images/continents/map-afrika.png rename to src/imagesContinents/continents/africa.png diff --git a/src/images/continents/map-amerika.png b/src/imagesContinents/continents/america.png similarity index 100% rename from src/images/continents/map-amerika.png rename to src/imagesContinents/continents/america.png diff --git a/src/images/continents/map-asien.png b/src/imagesContinents/continents/asia.png similarity index 100% rename from src/images/continents/map-asien.png rename to src/imagesContinents/continents/asia.png diff --git a/src/images/continents/map-australien.png b/src/imagesContinents/continents/australia.png similarity index 100% rename from src/images/continents/map-australien.png rename to src/imagesContinents/continents/australia.png diff --git a/src/images/continents/map-europa.png b/src/imagesContinents/continents/europa.png similarity index 100% rename from src/images/continents/map-europa.png rename to src/imagesContinents/continents/europa.png diff --git a/src/images/continents/map-ozeanien.png b/src/imagesContinents/continents/oceania.png similarity index 100% rename from src/images/continents/map-ozeanien.png rename to src/imagesContinents/continents/oceania.png diff --git a/src/imagesContinents/continents/world.png b/src/imagesContinents/continents/world.png new file mode 100644 index 0000000..8c359b3 Binary files /dev/null and b/src/imagesContinents/continents/world.png differ diff --git a/src/redux/actions/countriesActions.js b/src/redux/actions/countriesActions.js new file mode 100644 index 0000000..3ad6037 --- /dev/null +++ b/src/redux/actions/countriesActions.js @@ -0,0 +1,11 @@ +const updateCountries = (countries) => ({ + type: 'UPDATE_COUNTRIES', + payload: countries, +}); + +const updateCountryData = (countryData) => ({ + type: 'UPDATE_COUNTRY_DATA', + payload: countryData, +}); + +export { updateCountries, updateCountryData }; diff --git a/src/redux/airQualityActions.js b/src/redux/airQualityActions.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/redux/airQualityReducer.js b/src/redux/airQualityReducer.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/redux/reducers/countriesReducer.js b/src/redux/reducers/countriesReducer.js new file mode 100644 index 0000000..e1ae860 --- /dev/null +++ b/src/redux/reducers/countriesReducer.js @@ -0,0 +1,23 @@ +const initialState = { + countries: [], + countryData: null, +}; + +const countriesReducer = (state = initialState, action) => { + switch (action.type) { + case 'UPDATE_COUNTRIES': + return { + ...state, + countries: action.payload, + }; + case 'UPDATE_COUNTRY_DATA': + return { + ...state, + countryData: action.payload, + }; + default: + return state; + } +}; + +export default countriesReducer; diff --git a/src/redux/reducers/rootReducer.js b/src/redux/reducers/rootReducer.js new file mode 100644 index 0000000..c951965 --- /dev/null +++ b/src/redux/reducers/rootReducer.js @@ -0,0 +1,9 @@ +import { combineReducers } from 'redux'; +import countriesReducer from './countriesReducer'; + +const rootReducer = combineReducers({ + countries: countriesReducer, + // Otros reducers si los tienes. +}); + +export default rootReducer; diff --git a/src/redux/store.js b/src/redux/store.js index e69de29..a8e5ad6 100644 --- a/src/redux/store.js +++ b/src/redux/store.js @@ -0,0 +1,10 @@ +import { configureStore } from '@reduxjs/toolkit'; +import countriesReducer from './reducers/countriesReducer'; + +const store = configureStore({ + reducer: { + countries: countriesReducer, + }, +}); + +export default store; diff --git a/src/styles/Countries.css b/src/styles/Countries.css new file mode 100644 index 0000000..7d736a8 --- /dev/null +++ b/src/styles/Countries.css @@ -0,0 +1,17 @@ +.countries-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); /* Dos columnas con tamaño igual */ + gap: 20px; /* Espacio entre los elementos */ +} + +.country-item { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; +} + +img { + width: 100px; /* Ajusta el tamaño de la bandera */ + height: auto; +} diff --git a/src/styles/DetailsPage.css b/src/styles/DetailsPage.css new file mode 100644 index 0000000..c9beb49 --- /dev/null +++ b/src/styles/DetailsPage.css @@ -0,0 +1,31 @@ +.details-container { + padding: 2em; +} + +.details-header { + display: flex; + align-items: center; + gap: 2em; +} + +.country-flag { + width: 100px; + height: auto; +} + +.details-main { + display: flex; + justify-content: space-around; + align-items: start; + margin-top: 2em; +} + +.details-info { + width: 45%; +} + +.details-map { + width: 45%; + height: 400px; /* Altura del mapa */ + background: #e0e0e0; /* Color de fondo temporal hasta que se cargue el mapa */ +} diff --git a/src/styles/HomePage.css b/src/styles/HomePage.css new file mode 100644 index 0000000..7acd4f0 --- /dev/null +++ b/src/styles/HomePage.css @@ -0,0 +1,29 @@ +.home-page { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; +} + +img { + width: 45%; + max-width: 300px; + height: auto; +} + +.continent-grid { + display: flex; + flex-wrap: wrap; + justify-content: center; + max-width: 900px; + margin: 0 auto; +} + +.continent-row { + display: flex; + justify-content: space-around; + width: 100%; + max-width: 600px; + margin-bottom: 20px; +}