-
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 #4837
base: master
Are you sure you want to change the base?
add task solution #4837
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 |
---|---|---|
|
@@ -19,9 +19,367 @@ | |
rel="stylesheet" | ||
href="styles/index.scss" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="styles/reset.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Catalog</h1> | ||
<header class="header"> | ||
<a href="/"> | ||
<img | ||
src="images/logo.png" | ||
alt="Moyo logo" | ||
class="header__logo" | ||
/> | ||
</a> | ||
|
||
<nav class="nav"> | ||
<ul class="nav__list"> | ||
<li class="nav__link"> | ||
<a | ||
href="/apple" | ||
class="nav__item is-active" | ||
> | ||
Apple | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/samsung" | ||
class="nav__item" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/smartphones" | ||
class="nav__item" | ||
> | ||
Smartphones | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/laptop-Computers" | ||
class="nav__item" | ||
data-qa="nav-hover" | ||
> | ||
Laptops & Computers | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/gadgets" | ||
class="nav__item" | ||
> | ||
Gadgets | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/tablets" | ||
class="nav__item" | ||
> | ||
Tablets | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/photo" | ||
class="nav__item" | ||
> | ||
Photo | ||
</a> | ||
</li> | ||
|
||
<li class="nav__link"> | ||
<a | ||
href="/video" | ||
class="nav__item" | ||
> | ||
Video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
<main> | ||
<div | ||
class="card" | ||
data-qa="card" | ||
> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
data-qa="card-hover" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
|
||
<div class="card"> | ||
<img | ||
class="card__img" | ||
src="./images/imac.jpeg" | ||
alt="imac image" | ||
/> | ||
|
||
<p class="card__title"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</p> | ||
<p class="card__product-code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars stars--4"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__price"> | ||
<p class="card__name-price">Price:</p> | ||
<p class="card__num-price">$2,199</p> | ||
</div> | ||
<button | ||
class="card__button" | ||
type="button" | ||
> | ||
Buy | ||
</button> | ||
Comment on lines
+116
to
+381
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 card content is repeated multiple times with the same data. Consider using a template engine or JavaScript to dynamically generate these cards to avoid redundancy and improve maintainability.
Comment on lines
+116
to
+381
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 card content is repeated multiple times with the same data. Consider using a template engine or JavaScript to dynamically generate these cards to reduce redundancy and improve maintainability. |
||
</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 HTML file is linking to an SCSS file (
styles/index.scss
). Browsers cannot interpret SCSS, so make sure to compile your SCSS files to CSS before linking them in your HTML.