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

Develop #2312

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

Develop #2312

wants to merge 8 commits into from

Conversation

chiper9
Copy link

@chiper9 chiper9 commented Dec 11, 2022

Copy link

@svitjojo svitjojo 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, make changes and delete the folder with tests, run it again, maybe it will help. Good luck)

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

Choose a reason for hiding this comment

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

Use semantic tag "p"

Choose a reason for hiding this comment

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

haven't fixed

src/index.html Outdated
Comment on lines 37 to 38
<div class="word-price">Price:</div>
<div class="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.

Also better to put p instead div

Choose a reason for hiding this comment

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

here as well

padding: 32px 16px 16px;
display: flex;
flex-direction: column;
width: 199px;

Choose a reason for hiding this comment

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

width is supposed to be 200px

Copy link
Author

Choose a reason for hiding this comment

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

I meant 199 general width + 1 border width

Choose a reason for hiding this comment

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

But you are using border-box property, so it includes border too. You can check it with developer tools in google chrome

Choose a reason for hiding this comment

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

CHECKLIST point 7, and I agree it should be 200px

height: 134px;
width: 160px;
margin: 0 auto 40px;
padding: 0 3px;

Choose a reason for hiding this comment

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

I think you can remove padding, it doesn't change anything

Comment on lines 31 to 32
width: 98px;
height: 14px;

Choose a reason for hiding this comment

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

remove redundant properties

Comment on lines 73 to 84
height: 40px;
width: 166px;
background: #00acdc;
border-radius: 5px;
text-align: center;
text-transform: uppercase;
line-height: 40px;
text-decoration: none;
color: #fff;
font-weight: 700;
font-size: 14px;
/* margin-bottom: 16px; */

Choose a reason for hiding this comment

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

Use paddings instead of height and so big line-height. Also, remove comments at the end.

.card__button:hover {
color: #00acdc;
background: #fff;
border: 1px solid #00acdc;

Choose a reason for hiding this comment

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

put a border to the default style card__button

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your help dude. Really appreciate it ;)

@chiper9
Copy link
Author

chiper9 commented Dec 11, 2022 via email

</head>
<body>
<div class="card" data-qa="card">
<img class="card__image"

Choose a reason for hiding this comment

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

if you have more than 3 attributes move them on new line, each

Copy link
Author

Choose a reason for hiding this comment

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

16 line - 2 attributes
17 line - everything ok )

Choose a reason for hiding this comment

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

I meant they should start from new line)

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

Choose a reason for hiding this comment

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

haven't fixed

src/index.html Outdated
Comment on lines 37 to 38
<div class="word-price">Price:</div>
<div class="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.

here as well

src/index.html Outdated
Comment on lines 40 to 45
<a class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>

Choose a reason for hiding this comment

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

Suggested change
<a class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>
<a
class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>

Choose a reason for hiding this comment

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

Do not forget about the rules of correct code style

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, what do you mean?

Choose a reason for hiding this comment

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

Amount of indent are incorrect

padding: 32px 16px 16px;
display: flex;
flex-direction: column;
width: 199px;

Choose a reason for hiding this comment

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

CHECKLIST point 7, and I agree it should be 200px

@@ -0,0 +1,88 @@
.card {
box-sizing: border-box;

Choose a reason for hiding this comment

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

move to * selector

Choose a reason for hiding this comment

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

haven't fixed

Copy link
Author

@chiper9 chiper9 Dec 13, 2022

Choose a reason for hiding this comment

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

in my case if I do it everything stops working at all

Choose a reason for hiding this comment

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

U should move only box-sizing to *

font-size: 12px;
line-height: 18px;
color: #060b35;
margin: 0 0 4px;

Choose a reason for hiding this comment

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

why isn't it margin-bottom?


.card__button {
height: 40px;
width: 166px;

Choose a reason for hiding this comment

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

Suggested change
width: 166px;
width: 100%;

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

.stars__star:last-child {

Choose a reason for hiding this comment

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

CHECKLIST point 4

Choose a reason for hiding this comment

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

what about this comment?

<img class="card__image"
src="./images/imac.jpeg"
alt="Apple A1419 iMac">
<h2 class="card__name">

Choose a reason for hiding this comment

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

CHECKLIST point 3

Copy link
Author

Choose a reason for hiding this comment

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

Thanks a lot ;)

Copy link

@alexandra-protyanova alexandra-protyanova left a comment

Choose a reason for hiding this comment

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

Fix all the comments, if you have any questions feel free to ask them in slack)

</head>
<body>
<div class="card" data-qa="card">
<img class="card__image"

Choose a reason for hiding this comment

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

I meant they should start from new line)

src/index.html Outdated
Comment on lines 40 to 45
<a class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>

Choose a reason for hiding this comment

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

Amount of indent are incorrect

@@ -0,0 +1,88 @@
.card {
box-sizing: border-box;

Choose a reason for hiding this comment

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

haven't fixed

@chiper9 chiper9 mentioned this pull request Dec 12, 2022
Copy link

@alexandra-protyanova alexandra-protyanova left a comment

Choose a reason for hiding this comment

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

Not all the comments were fixed, got to files changed and check all the comments, if you have any questions fell free to ask them in slack 😊

src/index.html Outdated
Comment on lines 49 to 52
<a class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>

Choose a reason for hiding this comment

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

Suggested change
<a class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>
<a
class="card__button"
href="#"
data-qa="hover"
>
Buy
</a>

@@ -0,0 +1,88 @@
.card {
box-sizing: border-box;

Choose a reason for hiding this comment

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

U should move only box-sizing to *

display: flex;
flex-direction: column;
width: 200px;
background: #fff;

Choose a reason for hiding this comment

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

default color for background

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

.stars__star:last-child {

Choose a reason for hiding this comment

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

what about this comment?

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.

None yet

3 participants