Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FINAL UPDATE!!!! #25

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e79195b
Update README.md
dalejac Jun 27, 2020
daa3685
Update README.md
dalejac Jun 27, 2020
b7cdc28
Update README.md
dalejac Jun 27, 2020
797c95e
Update README.md
dalejac Jun 27, 2020
0743072
Update README.md
dalejac Jun 27, 2020
b6856ba
commit
dalejac Jul 1, 2020
c5bf325
Responsive
dalejac Jul 24, 2020
5491ec7
Icons
dalejac Jul 24, 2020
a1b0781
Correccion
dalejac Jul 24, 2020
72ee4d2
update
dalejac Jul 27, 2020
e708964
Merge pull request #1 from dalejac/master
NathuGeek Jul 27, 2020
8eede6e
update changes
NathuGeek Jul 27, 2020
5747b3e
update
NathuGeek Jul 27, 2020
b6e6e27
no changes added
NathuGeek Jul 29, 2020
be792fa
Modifications
dalejac Jul 30, 2020
50fd051
Merge pull request #2 from dalejac/master
NathuGeek Jul 30, 2020
c0b5072
Update style.css
NathuGeek Aug 3, 2020
66696ab
Views
dalejac Aug 3, 2020
2c2fa15
Update code
dalejac Aug 4, 2020
cb1fc4b
Merge pull request #3 from dalejac/master
NathuGeek Aug 4, 2020
587a8b4
update
NathuGeek Aug 4, 2020
bd8800b
fixed files
NathuGeek Aug 4, 2020
407132d
New Update
dalejac Aug 5, 2020
368df58
min changes
NathuGeek Aug 5, 2020
bab9289
Merge branch 'master' into master
NathuGeek Aug 6, 2020
bfc0789
Merge pull request #4 from dalejac/master
NathuGeek Aug 6, 2020
4ecb1a3
resolviendo order y filter
NathuGeek Aug 7, 2020
1870706
update readme.md
NathuGeek Aug 10, 2020
b8432bc
Update OrderBtn
dalejac Aug 10, 2020
20c664a
Functions Update
dalejac Aug 11, 2020
5a3d18c
Functions Update
dalejac Aug 11, 2020
29e683a
Update Functions
dalejac Aug 11, 2020
8d967dd
HTML
dalejac Aug 11, 2020
fe918d6
updated filter functions
NathuGeek Aug 11, 2020
2bfd212
Final Update
dalejac Aug 11, 2020
a30b42b
READ.MD
dalejac Aug 11, 2020
f0fc3c4
Merge pull request #5 from dalejac/master
NathuGeek Aug 11, 2020
fbc8827
Update README.md
NathuGeek Aug 11, 2020
7811c1b
Update README.md
NathuGeek Aug 11, 2020
8e6a6c0
Update README.md
NathuGeek Sep 29, 2020
c4ad879
Update README.md
NathuGeek Nov 8, 2020
a16246a
Update README.md
NathuGeek Nov 8, 2020
9e71492
Update README.md
NathuGeek Nov 8, 2020
0190822
Update README.md
NathuGeek Nov 8, 2020
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
519 changes: 112 additions & 407 deletions README.md

Large diffs are not rendered by default.

5,219 changes: 5,219 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,19 @@
"jest": "^24.9.0",
"opener": "^1.5.1",
"serve": "^11.0.0"
}
},
"description": "Esto es una prueba ## Índice",
"directories": {
"test": "test"
},
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/nathu-bot/BOG001-data-lovers.git"
},
"author": "",
"bugs": {
"url": "https://github.com/nathu-bot/BOG001-data-lovers/issues"
},
"homepage": "https://github.com/nathu-bot/BOG001-data-lovers#readme"
}
Binary file added src/Icons/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Icons/home.svg
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/Icons/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/Icons/list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions src/Icons/pokedex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/Icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Icons/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions src/Icons/versus.svg
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/Icons/youtube.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/Images/AMB.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/Images/Pokemon-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/Images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 56 additions & 6 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,59 @@
// estas funciones son de ejemplo
// ----OTRA FORMA DE ORDENAR----

