Skip to content

Commit 0bd7804

Browse files
authored
feat: add carousel in home (#22)
* feat: add carousel in home * fix: Fix style and other issues * fix: remove invalid "target=_blank"
1 parent f37145a commit 0bd7804

11 files changed

Lines changed: 203 additions & 95 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/home/public/images/home/carousel/logo-blue.svg renamed to packages/home/public/images/home/slogan/logo-blue.svg

File renamed without changes.

packages/home/public/images/home/carousel/logo-green.svg renamed to packages/home/public/images/home/slogan/logo-green.svg

File renamed without changes.

packages/home/src/views/home/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ onUnmounted(() => {
110110
.pcRem( right,90);
111111
top: 50%;
112112
transform: translateY(-50%);
113+
z-index: 2;
113114
}
114115
.anchor-item {
115116
width: 14px;

packages/home/src/views/home/platform/components/TinyEngine.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div v-if="!isMobile" class="wait">智能化版本敬请期待...</div>
2929
<div class="operation">
3030
<tiny-button class="button" @click="onTinyEngine">即刻体验</tiny-button>
31-
<tiny-link class="link" @click="onLinkClick">
31+
<tiny-link class="link" href="/tiny-engine#/help-center/course/engine/introduction" target="_blank">
3232
<template #icon>
3333
<TinyIconFilletExternalLink></TinyIconFilletExternalLink>
3434
</template>
@@ -52,10 +52,6 @@ const { isMobile } = useWindowSize()
5252
const onTinyEngine = () => {
5353
window.open('/tiny-engine#/home', '_blank', 'noopener,noreferrer')
5454
}
55-
56-
const onLinkClick = () => {
57-
window.open('/tiny-engine#/help-center/course/engine/introduction')
58-
}
5955
</script>
6056

6157
<style lang="less" scoped>

packages/home/src/views/home/platform/components/TinyRobot.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ const { isMobile } = useWindowSize()
88
const TinyIconFilletExternalLink = iconFilletExternalLink()
99
1010
const onTinyRobot = () => {
11-
window.open('https://agent.opentiny.design/tiny-robot', '_blank', 'noopener,noreferrer')
12-
}
13-
14-
const onLinkClick = () => {
15-
window.open('https://docs.opentiny.design/tiny-robot/guide/quick-start.html', '_blank', 'noopener,noreferrer')
11+
window.open('https://chat.opentiny.design/', '_blank', 'noopener,noreferrer')
1612
}
1713
1814
const cardList = [
@@ -62,7 +58,7 @@ const cardList = [
6258
<div class="footer">
6359
<div class="operation">
6460
<tiny-button class="button" @click="onTinyRobot">即刻体验</tiny-button>
65-
<tiny-link class="link" @click="onLinkClick">
61+
<tiny-link class="link" href="https://docs.opentiny.design/tiny-robot/guide/quick-start.html" target="_blank">
6662
<template #icon>
6763
<TinyIconFilletExternalLink></TinyIconFilletExternalLink>
6864
</template>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { $pub } from '@/tools'
2+
3+
export const bannerList = [
4+
{
5+
title: '一场 MCP 生态的变革',
6+
description: '详解 OpenTiny NEXT 逆向思维的技术创新',
7+
icon: $pub('images/home/slogan/logo-blue.svg'),
8+
iconTitle: 'Opentiny NEXT',
9+
bg: $pub('images/home/slogan/bg2.webp'),
10+
link: 'https://mp.weixin.qq.com/s/xMx5sfKGh2R-oZPGUwv70A'
11+
},
12+
{
13+
title: '亮相 GOSIM HANGZHOU2025',
14+
description: '携手开发者共筑开源智能生态',
15+
icon: $pub('images/home/slogan/logo-green.svg'),
16+
iconTitle: 'Opentiny NEXT',
17+
bg: $pub('images/home/slogan/bg3.webp'),
18+
link: 'https://mp.weixin.qq.com/s/BhwpmnBtPke42zxNTsb9fQ'
19+
},
20+
{
21+
title: 'TinyVue 推出 Space 组件',
22+
description: '不止按钮和表格 直接搞定「弹性+间距」布局',
23+
icon: $pub('images/tiny-vue.svg'),
24+
iconTitle: 'TinyVue',
25+
bg: $pub('images/home/slogan/bg4.webp'),
26+
link: 'https://mp.weixin.qq.com/s/_QB7mTzSpHEt7ExK2MFUFw'
27+
},
28+
{
29+
title: '物料自动导入工具上手指南',
30+
description: '支持通过 URL 爬取、NPM 包解析、源码上传三种方式',
31+
icon: $pub('images/tiny-engine.svg'),
32+
iconTitle: 'TinyEngine',
33+
bg: $pub('images/home/slogan/bg4.webp'),
34+
link: 'https://mp.weixin.qq.com/s/Slq1vJbA3G7ZiKLxsF4nMQ'
35+
}
36+
]

0 commit comments

Comments
 (0)