-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 again #4980
base: master
Are you sure you want to change the base?
add task solution again #4980
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 |
---|---|---|
|
@@ -22,6 +22,355 @@ | |
</head> | ||
|
||
<body> | ||
<h1>Catalog</h1> | ||
<header class="header"> | ||
<a href="#"> | ||
<img | ||
class="logo" | ||
src="images/logo.png" | ||
alt="Company logo" | ||
/> | ||
</a> | ||
|
||
<nav class="nav"> | ||
<ul class="nav__list"> | ||
<li> | ||
<a | ||
class="nav__link is-active" | ||
href="#" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
samsung | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
smartphones | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
data-qa="nav-hover" | ||
href="#" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
gadgets | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
tablets | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
photo | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
class="nav__link" | ||
href="#" | ||
> | ||
video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<main> | ||
<div class="container"> | ||
<div | ||
class="card" | ||
data-qa="card" | ||
> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
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 code is repeated across multiple cards. If these are meant to be different products, ensure each card has unique content. |
||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
Comment on lines
+119
to
+125
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 star rating is hardcoded as 'stars--4' and 'Reviews: 5' across all cards. If these are meant to represent different products, consider making these values dynamic. |
||
</div> | ||
|
||
<div class="card__price"> | ||
<p class="card__price_text">Price:</p> | ||
<p class="card__price_amount">$2,199</p> | ||
Comment on lines
+128
to
+130
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 price is hardcoded as '$2,199' across all cards. If these are meant to represent different products, ensure each card has a unique price. |
||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="card-hover" | ||
> | ||
BUY | ||
Comment on lines
+134
to
+138
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 'BUY' button is repeated across all cards. Consider using a loop or a component-based approach to generate these cards dynamically if the content is similar. |
||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="card"> | ||
<div class="card__image"></div> | ||
|
||
<h2 class="card__apple"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
|
||
<p class="card__product">Product code: 195434</p> | ||
|
||
<div class="stars stars--4"> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__image"></div> | ||
<div class="stars__text">Reviews: 5</div> | ||
</div> | ||
|
||
<div class="card__price"> | ||
<div class="card__price_text">Price:</div> | ||
<div class="card__price_amount">$2,199</div> | ||
</div> | ||
|
||
<div class="card__box"> | ||
<button | ||
class="card__button card__button--text" | ||
data-qa="hover" | ||
> | ||
BUY | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
</html> |
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 product name is hardcoded in multiple places. Consider using a templating engine or JavaScript to dynamically generate these elements to avoid repetition and make updates easier.