VietnameseIndex.cshtml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. 
  2. @{
  3. ViewBag.Title = "Vietnamese";
  4. Layout = "~/Views/Shared/_LayoutHome.cshtml";
  5. }
  6. <link rel="stylesheet" href="~/Content/assets/css/animate.css" />
  7. <link rel="stylesheet" href="~/Content/assets/css/home-listening.css" />
  8. <link rel="stylesheet" href="~/Content/assets/css/m-home-listen.css" />
  9. @*<link rel="stylesheet" href="~/Content/assets/css/main-listening.css" />*@
  10. <script src="~/Content/assets/js/wow.min.js" type="text/javascript"></script>
  11. <script src="~/Content/assets/js/home-listening.js" type="text/javascript"></script>
  12. <script src="~/Content/assets/js/m-home-listen.js" type="text/javascript"></script>
  13. @using NEducation.Content.Texts;
  14. @using NEducation.Controllers;
  15. @using NEducation.Code;
  16. @{
  17. String isSub = Session["isSub"] as String;
  18. UserProfile profile = Session["profile"] as UserProfile;
  19. }
  20. @section navMenu{
  21. <a href="/Home/" class="nav-link">@Lang.Home</a>
  22. <a href="/Home/EnglishIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.ENGLISH">@Lang.english</a>
  23. <a href="/Home/VietnameseIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.VIETNAMESE">@Lang.vietnamese</a>
  24. <a href="/Home/LaosIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.LAOS">@Lang.laos</a>
  25. @*<a href="/Ebook/" class="nav-link">
  26. @Lang.Ebook
  27. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  28. </a>*@
  29. <div class="dropdown nav-link">
  30. <button onclick="myFunction()" class="dropbtn">
  31. E-Library
  32. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  33. </button>
  34. <div id="myDropdown" class="dropdown-content">
  35. <a href="/Ebook/">@Lang.Ebook</a>
  36. <a href="/Ebook/Video">Children's Video</a>
  37. </div>
  38. </div>
  39. }
  40. @section menu{
  41. <a href="/Home/" class="header-menu-link ">@Lang.Home</a>
  42. <a href="/Home/EnglishIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.ENGLISH">@Lang.english</a>
  43. <a href="/Home/VietnameseIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.VIETNAMESE">@Lang.vietnamese</a>
  44. <a href="/Home/LaosIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.LAOS">@Lang.laos</a>
  45. @*<a href="/Ebook/" class="header-menu-link ">
  46. @Lang.Ebook
  47. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  48. </a>*@
  49. <li class="menu-item-has-children header-menu-link ">
  50. <a href="#" class="">
  51. E-Library
  52. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  53. </a>
  54. <ul class="" style=" margin-left: 20px;">
  55. <li><a href="/Ebook/">@Lang.Ebook</a></li>
  56. <li><a href="/Ebook/Video">Children's Video</a></li>
  57. </ul>
  58. </li>
  59. }
  60. <!-- Top -->
  61. <div class="home-top">
  62. <div class="home-top-bg"></div>
  63. <div class="home-cover">
  64. <div class="row">
  65. <div class="col-xs-12 col-sm-6">
  66. @*<div class="top-left-logo"></div>*@
  67. <h1 class="top-left-header">
  68. <img src="~/Content/assets/imgs/student.png" /><br />
  69. <span id="title">USTUDY</span>
  70. </h1>
  71. <p class="top-left-text">
  72. @Lang.OvercomingAnObstacleWithYouViet
  73. </p>
  74. <img class="top-left-image wow bounceInLeft" data-wow-duration="3s" src="~/Content/assets/imgs/home_travel.png" alt="Avec vous, supprimez la barrière anglaise" />
  75. </div>
  76. <div class="col-xs-12 col-sm-6">
  77. <h1 class="top-right-title">@Lang.ListeningViet</h1>
  78. <h2 class="top-right-des">
  79. @Lang.RegisterWithUnitelEduViet
  80. </h2>
  81. @{
  82. if (isSub == "true")
  83. {
  84. <a href="/Common/course?courseType=@UtilsController.Constant.VN_LISTEN" class="top-right-button">
  85. @NEducation.Content.Texts.Lang.TryForFree1
  86. </a>
  87. }
  88. else if (profile != null)
  89. {
  90. <a class="top-right-button" href="#" onclick="registerAction(@UtilsController.Constant.VIETNAMESE); return 0;">
  91. @NEducation.Content.Texts.Lang.Register
  92. </a>
  93. }
  94. else
  95. {
  96. // show register
  97. <a class="top-right-button" data-toggle="modal" data-target="#signup-dialog">
  98. @NEducation.Content.Texts.Lang.Register
  99. </a>
  100. }
  101. }
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <!-- MODAL -->
  107. <style type="text/css">
  108. #home-video {
  109. text-align: center;
  110. }
  111. #home-video .modal-dialog {
  112. display: inline-block;
  113. width: unset;
  114. }
  115. #home-video .modal-content {
  116. padding: 30px;
  117. border-radius: 10px;
  118. }
  119. #home-video .modal-video-close {
  120. position: absolute;
  121. right: -8px;
  122. top: -8px;
  123. background: #fff;
  124. border-radius: 50%;
  125. height: 21px;
  126. width: 20px;
  127. cursor: pointer;
  128. z-index: 2;
  129. }
  130. #home-video .modal-video-close i {
  131. font-size: 25px;
  132. color: #2e2e2e;
  133. line-height: 22px;
  134. transition: all 0.2s linear;
  135. }
  136. #home-video .modal-video-close:hover i {
  137. color: #3c3c3c;
  138. }
  139. #home-video iframe {
  140. max-width: 100%;
  141. max-height: 100%;
  142. }
  143. @@media (max-width: 767px) {
  144. .home-top .top-left-image {
  145. max-width: 260px !important;
  146. margin: 10px auto 20px;
  147. }
  148. }
  149. </style>
  150. <script src="~/Content/assets/js/jssor.slider.min.js" type="text/javascript"></script>
  151. <script src="~/Content/assets/js/home.js" type="text/javascript"></script>
  152. <script>
  153. $(document).ready(function () {
  154. // Optimalisation: Store the references outside the event handler:
  155. var $window = $(window);
  156. var $panew = $('#top-wide');
  157. var $panem = $('#top-m');
  158. function checkWidth() {
  159. var windowsize = $window.width();
  160. if (windowsize > 680) {
  161. //if the window is greater than 440px wide then turn on jScrollPane..
  162. $panew.css('display', '');
  163. $panem.css('display', 'none');
  164. } else {
  165. $panew.css('display', 'none');
  166. $panem.css('display', '');
  167. }
  168. }
  169. // Execute on load
  170. checkWidth();
  171. // Bind event listener
  172. $(window).resize(checkWidth);
  173. });
  174. </script>