-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathFooter.vue
More file actions
209 lines (181 loc) · 4.15 KB
/
Footer.vue
File metadata and controls
209 lines (181 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<template>
<div class="footer-content">
<!-- 翻页统计信息 -->
<div v-if="paginationStore.shouldShow" class="pagination-stats">
<span class="stats-text">{{ paginationStore.statsText }}</span>
</div>
<!-- 默认底部工具条内容 -->
<div v-else class="default-footer">
<div class="footer-info">
<!-- 版权信息 -->
<div class="copyright-section">
<icon-copyright class="footer-icon" />
<span class="copyright-text">{{ currentYear }} DrPlayer</span>
</div>
<!-- 分隔符 -->
<div class="separator">|</div>
<!-- 项目地址 -->
<div class="project-section">
<icon-github class="footer-icon" />
<a
href="https://github.com/hjdhnx/DrPlayer"
target="_blank"
class="project-link"
@click="handleProjectClick"
>
GitHub
</a>
</div>
<!-- 分隔符 -->
<div class="separator">|</div>
<!-- 备案号 -->
<div class="license-section">
<icon-safe class="footer-icon" />
<span class="license-text">hjdhnx</span>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { computed } from 'vue';
import { Message } from '@arco-design/web-vue';
import {
IconCopyright,
IconGithub,
IconSafe
} from '@arco-design/web-vue/es/icon';
import { usePaginationStore } from '@/stores/paginationStore';
// 使用翻页统计store
const paginationStore = usePaginationStore();
// 获取当前年份
const currentYear = computed(() => new Date().getFullYear());
// 处理项目链接点击
const handleProjectClick = () => {
Message.success('正在跳转到项目主页...');
};
</script>
<style scoped>
.footer-content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.pagination-stats {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.stats-text {
font-size: 13px;
color: var(--color-text-2);
font-weight: 500;
}
.default-footer {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
color: var(--color-text-2);
font-size: 13px;
}
.footer-info {
display: flex;
align-items: center;
gap: 12px;
padding: 0 16px;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
border-radius: 20px;
border: 1px solid rgba(99, 102, 241, 0.1);
transition: all 0.3s ease;
}
.footer-info:hover {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
border-color: rgba(99, 102, 241, 0.2);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}
.copyright-section,
.project-section,
.license-section {
display: flex;
align-items: center;
gap: 4px;
}
.footer-icon {
font-size: 14px;
color: var(--color-primary-6);
transition: all 0.3s ease;
}
.copyright-text,
.license-text {
font-size: 13px;
color: var(--color-text-2);
font-weight: 500;
transition: color 0.3s ease;
}
.project-link {
font-size: 13px;
color: var(--color-primary-6);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
}
.project-link:hover {
color: var(--color-primary-7);
transform: translateY(-1px);
}
.project-link::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 1px;
background: var(--color-primary-6);
transition: width 0.3s ease;
}
.project-link:hover::after {
width: 100%;
}
.separator {
color: var(--color-border-3);
font-size: 12px;
opacity: 0.6;
}
/* 响应式设计 */
@media (max-width: 768px) {
.footer-info {
gap: 8px;
padding: 0 12px;
font-size: 12px;
}
.footer-icon {
font-size: 12px;
}
.copyright-text,
.license-text,
.project-link {
font-size: 12px;
}
}
@media (max-width: 480px) {
.footer-info {
flex-direction: column;
gap: 4px;
padding: 8px 12px;
}
.separator {
display: none;
}
.copyright-section,
.project-section,
.license-section {
gap: 3px;
}
}
</style>