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

Card component #40

Merged
merged 10 commits into from
May 27, 2022
Merged

Card component #40

merged 10 commits into from
May 27, 2022

Conversation

sergiolopezloya
Copy link
Contributor

Agregar componente card

@@ -0,0 +1,38 @@
<div class="card-component card card-fit">
Copy link
Contributor

Choose a reason for hiding this comment

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

instalar htmlbeautifier para darle formato automaticamente. Aqui estás usando 4 espacios de indentación. Deberían de ser 2

Comment on lines 1 to 9
// import { Controller } from '@hotwired/stimulus'
//
// export class CardController extends Controller {
// connect() {
// }
//
// disconnect() {
// }
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

eliminar este archivo

Comment on lines 13 to 17
<%# post.tags.each do |tag| %>
<%#= link_to tag_path(tag) do %>
<!--<span class="tag is-info is-light"><%#= tag.name %></span>-->
<%# end %>
<%# end #%>
Copy link
Contributor

Choose a reason for hiding this comment

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

Elminar este código que ya no estamos usando aquí

@@ -0,0 +1,18 @@
.column:not(.is-full) {
Copy link
Contributor

Choose a reason for hiding this comment

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

todo el CSS de un componente debe estar scoped bajo una clase con el nombre del componente. Ej. card-component.

Esto para que el CSS de cada componente solo impacte a los elementos del componente y no tenga impacto en otros elementos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Está bien si lo dejo como .card-component.card desde la línea 2? Tengo que evaluar si viene de una columna superior y no es "is-full", para que no le de estas alturas fijas al leader post

@@ -0,0 +1,18 @@
.column:not(.is-full) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Acostumbramos que el css este dentro de la clase nombre-del-componente-component, para que solo aplique los estilos al componente. Entonces en este caso sería

Suggested change
.column:not(.is-full) {
.card-component {
## CSS del componente
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Y sí está bien que lo ponga en esa línea aunque arriba tenga ".column:not(.is-full)"?

@codeclimate
Copy link

codeclimate bot commented May 26, 2022

Code Climate has analyzed commit 4f461cf and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 76.7% (1.9% change).

View more on Code Climate.

@sergiolopezloya sergiolopezloya merged commit 3bdefd3 into main May 27, 2022
@sergiolopezloya sergiolopezloya deleted the card-component branch May 27, 2022 20:16
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