-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (67 loc) · 2.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Rick and Morty Character Log</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<h1 class="title">Rick and More</h1>
<main>
<div class="search-bar-container" data-js="search-bar-container">
<form action="" class="search-bar" data-js="search-bar">
<input
name="query"
class="search-bar__input"
type="text"
placeholder="search characters"
aria-label="character name"
/>
<button class="search-bar__button" aria-label="search for character">
<img
class="search-bar__icon"
src="assets/magnifying-glass.png"
alt=""
/>
</button>
</form>
</div>
<ul class="card-container" data-js="card-container">
<li class="card">
<div class="card__image-container">
<img
class="card__image"
src="https://rickandmortyapi.com/api/character/avatar/1.jpeg"
alt="Rick Sanchez"
/>
<div class="card__image-gradient"></div>
</div>
<div class="card__content">
<h2 class="card__title">Rick Sanchez</h2>
<dl class="card__info">
<dt class="card__info-title">Status</dt>
<dd class="card__info-description">Alive</dd>
<dt class="card__info-title">Type</dt>
<dd class="card__info-description"></dd>
<dt class="card__info-title">Occurrences</dt>
<dd class="card__info-description">51</dd>
</dl>
</div>
</li>
</ul>
</main>
<nav class="navigation" data-js="navigation">
<button class="button button--prev" data-js="button-prev">
previous
</button>
<span class="navigation__pagination" data-js="pagination">1 / 1</span>
<button class="button button--next" data-js="button-next">next</button>
</nav>
</body>
<script type="module" src="./index.js"></script>
<script type="module" src="./components/SearchBar/SearchBar.js"></script>
</html>