Index.cshtml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @using Abp.Configuration
  2. @using WeApp.Authorization
  3. @using WeApp.Configuration
  4. @{
  5. ViewBag.ActiveMenu = PermissionNames.Pages; //The menu item will be active for this page.
  6. var systemName = SettingManager.GetSettingValue(IwbSettingNames.AdminSystemName);
  7. string path = SettingManager.GetSettingValue(IwbSettingNames.HomePagePath);
  8. ViewBag.Title = systemName;
  9. }
  10. @section css{
  11. <style>
  12. .content, .container-fluid, .content-wrapper {
  13. padding: 0 !important;
  14. }
  15. .body {
  16. width: 100%;
  17. height: calc(100vh - 48px );
  18. background: url('@(path)/@(IwbConsts.HomeImageName).@(IwbConsts.LoginHomeImageExt)') 0 / cover fixed;
  19. font-weight: 600;
  20. display: flex;
  21. flex-direction: column;
  22. justify-content: center;
  23. align-items: center;
  24. color: #000;
  25. position: relative;
  26. }
  27. .first {
  28. margin: -10% 0 10px;
  29. font-size: 50px;
  30. display: flex;
  31. justify-content: center;
  32. align-items: center;
  33. }
  34. .first img {
  35. width: 80px;
  36. height: 80px;
  37. margin-right: 10px;
  38. }
  39. .second {
  40. font-size: 65px;
  41. }
  42. .footer {
  43. width: 100%;
  44. text-align: center;
  45. position: absolute;
  46. bottom: 30px;
  47. left: 0;
  48. color:#9BA5BA;
  49. }
  50. .main-footer {
  51. display: none;
  52. }
  53. </style>
  54. }
  55. <div class="body no-select">
  56. <div class="first">
  57. <img src="/Content/Image/logo.png" />
  58. <span>欢迎登录</span>
  59. </div>
  60. <div class="second">@systemName</div>
  61. <div class="footer">@Html.Raw(SettingManager.GetSettingValue(IwbSettingNames.HtmlPagesFooter))</div>
  62. </div>