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

Solution #4981

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

Solution #4981

wants to merge 3 commits into from

Conversation

fromjkeee16
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • All components follow BEM and use SCSS

  • Repeated 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 your pull request. Specifically, the commented-out code for media queries in the main.scss file needs to be uncommented and properly implemented to ensure responsive design. Additionally, there are multiple variables and mixins that need to be defined to prevent compilation errors. Lastly, please correct the syntax of the <html> tag to ensure it is not self-closing. Once these issues are resolved, your code will be in great shape! Keep up the great work! 😊

✨ 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
@@ -1,5 +1,8 @@
<!doctype html>
<html lang="en">
<html

Choose a reason for hiding this comment

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

The <html> tag should not be self-closing. It should be <html> without the trailing slash.

border: 1px solid #f3f3f3;
border-radius: 5px;

transition: transform $animation-time;

Choose a reason for hiding this comment

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

Ensure that the variable $animation-time is defined somewhere in your SCSS files. Otherwise, this will cause a compilation error.

transition: transform $animation-time;

&:hover {
transform: scale($card-scale-factor);

Choose a reason for hiding this comment

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

Ensure that the variable $card-scale-factor is defined. If not, this will cause a compilation error.

transition: color $animation-time;

&:hover {
color: $card-title-hover-color;

Choose a reason for hiding this comment

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

Ensure that the variable $card-title-hover-color is defined. If not, this will cause a compilation error.

font-weight: 400;
font-size: 10px;
line-height: 14px;
color: $secondary-color;

Choose a reason for hiding this comment

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

Ensure that the variable $secondary-color is defined. If not, this will cause a compilation error.

column-gap: 48px;
padding: 50px 40px;

grid-template-columns: repeat(auto-fit, $card-width);

Choose a reason for hiding this comment

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

Ensure that the variable $card-width is defined. If not, this will cause a compilation error.

grid-template-columns: repeat(2, 1fr);
}

@include onTablet {

Choose a reason for hiding this comment

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

Ensure that the mixin onTablet is defined. If not, this will cause a compilation error.

grid-template-columns: repeat(3, 1fr);
}

@include onLaptop {

Choose a reason for hiding this comment

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

Ensure that the mixin onLaptop is defined. If not, this will cause a compilation error.

.page__body {
margin: 0;
font-family: Roboto, serif;
color: $main-color;

Choose a reason for hiding this comment

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

Ensure that the variable $main-color is defined. If not, this will cause a compilation error.

display: flex;

&__star {
height: $stars-size;

Choose a reason for hiding this comment

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

Ensure that the variable $stars-size is defined. If not, this will cause a compilation error.

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.


Great effort on addressing the issues in your project! 🎉 While there are still a few areas that need improvement, such as ensuring SCSS files are compiled to CSS before linking them in HTML and adjusting the grid layout with media queries, your progress is commendable.

Here are the key points to focus on:

  1. SCSS Compilation: Remember to compile your SCSS files into CSS before linking them in your HTML. This is crucial for proper styling.

  2. Responsive Grid Layout: Implement media queries to adjust the number of columns based on screen size, as specified in the task requirements.

  3. HTML Structure: Ensure that the <html> tag is properly opened and closed.

These adjustments will enhance the functionality and maintainability of your code. Keep up the good work, and continue learning from these experiences to refine your skills. Your dedication to improving your code is evident, and I'm confident you'll address these issues effectively. 🚀

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

@@ -12,7 +12,7 @@
href="https://fonts.gstatic.com"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"

Choose a reason for hiding this comment

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

Linking directly to an SCSS file in HTML is not standard practice. SCSS files need to be compiled into CSS before being linked in HTML. Ensure that you compile 'styles/index.scss' to a CSS file and link the resulting CSS file instead.

border: 1px solid #f3f3f3;
border-radius: 5px;

transition: transform $animation-time;

Choose a reason for hiding this comment

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

The variable $animation-time is used here for the transition duration. Ensure that this variable is defined in your variables file. It is defined as 0.3s in variables.scss.

transition: transform $animation-time;

&:hover {
transform: scale($card-scale-factor);

Choose a reason for hiding this comment

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

The variable $card-scale-factor is used here for scaling on hover. Ensure that this variable is defined in your variables file. It is defined as 1.2 in variables.scss.

transition: color $animation-time;

&:hover {
color: $card-title-hover-color;

Choose a reason for hiding this comment

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

The variable $card-title-hover-color is used here for the hover color of the card title. Ensure that this variable is defined in your variables file. It is defined as #34568b in variables.scss.

font-weight: 400;
font-size: 10px;
line-height: 14px;
color: $secondary-color;

Choose a reason for hiding this comment

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

The variable $secondary-color is used here for the text color. Ensure that this variable is defined in your variables file. It is defined as #616070 in variables.scss.

bottom: 0;
left: 0;
width: 100%;
background-color: $active-color;

Choose a reason for hiding this comment

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

The variable $active-color is used here for the background color of the active link indicator. Ensure that this variable is defined in your variables file. It is defined as #00acdc in variables.scss.

left: 0;
width: 100%;
background-color: $active-color;
border-radius: $corner-radius;

Choose a reason for hiding this comment

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

The variable $corner-radius is used here for the border radius of the active link indicator. Ensure that this variable is defined in your variables file. It is defined as 8px in variables.scss.

display: grid;
padding: 50px 40px;
gap: 46px 48px;
grid-template-columns: repeat(auto-fit, $card-width);

Choose a reason for hiding this comment

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

The variable $card-width is used here for the grid template columns. Ensure that this variable is defined in your variables file. It is defined as 200px in variables.scss.

.page {
margin: 0;
font-family: Roboto, serif;
color: $main-color;

Choose a reason for hiding this comment

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

The variable $main-color is used here for the text color. Ensure that this variable is defined in your variables file. It is defined as #060b35 in variables.scss.


&__star {
height: $stars-size;
width: $stars-size;

Choose a reason for hiding this comment

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

The variable $stars-size is used here for the height and width of the stars. Ensure that this variable is defined in your variables file. It is defined as 16px in variables.scss.

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