index.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <style scoped>
  2. .banner {
  3. text-align: center;
  4. }
  5. .banner-desc {
  6. padding-top: 20px;
  7. h1 {
  8. font-size: 34px;
  9. margin: 0;
  10. line-height: 48px;
  11. color: #555;
  12. }
  13. p {
  14. font-size: 18px;
  15. line-height: 28px;
  16. color: #888;
  17. margin: 10px 0 5px;
  18. }
  19. }
  20. .jumbotron {
  21. width: 890px;
  22. height: 465px;
  23. margin: 30px auto 100px;
  24. position: relative;
  25. div {
  26. width: 100%;
  27. height: 100%;
  28. background-color: transparent;
  29. position: absolute;
  30. top: 0;
  31. left: 0;
  32. }
  33. img {
  34. position: absolute;
  35. }
  36. .jumbotron-cloud-1 {
  37. right: 0;
  38. top: 0;
  39. height: 55px;
  40. }
  41. .jumbotron-plant-2 {
  42. left: 60px;
  43. top: 200px;
  44. }
  45. .jumbotron-web {
  46. height: 385px;
  47. top: 35px;
  48. left: 110px;
  49. }
  50. .jumbotron-cloud-2 {
  51. left: 0;
  52. top: 50px;
  53. height: 55px;
  54. }
  55. .jumbotron-compo-1 {
  56. left: 94px;
  57. height: 90px;
  58. top: 220px;
  59. }
  60. .jumbotron-compo-2 {
  61. right: 73px;
  62. top: 60px;
  63. height: 124px;
  64. }
  65. .jumbotron-compo-3 {
  66. right: 42px;
  67. top: 200px;
  68. height: 120px;
  69. }
  70. .jumbotron-plant-1 {
  71. bottom: 0;
  72. left: 30px;
  73. height: 185px;
  74. }
  75. .jumbotron-figure-1 {
  76. bottom: 0;
  77. right: 180px;
  78. height: 140px;
  79. }
  80. .jumbotron-figure-2 {
  81. bottom: 0;
  82. right: 10px;
  83. height: 68px;
  84. }
  85. }
  86. .cards {
  87. margin: 0 auto 110px;
  88. width: 1140px;
  89. .container {
  90. @utils-clearfix;
  91. padding: 0;
  92. margin: 0 -11px;
  93. width: auto;
  94. }
  95. li {
  96. width: 33.33333%;
  97. padding: 0 19px;
  98. box-sizing: border-box;
  99. float: left;
  100. list-style: none;
  101. }
  102. img {
  103. width: 160px;
  104. height: 120px;
  105. }
  106. }
  107. .card {
  108. height: 430px;
  109. width: 100%;
  110. background:#ffffff;
  111. border:1px solid #eaeefb;
  112. border-radius:5px;
  113. box-sizing: border-box;
  114. text-align: center;
  115. position: relative;
  116. transition: all .3s ease-in-out;
  117. bottom: 0;
  118. img {
  119. margin: 66px auto 60px;
  120. }
  121. h3 {
  122. margin: 0;
  123. font-size: 18px;
  124. color: #1f2f3d;
  125. font-weight: normal;
  126. }
  127. p {
  128. font-size: 14px;
  129. color: #99a9bf;
  130. padding: 0 25px;
  131. line-height: 20px;
  132. }
  133. a {
  134. height: 53px;
  135. line-height: 52px;
  136. font-size: 14px;
  137. color: #409EFF;
  138. text-align: center;
  139. border: 0;
  140. border-top: 1px solid #eaeefb;
  141. padding: 0;
  142. cursor: pointer;
  143. width: 100%;
  144. position: absolute;
  145. bottom: 0;
  146. left: 0;
  147. background-color: #fff;
  148. border-radius: 0 0 5px 5px;
  149. transition: all .3s;
  150. text-decoration: none;
  151. display: block;
  152. &:hover {
  153. color: #fff;
  154. background: #409EFF;
  155. }
  156. }
  157. &:hover {
  158. bottom: 6px;
  159. box-shadow: 0 6px 18px 0 rgba(232,237,250,0.50);
  160. }
  161. }
  162. @media (max-width: 1140px) {
  163. .cards {
  164. width: 100%;
  165. .container {
  166. width: 100%;
  167. }
  168. }
  169. .banner .container {
  170. width: 100%;
  171. box-sizing: border-box;
  172. }
  173. .banner img {
  174. right: 0;
  175. }
  176. }
  177. @media (max-width: 1000px) {
  178. .banner .container {
  179. img {
  180. display: none;
  181. }
  182. }
  183. .jumbotron {
  184. display: none;
  185. }
  186. }
  187. @media (max-width: 768px) {
  188. .cards {
  189. li {
  190. width: 80%;
  191. margin: 0 auto 20px;
  192. float: none;
  193. }
  194. .card {
  195. height: auto;
  196. padding-bottom: 54px;
  197. }
  198. }
  199. .banner-stars {
  200. display: none;
  201. }
  202. .banner-desc {
  203. #line2 {
  204. display: none;
  205. }
  206. h2 {
  207. font-size: 32px;
  208. }
  209. p {
  210. width: auto;
  211. }
  212. }
  213. }
  214. </style>
  215. <template>
  216. <div>
  217. <div class="banner">
  218. <div class="banner-desc">
  219. <h1>Un kit de interfaz de usuario para la web</h1>
  220. <p>Element, una librería de componentes basada en Vue 2.0 para desarrolladores, diseñadores y jefes de producto</p>
  221. </div>
  222. </div>
  223. <div class="jumbotron">
  224. <div>
  225. <img class="jumbotron-plant-2" src="~examples/assets/images/plant-2.png" alt="">
  226. <img class="jumbotron-web" src="~examples/assets/images/web.png" alt="">
  227. <img class="jumbotron-plant-1" src="~examples/assets/images/plant-1.png" alt="">
  228. <img class="jumbotron-figure-1" src="~examples/assets/images/figure-1.png" alt="">
  229. <img class="jumbotron-figure-2" src="~examples/assets/images/figure-2.png" alt="">
  230. </div>
  231. <div data-hover-layer="0">
  232. <img class="jumbotron-cloud-1" src="~examples/assets/images/cloud-1.png" alt="">
  233. <img class="jumbotron-cloud-2" src="~examples/assets/images/cloud-2.png" alt="">
  234. </div>
  235. <div data-hover-layer="1">
  236. <img class="jumbotron-compo-1" src="~examples/assets/images/compo-1.png" alt="">
  237. <img class="jumbotron-compo-2" src="~examples/assets/images/compo-2.png" alt="">
  238. <img class="jumbotron-compo-3" src="~examples/assets/images/compo-3.png" alt="">
  239. </div>
  240. </div>
  241. <div class="cards">
  242. <ul class="container">
  243. <li>
  244. <div class="card">
  245. <img src="~examples/assets/images/guide.png" alt="">
  246. <h3>Guía</h3>
  247. <p>Entender los líneamientos de diseño, ayudando a diseñadores a crear productos que sean lógicos, razonablemente estructurados y fáciles de usar.</p>
  248. <router-link
  249. active-class="active"
  250. to="/es/guide/design"
  251. exact>Ver detalle
  252. </router-link>
  253. </div>
  254. </li>
  255. <li>
  256. <div class="card">
  257. <img src="~examples/assets/images/component.png" alt="">
  258. <h3>Componentes</h3>
  259. <p>Experimenta la interacción al pasear con los ejemplos de los componentes. Utiliza el código encapsulado para mejorar la eficiencia en el desarrollo.</p>
  260. <router-link
  261. active-class="active"
  262. to="/es/component/layout"
  263. exact>Ver detalle
  264. </router-link>
  265. </div>
  266. </li>
  267. <li>
  268. <div class="card">
  269. <img src="~examples/assets/images/resource.png" alt="">
  270. <h3>Recursos</h3>
  271. <p>Descarga los recursos de diseño relevantes para dar forma a un prototipo o borrador, aumentando la eficiencia del diseño.</p>
  272. <router-link
  273. active-class="active"
  274. to="/es/resource"
  275. exact>Ver detalle
  276. </router-link>
  277. </div>
  278. </li>
  279. </ul>
  280. </div>
  281. </div>
  282. </template>
  283. <script>
  284. import { Hover } from 'perspective.js';
  285. export default {
  286. mounted() {
  287. new Hover('.jumbotron', { // eslint-disable-line
  288. max: 3,
  289. scale: 1,
  290. perspective: 700,
  291. layers: [{
  292. multiple: 0.01,
  293. reverseTranslate: true
  294. }, {
  295. multiple: 0.02,
  296. reverseTranslate: true
  297. }]
  298. });
  299. }
  300. };
  301. </script>