Skip to content

Commit

Permalink
feat: Add How to Play Page to navigation bar
Browse files Browse the repository at this point in the history
- Added a "How to Play" link to the navigation bar in `main-header.ejs`.
- Temporarily linked the "How to Play" page to an external URL: https://tridecco.com/instructions.
- Ensured the link opens in a new tab for user convenience.

This enhancement provides users with easy access to game instructions, improving the overall user experience.
  • Loading branch information
TKanX committed Nov 18, 2024
1 parent 9195be7 commit f7a5c3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/components/main-header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
class="mr-5 <%= currentPage === 'play-now' ? 'text-gray-900' : 'hover:text-gray-900' %>">Play Now</a>
<a href="/leaderboard"
class="mr-5 <%= currentPage === 'leaderboard' ? 'text-gray-900' : 'hover:text-gray-900' %>">Leaderboard</a>
<a href="https://tridecco.com/instructions"
target="_blank" class="mr-5 hover:text-gray-900">How to Play</a>
</nav>
<button onclick="window.location.href = '/my'"
class="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">My
Expand Down

0 comments on commit f7a5c3f

Please sign in to comment.