tab1.page.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <ion-header [translucent]="true" class="ion-no-border">
  2. <ion-toolbar>
  3. <div class="brand-header">
  4. <div class="brand-title">
  5. <div class="title-container">
  6. <span>AI艺速</span>
  7. <img src="assets/img/logo2.png" alt="AI艺速">
  8. </div>
  9. </div>
  10. </div>
  11. </ion-toolbar>
  12. </ion-header>
  13. <ion-content [fullscreen]="true">
  14. <!-- 搜索栏部分 -->
  15. <div class="search-section">
  16. <ion-searchbar mode="ios" placeholder="搜索你感兴趣的内容" class="custom-searchbar"></ion-searchbar>
  17. <div class="action-buttons">
  18. <ion-button fill="clear" class="icon-button" (click)="goTomailbox()">
  19. <ion-icon name="mail-outline"></ion-icon>
  20. </ion-button>
  21. <ion-button fill="clear" class="sign-in-button" (click)="goToAttendance()">
  22. <ion-icon name="calendar-outline"></ion-icon>
  23. <span>签到</span>
  24. </ion-button>
  25. </div>
  26. </div>
  27. <!-- 顶部导航栏 -->
  28. <div class="top-nav-section">
  29. <ion-segment value="home" mode="ios">
  30. <ion-segment-button value="home">
  31. <ion-label>首页</ion-label>
  32. </ion-segment-button>
  33. <ion-segment-button value="psychology" (click)="goToInterestSearch()">
  34. <ion-label>兴趣调查</ion-label>
  35. </ion-segment-button>
  36. <ion-segment-button value="course">
  37. <ion-label>课程</ion-label>
  38. </ion-segment-button>
  39. <ion-segment-button value="test" (click)="goToInterestTest()">
  40. <ion-label>兴趣探索</ion-label>
  41. </ion-segment-button>
  42. <ion-segment-button value="ebook" (click)="goToInterestPicture()">
  43. <ion-label>意境呈现</ion-label>
  44. </ion-segment-button>
  45. </ion-segment>
  46. </div>
  47. <!-- 轮播图部分 -->
  48. <div class="banner-section">
  49. <div class="banner-container" (touchstart)="onTouchStart($event)" (touchmove)="onTouchMove($event)"
  50. (touchend)="onTouchEnd()">
  51. <div class="banner-img-container" [style.transform]="'translateX(' + translateX + 'px)'">
  52. <img *ngFor="let slide of slides" [src]="slide.image" [alt]="slide.alt">
  53. </div>
  54. <div class="banner-indicators">
  55. <span class="indicator" *ngFor="let slide of slides; let i = index" [class.active]="currentIndex === i"
  56. (click)="goToSlide(i)">
  57. </span>
  58. </div>
  59. <div class="banner-arrows">
  60. <button class="arrow-btn prev" (click)="prevSlide()">
  61. <ion-icon name="chevron-back-outline"></ion-icon>
  62. </button>
  63. <button class="arrow-btn next" (click)="nextSlide()">
  64. <ion-icon name="chevron-forward-outline"></ion-icon>
  65. </button>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- 功能导航区 -->
  70. <div class="features-grid">
  71. <div class="features-row">
  72. <div class="feature-item" (click)="goTodrawing()">
  73. <ion-icon name="brush-outline"></ion-icon>
  74. <span>绘画</span>
  75. </div>
  76. <div class="feature-item">
  77. <ion-icon name="musical-notes-outline"></ion-icon>
  78. <span>音乐</span>
  79. </div>
  80. <div class="feature-item">
  81. <ion-icon name="body-outline"></ion-icon>
  82. <span>舞蹈</span>
  83. </div>
  84. <div class="feature-item">
  85. <ion-icon name="camera-outline"></ion-icon>
  86. <span>摄影</span>
  87. </div>
  88. <div class="feature-item">
  89. <ion-icon name="book-outline"></ion-icon>
  90. <span>文学</span>
  91. </div>
  92. </div>
  93. <div class="features-row">
  94. <div class="feature-item">
  95. <ion-icon name="code-outline"></ion-icon>
  96. <span>编程</span>
  97. </div>
  98. <div class="feature-item">
  99. <ion-icon name="restaurant-outline"></ion-icon>
  100. <span>烹饪</span>
  101. </div>
  102. <div class="feature-item">
  103. <ion-icon name="fitness-outline"></ion-icon>
  104. <span>健身</span>
  105. </div>
  106. <div class="feature-item">
  107. <ion-icon name="language-outline"></ion-icon>
  108. <span>外语</span>
  109. </div>
  110. <div class="feature-item" (click)="openCategoryModal()">
  111. <ion-icon name="list-outline"></ion-icon>
  112. <span>全部分类</span>
  113. </div>
  114. </div>
  115. </div>
  116. <!-- 最近在学部分 -->
  117. <div class="recent-learning">
  118. <div class="section-header">
  119. <h2>最近在学</h2>
  120. <div class="view-all" (click)="goToViewAll()">
  121. <span>查看全部</span>
  122. <ion-icon name="chevron-forward-outline"></ion-icon>
  123. </div>
  124. </div>
  125. <div class="learning-cards">
  126. <div class="learning-card">
  127. <img src="assets/img/book1.png" alt="城南旧事">
  128. <h3>城南旧事</h3>
  129. </div>
  130. <div class="learning-card">
  131. <img src="assets/img/book2.png" alt="朝花夕拾">
  132. <h3>朝花夕拾</h3>
  133. </div>
  134. <div class="learning-card">
  135. <img src="assets/img/book3.png" alt="狂人日记">
  136. <h3>狂人日记</h3>
  137. </div>
  138. <div class="learning-card">
  139. <img src="assets/img/book4.png" alt="彷徨">
  140. <h3>彷徨</h3>
  141. </div>
  142. </div>
  143. </div>
  144. </ion-content>