index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div class="page-wrapper">
  3. <header-nav/>
  4. <banner/>
  5. </div>
  6. </template>
  7. <script>
  8. import "../../common/styles/bootstrap.min.css";
  9. import headerNav from './components/headerNav'
  10. import banner from './components/banner'
  11. export default {
  12. components: {
  13. headerNav,
  14. banner,
  15. }
  16. };
  17. </script>
  18. <style lang="scss">
  19. #app {
  20. overflow: auto;
  21. }
  22. </style>
  23. <style lang="scss">
  24. a:active,
  25. a:hover,
  26. a:focus,
  27. a:visited {
  28. text-decoration: none;
  29. }
  30. .page-wrapper {
  31. position: relative;
  32. margin: 0 auto;
  33. width: 100%;
  34. height: 100%;
  35. min-width: 300px;
  36. // overflow: hidden;
  37. }
  38. @media (min-width: 1200px) {
  39. .container {
  40. max-width: 1200px;
  41. }
  42. }
  43. .block-title {
  44. margin-bottom: 45px;
  45. }
  46. .block-title__title {
  47. margin: 0;
  48. margin-top: -10px;
  49. font-size: 50px;
  50. font-weight: 400;
  51. color: #2a2833;
  52. line-height: 1.2em;
  53. }
  54. .block-title__title span {
  55. font-weight: 700;
  56. }
  57. .thm-btn {
  58. border: none;
  59. display: inline-block;
  60. vertical-align: middle;
  61. outline: none;
  62. font-size: 16px;
  63. font-weight: 500;
  64. color: #2a2833;
  65. padding: 13px 41px;
  66. border-radius: 5px;
  67. -webkit-transition: background 0.4s ease, color 0.4s ease;
  68. transition: background 0.4s ease, color 0.4s ease;
  69. background-image: -webkit-gradient(
  70. linear,
  71. left top,
  72. right top,
  73. from(#ff4eb5),
  74. to(#ffa065)
  75. );
  76. background-image: linear-gradient(90deg, #ff4eb5 0%, #ffa065 100%);
  77. position: relative;
  78. }
  79. .thm-btn:before {
  80. content: "";
  81. position: absolute;
  82. top: 2px;
  83. right: 2px;
  84. bottom: 2px;
  85. left: 2px;
  86. border-radius: 5px;
  87. background-color: #fff;
  88. -webkit-transform: scaleX(1);
  89. transform: scaleX(1);
  90. -webkit-transition: -webkit-transform 0.4s ease;
  91. transition: -webkit-transform 0.4s ease;
  92. transition: transform 0.4s ease;
  93. transition: transform 0.4s ease, -webkit-transform 0.4s ease;
  94. }
  95. .thm-btn span {
  96. position: relative;
  97. }
  98. .thm-btn:hover {
  99. color: #fff;
  100. }
  101. .thm-btn:hover:before {
  102. -webkit-transform: scaleX(0);
  103. transform: scaleX(0);
  104. }
  105. </style>