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 /src #1 #5055

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

add /src #1 #5055

wants to merge 4 commits into from

Conversation

Nikola57
Copy link

Requirements:

  • reset the browser's default margins
  • card width is 200px including border
  • use images from src/images
  • change link styles on :hover
  • add data-qa="card" attribute to the card block
  • add data-qa="hover" attribute to the link BUY
  • background-image: url() should be relative to the index.scss. So it should start with ../images.
  • Rewrite the stars block from the Stars task with SCSS and use it
  • Find the required font on google fonts and use.

Important note: In this task, you are allowed to link *.scss files directly in HTML <link> tags using href attribute.
This is possible because we use the Parcel library to bundle your solution's source code.

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! 😊 However, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. BEM Blocks: The task requires two BEM blocks, card and stars, each in their own file. It seems the stars block is not clearly separated, which is a core requirement.

  2. SCSS Compilation: The HTML file links directly to SCSS files, which browsers cannot interpret. You need to compile the SCSS into CSS and link to the resulting CSS file.

  3. Variable Typos: There are multiple instances of the typo $main-font-famaly instead of $main-font-family. This needs to be corrected across all SCSS files to ensure styles are applied correctly.

  4. Import Path Typos: The import paths contain typos such as veriables instead of variables and reviws instead of reviews. These should be corrected to prevent import errors.

  5. Missing Units: Some margin properties are missing units, which can lead to unexpected behavior. Ensure all values have appropriate units.

  6. Google Fonts: Importing Google Fonts directly in SCSS is not recommended. It's better to include the font link in the HTML file for better performance.

  7. Cross-Origin Attribute: The crossorigin attribute is missing in the preconnect link to Google Fonts, which can improve performance.

Please address these issues to meet the task requirements. Once these changes are made, we can proceed with the approval. Keep up the great work, and don't hesitate to reach out if you need any help! 🌟

✨ 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
Comment on lines 18 to 21
<link
rel="stylesheet"
href="./style.scss"
/>

Choose a reason for hiding this comment

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

The link tag is referencing a SCSS file (./style.scss). Browsers cannot directly interpret SCSS files. You need to compile the SCSS into CSS and link to the resulting CSS file instead.

src/index.html Outdated
Comment on lines 26 to 30
<link
rel="preconnect"
href="https://fonts.gstatic.com"
/>

Choose a reason for hiding this comment

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

The 'crossorigin' attribute is missing in this preconnect link to 'https://fonts.gstatic.com'. Adding 'crossorigin' can improve performance by allowing the browser to make the connection early.

src/style.scss Outdated
@@ -0,0 +1,10 @@
@import 'https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&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.

Importing Google Fonts directly in SCSS is not recommended. It's better to include the font link in the HTML file to ensure fonts are loaded correctly and efficiently.

src/style.scss Outdated
@@ -0,0 +1,10 @@
@import 'https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&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';
@import './veriables';

Choose a reason for hiding this comment

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

There is a typo in the import path: 'veriables' should be 'variables'. Ensure the file name matches the actual file.

src/style.scss Outdated
@import './styles/blocks/contentText';
@import './styles/blocks/contentCode';
@import './styles/index';
@import './styles/blocks/reviws';

Choose a reason for hiding this comment

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

There is a typo in the import path: 'reviws' should be 'reviews'. Ensure the file name matches the actual file.

}

