resource.tpl 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <style scoped>
  2. .page-resource {
  3. padding-top: 55px;
  4. box-sizing: border-box;
  5. .resource-placeholder {
  6. margin: 50px auto 100px;
  7. text-align: center;
  8. img {
  9. width: 150px;
  10. }
  11. h4 {
  12. margin: 20px 0 16px;
  13. font-size: 16px;
  14. color: #1f2f3d;
  15. line-height: 1;
  16. }
  17. p {
  18. margin: 0;
  19. font-size: 14px;
  20. color: #99a9bf;
  21. line-height: 1;
  22. }
  23. }
  24. }
  25. .cards {
  26. margin: 35px auto 110px;
  27. .container {
  28. @utils-clearfix;
  29. padding: 0;
  30. margin: 0 -11px;
  31. width: auto;
  32. }
  33. li {
  34. width: 33.33333%;
  35. padding: 0 11px;
  36. box-sizing: border-box;
  37. float: left;
  38. list-style: none;
  39. }
  40. }
  41. h2 {
  42. font-size: 28px;
  43. margin: 0;
  44. }
  45. p {
  46. font-size: 14px;
  47. color: #5e6d82;
  48. }
  49. .card {
  50. height: 394px;
  51. width: 100%;
  52. background:#ffffff;
  53. border:1px solid #eaeefb;
  54. border-radius:5px;
  55. box-sizing: border-box;
  56. text-align: center;
  57. position: relative;
  58. transition: bottom .3s;
  59. bottom: 0;
  60. img {
  61. margin: 75px auto 35px;
  62. height: 87px;
  63. }
  64. h3 {
  65. margin: 0 0 10px;
  66. font-size: 18px;
  67. color: #1f2f3d;
  68. font-weight: normal;
  69. height: 22px;
  70. }
  71. p {
  72. font-size: 14px;
  73. color: #99a9bf;
  74. padding: 0 30px;
  75. margin: 0;
  76. word-break: break-all;
  77. line-height: <%= paraHeight >;
  78. }
  79. a {
  80. height: 42px;
  81. width: 190px;
  82. display: inline-block;
  83. line-height: @height;
  84. font-size: 14px;
  85. background-color: #409EFF;
  86. color: #fff;
  87. text-align: center;
  88. border: 0;
  89. padding: 0;
  90. cursor: pointer;
  91. border-radius: 2px;
  92. transition: all .3s;
  93. text-decoration: none;
  94. margin-top: 20px;
  95. }
  96. }
  97. @media (max-width: 850px) {
  98. .cards {
  99. li {
  100. max-width: 500px;
  101. float: none;
  102. margin: 10px auto 30px;
  103. width: 80%;
  104. .card {
  105. height: auto;
  106. padding-bottom: 20px;
  107. }
  108. }
  109. h3 {
  110. height: auto;
  111. }
  112. }
  113. }
  114. </style>
  115. <template>
  116. <div class="page-container page-resource">
  117. <h2><%= 1 ></h2>
  118. <!--<div class="resource-placeholder">-->
  119. <!--<img src="~examples/assets/images/resource-placeholder.svg" alt="">-->
  120. <!--<h4><%= placeholder1 ></h4>-->
  121. <!--<p><%= placeholder2 ></p>-->
  122. <!--</div>-->
  123. <p><%= placeholder2 ></p>
  124. <div class="cards">
  125. <ul class="container">
  126. <li>
  127. <div class="card">
  128. <img src="~examples/assets/images/Axure-Components.svg" alt="">
  129. <h3><%= 3 ></h3>
  130. <p><%= 4 ></p>
  131. <a href="https://github.com/ElementUI/Resources/raw/master/Element_Components_v2.0.0.rplib"><%= 5 ></a>
  132. </div>
  133. </li>
  134. <li>
  135. <div class="card">
  136. <img src="~examples/assets/images/Sketch-Template.svg" alt="">
  137. <h3><%= 6 ></h3>
  138. <p><%= 7 ></p>
  139. <a href="https://github.com/ElementUI/Resources/raw/master/Element%20UI%20Kit_v2.0.sketch"><%= 5 ></a>
  140. </div>
  141. </li>
  142. <!--<li>-->
  143. <!--<div class="card">-->
  144. <!--<img src="~examples/assets/images/Module.svg" alt="">-->
  145. <!--<h3><%= 8 ></h3>-->
  146. <!--<p><%= 9 ></p>-->
  147. <!--<a href="https://github.com/ElementUI/Resources/raw/master/Element%20Components%20Documentation.zip"><%= 5 ></a>-->
  148. <!--</div>-->
  149. <!--</li>-->
  150. </ul>
  151. </div>
  152. </div>
  153. </template>