Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
83388f1
prueba Analiz
analizanaya Feb 16, 2023
e587d0c
Merge pull request #1 from mijitanita/rama-prueba
mijitanita Feb 17, 2023
f36ef4f
Co-authored-by: mijitanita <mijitanita@users.noreply.github.com>
analizanaya Feb 17, 2023
9bb012f
prueba1
analizanaya Feb 21, 2023
c3c4b97
prueba git
analizanaya Feb 22, 2023
9cdec02
numero pokemon
mijitanita Feb 22, 2023
03fff6e
cambio de pokemon 001999 a 001
analizanaya Feb 22, 2023
3243bb8
header responsive ok
mijitanita Feb 22, 2023
115fe01
formato de cards
analizanaya Feb 23, 2023
ebd653f
css de tarjeta 2
analizanaya Feb 24, 2023
a3f8e1a
css con operadores ternarios
analizanaya Feb 24, 2023
b397f9a
Co-authored-by: analizanaya <analizanaya@users.noreply.github.com>
mijitanita Feb 24, 2023
8c52c6c
css completo
mijitanita Feb 24, 2023
8f8fc0f
family weith
analizanaya Feb 27, 2023
44ae0d7
Merge branch 'rama-prueba' of https://github.com/mijitanita/DEV004-da…
mijitanita Feb 27, 2023
b7d7a09
prueba deploy
analizanaya Feb 27, 2023
6d3d73e
cambio de 500 por 600
analizanaya Feb 27, 2023
ccc06ae
prueba deploy
analizanaya Feb 28, 2023
e4c0bdc
Merge branch 'rama-prueba' of https://github.com/mijitanita/DEV004-da…
analizanaya Feb 28, 2023
11b704c
import export
analizanaya Feb 28, 2023
b486b7d
filtroNombre1
analizanaya Mar 1, 2023
6cf6ed7
filtro nombre
analizanaya Mar 2, 2023
a9ebbcc
filtrotipo
mijitanita Mar 2, 2023
42143c6
ordenaralturaascendente
mijitanita Mar 3, 2023
d0e9e74
ordenarcompleto
mijitanita Mar 3, 2023
27b468b
cssfunciones-mov-tab
mijitanita Mar 4, 2023
479e18d
csshu3
mijitanita Mar 4, 2023
97a4f57
HU4
mijitanita Mar 6, 2023
91b6d98
HU4
analizanaya Mar 7, 2023
bdf89fc
pruebas unitarias
analizanaya Mar 8, 2023
5a5f1ea
readme
mijitanita Mar 8, 2023
ef9dcb5
calcular movil
analizanaya Mar 9, 2023
dc16ecf
los 251 pokemones
analizanaya Mar 9, 2023
5693081
test calculando
mijitanita Mar 9, 2023
530683d
eliminamos fn ordenar talla
mijitanita Mar 9, 2023
8152a9f
ultimos cambios
analizanaya Mar 9, 2023
b0236de
css laptop hp
mijitanita Mar 11, 2023
c556173
responsive laptop 1366px
mijitanita Mar 11, 2023
2799626
css responsive movil 412 px
mijitanita Mar 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added HI1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
674 changes: 59 additions & 615 deletions README.md

Large diffs are not rendered by default.

Binary file added esquinero-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7,519 changes: 7,519 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"htmlhint": "htmlhint src/*.html test/*.html",
"eslint": "eslint --ext .js src/ test/",
"pretest": "npm run eslint && npm run htmlhint",
"pretest_": "npm run eslint && npm run htmlhint",
"test": "jest --verbose --coverage",
"open-coverage-report": "opener ./coverage/lcov-report/index.html",
"start": "serve src/",
Expand All @@ -19,7 +19,7 @@
"eslint": "^8.3.0",
"gh-pages": "^3.1.0",
"htmlhint": "^1.0.0",
"jest": "^27.0.1",
"jest": "^27.5.1",
"opener": "^1.5.1",
"serve": "^13.0.2"
},
Expand All @@ -31,4 +31,4 @@
"version": "5.5.0",
"commit": "cfda4de1f41e0c3000c47f91ce20a1bfe5281b4a"
}
}
}
Binary file added prototipoAltaHU2.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipoAltaHU3.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipoAltaHU4.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipobaja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 49 additions & 7 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,51 @@
// estas funciones son de ejemplo
// filtrar, ordenar y calcular

export const example = () => {
return 'example';
};
export function filtrarPokemon(arreglo, name) {
const resultado = arreglo.filter((elemento) => elemento.name.includes(name));
return resultado;
}
export function filtrarTipo(arreglo, type) {
const resultadotipo = arreglo.filter((elemento) =>
elemento.type.includes(type)
);
return resultadotipo;
}

export const anotherExample = () => {
return 'OMG';
};
export function filtrarResistencia(arreglo, resistant) {
const resultadoResistant = arreglo.filter((elemento) =>
elemento.resistant.includes(resistant)
);
return resultadoResistant;
}

export function filtrarDebilidad(arreglo, weaknesses) {
const resultadoWeaknesses = arreglo.filter((elemento) =>
elemento.weaknesses.includes(weaknesses)
);
return resultadoWeaknesses;
}

