home.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <template>
  2. <div class="page-box">
  3. <div class="swiper-box">
  4. <div class="base">
  5. <div class="img">
  6. <img src="../../assets/home_0.png" alt="" />
  7. </div>
  8. <div class="text-box">
  9. <div class="title">What is DeepBIO?</div>
  10. <div class="content">
  11. DeepBIO is a user-friendly interpretable deep-learning platform for
  12. biological sequence functional analysis, such as sequence-level
  13. functional prediction and base-wise functional annotation. As for
  14. the sequence-level functional prediction, DeepBIO integrates a total
  15. of 42 state-of-the-art deep-learning approaches, and enables a
  16. one-stop-shop web service for researchers to develop a new deep
  17. learning architecture to answer any biological question. To be
  18. specific, given any biological sequence data, DeepBIO allows to
  19. train and evaluate deep-learning models, conduct model comparison
  20. and optimization, and provide a series of visualization analyses. As
  21. for the base-wise functional site annotation, DeepBIO offers
  22. well-pretrained deep-learning architectures for over 20 functional
  23. site annotation tasks, supports comprehensive interpretations and
  24. graphical visualizations of identified sites, and validates the
  25. reliability of the identified sites by conservation motif analysis.
  26. </div>
  27. </div>
  28. </div>
  29. <div class="base">
  30. <div class="text-box">
  31. <div class="title">What is DeepBIO?</div>
  32. <div class="content">
  33. DeepBIO is a user-friendly interpretable deep-learning platform for
  34. biological sequence functional analysis, such as sequence-level
  35. functional prediction and base-wise functional annotation. As for
  36. the sequence-level functional prediction, DeepBIO integrates a total
  37. of 42 state-of-the-art deep-learning approaches, and enables a
  38. one-stop-shop web service for researchers to develop a new deep
  39. learning architecture to answer any biological question. To be
  40. specific, given any biological sequence data, DeepBIO allows to
  41. train and evaluate deep-learning models, conduct model comparison
  42. and optimization, and provide a series of visualization analyses. As
  43. for the base-wise functional site annotation, DeepBIO offers
  44. well-pretrained deep-learning architectures for over 20 functional
  45. site annotation tasks, supports comprehensive interpretations and
  46. graphical visualizations of identified sites, and validates the
  47. reliability of the identified sites by conservation motif analysis.
  48. </div>
  49. </div>
  50. <div class="img">
  51. <img src="../../assets/home_1.png" alt="" />
  52. </div>
  53. </div>
  54. <div class="base">
  55. <div class="img">
  56. <img src="../../assets/home_2.png" alt="" />
  57. </div>
  58. <div class="text-box">
  59. <div class="title">What is DeepBIO?</div>
  60. <div class="content">
  61. DeepBIO is a user-friendly interpretable deep-learning platform for
  62. biological sequence functional analysis, such as sequence-level
  63. functional prediction and base-wise functional annotation. As for
  64. the sequence-level functional prediction, DeepBIO integrates a total
  65. of 42 state-of-the-art deep-learning approaches, and enables a
  66. one-stop-shop web service for researchers to develop a new deep
  67. learning architecture to answer any biological question. To be
  68. specific, given any biological sequence data, DeepBIO allows to
  69. train and evaluate deep-learning models, conduct model comparison
  70. and optimization, and provide a series of visualization analyses. As
  71. for the base-wise functional site annotation, DeepBIO offers
  72. well-pretrained deep-learning architectures for over 20 functional
  73. site annotation tasks, supports comprehensive interpretations and
  74. graphical visualizations of identified sites, and validates the
  75. reliability of the identified sites by conservation motif analysis.
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. export default {
  84. name: "home",
  85. components: {},
  86. data() {
  87. return {
  88. // modules: [Pagination],
  89. swiperOption: {
  90. slidesPerView: 1,
  91. spaceBetween: 30,
  92. direction: "vertical",
  93. pagination: {
  94. el: ".swiper-pagination",
  95. clickable: true,
  96. },
  97. },
  98. };
  99. },
  100. watch: {
  101. tags() {
  102. console.log(119);
  103. },
  104. },
  105. mounted() {
  106. console.log(this.$route.query);
  107. if (this.$route.query.type === "reload") {
  108. this.$router.replace({
  109. name: "home",
  110. });
  111. window.location.reload();
  112. }
  113. },
  114. methods: {
  115. onSlideChange() {
  116. console.log("111");
  117. },
  118. scroll() {
  119. // 获取当前 swiper-wrapper 元素的 left 值,即偏移量
  120. const wrapperLeft = this.$refs.mySwiper.wrapperEl.style.left;
  121. // 将 left 值转换为数值
  122. const left = parseInt(wrapperLeft);
  123. // 计算当前滚动位置对应的 slide 的索引值
  124. const currentIndex = -left / this.$refs.mySwiper.slidesGrid[0];
  125. // 切换到下一个或上一个 slide
  126. if (this.$refs.mySwiper.progress > 0.5) {
  127. this.$refs.mySwiper.slideNext();
  128. } else {
  129. this.$refs.mySwiper.slidePrev();
  130. }
  131. },
  132. },
  133. };
  134. </script>
  135. <style lang="less" scoped>
  136. .page-box {
  137. .swiper-box {
  138. height: calc(100vh - 67px);
  139. //overflow: hidden;
  140. //position: relative;
  141. .base {
  142. width: 100%;
  143. //height: 100%;
  144. height: calc(80vh - 67px);
  145. padding: 20px 50px;
  146. box-sizing: border-box;
  147. display: flex;
  148. //flex-direction: row;
  149. //align-items: center;
  150. .img {
  151. box-sizing: border-box;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. width: 35%;
  156. img {
  157. width: 100%;
  158. display: block;
  159. }
  160. }
  161. .text-box {
  162. box-sizing: border-box;
  163. flex: 1;
  164. padding: 40px;
  165. text-align: left;
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: center;
  169. .title {
  170. box-sizing: border-box;
  171. margin: 20px 0;
  172. //margin: 0px;
  173. font-family: Roboto, Helvetica, Arial, sans-serif;
  174. font-size: 2.125rem;
  175. line-height: 1.235;
  176. letter-spacing: 0.00735em;
  177. font-weight: 700;
  178. }
  179. .content {
  180. box-sizing: border-box;
  181. width: 100%;
  182. }
  183. }
  184. .text {
  185. flex: 1;
  186. display: flex;
  187. align-items: center;
  188. }
  189. }
  190. .other-box {
  191. margin-top: 1px;
  192. }
  193. }
  194. }
  195. </style>