-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
52 lines (52 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Marvel Universe</title>
<link rel="stylesheet" href="/assets/style.css" />
</head>
<body>
<main>
<header>
<div class="metadata">
<a href="/">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Marvel_Logo.svg/2560px-Marvel_Logo.svg.png" width="96px"/>
</a>
</div>
<form action="/search" method="GET">
<input
autofocus
class="search-input"
value="{{ .Query }}"
placeholder="Enter a Marvel Character name"
type="search"
name="character"
/>
</form>
<a
target="_blank"
href="https://github.com/koseburak/marvel-universe-web"
class="button github-button"
>View on GitHub</a
>
</header>
<section class="container">
<ul class="search-results">
{{ range.Results.Data.Results }}
<li class="news-article">
<div>
<a target="_blank" rel="noreferrer noopener" href="{{ .Thumbnail.Path }}.{{ .Thumbnail.Extension }}">
<h3 class="title">{{.Name }}</h3>
</a>
<p class="description">{{ .Description }}</p>
</div>
<img class="article-image" src="{{ .Thumbnail.Path }}.{{ .Thumbnail.Extension }}" width="256px" />
</li>
{{ end }}
</ul>
</section>
</main>
</body>
</html>