Skip to content

Commit

Permalink
change team styles
Browse files Browse the repository at this point in the history
  • Loading branch information
picklejason committed Dec 20, 2022
1 parent 14968c5 commit 2382774
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ input[type="submit"] {
}

.team {
display: flex;
position: fixed;
top: 45%;
left: 50%;
Expand All @@ -163,7 +164,7 @@ input[type="submit"] {
}

.team img {
width: 15%;
width: 100%;
}

.select-image {
Expand Down
14 changes: 10 additions & 4 deletions views/team.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@
<h1><%- name %>'s Team</h1>
<div class="team">
<% pokemons.forEach((pokemon, index) => { %>
<a class="select-text" href="../pokemon/<%= pokemon %>"
><img
<a class="select-text" href="../pokemon/<%= pokemon %>">
<img
src="<%= sprites[index] %>"
alt="<%= pokemon %>"
class="select-image" /></a
><% }); %>
class="select-image"
/>
<br />
<span>
<b><%= pokemon.charAt(0).toUpperCase() + pokemon.slice(1) %></b>
</span>
</a>
<% }); %>
</div>
</body>
</html>

0 comments on commit 2382774

Please sign in to comment.