help.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. @include('compress.common.head')
  5. <style>
  6. .w {
  7. width: 1200px;
  8. margin: 0 auto;
  9. }
  10. .pro-main {
  11. margin-bottom: 100px;
  12. }
  13. .clearfix::before, .clearfix::after {
  14. content: "";
  15. display: table;
  16. }
  17. .pro-main-left {
  18. width: 250px;
  19. box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
  20. background: #fff;
  21. box-sizing: border-box;
  22. border-bottom: 1px solid #eeeeee;
  23. z-index: 9;
  24. }
  25. .fl {
  26. float: left;
  27. }
  28. .pro-main-right {
  29. width: 930px;
  30. background: #fff;
  31. border: 1px solid #eeeeee;
  32. }
  33. .fr {
  34. float: right;
  35. }
  36. .pro-main-left a {
  37. display: block;
  38. width: 100%;
  39. height: 50px;
  40. border-bottom: 1px solid #eeeeee;
  41. line-height: 50px;
  42. text-align: center;
  43. font-size: 16px;
  44. color: #666666;
  45. box-sizing: border-box;
  46. }
  47. .pro-left-active {
  48. color: #000;
  49. background: #EEEEEE;
  50. border-left: 3px solid #dd2421;
  51. }
  52. .pro-mian-search {
  53. width: 600px;
  54. height: 42px;
  55. line-height: 40px;
  56. background: #F5F6F8;
  57. border: 1px solid #F2F2F2;
  58. margin: 30px auto;
  59. padding-left: 20px;
  60. }
  61. .pro-mian-search input {
  62. width: 500px;
  63. height: 40px;
  64. border: 0;
  65. outline: none;
  66. background: #F5F6F8;
  67. }
  68. .pro-mian-search span {
  69. display: inline-block;
  70. width: 90px;
  71. height: 40px;
  72. background: url(../images/icon_serch_top.png) center center no-repeat;
  73. background-size: auto;
  74. background-size: 20px 20px;
  75. cursor: pointer;
  76. }
  77. .pro-main-right-list {
  78. width: 800px;
  79. margin: 40px auto 0;
  80. border-top: 1px solid #DDDDDD;
  81. }
  82. .pro-main-right-list li {
  83. width: 100%;
  84. height: 135px;
  85. padding-top: 20px;
  86. box-sizing: border-box;
  87. border-bottom: 1px solid #DDDDDD;
  88. }
  89. .pro-main-right-list li a {
  90. font-size: 16px;
  91. color: #151515;
  92. font-weight: bold;
  93. padding-top: 25px;
  94. box-sizing: border-box;
  95. margin-bottom: 6px;
  96. cursor: pointer;
  97. }
  98. .pro-main-right-list li p {
  99. font-size: 13px;
  100. color: #555555;
  101. line-height: 28px;
  102. margin-top: 10px;
  103. text-overflow: ellipsis;
  104. display: -webkit-box;
  105. -webkit-box-orient: vertical;
  106. -webkit-line-clamp: 2;
  107. overflow: hidden;
  108. }
  109. .pro-main-right p {
  110. word-wrap: break-word;
  111. }
  112. </style>
  113. </head>
  114. <body>
  115. <div class="header">
  116. @include('compress.common.header')
  117. </div>
  118. <div class="pro-main w clearfix">
  119. <div class="pro-main-left fl">
  120. @foreach($category as $cate)
  121. <a href="/help/{{ $cate->mid }}"
  122. class="{{ $cid == $cate->mid ? 'pro-left-active' : '' }}">{{ $cate->name }}</a>
  123. @endforeach
  124. </div>
  125. <div class="pro-main-right fr">
  126. <div class="pro-mian-search clearfix">
  127. <input class="fl supportInp" type="text" placeholder="我们能提供的帮助">
  128. <span class="fl supportBtn"></span>
  129. </div>
  130. @if($list && count($list) > 0)
  131. <ul class="pro-main-right-list">
  132. @foreach($list as $item)
  133. <li>
  134. <a target="_blank" href="/detail/{{$item->mid}}">{{ $item->title }}</a>
  135. <p>{{ trim($item->introduction) }}</p>
  136. </li>
  137. @endforeach
  138. </ul>
  139. @else
  140. <div class="pro-main-right-loadmore uselistNone">暂无教程</div>
  141. @endif
  142. </div>
  143. </div>
  144. @include('compress.common.footer')
  145. </body>
  146. </html>