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 #4907

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

add #4907

wants to merge 16 commits into from

Conversation

Valbel93
Copy link

@Valbel93 Valbel93 commented Dec 7, 2024

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

There are no files to review. Please make sure that you have added files to the pull request. Some files and directories may be ignored from the review or failed to load.
[CODE: 4]

Additional info:
Ignored files list:

  • readme.md
  • src/index.html
  • src/styles/index.scss

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

There are no files to review. Please make sure that you have added files to the pull request. Some files and directories may be ignored from the review or failed to load.
[CODE: 4]

Additional info:
Ignored files list:

  • readme.md
  • src/index.html
  • src/styles/header.scss
  • src/styles/index.scss
  • src/styles/main.scss
  • src/styles/stars.scss

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

There are no files to review. Please make sure that you have added files to the pull request. Some files and directories may be ignored from the review or failed to load.
[CODE: 4]

Additional info:
Ignored files list:

  • readme.md
  • src/index.html
  • src/styles/header.scss
  • src/styles/index.scss
  • src/styles/main.scss
  • src/styles/stars.scss

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

There are no files to review. Please make sure that you have added files to the pull request. Some files and directories may be ignored from the review or failed to load.
[CODE: 4]

Additional info:
Ignored files list:

  • readme.md
  • src/index.html
  • src/styles/header.scss
  • src/styles/index.scss
  • src/styles/main.scss
  • src/styles/stars.scss

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work! Almost done!

src/index.html Outdated
Comment on lines 141 to 144
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
<p class="card__code">Product code: 195434</p>
</h2>

Choose a reason for hiding this comment

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

Suggested change
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
<p class="card__code">Product code: 195434</p>
</h2>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__code">Product code: 195434</p>

Choose a reason for hiding this comment

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

Element p is not allowed as child of element h2

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job!
Let's improve your code
This part of the task is incomplete
image

src/index.html Outdated
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__reviews">Reviews: 5</div>

Choose a reason for hiding this comment

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

You need to use the semantic tag for text, fix it everywhere

Suggested change
<div class="stars__reviews">Reviews: 5</div>
<p class="stars__reviews">Reviews: 5</p>

src/index.html Outdated
Comment on lines 166 to 167
</div>
<div

Choose a reason for hiding this comment

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

Add the blank line between the cards

Suggested change
</div>
<div
</div>
<div

Comment on lines 19 to 21
&:hover {
transform: scale(1.5);
}

Choose a reason for hiding this comment

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

Fix it
image

border-radius: 5px;
border: 1px solid #00acdc;
color: #fff;
background-color: #00acdc;

Choose a reason for hiding this comment

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

Create a variable for repeated colors and use it everywhere

src/styles/header.scss Outdated Show resolved Hide resolved
Comment on lines 5 to 14
:root {
--font-family: Roboto, sans-serif;
--color: #00acdc;
--main-accent: #060b35;
--secondary: #616070;
--white: #fff;
--blue-accent: #00acdc;
--gray-elements: #f3f3f3;
--yellow-stars: #ffde6a;
}

Choose a reason for hiding this comment

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

use sass vars

Copy link
Author

@Valbel93 Valbel93 Dec 9, 2024

Choose a reason for hiding this comment

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

підкажіть будь ласка, що саме тут не так????
прописано все за для виконання в коді в подальшому, в чому помилка? Ми берем данні з Figma, там окрім цього, іншої інформації немає, все бралось звідти, по шаблону, що саме не так???

Choose a reason for hiding this comment

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

Hi, you need to use SCSS variables instead of CSS variables
image

Comment on lines 11 to 33
.card {
border: 1px solid var(--gray-elements);
border-radius: 5px;
width: 198px;
height: 406px;
background-color: var(--white);
justify-content: center;
transition-duration: 300ms;

&:hover {
transform: scale(1.2);
}
}

.card__img {
width: 160px;
height: 134px;
margin: 32px 19px 36px;
}

.card__title {
font-weight: 500;
font-size: 12px;

Choose a reason for hiding this comment

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

same here

Copy link
Author

Choose a reason for hiding this comment

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

готово.

Copy link
Author

Choose a reason for hiding this comment

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

image

@Valbel93 Valbel93 requested a review from etojeDenys December 9, 2024 20:56
Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job!
To improve:
Cards should shrink as smoothly as they grow.
image

src/index.html Outdated
Comment on lines 157 to 158
Price:
<div class="card__price-value">$2,199</div>

Choose a reason for hiding this comment

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

You need to use semantic tag for text, you can use tag p here, fix it everywhere

Comment on lines 5 to 14
:root {
--font-family: Roboto, sans-serif;
--color: #00acdc;
--main-accent: #060b35;
--secondary: #616070;
--white: #fff;
--blue-accent: #00acdc;
--gray-elements: #f3f3f3;
--yellow-stars: #ffde6a;
}

Choose a reason for hiding this comment

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

Hi, you need to use SCSS variables instead of CSS variables
image

margin: 0;
}

header {

Choose a reason for hiding this comment

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

Use class selector

Suggested change
header {
.header {

}

.is-active {
color: #00acdc;

Choose a reason for hiding this comment

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

Use a variable for this color

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job!
Don't forget to make deploy after your changes
image

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.

5 participants