Skip to content

Commit

Permalink
заготовка
Browse files Browse the repository at this point in the history
  • Loading branch information
sidlicki committed Sep 15, 2023
1 parent 8a5a06e commit 04a103b
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 15 deletions.
176 changes: 175 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"url": "https://github.com/goitacademy/parcel-project-template/issues"
},
"dependencies": {
"modern-normalize": "^1.1.0"
"axios": "^1.5.0",
"modern-normalize": "^1.1.0",
"notiflix": "^3.2.6",
"simplelightbox": "^2.14.2"
},
"devDependencies": {
"@parcel/transformer-sass": "^2.6.0",
Expand Down
37 changes: 24 additions & 13 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Homework 10</title>
</head>
<body>
<select class="breed-select"></select>
<p class="loader">Loading data, please wait...</p>
<p class="error">Oops! Something went wrong! Try reloading the page!</p>
<div class="cat-info"></div>

<script src="index.js" type="module"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Homework 11</title>
</head>

<body>
<header class="page-header">
<form class="search-form" id="search-form">
<input type="text" name="searchQuery" autocomplete="off" placeholder="Search images..." />
<button type="submit">Search</button>
</form>
</header>
<main>
<div class="container">
<div class="gallery">
<!-- Картки зображень -->
</div>
</div>
</main>
<script src="index.js" type="module"></script>
</body>

</html>
13 changes: 13 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//key api pixaby: 39466689-b0058dc694ac3f446d63717a4

// імпорти

// константи елементів

// зчитування значення з пошуку та виклик функції запиту на бекенд після сабміта

// функція запиту на бекенд за массивом зоображень

// функція додавання розмітки в хтмл

// + плавне прокручування

0 comments on commit 04a103b

Please sign in to comment.