_BottomNavbar.cshtml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @using LotteryWebApp.Languages
  2. @{
  3. var activePage = ViewData["ActiveTab"] as string ?? "Home";
  4. }
  5. <!-- Bottom navigation (fixed at bottom) -->
  6. <nav class="navigation fixed left-1/2 -translate-x-1/2 bottom-3 z-[120] px-3 py-2 rounded-2xl w-[calc(100%-1.5rem)] max-w-[430px]"
  7. style="position:fixed; left:50%; transform:translateX(-50%); bottom:12px; width:calc(100% - 1.5rem); max-width:430px; z-index:120;">
  8. <div class="flex items-center justify-between">
  9. <a href="/Millions/Home/GameHome" class="nav-item @(activePage == "Home" ? "active" : "") flex flex-col items-center flex-1 no-underline">
  10. <img src="/Millions/assets/icons/nav-home.png" alt="" class="w-7 h-7"/>
  11. <span class="text-xs mt-1 @(activePage == "Home" ? "text-[#0062ff] font-semibold" : "text-gray-700")">Home</span>
  12. @if(activePage == "Home") {
  13. <span class="w-5 h-1 bg-[#0062ff] rounded-full mt-1"></span>
  14. }
  15. </a>
  16. <a href="/Millions/Home/Rule" class="nav-item @(activePage == "Rule" ? "active" : "") flex flex-col items-center flex-1 no-underline">
  17. <img src="/Millions/assets/icons/nav-rule.png" alt="" class="w-7 h-7"/>
  18. <span class="text-xs mt-1 @(activePage == "Rule" ? "text-[#0062ff] font-semibold" : "text-gray-700")">Rule</span>
  19. @if(activePage == "Rule") {
  20. <span class="w-5 h-1 bg-[#0062ff] rounded-full mt-1"></span>
  21. }
  22. </a>
  23. <a href="/Millions/Home/History" class="nav-item @(activePage == "History" ? "active" : "") flex flex-col items-center flex-1 no-underline">
  24. <img src="/Millions/assets/icons/nav-history.png" alt="" class="w-7 h-7"/>
  25. <span class="text-xs mt-1 @(activePage == "History" ? "text-[#0062ff] font-semibold" : "text-gray-700")">History</span>
  26. @if(activePage == "History") {
  27. <span class="w-5 h-1 bg-[#0062ff] rounded-full mt-1"></span>
  28. }
  29. </a>
  30. <a href="/Millions/Home/FAQ" class="nav-item @(activePage == "FAQ" ? "active" : "") flex flex-col items-center flex-1 no-underline">
  31. <img src="/Millions/assets/icons/nav-faq.png" alt="" class="w-7 h-7"/>
  32. <span class="text-xs mt-1 @(activePage == "FAQ" ? "text-[#0062ff] font-semibold" : "text-gray-700")">FAQ</span>
  33. @if(activePage == "FAQ") {
  34. <span class="w-5 h-1 bg-[#0062ff] rounded-full mt-1"></span>
  35. }
  36. </a>
  37. <a href="/Millions/Home/More" class="nav-item @(activePage == "More" ? "active" : "") flex flex-col items-center flex-1 no-underline">
  38. <img src="/Millions/assets/icons/nav-more.png" alt="" class="w-7 h-7"/>
  39. <span class="text-xs mt-1 @(activePage == "More" ? "text-[#0062ff] font-semibold" : "text-gray-700")">More</span>
  40. @if(activePage == "More") {
  41. <span class="w-5 h-1 bg-[#0062ff] rounded-full mt-1"></span>
  42. }
  43. </a>
  44. </div>
  45. </nav>