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

feat: create pet avatar component #261

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nathalia-84
Copy link
Contributor

@nathalia-84 nathalia-84 commented Jun 10, 2024

Closes #231

Feature

Create Pet Avatar component and display it in Home.

Visual evidences 🖼️
Checklist
  • Issue linked
  • Build working correctly
  • Tests created
Additional info N/A

src/home/components/SideMenu/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Alecell Alecell left a comment

Choose a reason for hiding this comment

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

Os avatares ainda estào com o underline! Precisamos tirar

Ta faltando resolver o caso de mais de 3 pets também, ele precisa ficar um em baixo do outro conforme conversamos e por enquanto simplesmente stackar as linhas

src/components/PetAvatar/index.js Show resolved Hide resolved
src/home/components/SideMenu/index.scss Outdated Show resolved Hide resolved
src/stories/PetAvatar.stories.js Show resolved Hide resolved
src/components/PetAvatar/index.scss Outdated Show resolved Hide resolved
@nathalia-84
Copy link
Contributor Author

Comentários resolvidos!

@nathalia-84 nathalia-84 requested a review from Alecell June 16, 2024 19:25
@DominMFD
Copy link
Contributor

DominMFD commented Jun 17, 2024

Seria legal vc ver com o Eliabe um hover para o seu componente, mas é so uma sugestão, ele ta bom, pra mim ta aprovado, parabéns!!!

@nathalia-84
Copy link
Contributor Author

Seria legal vc ver com o Eliabe um hover para o seu componente, mas é so uma sugestão, ele ta bom, pra mim ta aprovado, parabéns!!!

Hover adicionado!

Copy link
Contributor

@Alecell Alecell left a comment

Choose a reason for hiding this comment

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

Achei estranho que no storybook ta estranho o componente a pesar de que na página ele ta certo, consegue dar uma olhada?

Comment on lines +4 to +13
.pet-container {
display: flex;
flex-direction: column;
gap: 1rem;

align-items: center;

text-decoration: none;
aspect-ratio: 1/1;

Copy link
Contributor

Choose a reason for hiding this comment

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

Coloca um transition aqui pra ficar mais bonitinho a animcaçào de hover

@@ -84,6 +84,14 @@
font-style: fonts.$normal;
}

&__avatar-yourpet {
Copy link
Contributor

Choose a reason for hiding this comment

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

acredito que aqui pra ficar um nome mais legal seria avatars-yourpet ou algo assim, esse é um container que contem avatares, do jeito que ta parece que esse estilo é um estilo dos avatares em si!

@@ -10,6 +10,7 @@ import notificacoes from './images/notifications.svg';
import perfil from './images/perfil.svg';
import petdex from './images/petdex.svg';
import './index.scss';
import PetAvatar from '../../../../components/PetAvatar';
Copy link
Contributor

Choose a reason for hiding this comment

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

Move esse import uma linha pra cima, vamos sempre manter a importação do CSS como a ultima importação

Comment on lines +52 to +54
&:not(:hover) {
opacity: 0.9;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Não precisamos desse not! Quando estiver hover, o ideal é que evitemos ter que pensar muito no css, no caso sim isso funciona, mas acaba sendo melhor colocar no .pet-container esse opacity: 0.9 e ai no hover colocar o opacity: 1

Não é como se isso fosse errado e talz, a questão é apenas q podemos fazer a mesma coisa num código mais simples, sem precisar do not, no fim sempre que não tiver no hover ele já é not(:hover)!

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.

Componente Pet Avatar
4 participants