_Index.cshtml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. 
  2. @using VberZero.Settings
  3. @model string
  4. @{
  5. var systemName = Model ?? await SettingManager.GetSettingValueAsync(VzSettingNames.AdminSystemName);
  6. }
  7. <style>
  8. .content,#vber_content_container {
  9. padding:0!important;
  10. }
  11. .home-page {
  12. width: 100%;
  13. height: calc(100vh - 105px);
  14. position: relative;
  15. text-align: center;
  16. background: linear-gradient(60deg, rgba(54,58,183,1) 0, rgba(0,172,193,1) 100%);
  17. color: white;
  18. }
  19. @@media (min-width: 991.98px) {
  20. .home-page {
  21. height: calc(100vh - 115px);
  22. }
  23. }
  24. .home-page h1 {
  25. font-family: 'Lato', sans-serif;
  26. font-weight: 300;
  27. letter-spacing: 2px;
  28. font-size: 48px;
  29. color: white;
  30. }
  31. .home-page .inner-header {
  32. height: 65%;
  33. width: 100%;
  34. margin: 0;
  35. padding: 0;
  36. display: flex;
  37. justify-content: center;
  38. align-items: center;
  39. text-align: center;
  40. }
  41. .home-page .waves-box {
  42. width: 100%;
  43. height: 15%;
  44. min-height: 100px;
  45. max-height: 150px;
  46. }
  47. .home-page .waves-box .waves {
  48. width: 100%;
  49. height: 100%;
  50. }
  51. /* Animation */
  52. .home-page .parallax > use {
  53. animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
  54. }
  55. .home-page .parallax > use:nth-child(1) {
  56. animation-delay: -2s;
  57. animation-duration: 7s;
  58. }
  59. .home-page .parallax > use:nth-child(2) {
  60. animation-delay: -3s;
  61. animation-duration: 10s;
  62. }
  63. .home-page .parallax > use:nth-child(3) {
  64. animation-delay: -4s;
  65. animation-duration: 13s;
  66. }
  67. .home-page .parallax > use:nth-child(4) {
  68. animation-delay: -5s;
  69. animation-duration: 20s;
  70. }
  71. .home-page .footer {
  72. position: relative;
  73. height: 22%;
  74. text-align: center;
  75. background-color: white;
  76. margin-top: -15px;
  77. }
  78. @@keyframes move-forever {
  79. 0% {
  80. transform: translate3d(-90px,0,0);
  81. }
  82. 100% {
  83. transform: translate3d(85px,0,0);
  84. }
  85. }
  86. /*Shrinking for mobile*/
  87. @@media (max-width: 768px) {
  88. .home-page .waves {
  89. height: 40px;
  90. min-height: 40px;
  91. }
  92. .home-page h1 {
  93. font-size: 24px;
  94. }
  95. }
  96. </style>
  97. <div class="home-page">
  98. <div class="inner-header">
  99. <h1>@systemName</h1>
  100. </div>
  101. <!--Waves Container-->
  102. <div class="waves-box">
  103. <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
  104. viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
  105. <defs>
  106. <path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
  107. </defs>
  108. <g class="parallax">
  109. <use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(255,255,255,0.7" />
  110. <use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(255,255,255,0.5)" />
  111. <use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(255,255,255,0.3)" />
  112. <use xlink:href="#gentle-wave" x="48" y="7" fill="rgba(255,255,255,0.9)" />
  113. </g>
  114. </svg>
  115. </div>
  116. <!--Waves end-->
  117. <div class="footer"></div>
  118. </div>