Index.cshtml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @{
  2. ViewData["Title"] = "LotteryV2 - Trang Chủ";
  3. }
  4. @using LotteryWebApp.Languages;
  5. @using LotteryWebApp.Controllers;
  6. @using LotteryWebApp.Common;
  7. <!-- Tailwind CSS isolated loaded specifically for this Page -->
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  10. <link rel="stylesheet" href="/LotteryV2/css/site.css" />
  11. <div class="main-container animate__animated animate__fadeIn">
  12. <div class="relative w-full flex flex-col items-center pt-3">
  13. <a href="@Url.Action("ChooseApp", "Account", new { area = "" })" class="absolute left-4 top-4 z-20 w-10 h-10 bg-white/20 backdrop-blur-md rounded-full flex items-center justify-center text-white border border-white/20 hover:bg-white/30 transition-all shadow-lg active:scale-90">
  14. <i class="fas fa-chevron-left text-lg"></i>
  15. </a>
  16. <!-- Logo -->
  17. <div class="w-56 z-10 filter drop-shadow-md">
  18. <img src="/LotteryV2/img/logo.png" alt="Logo" class="w-full h-auto object-contain">
  19. </div>
  20. <!-- Banner Illustration sits absolute layered or under -->
  21. <div class="w-full -mt-12">
  22. <img src="/LotteryV2/img/top_banner.png" alt="Top Banner" class="w-full h-auto object-cover">
  23. </div>
  24. </div>
  25. <!-- Game List Section -->
  26. <div class="px-4 mt-2">
  27. <div class="flex flex-col gap-3">
  28. <!-- Game Card 1: Basic Pick 10 (Dynamic Language) -->
  29. <div class="card-red relative w-full h-[110px] rounded-2xl overflow-hidden shadow-lg transform hover:scale-[1.01] transition-all duration-200 cursor-pointer animate__animated animate__slideInUp">
  30. <!-- Glowing effect circle inside card background -->
  31. <div class="absolute -left-4 -top-4 w-16 h-16 bg-white/10 rounded-full blur-xl"></div>
  32. <div class="absolute -right-4 -bottom-4 w-20 h-20 bg-black/10 rounded-full blur-xl"></div>
  33. <div class="absolute inset-0 grid grid-cols-10 items-center px-3 text-white">
  34. <!-- Left: Module and Ball component -->
  35. <div class="col-span-3 flex flex-col items-start justify-center pl-2">
  36. <div class="relative">
  37. <div class="text-[13px] font-black italic tracking-wider text-white">@Lang.Basic</div>
  38. <div class="text-[14px] font-black italic tracking-wider text-yellow-300 -mt-1">Pick</div>
  39. <!-- Yellow number style ball -->
  40. <div class="absolute left-10 top-2 w-7 h-7 bg-gradient-to-br from-yellow-300 to-yellow-500 rounded-full border border-white flex items-center justify-center shadow-md">
  41. <span class="text-red-700 font-extrabold text-xs">10</span>
  42. </div>
  43. </div>
  44. </div>
  45. <!-- Center: Dynamic text layer aligned for Translation -->
  46. <div class="col-span-4 flex flex-col items-center justify-center text-center">
  47. <div class="text-[10px] uppercase font-bold text-gray-200 tracking-wider">@Lang.jackpot_prize</div>
  48. <div class="text-2xl font-black text-yellow-400 mt-0.5" style="text-shadow: 0 2px 4px rgba(0,0,0,0.3)">100.000<span class="text-xs font-normal text-white"> @Lang.v2_htg</span></div>
  49. <div class="text-[9px] text-gray-200 mt-1 flex gap-1">@Lang.next_round <span class="font-bold text-white">05:00</span></div>
  50. </div>
  51. <!-- Right: Illustration from image overlay & button -->
  52. <div class="col-span-3 flex flex-col items-center justify-end h-full pb-2 relative">
  53. <img src="/LotteryV2/img/gold.png" alt="Chest" class="absolute -top-1 right-2 w-14 h-14 object-contain animate__animated animate__pulse animate__infinite animate__slow">
  54. <button class="bg-gradient-to-b from-yellow-300 to-yellow-400 text-red-700 font-extrabold px-3 py-1.5 rounded-xl text-[10px] shadow-md hover:from-yellow-200 hover:to-yellow-300" onclick="changeGame()" id="MEGA_LOTO_ID" value="@Constants.MEGA_LOTO">@Lang.play</button>
  55. </div>
  56. </div>
  57. </div>
  58. <!-- Card 2 and 3 commented out by user previously -->
  59. <!-- Game Card 2: Millionair (Dynamic Language) -->
  60. @* <div class="card-blue relative w-full h-[110px] rounded-2xl overflow-hidden shadow-lg transform hover:scale-[1.01] transition-all duration-200 cursor-pointer animate__animated animate__slideInUp animate__delay-1s">
  61. <div class="absolute -left-4 -top-4 w-16 h-16 bg-white/10 rounded-full blur-xl"></div>
  62. <div class="absolute inset-0 grid grid-cols-10 items-center px-3 text-white">
  63. <!-- Left: Millionair text content -->
  64. <div class="col-span-3 flex items-center h-full relative">
  65. <!-- Left Illustration overlapping -->
  66. <img src="/LotteryV2/img/m1.png" alt="Icon" class="absolute -left-1 bottom-0 h-[85px] object-contain">
  67. <div class="pl-12 text-[14px] font-black italic tracking-wider text-white mt-1">Millionair</div>
  68. </div>
  69. <div class="col-span-4 flex flex-col items-center justify-center text-center">
  70. <div class="text-[10px] uppercase font-bold text-gray-200 tracking-wider">Jackpot Prize</div>
  71. <div class="text-2xl font-black text-yellow-400 mt-0.5" style="text-shadow: 0 2px 4px rgba(0,0,0,0.3)">500.000<span class="text-xs font-normal text-white"> HTG</span></div>
  72. <div class="text-[9px] text-gray-200 mt-1 flex gap-1">Next round <span class="font-bold text-white">05:00</span></div>
  73. </div>
  74. <div class="col-span-3 flex flex-col items-center justify-end h-full pb-2 relative">
  75. <!-- Assuming multiple icons overlay, can absolute them. m1 was cash illustration downloaded earlier -->
  76. <button class="bg-gradient-to-b from-yellow-300 to-yellow-400 text-red-700 font-extrabold px-3 py-1.5 rounded-xl text-[10px] shadow-md hover:from-yellow-200 hover:to-yellow-300">Play now</button>
  77. </div>
  78. </div>
  79. </div> *@
  80. <!-- Game Card 3: Mega Bet -->
  81. @* <div class="card-orange relative w-full h-[110px] rounded-2xl overflow-hidden shadow-lg transform hover:scale-[1.01] transition-all duration-200 cursor-pointer animate__animated animate__slideInUp animate__delay-2s">
  82. <div class="absolute -left-4 -top-4 w-16 h-16 bg-white/10 rounded-full blur-xl"></div>
  83. <div class="absolute inset-0 grid grid-cols-10 items-center px-3 text-white">
  84. <!-- Left: Standard dynamic texts with overlay red car if any layout overlaps -->
  85. <div class="col-span-3 flex flex-col items-start justify-center pl-2">
  86. <div class="relative">
  87. <div class="text-[13px] font-black italic tracking-wider text-white">MEGA</div>
  88. <div class="text-[14px] font-black italic tracking-wider text-red-200 -mt-1">Bet</div>
  89. <div class="absolute left-10 top-1 flex">
  90. <span class="w-5 h-5 rounded-full bg-white text-gray-800 text-[10px] font-bold flex items-center justify-center border border-gray-300 -mr-1 shadow-sm">88</span>
  91. <span class="w-5 h-5 rounded-full bg-red-500 text-white text-[10px] font-bold flex items-center justify-center border border-white shadow-sm">99</span>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="col-span-4 flex flex-col items-center justify-center text-center">
  96. <div class="text-[10px] uppercase font-bold text-gray-200 tracking-wider">Jackpot Prize</div>
  97. <div class="text-2xl font-black text-yellow-400 mt-0.5" style="text-shadow: 0 2px 4px rgba(0,0,0,0.3)">800.000<span class="text-xs font-normal text-white"> HTG</span></div>
  98. <div class="text-[9px] text-gray-200 mt-1 flex gap-1">Next round <span class="font-bold text-white">05:00</span></div>
  99. </div>
  100. <div class="col-span-3 flex flex-col items-center justify-end h-full pb-2 relative">
  101. <!-- illustration3 is Red Car, absolute positioned overlay at the top edge of back section layout -->
  102. <img src="/LotteryV2/img/illustration3.png" alt="Car" class="absolute -top-1 -right-1 w-16 h-12 object-contain filter drop-shadow-md">
  103. <button class="bg-gradient-to-b from-yellow-300 to-yellow-400 text-red-700 font-extrabold px-3 py-1.5 rounded-xl text-[10px] shadow-md hover:from-yellow-200 hover:to-yellow-300">Play now</button>
  104. </div>
  105. </div>
  106. </div> *@
  107. </div>
  108. </div>
  109. </div>
  110. <script>
  111. function changeGame() {
  112. var termType = $("#MEGA_LOTO_ID").val();
  113. location.href = subDomain + '@Url.Action("GameHome", "Home", new { area = "LotteryV2" })?termType=' + termType;
  114. }
  115. </script>