export function ordenarCp(arreglo, option) {
const ordenaCp = arreglo.sort((a, b) => {
if (option === 1) {
//console.log(a.size.height.substr(0, a.size.height.length-1))//
return a.stats["max-cp"] - b.stats["max-cp"];
} else {
return b.stats["max-cp"] - a.stats["max-cp"];
}
});

return ordenaCp;
}
export function calculando(arreglo, type) {
let contador = 0;
for (let i = 0; i < arreglo.length; i++) {
if (arreglo[i].type.includes(type)) {
contador++;
}
}
const calculando = (contador / arreglo.length) * 100;


return calculando;
}
Binary file added src/imagenes/ash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagenes/candy-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagenes/egg-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagenes/fondo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagenes/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imagenes/pokemones_Mesa de trabajo 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
198 changes: 187 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,188 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Data Lovers</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="root"></div>
<script src="main.js" type="module"></script>
</body>
</html>
<html lang="es">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Lovers</title>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,500;1,500&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Jost:ital,wght@0,500;1,500&display=swap" rel="stylesheet">
</head>

<body>
<header>
<article>
<section class="bienvenida">
<p class="palabra1">¿Qué % es el tipo de mis</p>
<p class="palabra3">FAVORITOS?</p>

<select id="calcular" class="calcular">
<option disabled selected>Calcula AQUÍ</option>
<option value="grass">Grass</option>
<option value="poison">Poison</option>
<option value="water">Water</option>
<option value="fire">Fire</option>
<option value="flying">Flying</option>
<option value="normal">Normal</option>
<option value="ice">Ice</option>
<option value="electric">Electric</option>
<option value="rock">Rock</option>
<option value="bug">Bug</option>
<option value="dark">Dark</option>
<option value="dragon">Dragon</option>
<option value="fairy">Fairy</option>
<option value="fighting">Fighting</option>
<option value="ghost">Ghost</option>
<option value="ground">Ground</option>
<option value="psychic">Psychic</option>
<option value="steel">Steel</option>
</select>

</section>
<div>
<img src="./imagenes/pokemones_Mesa de trabajo 1.png" class="palabra2">
</div>
<section>
<img src="./imagenes/logo.png" class="logo" alt="logo pokemon">
</section>
<section>
<img src="./imagenes/ash.png" class="ash" alt="Ash y Pikachu">

<section class="movil">
<p class="palabra1movil">¿Qué % es el tipo de mis</p>
<p class="palabra3movil">FAVORITOS?</p>
<div>
<img src="./imagenes/pokemones_Mesa de trabajo 1.png" class="palabra2movil">
</div>
</section>

</section>
</article>
<div class="bienvenida2"> </div>
<select id="calcular2" class="calcular2">

<option disabled selected>Calcula AQUÍ</option>
<option value="grass">Grass</option>
<option value="poison">Poison</option>
<option value="water">Water</option>
<option value="fire">Fire</option>
<option value="flying">Flying</option>
<option value="normal">Normal</option>
<option value="ice">Ice</option>
<option value="electric">Electric</option>
<option value="rock">Rock</option>
<option value="bug">Bug</option>
<option value="dark">Dark</option>
<option value="dragon">Dragon</option>
<option value="fairy">Fairy</option>
<option value="fighting">Fighting</option>
<option value="ghost">Ghost</option>
<option value="ground">Ground</option>
<option value="psychic">Psychic</option>
<option value="steel">Steel</option>
</select>

</header>
<nav>
<input type="search" placeholder="Nombre Pokémon: " id="buscador">
<ul class="tipopokemon">

<select id="tipos" class="tipos">
<option disabled selected> TYPE</option>
<option value="grass">Grass</option>
<option value="poison">Poison</option>
<option value="water">Water</option>
<option value="fire">Fire</option>
<option value="flying">Flying</option>
<option value="normal">Normal</option>
<option value="ice">Ice</option>
<option value="electric">Electric</option>
<option value="rock">Rock</option>
<option value="bug">Bug</option>
<option value="dark">Dark</option>
<option value="dragon">Dragon</option>
<option value="fairy">Fairy</option>
<option value="fighting">Fighting</option>
<option value="ghost">Ghost</option>
<option value="ground">Ground</option>
<option value="psychic">Psychic</option>
<option value="steel">Steel</option>
</select>

<select id="resistant" class="resistant">
<option disabled selected> RESISTANT</option>
<option value="grass">Grass</option>
<option value="poison">Poison</option>
<option value="water">Water</option>
<option value="fire">Fire</option>
<option value="flying">Flying</option>
<option value="normal">Normal</option>
<option value="ice">Ice</option>
<option value="electric">Electric</option>
<option value="rock">Rock</option>
<option value="bug">Bug</option>
<option value="dark">Dark</option>
<option value="dragon">Dragon</option>
<option value="fairy">Fairy</option>
<option value="fighting">Fighting</option>
<option value="ghost">Ghost</option>
<option value="ground">Ground</option>
<option value="psychic">Psychic</option>
<option value="steel">Steel</option>
</select>


<select id="weaknesses" class="weaknesses">
<option disabled selected>WEAKNESSES</option>
<option value="grass">Grass</option>
<option value="poison">Poison</option>
<option value="water">Water</option>
<option value="fire">Fire</option>
<option value="flying">Flying</option>
<option value="normal">Normal</option>
<option value="ice">Ice</option>
<option value="electric">Electric</option>
<option value="rock">Rock</option>
<option value="bug">Bug</option>
<option value="dark">Dark</option>
<option value="dragon">Dragon</option>
<option value="fairy">Fairy</option>
<option value="fighting">Fighting</option>
<option value="ghost">Ghost</option>
<option value="ground">Ground</option>
<option value="psychic">Psychic</option>
<option value="steel">Steel</option>
</select>

</ul>

<select id="ordenar" class="ordenar">

<option disabled selected>ORDENAR</option>
<option value="1">ASCENDING CP</option>
<option value="2">DESCENDING CP</option>

</select>



</nav>
<main id="contenedorPokemon">






</main>
<script src="main.js" type="module"></script>
</body>

</html>
Loading