-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpokemon.ejs
More file actions
32 lines (28 loc) · 906 Bytes
/
pokemon.ejs
File metadata and controls
32 lines (28 loc) · 906 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles.css">
<title>Pokemon Details</title>
</head>
<body>
<h1>Details for <%= pokemon.name.charAt(0).toUpperCase() + pokemon.name.slice(1) %></h1>
<img src="<%= pokemon.sprites.front_default %>" alt="<%= pokemon.name %>">
<p><strong>Height:</strong> <%= pokemon.height %> decimetres</p>
<p><strong>Weight:</strong> <%= pokemon.weight %> hectograms</p>
<h2>Abilities</h2>
<ul>
<% pokemon.abilities.forEach(ability => { %>
<li><%= ability.ability.name %></li>
<% }) %>
</ul>
<h2>Stats</h2>
<ul>
<% pokemon.stats.forEach(stat => { %>
<li><strong><%= stat.stat.name %>:</strong> <%= stat.base_stat %></li>
<% }) %>
</ul>
<a href="/">Search for another Pokémon</a>
</body>
</html>