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

Rick and Morty filter page. #40

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open

Conversation

Dianax69
Copy link

@Dianax69 Dianax69 commented Mar 19, 2020

Data Lovers sobre Rick and Morty, "Wubba Lubba Dub Dub" sirve para filtrar y mostrar información sobre los personajes de las tres temporadas de la serie.

IrisFyD and others added 30 commits February 27, 2020 10:42
…ow info into javascript to html and an eventlistener to use a button that show another page for choose seasons
 Pleaseenter the commit message for your changes. Lines starting
@Dianax69 Dianax69 closed this Mar 19, 2020
@Dianax69 Dianax69 reopened this Mar 19, 2020
@Dianax69 Dianax69 changed the title Develop Rick and Morty filter page. Mar 19, 2020
export const example = () => {
return 'example';
};
export const sum = (a, b) => a + b;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Para que utilizas esta función?

<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bubblegum+Sans">
</head>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hay que ser consistentes con los espacios.

</header>
<div>
<button class="button_characters" id="button-random-char">Personajes Aleatorios</button>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

<div id="container-cards"></div>
</section>
<!-- Mobile menu -->
<div id="mobile-menu" style="display: none;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El comentario no es necesario ya que la clase es suficientemente descriptiva.

/*
function to generate a filter object with params
Prams: (Original object, key to filter, value to match with key)
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recuerda borrar el código que no se utiliza y los console.log

}
});
// Filter for Gender
document.querySelector('#buttonGroupGender').addEventListener('click', (e) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filter by gender*

}
});
// Filter for Status
const filterAlive = objectRMData.filter((item) => item.status === 'Alive');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

buttonAlive.addEventListener('click', () => {
makeCard(filterAlive);
});
const filterDead = objectRMData.filter((item) => item.status === 'Dead');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Procura que los espacios sean consistentes.

}
#wrapper_data {
margin-top: auto;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Felicidades por el uso de media queries!

Copy link
Contributor

@AdrianaHY AdrianaHY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy bue trabajo! Muchas felicidades!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants