HomeContent.vue 12 KB

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