Main.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <doc-header></doc-header>
  3. <div class="doc-content-index">
  4. <div class="content-left">
  5. <div class="content-title"> Nut UI 3.0 </div>
  6. <div class="content-smile"> </div>
  7. <div class="content-subTitle">一款具有京东风格的VUE组件</div>
  8. <div class="content-button">
  9. <div class="leftButton">
  10. <div class="leftButtonText">开始使用</div>
  11. </div>
  12. <div class="rightButton">
  13. <div class="rightButtonText">扫码体验</div>
  14. <div class="qrcodepart">
  15. <div class="qrcode-text"> 请使用手机扫码体验 </div>
  16. <div class="qrcode"> </div>
  17. </div>
  18. </div>
  19. <iframe
  20. style="margin-left: 20px"
  21. src="https://ghbtns.com/github-btn.html?user=jdf2e&repo=nutui&type=star&count=true&size=large"
  22. frameborder="0"
  23. scrolling="0"
  24. width="170"
  25. height="30"
  26. title="GitHub"
  27. ></iframe>
  28. </div>
  29. <!-- <div style="display: flex; align-items: center">
  30. <a href="#" class="leftButton">开始使用</a>
  31. <a href="javascript:;" class="rightButton ">
  32. 扫码体验
  33. <a>
  34. <span>请使用手机扫码体验</span>
  35. <img
  36. src="https://img12.360buyimg.com/imagetools/jfs/t1/124892/31/7144/6065/5f0d9fe4Ef020d678/cae78d015aa5897c.png"
  37. alt
  38. />
  39. </a>
  40. </a>
  41. <iframe
  42. style="margin-left: 20px"
  43. src="https://ghbtns.com/github-btn.html?user=jdf2e&repo=nutui&type=star&count=true&size=large"
  44. frameborder="0"
  45. scrolling="0"
  46. width="170"
  47. height="30"
  48. title="GitHub"
  49. ></iframe>
  50. </div> -->
  51. </div>
  52. <div class="content-right">
  53. <div class="content-img"> </div>
  54. </div>
  55. </div>
  56. </template>
  57. <script lang="ts">
  58. import { defineComponent, onMounted, reactive } from 'vue';
  59. import {
  60. onBeforeRouteUpdate,
  61. RouteLocationNormalized,
  62. useRoute
  63. } from 'vue-router';
  64. import { currentRoute } from '@/sites/assets/util/ref';
  65. import Header from '@/sites/doc/components/Header.vue';
  66. export default defineComponent({
  67. name: 'main',
  68. components: { [Header.name]: Header },
  69. setup() {
  70. const data = reactive({});
  71. onMounted(() => {
  72. const route = useRoute();
  73. });
  74. return data;
  75. }
  76. });
  77. </script>
  78. <style lang="scss" scoped>
  79. @keyframes fadeInLeft {
  80. from {
  81. opacity: 0;
  82. transform: translate3d(-100%, 0, 0);
  83. }
  84. to {
  85. opacity: 1;
  86. transform: translate3d(0, 0, 0);
  87. }
  88. }
  89. .doc-content-index {
  90. display: flex;
  91. flex: 1;
  92. background-color: #070505;
  93. .content-left {
  94. padding: 15% 0 0 8.8%;
  95. // margin: auto 0;
  96. width: 1300px;
  97. min-width: 1000px;
  98. .content-title {
  99. // line-height: 36px;
  100. font-family: PingFangSC-Medium;
  101. font-size: 42px;
  102. color: rgba(255, 255, 255, 1);
  103. animation: fadeInLeft 1s both;
  104. }
  105. .content-smile {
  106. margin-top: 10px;
  107. width: 44px;
  108. height: 17px;
  109. background: url(https://storage.360buyimg.com/imgtools/09516173b9-9b32b9d0-3864-11eb-9a56-0104487ad2b0.png)
  110. no-repeat;
  111. background-size: cover;
  112. animation: fadeInLeft 1s both 0.5s;
  113. }
  114. .content-subTitle {
  115. margin-top: 12px;
  116. font-family: PingFangSC-Regular;
  117. font-size: 20px;
  118. color: rgba(255, 255, 255, 1);
  119. animation: fadeInLeft 1s both 0.5s;
  120. }
  121. .content-button {
  122. position: relative;
  123. display: flex;
  124. margin-top: 40px;
  125. iframe {
  126. align-self: center;
  127. animation: fadeInLeft 1s both 1.2s;
  128. }
  129. .leftButton {
  130. display: flex;
  131. .leftButtonText {
  132. align-self: center;
  133. margin: auto;
  134. font-size: 14px;
  135. color: rgba(255, 255, 255, 1);
  136. }
  137. font-family: PingFangSC-Regular;
  138. width: 150px;
  139. height: 40px;
  140. animation: fadeInLeft 1s both 1.2s;
  141. background: linear-gradient(
  142. 135deg,
  143. rgba(250, 25, 44, 1) 0%,
  144. rgba(250, 39, 40, 1) 45%,
  145. rgba(250, 56, 31, 1) 83%,
  146. rgba(250, 63, 25, 1) 100%
  147. );
  148. border-radius: 29px;
  149. cursor: pointer;
  150. }
  151. .rightButton {
  152. display: flex;
  153. .rightButtonText {
  154. align-self: center;
  155. margin: auto;
  156. font-size: 14px;
  157. color: rgba(227, 44, 54, 1);
  158. }
  159. margin-left: 26px;
  160. width: 150px;
  161. height: 40px;
  162. border: 1px solid rgba(250, 44, 25, 1);
  163. border-radius: 29px;
  164. background-color: #000000;
  165. cursor: pointer;
  166. animation: fadeInLeft 1s both 1.2s;
  167. &:hover {
  168. .qrcodepart {
  169. display: block;
  170. }
  171. }
  172. }
  173. .qrcodepart {
  174. display: none;
  175. position: absolute;
  176. left: 0;
  177. top: 50px;
  178. padding: 4px;
  179. width: 166px;
  180. border-radius: 6px;
  181. background: rgba(255, 255, 255, 1);
  182. box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.11);
  183. .qrcode-text {
  184. font-size: 14px;
  185. color: rgba(51, 51, 51, 1);
  186. margin-top: 10px;
  187. margin-left: 6px;
  188. }
  189. .qrcode {
  190. width: 160px;
  191. height: 160px;
  192. margin: 0 auto;
  193. background: url(https://img12.360buyimg.com/imagetools/jfs/t1/124892/31/7144/6065/5f0d9fe4Ef020d678/cae78d015aa5897c.png)
  194. no-repeat;
  195. background-size: cover;
  196. }
  197. }
  198. }
  199. }
  200. .content-right {
  201. flex: 1;
  202. margin: auto 0;
  203. .content-img {
  204. width: 900px;
  205. height: 514px;
  206. background: url(https://storage.360buyimg.com/imgtools/732c3242e9-9b1946b0-391a-11eb-8a8d-55c57d054ae1.png)
  207. no-repeat;
  208. background-size: cover;
  209. }
  210. }
  211. }
  212. </style>