Index_S.cshtml 3.3 KB

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