Index.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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-3 -mt-24 relative z-30">
  27. <div class="flex flex-col gap-3">
  28. <!-- Game Card 1: Basic Pick 10 -->
  29. <div class="relative w-full h-[120px] rounded-2xl overflow-hidden shadow-2xl transform active:scale-[0.98] transition-all duration-300 cursor-pointer animate__animated animate__slideInUp card-red" onclick="changeGame()">
  30. <!-- 1. Premium Gradient Border -->
  31. <div class="absolute inset-0 rounded-2xl border-[1.5px] border-white/40 pointer-events-none z-20"></div>
  32. <!-- 2. Decorative Highlights -->
  33. <img src="/LotteryV2/img/decorations/ellipse_1183.png" class="absolute -left-[80px] -top-[130px] w-[220px] h-[220px] pointer-events-none z-10 mix-blend-screen opacity-90 scale-y-[-1]" alt="highlight">
  34. <img src="/LotteryV2/img/decorations/ellipse_1181.png" class="absolute -right-[60px] -top-[20px] w-[200px] h-[200px] pointer-events-none z-10 mix-blend-screen opacity-90" alt="highlight">
  35. <div class="absolute inset-0 grid grid-cols-12 items-center px-3 z-20 gap-0">
  36. <!-- Left: Basic Pick + Ball (4 columns) -->
  37. <div class="col-span-4 flex items-center gap-1 pl-1">
  38. <div class="flex flex-col leading-none">
  39. <!-- <span class="text-white font-black italic text-[14px]">@Lang.Basic</span> -->
  40. <span class="text-yellow-400 font-black italic text-[22px] -mt-1 shadow-sm">@Lang.Pick</span>
  41. </div>
  42. <div class="w-8 h-8 bg-gradient-to-br from-yellow-300 to-yellow-500 rounded-full border-[2px] border-white flex items-center justify-center shadow-xl transform rotate-12 flex-shrink-0">
  43. <span class="text-red-700 font-black text-xl">10</span>
  44. </div>
  45. </div>
  46. <!-- Center: Jackpot info (4 columns) -->
  47. <div class="col-span-4 flex flex-col items-center justify-center text-center px-1">
  48. <div class="text-[10px] font-bold text-white mb-0.5 whitespace-nowrap opacity-90 leading-none uppercase">@Lang.jackpot_prize</div>
  49. <div class="flex items-start gap-0.5">
  50. <span class="text-[22px] font-black text-[#FBF3A7] leading-none" style="text-shadow: 0 4px 8px rgba(0,0,0,0.3)">1.000.000</span>
  51. <span class="text-[8px] font-bold text-white uppercase opacity-90 mt-1">HTG</span>
  52. </div>
  53. <div class="text-[10px] text-white/90 font-medium whitespace-nowrap mt-1">@Lang.next : <span class="font-black text-yellow-300 countdown-timer">00:00:00</span></div>
  54. </div>
  55. <!-- Right: Action Section (4 columns) -->
  56. <div class="col-span-4 flex flex-col items-center justify-end h-full pb-4 relative cursor-pointer group">
  57. <img src="/LotteryV2/img/gold.png" alt="Chest" class="absolute bottom-[40px] w-16 h-18 object-contain filter drop-shadow-lg z-10 group-active:scale-95 transition-transform">
  58. <button class="bg-gradient-to-b from-yellow-300 to-white text-black font-black px-2 w-full max-w-[110px] py-1.5 rounded-[12px] text-[13px] shadow-xl border border-white/50 group-hover:brightness-110 group-active:scale-95 transition-all relative z-0" id="MEGA_LOTO_ID" value="@Constants.MEGA_LOTO">@Lang.rule_play_now</button>
  59. </div>
  60. </div>
  61. </div>
  62. <!-- Card 2 and 3 commented out by user previously -->
  63. <!-- Game Card 2: Millionair - Blurred/Faded State -->
  64. <div class="card-blue relative w-full h-[120px] rounded-2xl overflow-hidden shadow-md opacity-25 grayscale blur-[1px] pointer-events-none animate__animated animate__slideInUp animate__delay-1s">
  65. <!-- 1. Premium Gradient Border -->
  66. <div class="absolute inset-0 rounded-2xl border-[1.5px] border-white/20 pointer-events-none z-20"></div>
  67. <!-- 2. Decorative Highlights -->
  68. <div class="absolute -left-[70px] -top-[108px] w-[193px] h-[193px] bg-gradient-to-br from-white/30 to-transparent rounded-full blur-3xl pointer-events-none"></div>
  69. <div class="absolute inset-0 grid grid-cols-12 items-center px-3 z-20 gap-0 text-white">
  70. <!-- Left: Millionair text content (4 columns) -->
  71. <div class="col-span-4 flex items-center h-full relative pl-1">
  72. <img src="/LotteryV2/img/m1.png" alt="Icon" class="absolute -left-2 bottom-0 h-[90px] object-contain z-0 opacity-80">
  73. <div class="relative z-10 text-[14px] font-black italic tracking-wider text-white drop-shadow-lg leading-tight pl-2">@Lang.millionair</div>
  74. </div>
  75. <!-- Center: Jackpot info (4 columns) -->
  76. <div class="col-span-4 flex flex-col items-center justify-center text-center px-1">
  77. <div class="text-[10px] uppercase font-bold text-gray-200 mb-0.5 whitespace-nowrap opacity-90 leading-none">@Lang.jackpot_prize</div>
  78. <div class="flex items-start gap-0.5">
  79. <span class="text-[23px] font-black text-[#FBF3A7] leading-none" style="text-shadow: 0 4px 8px rgba(0,0,0,0.3)">500.000</span>
  80. <span class="text-[8px] font-bold text-white uppercase opacity-90 mt-1">HTG</span>
  81. </div>
  82. <div class="text-[10px] text-white/90 font-medium whitespace-nowrap mt-1">@Lang.next : <span class="font-black text-yellow-300 countdown-timer">00:00:00</span></div>
  83. </div>
  84. <!-- Right: Action Section (4 columns) -->
  85. <div class="col-span-4 flex flex-col items-center justify-end h-full pb-4 relative px-1">
  86. <img src="/LotteryV2/img/money_bag_large.png" alt="Money Bag" class="absolute bottom-[40px] w-16 h-18 object-contain filter drop-shadow-lg z-10">
  87. <button class="bg-gradient-to-b from-yellow-300 to-white text-black font-black px-2 w-full max-w-[110px] py-1.5 rounded-[12px] text-[13px] shadow-xl border border-white/50 group-hover:brightness-110 group-active:scale-95 transition-all relative z-0">@Lang.rule_play_now</button>
  88. </div>
  89. </div>
  90. </div>
  91. <!-- Game Card 3: Mega Bet - Blurred/Faded State -->
  92. <div class="card-orange relative w-full h-[120px] rounded-2xl overflow-hidden shadow-md opacity-25 grayscale blur-[1px] pointer-events-none animate__animated animate__slideInUp animate__delay-2s">
  93. <!-- 1. Premium Gradient Border -->
  94. <div class="absolute inset-0 rounded-2xl border-[1.5px] border-white/20 pointer-events-none z-20"></div>
  95. <!-- 2. Decorative Highlights -->
  96. <div class="absolute -left-[70px] -top-[108px] w-[193px] h-[193px] bg-gradient-to-br from-white/30 to-transparent rounded-full blur-3xl pointer-events-none"></div>
  97. <div class="absolute inset-0 grid grid-cols-12 items-center px-3 z-20 gap-0 text-white">
  98. <!-- Left: Mega Bet text content (4 columns) -->
  99. <div class="col-span-4 flex flex-col items-start justify-center pl-2">
  100. <div class="relative">
  101. <div class="text-[14px] font-black italic tracking-wider text-white">@Lang.MEGA</div>
  102. <div class="text-[15px] font-black italic tracking-wider text-red-200 -mt-1">@Lang.Bet</div>
  103. <div class="absolute left-10 top-1 flex shadow-lg">
  104. <span class="w-6 h-6 rounded-full bg-white text-gray-800 text-[11px] font-bold flex items-center justify-center border border-gray-300 -mr-1">88</span>
  105. <span class="w-6 h-6 rounded-full bg-red-500 text-white text-[11px] font-bold flex items-center justify-center border border-white">99</span>
  106. </div>
  107. </div>
  108. </div>
  109. <!-- Center: Jackpot info (4 columns) -->
  110. <div class="col-span-4 flex flex-col items-center justify-center text-center px-1">
  111. <div class="text-[10px] uppercase font-bold text-gray-200 mb-0.5 whitespace-nowrap opacity-90 leading-none">@Lang.jackpot_prize</div>
  112. <div class="flex items-start gap-0.5">
  113. <span class="text-[23px] font-black text-[#FBF3A7] leading-none" style="text-shadow: 0 4px 8px rgba(0,0,0,0.3)">800.000</span>
  114. <span class="text-[8px] font-bold text-white uppercase opacity-90 mt-1">HTG</span>
  115. </div>
  116. <div class="text-[10px] text-white/90 font-medium whitespace-nowrap mt-1">@Lang.next : <span class="font-black text-yellow-300 countdown-timer">00:00:00</span></div>
  117. </div>
  118. <!-- Right: Action Section (4 columns) -->
  119. <div class="col-span-4 flex flex-col items-center justify-end h-full pb-4 relative px-1">
  120. <img src="/LotteryV2/img/illustration3.png" alt="Car" class="absolute bottom-[40px] w-16 h-18 object-contain filter drop-shadow-lg z-10 orientation-flip">
  121. <button class="bg-gradient-to-b from-yellow-300 to-white text-black font-black px-2 w-full max-w-[110px] py-1.5 rounded-[12px] text-[13px] shadow-xl border border-white/50 group-hover:brightness-110 group-active:scale-95 transition-all relative z-0">@Lang.rule_play_now</button>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <script>
  129. function changeGame() {
  130. var termType = $("#MEGA_LOTO_ID").val();
  131. location.href = subDomain + '@Url.Action("GameHome", "Home", new { area = "LotteryV2" })?termType=' + termType;
  132. }
  133. function startCountdown() {
  134. const targetHour = 20; // 20:00 (8 PM)
  135. const timers = document.querySelectorAll('.countdown-timer');
  136. function update() {
  137. const now = new Date();
  138. let target = new Date();
  139. target.setHours(targetHour, 0, 0, 0);
  140. if (now >= target) {
  141. target.setDate(target.getDate() + 1);
  142. }
  143. const diff = target - now;
  144. const h = Math.floor(diff / (1000 * 60 * 60));
  145. const m = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
  146. const s = Math.floor((diff % (1000 * 60)) / 1000);
  147. const timeStr = `${h.toString().padStart(2, '0')}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;
  148. timers.forEach(t => t.innerText = timeStr);
  149. }
  150. update();
  151. setInterval(update, 1000);
  152. }
  153. document.addEventListener('DOMContentLoaded', startCountdown);
  154. </script>