Skip to content

Finalização catálogo com BEM e responsividade#6122

Closed
eg3844540-svg wants to merge 13 commits intomate-academy:masterfrom
eg3844540-svg:master
Closed

Finalização catálogo com BEM e responsividade#6122
eg3844540-svg wants to merge 13 commits intomate-academy:masterfrom
eg3844540-svg:master

Conversation

@eg3844540-svg
Copy link
Copy Markdown

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

  • there 2 BEM blocks card and stars each in their own file
  • SCSS Nesting is used for elements, modifiers and pseudo-classes
  • SCSS Variables are used for main values and placed in a separate file
  • all stars--N modifiers work as expected (Highlight first N stars)
  • Code follows all the Code Style Rules ❗️

Copy link
Copy Markdown

@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.

Review Summary

Great job on the overall structure and functionality! The responsive grid, hover effects, and semantic HTML are all implemented correctly. However, this submission requires changes because a core requirement was not met.

Your SCSS files use hardcoded values (e.g., 200px, #060b35, 300ms) for sizes, colors, and transitions. This violates a key task requirement to use variables for repeated values to improve maintainability [CHECKLIST ITEM #2]. Please create a _variables.scss partial to store these values and use them throughout your styles.

Additionally, the Roboto font is imported in index.html, but Arial is specified in index.scss. Please update the font-family to use the correct font. Once these issues are addressed, your solution will be ready for approval.


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

Important

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

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/styles/_catalog.scss Outdated
Comment on lines +1 to +22
.catalog {
padding: 50px 40px;

&__grid {
display: grid;
justify-content: center;
gap: 46px 48px;
grid-template-columns: repeat(1, 200px);

@media (min-width: 488px) {
grid-template-columns: repeat(2, 200px);
}

@media (min-width: 768px) {
grid-template-columns: repeat(3, 200px);
}

@media (min-width: 1024px) {
grid-template-columns: repeat(4, 200px);
}
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file contains several 'magic numbers' (hardcoded pixel values for paddings, gaps, widths, and breakpoints). This violates checklist item #2: 'Repeated sizes and special colors are put to variables'.

Please define and use SCSS variables for these values. For example:

  • $catalog-padding: 50px 40px;
  • $grid-gap: 46px 48px;
  • $card-width: 200px;
  • $breakpoint-sm: 488px;

This same issue exists in _card.scss and _nav.scss for colors, sizes, and transition durations.

Comment thread src/styles/_nav.scss
Comment on lines +1 to +13
.nav__link {
color: #060b35;
text-decoration: none;
transition: color 300ms;
}

.nav__link:hover {
color: #00acdc;
}

.nav__link.is-active {
font-weight: bold;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file uses hardcoded values for colors (#060b35, #00acdc) and transition duration (300ms). This violates checklist item #2: 'Repeated sizes and special colors are put to variables'.

Please define these values as SCSS variables (e.g., in a separate _variables.scss file) and reuse them here and in other style files. This improves maintainability.

Comment thread src/styles/_card.scss
Comment on lines +1 to +7
.card {
width: 200px;
padding: 16px;
border: 1px solid #ccc;
border-radius: 8px;
transition: transform 300ms;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file uses many 'magic numbers' and hardcoded color values (e.g., 200px, #ccc, 300ms). This violates checklist item #2: 'Repeated sizes and special colors are put to variables'. Please define SCSS variables for these values and use them throughout your styles to make the code more maintainable.

Comment thread src/styles/index.scss Outdated

body {
margin: 0;
font-family: Arial, sans-serif;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The Roboto font is linked in the HTML file, but Arial is specified here as the primary font. To ensure the intended design is applied, you should use the imported font: font-family: 'Roboto', sans-serif;.

@eg3844540-svg eg3844540-svg closed this by deleting the head repository Mar 29, 2026
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.

2 participants