-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 task solution #4829
base: master
Are you sure you want to change the base?
add task solution #4829
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,256 @@ | |
/> | ||
<link | ||
rel="stylesheet" | ||
href="styles/index.scss" | ||
href="styles/main.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Catalog</h1> | ||
<header class="header"> | ||
<a | ||
href="#" | ||
target="_blank" | ||
> | ||
<img | ||
class="header__logo" | ||
src="./images/logo.png" | ||
alt="logo-moyo" | ||
/> | ||
</a> | ||
|
||
<nav class="header__nav"> | ||
<a class="header__nav-link is-active">Apple</a> | ||
<a class="header__nav-link">Samsung</a> | ||
<a class="header__nav-link">smartphones</a> | ||
<a | ||
class="header__nav-link" | ||
data-qa="nav-hover" | ||
> | ||
laptops & computers | ||
</a> | ||
<a class="header__nav-link">gadgets</a> | ||
<a class="header__nav-link">Tablets</a> | ||
<a class="header__nav-link">Photo</a> | ||
<a class="header__nav-link">Video</a> | ||
</nav> | ||
</header> | ||
|
||
<main class="catalog"> | ||
<div | ||
class="card" | ||
data-qa="card" | ||
> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button | ||
class="card__button-buy" | ||
data-qa="card-hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
</div> | ||
<div class="card"> | ||
<!--Product name and code--> | ||
<div class="card__text"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__prod-code">Product code: 195434</div> | ||
|
||
<!--product reviews and stars avaliation--> | ||
<section class="card__reviews"> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-star"></div> | ||
<div class="card__reviews-text">Reviews: 5</div> | ||
</section> | ||
|
||
<!--product price--> | ||
<section class="card__price"> | ||
<div>Price:</div> | ||
<div class="card__price-value">$2,199</div> | ||
</section> | ||
|
||
<!--button buy--> | ||
<button class="card__button-buy">BUY</button> | ||
Comment on lines
+88
to
+268
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The product details, including name, code, reviews, and price, are repeated multiple times with the same content. If this is intentional for layout testing, it is fine. However, for a real application, ensure that each product card displays unique data. |
||
</div> | ||
Comment on lines
+53
to
+269
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The product details are repeated multiple times with the same content. Ensure this repetition is intentional for testing purposes. In a real-world scenario, each product card should have unique content. |
||
</main> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
'use strict'; | ||
'use strict'; |
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 'href' attribute is set to '#', which is a placeholder. Consider replacing it with a valid URL or removing it if the link is not needed.