Skip to content

Commit 8af9fef

Browse files
fparis-spclaude
andcommitted
fix: add missing link to pokemon detail in pokemon_card component
The pokemon_card.html component was missing the <a> wrapper to link to the pokemon detail page. This was mentioned as a TODO comment 'Pokemon detail route will be added in Task 7' but was never completed. Changes: - Wrapped the card div with an <a> tag using url_for('main.pokemon_detail') - Added transition-shadow class for smooth hover effect - Now clicking on any pokemon card navigates to its detail page This fix ensures the user experience matches the intended flow: Homepage → Click Pokemon → See Detail Page 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1f26552 commit 8af9fef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

claude-code/pokedex-flask-htmx/app/templates/components/pokemon_card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!-- Pokemon detail route will be added in Task 7 -->
2-
<div class="pokemon-card block bg-white rounded-lg shadow-md p-4 hover:shadow-xl">
1+
<a href="{{ url_for('main.pokemon_detail', name=pokemon.name) }}"
2+
class="pokemon-card block bg-white rounded-lg shadow-md p-4 hover:shadow-xl transition-shadow">
33
<div class="text-center">
44
<!-- Pokemon Image -->
55
<img src="https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/{{ pokemon.id }}.png"
@@ -17,4 +17,4 @@ <h3 class="text-lg font-bold text-gray-800 capitalize">
1717
{{ pokemon.display_name }}
1818
</h3>
1919
</div>
20-
</div>
20+
</a>

0 commit comments

Comments
 (0)