-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
base: master
Are you sure you want to change the base?
Develop #2312
Conversation
chiper9
commented
Dec 11, 2022
- DEMO LINK
- TEST REPORT LINK
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.
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> |
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.
Use semantic tag "p"
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.
haven't fixed
src/index.html
Outdated
<div class="word-price">Price:</div> | ||
<div class="price-value">$2,199</div> |
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.
Also better to put p instead div
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.
here as well
src/styles/card.css
Outdated
padding: 32px 16px 16px; | ||
display: flex; | ||
flex-direction: column; | ||
width: 199px; |
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.
width is supposed to be 200px
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.
I meant 199 general width + 1 border width
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.
But you are using border-box property, so it includes border too. You can check it with developer tools in google chrome
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.
CHECKLIST point 7, and I agree it should be 200px
src/styles/card.css
Outdated
height: 134px; | ||
width: 160px; | ||
margin: 0 auto 40px; | ||
padding: 0 3px; |
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.
I think you can remove padding, it doesn't change anything
src/styles/card.css
Outdated
width: 98px; | ||
height: 14px; |
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.
remove redundant properties
src/styles/card.css
Outdated
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; */ |
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.
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; |
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.
put a border to the default style card__button
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 help dude. Really appreciate it ;)
Yeah, your right. I forgot about it. Thanks
пн, 12 дек. 2022 г., 00:17 Yevhen ***@***.***>:
… ***@***.**** commented on this pull request.
------------------------------
In src/styles/card.css
<#2312 (comment)>
:
> @@ -0,0 +1,91 @@
+.card {
+ box-sizing: border-box;
+ padding: 32px 16px 16px;
+ display: flex;
+ flex-direction: column;
+ width: 199px;
But you are using border-box property, so it includes border too. You can
check it with developer tools in google chrome
—
Reply to this email directly, view it on GitHub
<#2312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2EKJQSBRTHYLKB7EVUDLILWMZHIZANCNFSM6AAAAAAS3BWD6M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
</head> | ||
<body> | ||
<div class="card" data-qa="card"> | ||
<img class="card__image" |
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.
if you have more than 3 attributes move them on new line, each
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.
16 line - 2 attributes
17 line - everything ok )
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.
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> |
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.
haven't fixed
src/index.html
Outdated
<div class="word-price">Price:</div> | ||
<div class="price-value">$2,199</div> |
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.
here as well
src/index.html
Outdated
<a class="card__button" | ||
href="#" | ||
data-qa="hover" | ||
> | ||
Buy | ||
</a> |
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.
<a class="card__button" | |
href="#" | |
data-qa="hover" | |
> | |
Buy | |
</a> | |
<a | |
class="card__button" | |
href="#" | |
data-qa="hover" | |
> | |
Buy | |
</a> |
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.
Do not forget about the rules of correct code style
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.
Sorry, what do you mean?
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.
Amount of indent are incorrect
src/styles/card.css
Outdated
padding: 32px 16px 16px; | ||
display: flex; | ||
flex-direction: column; | ||
width: 199px; |
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.
CHECKLIST point 7, and I agree it should be 200px
@@ -0,0 +1,88 @@ | |||
.card { | |||
box-sizing: border-box; |
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.
move to *
selector
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.
haven't fixed
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.
in my case if I do it everything stops working at all
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.
U should move only box-sizing
to *
src/styles/card.css
Outdated
font-size: 12px; | ||
line-height: 18px; | ||
color: #060b35; | ||
margin: 0 0 4px; |
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.
why isn't it margin-bottom
?
src/styles/card.css
Outdated
|
||
.card__button { | ||
height: 40px; | ||
width: 166px; |
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.
width: 166px; | |
width: 100%; |
src/styles/stars.css
Outdated
background-image: url(../images/star-active.svg); | ||
} | ||
|
||
.stars__star:last-child { |
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.
CHECKLIST point 4
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.
what about this comment?
<img class="card__image" | ||
src="./images/imac.jpeg" | ||
alt="Apple A1419 iMac"> | ||
<h2 class="card__name"> |
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.
CHECKLIST point 3
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.
Thanks a lot ;)
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.
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" |
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.
I meant they should start from new line)
src/index.html
Outdated
<a class="card__button" | ||
href="#" | ||
data-qa="hover" | ||
> | ||
Buy | ||
</a> |
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.
Amount of indent are incorrect
@@ -0,0 +1,88 @@ | |||
.card { | |||
box-sizing: border-box; |
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.
haven't fixed
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.
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
<a class="card__button" | ||
href="#" | ||
data-qa="hover" | ||
> | ||
Buy | ||
</a> |
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.
<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; |
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.
U should move only box-sizing
to *
src/styles/card.css
Outdated
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
background: #fff; |
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.
default color for background
src/styles/stars.css
Outdated
background-image: url(../images/star-active.svg); | ||
} | ||
|
||
.stars__star:last-child { |
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.
what about this comment?