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

add task solution #4807

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

add task solution #4807

wants to merge 4 commits into from

Conversation

ErasoumZe
Copy link

@ErasoumZe ErasoumZe commented Oct 25, 2024

❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • All component follow BEM and use SCSS
  • repaeted sizes and special colors are put to variables
  • Grid is used for the columns
  • cards are shown in 1, 2, 3 or 4 columns based on screen resolution
  • All changes on :hover are smooth
  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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


Thank you for your hard work on this project! There are a few critical issues that need to be addressed before we can approve the pull request:

  1. Data Attributes: The data-qa="card-hover" attribute is missing from the "Buy" link inside the first card. This is essential for meeting the task requirements.

  2. Grid Layout: The current grid layout does not adjust the number of columns based on screen resolution as specified. The use of repeat(auto-fit, minmax(200px, 200px)) does not meet the requirement for responsive design. Consider using a more flexible approach like minmax(200px, 1fr).

  3. Navigation Links Color: Ensure that the navigation links have the color #060b35 as specified, instead of using $main-accent.

  4. Hover Effects: The hover effect on the navigation link should change the text color to #00acdc. Ensure the color matches the specified hex value.

These issues are critical as they affect the core functionality and requirements of the task. Please address them, and feel free to reach out if you need any help. Keep up the great work, and I'm confident you'll get this sorted out quickly! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated

<a
href="#"
class="buy"

Choose a reason for hiding this comment

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

The 'buy' class is used for the Buy button. Ensure that this class is styled appropriately in your CSS, and consider whether additional classes or attributes are needed for functionality or styling.


.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 200px));

Choose a reason for hiding this comment

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

The 'grid-template-columns' property is set to 'repeat(auto-fit, minmax(200px, 200px))'. Consider using a more flexible approach like 'minmax(200px, 1fr)' to allow the grid items to expand and fill the available space more effectively.

}

.card:hover {
transform: scale(1.2);

Choose a reason for hiding this comment

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

The 'transform: scale(1.2)' on hover for the '.card' class may cause layout shifts and affect user experience. Consider using a smaller scale factor or other visual effects that do not significantly alter the layout.

}

.stars--active :not(:last-child) {
background-image: url(/src/images/star-active.svg);

Choose a reason for hiding this comment

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

The 'background-image' URL for '.stars--active' is set to '/src/images/star-active.svg'. Ensure that the path is correct and the image is available at the specified location.


.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 200px));

Choose a reason for hiding this comment

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

The 'grid-template-columns' property is set to 'repeat(auto-fit, minmax(200px, 200px))'. Consider using a more flexible approach like 'minmax(200px, 1fr)' to allow the grid items to expand and fill the available space more effectively.

transition: $transition-duration;

&:hover {
transform: scale(1.2);

Choose a reason for hiding this comment

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

The 'transform: scale(1.2)' on hover for the '.card' class may cause layout shifts and affect user experience. Consider using a smaller scale factor or other visual effects that do not significantly alter the layout.

}

&--active :not(:last-child) {
background-image: url(/src/images/star-active.svg);

Choose a reason for hiding this comment

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

The 'background-image' URL for '.stars--active' is set to '/src/images/star-active.svg'. Ensure that the path is correct and the image is available at the specified location.

Copy link

@pedro-ruas pedro-ruas left a comment

Choose a reason for hiding this comment

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

Almost perfect, but needing a few changes. Great job!

src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/styles/blocks/buy.scss Outdated Show resolved Hide resolved
src/styles/blocks/nav.scss Outdated Show resolved Hide resolved
src/styles/blocks/stars.scss Show resolved Hide resolved
@ErasoumZe
Copy link
Author

@pedro-ruas , fiz as modificações que pediu mas ainda não passo nos testes, e não consegui entender o porque... se puder de dar uma luz por favor, obrigado

Copy link

@raulriato raulriato left a comment

Choose a reason for hiding this comment

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

You're almost there. Good job!

@@ -0,0 +1,20 @@
.card__buy-button {

Choose a reason for hiding this comment

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

The size of the buttons are not corresponding to the referene because your trying to define the size of the button by just using padding. It won't work in this case. It's better to use the height and width properties to define the size.

src/index.html Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
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.

4 participants