Commit 8af9fef
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- claude-code/pokedex-flask-htmx/app/templates/components
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
0 commit comments