Skip to content

Commit 81c798c

Browse files
committed
update footer
1 parent 7cdc8f2 commit 81c798c

File tree

3 files changed

+140
-3
lines changed

3 files changed

+140
-3
lines changed

docs/.vitepress/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export default defineConfig({
8989
{ icon: 'x', link: 'https://dmxapi.cn/' },
9090
{ icon: 'wechat', link: 'https://dmxapi.cn/models.html#contact' },
9191
],
92-
footer: {
93-
copyright: 'Copyright © 2023 - 2025 DMXAPI, LLC',
94-
},
92+
// footer: {
93+
// copyright: 'Copyright © 2023 - 2025 DMXAPI, LLC',
94+
// },
9595
search: {
9696
provider: 'local',
9797
options: {
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<template>
2+
<footer class="custom-footer">
3+
<div class="footer-main">
4+
<div class="footer-col">
5+
<div class="footer-title">
6+
产品服务
7+
</div>
8+
<ul>
9+
<li><a href="#">Deepseek</a></li>
10+
<li><a href="#">OpenAI</a></li>
11+
<li><a href="#">Gemini</a></li>
12+
<li><a href="#">Grok</a></li>
13+
</ul>
14+
</div>
15+
<div class="footer-col">
16+
<div class="footer-title">
17+
相关文档
18+
</div>
19+
<ul>
20+
<li><a href="#">模型价格</a></li>
21+
<li><a href="#">API 文档</a></li>
22+
<li><a href="#">服务条款</a></li>
23+
<li><a href="#">隐私政策</a></li>
24+
</ul>
25+
</div>
26+
<div class="footer-col">
27+
<div class="footer-title">
28+
合作伙伴
29+
</div>
30+
<ul>
31+
<li><a href="#">火山引擎</a></li>
32+
</ul>
33+
</div>
34+
<div class="footer-col">
35+
<div class="footer-title">
36+
关于我们
37+
</div>
38+
<ul>
39+
<li><a href="#">公司介绍</a></li>
40+
<li><a href="#">渠道合作</a></li>
41+
<li><a href="#">联系我们</a></li>
42+
<li><a href="#">需求反馈</a></li>
43+
</ul>
44+
</div>
45+
</div>
46+
<div class="footer-bottom">
47+
<div> Copyright © 2023-2025 <a href="https://dmxapi.cn">DMXAPI</a> All Rights Reserved.</div>
48+
</div>
49+
</footer>
50+
</template>
51+
52+
<style>
53+
.custom-footer {
54+
width: 100vw;
55+
min-width: 100vw;
56+
position: relative;
57+
background: #fafbfc;
58+
padding: 40px 0 0 0;
59+
font-size: 14px;
60+
color: #222;
61+
border-top: 1px solid #f0f0f0;
62+
}
63+
.footer-main {
64+
display: flex;
65+
justify-content: center;
66+
gap: 60px;
67+
max-width: 1200px;
68+
margin: 0 auto;
69+
flex-wrap: wrap;
70+
}
71+
.footer-col {
72+
min-width: 180px;
73+
margin-bottom: 20px;
74+
}
75+
.footer-title {
76+
font-weight: 600;
77+
margin-bottom: 12px;
78+
display: flex;
79+
align-items: center;
80+
color: #222;
81+
font-size: 15px;
82+
}
83+
.footer-icon {
84+
font-size: 18px;
85+
margin-right: 6px;
86+
}
87+
.footer-col ul {
88+
list-style: none;
89+
padding: 0;
90+
margin: 0;
91+
}
92+
.footer-col li {
93+
margin-bottom: 8px;
94+
}
95+
.footer-col a {
96+
color: #222;
97+
text-decoration: none;
98+
transition: color 0.2s;
99+
font-size: 14px;
100+
}
101+
.footer-col a:hover {
102+
color: #1e90ff;
103+
text-decoration: underline;
104+
}
105+
.footer-bottom {
106+
text-align: center;
107+
color: #888;
108+
font-size: 13px;
109+
padding: 24px 0 12px 0;
110+
border-top: 1px solid #eee;
111+
margin-top: 16px;
112+
line-height: 1.8;
113+
}
114+
@media (max-width: 900px) {
115+
.footer-main {
116+
flex-direction: column;
117+
align-items: center;
118+
gap: 24px;
119+
}
120+
.footer-col {
121+
min-width: 0;
122+
width: 100%;
123+
max-width: 340px;
124+
}
125+
}
126+
.page-wrapper {
127+
min-height: 100vh;
128+
display: flex;
129+
flex-direction: column;
130+
}
131+
.page-wrapper > *:last-child {
132+
margin-top: auto;
133+
}
134+
</style>

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { MotionPlugin } from '@vueuse/motion'
99
import { h } from 'vue'
1010
import AIModelsList from './components/AIModelsList.vue'
1111
import DifyChatbot from './components/DifyChatbot.vue'
12+
import Footer from './components/Footer.vue'
1213
import HomeContent from './components/HomeContent.vue'
1314
import IntegrationCard from './components/IntegrationCard.vue'
1415
import IntroductionLIBlock from './components/IntroductionLIBlock.vue'
@@ -44,6 +45,7 @@ export default defineThemeUnconfig({
4445
'layout-bottom': {
4546
node: [
4647
() => h(DifyChatbot),
48+
() => h(Footer),
4749
],
4850
},
4951
},
@@ -56,6 +58,7 @@ export default defineThemeUnconfig({
5658
app.component('IntroductionLIBlock', IntroductionLIBlock)
5759
app.component('IntroductionRIBlock', IntroductionRIBlock)
5860
app.component('AIModelsList', AIModelsList)
61+
app.component('Footer', Footer)
5962
app.use(TwoslashFloatingVue as Plugin)
6063
app.use(MotionPlugin as Plugin)
6164
},

0 commit comments

Comments
 (0)