Skip to content

Commit

Permalink
made catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard committed Nov 13, 2024
1 parent 56dc17c commit 1169f74
Show file tree
Hide file tree
Showing 18 changed files with 564 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://fendered.github.io/layout_catalog/)
- [TEST REPORT LINK](https://fendered.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
325 changes: 324 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">
<!-- #region head -->
<head>
<meta charset="UTF-8" />
<meta
Expand All @@ -20,8 +21,330 @@
href="styles/index.scss"
/>
</head>
<!-- #endregion -->

<body>
<h1>Catalog</h1>
<!-- #region header -->
<header class="header">
<a href="index.html">
<img
class="header__logo"
src="./images/logo.png"
alt="logo"
/>
</a>
<nav class="header__navigation">
<ul class="header__list">
<li class="header__link"><a class="is-active">Apple</a></li>
<li class="header__link"><a>Samsung</a></li>
<li class="header__link"><a>Smartphones</a></li>
<li
class="header__link"
data-qa="nav-hover"
>
<a>Laptops & Computers</a>
</li>
<li class="header__link"><a>Gadgets</a></li>
<li class="header__link"><a>Tablets</a></li>
<li class="header__link"><a>Photo</a></li>
<li class="header__link"><a>Video</a></li>
</ul>
</nav>
</header>
<!-- #endregion -->
<main class="main">
<!-- #region card -->
<div
class="card"
data-qa="card"
>
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
<!-- #region card -->
<div class="card">
<img
class="card__image"
src="/src/images/imac.jpeg"
alt="Product"
/>
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__subtitle">Product code: 195434</p>

<div class="card__response">
<div class="stars">
<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>

<div class="card__text">Reviews: 5</div>
</div>

<div class="card__price">
<p class="left">Price:</p>
<p class="right">$2,199</p>
</div>
<a
href="#"
class="card__buy"
>
BUY
</a>
</div>
<!-- #endregion -->
</main>
</body>
</html>
Binary file added src/styles/fonts/Roboto/Roboto-Black.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-BlackItalic.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Italic.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-LightItalic.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file added src/styles/fonts/Roboto/Roboto-ThinItalic.ttf
Binary file not shown.
12 changes: 12 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
@import './modules/card';
@import './modules/header';
@import './modules/main';

@font-face {
font-family: Roboto;
src: url(./fonts/Roboto/Roboto-Medium.ttf);
font-weight: 500;
font-style: normal;
}

body {
margin: 0;
font-family: Roboto, sans-serif;
}
Loading

0 comments on commit 1169f74

Please sign in to comment.