_Layout.Play.cshtml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @{
  2. Layout = "~/Views/Shared/Layout/_Layout.None.cshtml";
  3. var imagePath = string.IsNullOrEmpty(AbpSession.AvatarImagePath) ? "/Content/Image/user.png" : AbpSession.AvatarImagePath;
  4. string pageTitle = (ViewBag.Title == "主页" ? null : ViewBag.Title) ?? "在线分布式演练";
  5. }
  6. <style>
  7. body {
  8. }
  9. .wrapper {
  10. display: flex;
  11. height: 100vh;
  12. --mainColor: #65758f;
  13. --mainBgColor: #eef3f3;
  14. --mainBgColor2: #c7f0f3;
  15. }
  16. .wrapper .body-left {
  17. width: 300px;
  18. height: 100vh;
  19. display: flex;
  20. flex-direction: column;
  21. justify-content: center;
  22. background: #fff;
  23. }
  24. .wrapper .body-left .logo {
  25. width: 100%;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. padding-top: 20px;
  30. }
  31. .wrapper .body-left .logo img {
  32. }
  33. .wrapper .body-left .sidebar {
  34. height: calc(100% - 100px);
  35. display: flex;
  36. justify-content: center;
  37. align-items: center;
  38. padding-top: -100px;
  39. }
  40. .wrapper .body-right {
  41. display: flex;
  42. flex-direction: column;
  43. width: calc(100vw - 300px);
  44. height: 100vh;
  45. background: var(--mainBgColor);
  46. /*border-left: 2px solid var(--mainColor);*/
  47. }
  48. .wrapper .body-right .header {
  49. width: 100%;
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. height: 70px;
  54. color: var(--mainColor);
  55. border-bottom: 1px solid #65758f;
  56. padding: 0 25px;
  57. }
  58. .wrapper .body-right .header .title {
  59. display: flex;
  60. align-items: center;
  61. font-size: 24px;
  62. font-weight: 600;
  63. }
  64. .wrapper .body-right .header .user-box {
  65. padding: 5px 25px;
  66. display: flex;
  67. align-items: center;
  68. background: #fff;
  69. border-radius: 5px;
  70. }
  71. .wrapper .body-right .header .user-box img {
  72. width: 35px;
  73. height: 35px;
  74. margin-right: 15px;
  75. }
  76. .wrapper .body-right .header .user-box .name {
  77. text-align: center;
  78. min-width: 70px;
  79. }
  80. .wrapper .body-right .content {
  81. padding: 10px;
  82. height: calc(100% - 70px);
  83. }
  84. </style>
  85. <div class="wrapper">
  86. <div class="body-left">
  87. <div class="logo">
  88. <img src="../../../Content/Image/gjdw.png" alt="" />
  89. </div>
  90. <div class="sidebar">
  91. @Html.Partial("Layout/_MainSidebar.Play")
  92. </div>
  93. </div>
  94. <div class="body-right">
  95. <div class="header">
  96. <div class="title">
  97. @(pageTitle)
  98. </div>
  99. <div class="user-box">
  100. <img class="img-circle" src="@(imagePath)" alt="" />
  101. <div class="name">@(AbpSession.RealName)</div>
  102. </div>
  103. </div>
  104. <div class="content">
  105. @RenderBody()
  106. </div>
  107. </div>
  108. </div>
  109. @section styles{
  110. @RenderSection("styles", false)
  111. }
  112. @section css{
  113. @RenderSection("css", false)
  114. }
  115. @section js{
  116. @RenderSection("js", false)
  117. }
  118. @section scripts{
  119. <script>
  120. $(function () {
  121. //OverlayScrollbar($(".wrapper .body-left"));
  122. OverlayScrollbar($(".wrapper .content"));
  123. })
  124. </script>
  125. @RenderSection("scripts", false)
  126. }
  127. @section modal{
  128. @RenderSection("modal", false)
  129. }