resource.tpl 3.8 KB

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