-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
base: master
Are you sure you want to change the base?
add /src #1 #5055
Conversation
There was a problem hiding this 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:
-
BEM Blocks: The task requires two BEM blocks,
card
andstars
, each in their own file. It seems thestars
block is not clearly separated, which is a core requirement. -
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.
-
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. -
Import Path Typos: The import paths contain typos such as
veriables
instead ofvariables
andreviws
instead ofreviews
. These should be corrected to prevent import errors. -
Missing Units: Some
margin
properties are missing units, which can lead to unexpected behavior. Ensure all values have appropriate units. -
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.
-
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
<link | ||
rel="stylesheet" | ||
href="./style.scss" | ||
/> |
There was a problem hiding this comment.
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
<link | ||
rel="preconnect" | ||
href="https://fonts.gstatic.com" | ||
/> |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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.
src/styles/blocks/main.scss
Outdated
} | ||
|
||
.contentInformacion { | ||
margin: 0 16 16; |
There was a problem hiding this comment.
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;'.
src/styles/blocks/main.scss
Outdated
top: 1px; | ||
left: 1px; | ||
border-radius: 5px; | ||
border: 1px; |
There was a problem hiding this comment.
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.
src/styles/blocks/price.scss
Outdated
flex-direction: row; | ||
width: 31px; | ||
height: 18px; | ||
font-family: $main-font-famaly; |
There was a problem hiding this comment.
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.
src/styles/blocks/reviws.scss
Outdated
display: flex; | ||
justify-content: right; | ||
align-items: end; | ||
font-family: $main-font-famaly; |
There was a problem hiding this comment.
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.
src/veriables.scss
Outdated
@@ -0,0 +1,3 @@ | |||
$main-text-color: #060b35; | |||
$main-button-color: #00acdc; | |||
$main-font-famaly: Roboto; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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:
-
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.
-
Google Fonts: The
crossorigin
attribute should be set toanonymous
for better performance when fetching resources from Google Fonts. -
Image Path Typo: Correct the typo in the background image path from
.jpag
to.jpg
to ensure the image loads correctly. -
Positioning Properties: The
top
andleft
properties require a positioning context to be effective. Consider addingposition: relative;
or another appropriate positioning property. -
Unused and Redundant Classes: The
.body
class is defined but not used. Since thebody
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" |
There was a problem hiding this comment.
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=" " |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
top: 247px; | ||
left: 17px; |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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
.
top: 207px; | ||
left: 17px; |
There was a problem hiding this comment.
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.
top: 1px; | ||
left: 1px; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
Requirements:
200px
including border:hover
data-qa="card"
attribute to the card blockdata-qa="hover"
attribute to the linkBUY
background-image: url()
should be relative to theindex.scss
. So it should start with../images
.stars
block from the Stars task with SCSS and use itImportant note: In this task, you are allowed to link
*.scss
files directly in HTML<link>
tags usinghref
attribute.This is possible because we use the Parcel library to bundle your solution's source code.