Skip to content

Commit 291d793

Browse files
committed
feat(home): 添加项目概述组件并更新文档
在首页视图中添加 ProjectOverview 组件用于自定义项目介绍,并更新相关文档说明 调整首页布局样式,包括容器高度和间距
1 parent 2c43578 commit 291d793

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

docs/latest/advanced/branding.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ YUXI_BRAND_FILE_PATH=src/config/static/info.local.yaml
5353

5454
```
5555

56-
**此外**`web/src/stores/theme.js` 中也包含了主题相关的配置(需要修改 `colorPrimary`),可根据需要修改。
56+
**此外**`web/src/stores/theme.js` 中也包含了主题相关的配置(需要修改 `colorPrimary`),可根据需要修改。
57+
58+
## 修改首页
59+
60+
首页提供了一个插槽组件 `web/src/components/ProjectOverview.vue`,可以在该组件中自定义项目介绍,当前为空文件。(借助 AI 编程可以设计出更好看的首页的)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<template>
2+
</template>

web/src/views/HomeView.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
</div>
7676
</div>
7777

78+
<ProjectOverview />
79+
7880
<footer class="footer">
7981
<div class="footer-content">
8082
<p class="copyright">{{ infoStore.footer?.copyright || '© 2025 All rights reserved' }}</p>
@@ -91,6 +93,7 @@ import { useInfoStore } from '@/stores/info'
9193
import { useAgentStore } from '@/stores/agent'
9294
import { useThemeStore } from '@/stores/theme'
9395
import UserInfoComponent from '@/components/UserInfoComponent.vue'
96+
import ProjectOverview from '@/components/ProjectOverview.vue'
9497
import {
9598
BookText,
9699
Bug,
@@ -218,15 +221,14 @@ const actionLinks = computed(() => {
218221
219222
<style lang="less" scoped>
220223
.home-container {
221-
height: 100vh;
224+
min-height: 100vh;
222225
display: flex;
223226
flex-direction: column;
224227
color: var(--main-900);
225228
background: radial-gradient(circle at top right, var(--main-50), transparent 60%), var(--main-5);
226229
position: relative;
227230
overflow-x: hidden;
228231
}
229-
230232
.glass-header {
231233
display: flex;
232234
justify-content: space-between;
@@ -266,8 +268,6 @@ const actionLinks = computed(() => {
266268
&:hover {
267269
color: var(--gray-900);
268270
269-
270-
271271
svg {
272272
transform: scale(1.1);
273273
}
@@ -511,7 +511,7 @@ const actionLinks = computed(() => {
511511
.section {
512512
width: 100%;
513513
max-width: 1200px;
514-
margin: 0 auto;
514+
margin: 50px auto 0px auto;
515515
padding: 2rem 0;
516516
}
517517

0 commit comments

Comments
 (0)