export const example = () => {
return 'example';
};
// export const orderSort = (setDat, sort) => {
// console.log(sort);
// if(sort === "A-Z" || sort === "Z-A"){
// let sorting = setDat.sort((x,y) => {
// if(x.name > y.name ) {
// return 1;
// } else { return -1;}
// });
// if (sort === "Z-A"){
// sorting.reverse();
// }
// return sorting;
// } else {
// let sorting = setDat.sort((x,y) => {
// if(x.id > y.id ) {
// return 1;
// } else { return -1; }
// });
// if (sort === "151-1"){
// sorting.reverse();
// }
// return sorting;
// }};

export const orderSort = (setData, order) => {
let sorting = setData.sort((a,z) => {
let result;
let x;
let y;
if(order === "A-Z" || order === "Z-A") {
x = a.name;
y = z.name;

} if(order === "1-151" || order === "151-1") {
x = a.id;
y = z.id;
}
if (x > y){ result = 1;}
if(x < y) { result = -1;}
return result;
})
if (order === "Z-A" || order === "151-1") {
sorting.reverse()
} return sorting;
};

export const anotherExample = () => {
return 'OMG';
export const pokemonTypes = (setData, orderType) => {
let filtering = setData.filter((pokemon) => {
const tiposArr = pokemon.type;
return tiposArr.includes(orderType);
});
return filtering;
};




99 changes: 90 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,93 @@
<!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>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<title>Data Lovers</title>
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css">
</head>

<body>
<header>

<nav class="container">
<div class="burger">
<img src="Icons/list.svg" id="list">
</div>
<ul class="nav-links">
<li id="home"><a href="#"><img class="home" src="Icons/home.svg" alt="Home">Home</a></li>
<li id="pokedex"><a href="#"><img class="pokedex" src="Icons/pokedex.svg" alt="Pokedex">Pokedex</a></li>
<li id="versus"><a href="#"><img class="versus" src="Icons/versus.svg" alt="Versus">Versus</a></li>
</ul>
</nav>
<div class="container"><img src="Images/Pokemon-logo.png" alt="Pokemon-logo" id="Pokemon"></div>
<div class="searchContainer container">
<form class="barSearch" id="bar">
<input type="search" name="search" placeholder="Search">
</form>
<button class="search" id="search"><img src="Icons/search.svg" class="loupe" id="loupe"></button>
</div>
</header>

<main>
<div class="window-1" id="Home">
<h1>
Explore and browse the Pokémon universe to become a Master, so go on and...
</h1>
<img src="Images/AMB.png" class="AMB">
<button type="button" class="continue" id="continue">Catch 'em all!</button>
</div>

<div class="window-2" id="Pokedex">
<div class="btn-filter">
<!-- <button class="Filter Order" id="order"> -->

<select class="Filter" name="az" id="aZ">
<option value="order">Order</option>
<option value="A-Z">A-Z</option>
<option value="Z-A">Z-A</option>
<option value="1-151">1 to 151</option>
<option value="151-1">151 to 1</option>
</select>
</button>

<!-- <button class="Filter Type" id="type"> -->

<select class="Filter" name="element" id="element">
<option value="0">Type</option>
<option value="Normal">Grass</option>
<option value="Poison">Poison</option>
<option value="Fire">Fire</option>
<option value="Flying">Fliying</option>
<option value="Water">Water</option>
<option value="Bug">Bug</option>
<option value="Plant">Plant</option>
<option value="Electric">Electric</option>
<option value="Ice">Ice</option>
<option value="Psychic">Psychic</option>
<option value="Ground">Ground</option>
<option value="Rock">Rock</option>
<option value="Dragon">Dragon</option>
<option value="Ghost">Ghost</option>
</select>
</button>
</div>
<div class="window-container" id="window-container"></div>

</div>
</main>

<footer>
© All rights reserved
<br>
Made by 💛 Nati y Ale
</footer>

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

</html>
Loading