HomeContent.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <script setup lang="ts">
  2. import Search from "./Search/index.vue";
  3. import HomeCard, { HomeCardContent } from "./HomeCard";
  4. import HomeSection, { HomeSectionContent } from "./HomeSection";
  5. import { ArrowRightBold } from "@element-plus/icons-vue";
  6. import IconNotebook from "~icons/ccrbi-plain/notebook";
  7. import IconBook from "~icons/ccrbi-plain/book";
  8. import IconDirectory from "~icons/ccrbi-plain/directory";
  9. import IconXieTongJianGou from "~icons/ccrbi-colored/xie-tong-jian-gou";
  10. import IconAiZhuShou from "~icons/ccrbi-colored/ai-zhu-shou";
  11. import IconAiChuangJian from "~icons/ccrbi-colored/ai-chuang-jian";
  12. import { useData, withBase, useRouter } from "vitepress";
  13. import path from "path-browserify";
  14. const { localeIndex } = useData();
  15. const router = useRouter();
  16. const withLink = (href: string) => {
  17. return withBase(
  18. path.join("/", localeIndex.value === "root" ? "" : localeIndex.value, "docs", href)
  19. );
  20. };
  21. </script>
  22. <template>
  23. <div class="home-content">
  24. <HomeSection title="您好,需要提供什么帮助?">
  25. <HomeSectionContent>
  26. <Search />
  27. </HomeSectionContent>
  28. </HomeSection>
  29. <HomeSection title="新手入门">
  30. <HomeSectionContent :span="12">
  31. <HomeCard color="skyblue" :backgroundStyle="{
  32. right: '16px',
  33. bottom: '24px',
  34. width: '268px',
  35. height: '148px',
  36. }" :link="withLink('')">
  37. <template #background>
  38. <img src="@/assets/images/card1.png" />
  39. </template>
  40. <template #title>
  41. <HomeCard.Title showArrow> 平台概览 </HomeCard.Title>
  42. </template>
  43. <HomeCardContent>
  44. <ul>
  45. <li>什么是可可智慧教育平台?</li>
  46. <li>功能概览</li>
  47. </ul>
  48. </HomeCardContent>
  49. </HomeCard>
  50. </HomeSectionContent>
  51. <HomeSectionContent :span="12">
  52. <HomeCard :backgroundStyle="{
  53. right: '40px',
  54. bottom: '24px',
  55. width: '128px',
  56. height: '128px',
  57. }" :link="withLink('#登录')">
  58. <template #background>
  59. <img src="@/assets/images/card2.png" />
  60. </template>
  61. <template #title>
  62. <HomeCard.Title showArrow> 用户登录 </HomeCard.Title>
  63. </template>
  64. <HomeCardContent>
  65. <ul>
  66. <li>如何获取账户?</li>
  67. <li>如何登录?</li>
  68. </ul>
  69. </HomeCardContent>
  70. </HomeCard>
  71. </HomeSectionContent>
  72. </HomeSection>
  73. <HomeSection title="平台使用">
  74. <HomeSectionContent :span="24">
  75. <HomeCard title="基础使用">
  76. <HomeCardContent :span="8">
  77. <HomeCard color="white" :link="withLink('课程创建')">
  78. <template #title>
  79. <HomeCard.Title>
  80. <IconNotebook color="#3681FC" />
  81. 创建课程
  82. </HomeCard.Title>
  83. </template>
  84. <HomeCardContent>
  85. 教师通过个人、协同的方式创建多种模式下的平台数字化课程。
  86. </HomeCardContent>
  87. </HomeCard>
  88. </HomeCardContent>
  89. <HomeCardContent :span="8">
  90. <HomeCard color="white" :link="withLink('课程授课')">
  91. <template #title>
  92. <HomeCard.Title>
  93. <IconBook color="#FF822B" />
  94. 实施课程
  95. </HomeCard.Title>
  96. </template>
  97. <HomeCardContent>
  98. 开展数字化课程教学与学习,在实施中进行学习证据采集。
  99. </HomeCardContent>
  100. </HomeCard>
  101. </HomeCardContent>
  102. <HomeCardContent :span="8">
  103. <HomeCard color="white" :link="undefined">
  104. <template #title>
  105. <HomeCard.Title>
  106. <IconDirectory color="#34CEAE" />
  107. <el-badge value="即将上线"> 创建项目 </el-badge>
  108. </HomeCard.Title>
  109. </template>
  110. <HomeCardContent>
  111. 以项目式学习探究创建项目、记录项目、管理项目。
  112. </HomeCardContent>
  113. </HomeCard>
  114. </HomeCardContent>
  115. </HomeCard>
  116. </HomeSectionContent>
  117. <HomeSectionContent :span="24">
  118. <HomeCard title="进阶使用">
  119. <!-- <HomeCardContent :span="8">
  120. <HomeCard color="white" :link="withLink('TODO1')">
  121. <template #title>
  122. <HomeCard.Title>
  123. <IconXieTongJianGou />
  124. 协同建构
  125. </HomeCard.Title>
  126. </template>
  127. <HomeCardContent>
  128. 师生以协同建构(CocoNote)开展计算机支持下的协作问题解决。
  129. </HomeCardContent>
  130. </HomeCard>
  131. </HomeCardContent> -->
  132. <HomeCardContent :span="8">
  133. <HomeCard color="white" :link="withLink('教师管理')">
  134. <template #title>
  135. <HomeCard.Title>
  136. <IconAiChuangJian />
  137. 教师管理
  138. </HomeCard.Title>
  139. </template>
  140. <HomeCardContent>
  141. 创建可重复使用的表单,组织团队资料收集与汇总。
  142. </HomeCardContent>
  143. </HomeCard>
  144. </HomeCardContent>
  145. <HomeCardContent :span="8">
  146. <HomeCard color="white" :link="withLink('AI工具')">
  147. <template #title>
  148. <HomeCard.Title>
  149. <IconAiZhuShou />
  150. AI助手
  151. </HomeCard.Title>
  152. </template>
  153. <HomeCardContent> 使用生成式人工智能技术提供对话式工具。 </HomeCardContent>
  154. </HomeCard>
  155. </HomeCardContent>
  156. <HomeCardContent :span="8">
  157. <HomeCard color="white" :link="withLink('综合看板')">
  158. <template #title>
  159. <HomeCard.Title>
  160. <IconAiChuangJian />
  161. 综合看板
  162. </HomeCard.Title>
  163. </template>
  164. <HomeCardContent>
  165. 汇总平台使用数据,并以可视化的形式进行查看。
  166. </HomeCardContent>
  167. </HomeCard>
  168. </HomeCardContent>
  169. </HomeCard>
  170. </HomeSectionContent>
  171. </HomeSection>
  172. <HomeSection title="更多资源">
  173. <!-- <HomeSectionContent :span="12">
  174. <HomeCard title="课程案例">
  175. <HomeCardContent :span="24">
  176. <ul class="fancy-list">
  177. <li @click="router.go(withLink('TODO'))">
  178. <el-text class="flex-1" size="large" truncated>
  179. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  180. 100px
  181. </el-text>
  182. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  183. </li>
  184. <li @click="router.go(withLink('TODO'))">
  185. <el-text class="flex-1" size="large" truncated>
  186. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  187. 100px
  188. </el-text>
  189. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  190. </li>
  191. <li @click="router.go(withLink('TODO'))">
  192. <el-text class="flex-1" size="large" truncated>
  193. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  194. 100px
  195. </el-text>
  196. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  197. </li>
  198. </ul>
  199. </HomeCardContent>
  200. <HomeCardContent :span="24">
  201. <el-button round size="large"
  202. >查看更多<el-icon class="el-icon--right"><ArrowRightBold /></el-icon
  203. ></el-button>
  204. </HomeCardContent>
  205. </HomeCard>
  206. </HomeSectionContent> -->
  207. <!-- <HomeSectionContent :span="12">
  208. <HomeCard title="项目案例" :span="12">
  209. <HomeCardContent :span="24">
  210. <ul class="fancy-list">
  211. <li>
  212. <el-text class="flex-1" size="large" truncated>
  213. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  214. 100px
  215. </el-text>
  216. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  217. </li>
  218. <li>
  219. <el-text class="flex-1" size="large" truncated>
  220. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  221. 100px
  222. </el-text>
  223. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  224. </li>
  225. <li>
  226. <el-text class="flex-1" size="large" truncated>
  227. Self element set wadslfkjsa;ldkjf;lsdkjf;lsdajf;lasdkjf;ladskjfidth
  228. 100px
  229. </el-text>
  230. <el-icon class="el-icon--right"><ArrowRightBold /></el-icon>
  231. </li>
  232. </ul>
  233. </HomeCardContent>
  234. <HomeCardContent :span="24">
  235. <el-button round size="large"
  236. >查看更多<el-icon class="el-icon--right"><ArrowRightBold /></el-icon
  237. ></el-button>
  238. </HomeCardContent>
  239. </HomeCard>
  240. </HomeSectionContent> -->
  241. <HomeSectionContent>
  242. <HomeCard>
  243. <HomeCardContent :span="12">
  244. <HomeCard title="常见问题" color="white" :backgroundStyle="{
  245. right: '10px',
  246. bottom: '0',
  247. width: '122px',
  248. height: '128px',
  249. }" :link="undefined">
  250. <template #title>
  251. <HomeCard.Title>
  252. <el-badge value="即将上线"> 常见问题 </el-badge>
  253. </HomeCard.Title>
  254. </template>
  255. <template #background>
  256. <img src="@/assets/images/card3.png" />
  257. </template>
  258. <HomeCardContent>
  259. <!-- TODO -->
  260. </HomeCardContent>
  261. </HomeCard>
  262. </HomeCardContent>
  263. <!-- <HomeCardContent :span="8">
  264. <HomeCard
  265. title="更新日志"
  266. color="white"
  267. :backgroundStyle="{
  268. right: '0',
  269. bottom: '0',
  270. width: '160px',
  271. height: '128px',
  272. }"
  273. :link="withLink('TODO1')"
  274. >
  275. <template #background>
  276. <img src="@/assets/images/card4.png" />
  277. </template>
  278. <HomeCardContent>
  279. </HomeCardContent>
  280. </HomeCard>
  281. </HomeCardContent> -->
  282. <HomeCardContent :span="12">
  283. <HomeCard title="如何与AI对话" color="white" :backgroundStyle="{
  284. right: '17px',
  285. bottom: '0',
  286. width: '167px',
  287. height: '92px',
  288. }" :link="undefined">
  289. <template #title>
  290. <HomeCard.Title>
  291. <el-badge value="即将上线"> 如何与AI对话 </el-badge>
  292. </HomeCard.Title>
  293. </template>
  294. <template #background>
  295. <img src="@/assets/images/card5.png" />
  296. </template>
  297. <HomeCardContent>
  298. <!-- TODO -->
  299. </HomeCardContent>
  300. </HomeCard>
  301. </HomeCardContent>
  302. </HomeCard>
  303. </HomeSectionContent>
  304. </HomeSection>
  305. </div>
  306. </template>
  307. <style lang="scss" scoped>
  308. .home-content {
  309. display: flex;
  310. flex-direction: column;
  311. align-items: center;
  312. gap: 80px;
  313. padding-top: 80px;
  314. }
  315. .fancy-list {
  316. list-style-type: none;
  317. margin: 0;
  318. padding: 0;
  319. display: flex;
  320. flex-direction: column;
  321. align-items: stretch;
  322. gap: 10px;
  323. li {
  324. display: flex;
  325. height: 38px;
  326. align-items: center;
  327. transition: all 0.2s;
  328. border: 1px solid transparent;
  329. border-radius: 8px;
  330. padding: 8px 4px;
  331. margin: 0;
  332. cursor: pointer;
  333. &::before {
  334. content: "•";
  335. margin: 0 8px;
  336. }
  337. &:hover {
  338. // border: 1px solid #3681fc;
  339. border-color: #3681fc;
  340. background: #ffffff;
  341. }
  342. span {
  343. flex: 1;
  344. }
  345. }
  346. }
  347. .el-button:not(:hover) {
  348. background-color: transparent;
  349. border: 1px solid #aeccfe;
  350. }
  351. </style>