.contentInformacion {
margin: 0 16 16;

Choose a reason for hiding this comment

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

The 'margin' property values are missing units. Ensure that each value has a unit (e.g., 'px', 'em'). For example, 'margin: 0 16px 16px;'.

top: 1px;
left: 1px;
border-radius: 5px;
border: 1px;

Choose a reason for hiding this comment

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

The 'border' property is redundant as it is immediately overridden by the next 'border' property. You can remove this line to avoid confusion.

flex-direction: row;
width: 31px;
height: 18px;
font-family: $main-font-famaly;

Choose a reason for hiding this comment

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

There is a typo in the variable name '$main-font-famaly'. It should be '$main-font-family'. Ensure that the variable is correctly defined and imported.

display: flex;
justify-content: right;
align-items: end;
font-family: $main-font-famaly;

Choose a reason for hiding this comment

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

There is a typo in the variable name '$main-font-famaly'. It should be '$main-font-family'. Ensure that the variable is correctly defined and imported.

@@ -0,0 +1,3 @@
$main-text-color: #060b35;
$main-button-color: #00acdc;
$main-font-famaly: Roboto;

Choose a reason for hiding this comment

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

There is a typo in the variable name '$main-font-famaly'. It should be '$main-font-family'. Update this variable name and ensure all references in your SCSS files are consistent.

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.


The Pull Request has been reviewed, and while there are some issues that need attention, it is approved to help you move forward with your learning journey. 🚀

Review Summary:

  1. SCSS Compilation: Ensure that SCSS files are compiled into CSS, as browsers cannot interpret SCSS directly. This is crucial for the styling to work correctly.

  2. Google Fonts: The crossorigin attribute should be set to anonymous for better performance when fetching resources from Google Fonts.

  3. Image Path Typo: Correct the typo in the background image path from .jpag to .jpg to ensure the image loads correctly.

  4. Positioning Properties: The top and left properties require a positioning context to be effective. Consider adding position: relative; or another appropriate positioning property.

  5. Unused and Redundant Classes: The .body class is defined but not used. Since the body element is already styled, consider removing this redundant class to avoid confusion.

Your effort in addressing previous issues is commendable, and the code now meets the task requirements. However, please review the comments to improve your code further. Addressing these critical issues in the future will help you avoid similar problems and enhance your coding skills. Keep up the good work and continue learning from these experiences! 😊

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

@@ -11,8 +12,67 @@
rel="stylesheet"
href="./styles/index.scss"

Choose a reason for hiding this comment

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

Browsers cannot interpret SCSS files directly. You need to compile index.scss into a CSS file and link to the resulting CSS file instead.

<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin=" "

Choose a reason for hiding this comment

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

The crossorigin attribute is set with an empty value. It should be set to anonymous to improve performance when fetching resources from Google Fonts.

height: 134px;
background-position: center;
background-size: 100% 100%;
background-image: url("./images/imac.jpag");

Choose a reason for hiding this comment

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

There is a typo in the background image path. The file extension should be .jpg instead of .jpag.

background-image: url("./images/star-active.svg");
}

.body {

Choose a reason for hiding this comment

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

The .body class is defined but not used in the HTML file. Consider removing it if it's unnecessary, as the body element is already styled.

Comment on lines +6 to +7
top: 247px;
left: 17px;

Choose a reason for hiding this comment

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

The top and left properties will have no effect unless the element has a positioning context. Consider adding position: relative; or another positioning property if needed.

height: 134px;
background-position: center;
background-size: 100% 100%;
background-image: url('./images/imac.jpag');

Choose a reason for hiding this comment

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

There is a typo in the background image path. The file extension should be .jpg instead of .jpag.

Comment on lines +6 to +7
top: 207px;
left: 17px;

Choose a reason for hiding this comment

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

The top and left properties will have no effect unless the element has a positioning context. Consider adding position: relative; or another positioning property if needed.

Comment on lines +16 to +17
top: 1px;
left: 1px;

Choose a reason for hiding this comment

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

The top and left properties will have no effect unless the element has a positioning context. Consider adding position: relative; or another positioning property if needed.

&-star {
width: 16px;
height: 16px;
left: 80px;

Choose a reason for hiding this comment

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

The left property will have no effect unless the element has a positioning context. Consider adding position: relative; or another positioning property if needed.

@@ -1,3 +1,3 @@
body {
.body {

Choose a reason for hiding this comment

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

The .body class seems unnecessary as the body element is already styled in main.scss. Consider removing this redundant class.

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