Skip to content

Commit

Permalink
catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
AnoriFrell committed Jan 11, 2025
1 parent 56dc17c commit 7418a74
Show file tree
Hide file tree
Showing 7 changed files with 527 additions and 4 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Create an HTML page with a catalog. Develop semantic page structure as shown on
- add `data-qa="card-hover"` (not just `hover`) to the link `Buy` inside the first card
- nav links color is not `black` anymore (nav links should have `#060b35` color)
- add the class `is-active` to the first link (`Apple`) in the navigation
- use `<main>` tag for cards container
- use `<main>` tag for cards container
- use the grid for cards with different numbers of columns:
- 1 for the smaller screens
- 2 starting at `488px`
Expand All @@ -33,8 +33,8 @@ This is possible because [we use the Parcel library](https://en.parceljs.org/scs
## Checklist

❗️ Replace `<your_account>` with your GitHub username and copy the links to the `Pull Request` description:
- [DEMO LINK](https://<your_account>.github.io/layout_catalog/)
- [TEST REPORT LINK](https://<your_account>.github.io/layout_catalog/report/html_report/)
- [DEMO LINK](https://AnoriFrell.github.io/layout_catalog/)
- [TEST REPORT LINK](https://AnoriFrell.github.io/layout_catalog/report/html_report/)

❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it.

Expand Down
318 changes: 317 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,322 @@
</head>

<body>
<h1>Catalog</h1>
<header class="header">
<a href="#top">
<img
src="/src/images/logo.png"
alt="logo"
class="header__logo"
/>
</a>
<nav class="nav">
<a class="nav__link is-active">Apple</a>
<a class="nav__link">Samsung</a>
<a class="nav__link">Smartphones</a>
<a
class="nav__link"
data-qa="nav-hover"
>
Laptops &amp; Computers
</a>
<a class="nav__link">Gadgets</a>
<a class="nav__link">Tablets</a>
<a class="nav__link">Photo</a>
<a class="nav__link">Video</a>
</nav>
</header>
<main class="container">
<div
class="card"
data-qa="card"
>
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
data-qa="card-hover"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>

<div class="card">
<div class="card__image-container">
<img
src="images/imac.jpeg"
class="card__image"
alt="mac-photo"
/>
</div>
<h1 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<h3 class="card__code">Product code: 195434</h3>
<div class="card__stars">
<div class="card__stars-container">
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
<div class="card__stars-star"></div>
</div>
<h3 class="card__stars-reviews">Reviews: 5</h3>
</div>
<div class="card__price">
<h2 class="card__price-text">Price:</h2>
<h2 class="card__price-number">$2,199</h2>
</div>
<div class="card__button-container">
<a
href="#"
class="card__button card__button--styles"
>
Buy
</a>
</div>
</div>
</main>
</body>
</html>
Loading

0 comments on commit 7418a74

Please sign in to comment.