-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
149 lines (132 loc) · 3.22 KB
/
app.vue
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
<script setup lang="ts">
import { onMounted } from 'vue';
const appConfig = useAppConfig();
useHead({
title: '龙猫!启动!',
link: [
{
rel: 'icon',
href: '/机器猫-16x16.ico',
sizes: '16x16',
type: 'image/x-icon',
},
{
rel: 'icon',
href: '/机器猫-32x32.ico',
sizes: '32x32',
type: 'image/x-icon',
},
{
rel: 'icon',
href: '/机器猫-64x64.ico',
sizes: '64x64',
type: 'image/x-icon',
},
// 你可以添加更多的图标链接
],
});
onMounted(() => {
const script1 = document.createElement('script');
script1.async = true;
script1.src = 'https://www.googletagmanager.com/gtag/js?id=G-KEFCFSXRWJ';
document.head.appendChild(script1);
const script2 = document.createElement('script');
script2.textContent = `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KEFCFSXRWJ');
`;
document.head.appendChild(script2);
});
</script>
<script lang="ts">
window.global = window;
</script>
<template>
<VApp>
<VAppBar class="custom-app-bar" elevation="0" :height="64">
<!-- 左侧添加 VSpacer 实现标题居中 -->
<VSpacer></VSpacer>
<VAppBarTitle class="app-title">
让每个人都能感受到科技的乐趣
</VAppBarTitle>
<VSpacer></VSpacer>
<VBtn href="https://chat.aigoo.xyz" target="_blank" class="chat-btn" color="transparent">
<VAvatar size="32" class="mr-2 rounded-lg">
<VImg
src="https://p.sda1.dev/19/04a7d00040652fbcba52e4d67712e8aa/18D95B70-B36B-42E7-87F5-82D9D07BED0B_1_201_a.jpeg"
alt="FFchat" class="rounded-lg" />
</VAvatar>
<span class="chat-text">FFchat</span>
</VBtn>
</VAppBar>
<VMain>
<div class="p-4">
<NuxtPage />
<p class="mt-4 text-xs">
Powered by Hypered1
</p>
</div>
</VMain>
</VApp>
</template>
<style scoped>
.custom-app-bar {
background: linear-gradient(135deg, #59bbe9 0%, #2e4455 100%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.app-title {
font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
font-weight: 500;
color: rgba(255, 255, 255, 0.95);
letter-spacing: 0.5px;
transition: all 0.3s ease;
text-align: center;
position: absolute;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
}
.app-title:hover {
transform: scale(1.02);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
::v-deep .gradient {
background: linear-gradient(45deg, #1a95ed, #24c2de, #31d475);
background-size: 200% 200%;
animation: gradient 5s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.chat-btn {
margin-right: 16px;
transition: all 0.3s ease;
border-radius: 12px;
padding: 6px 12px;
}
.chat-btn:hover {
opacity: 0.9;
transform: scale(1.02);
background: rgba(255, 255, 255, 0.1);
}
.chat-text {
color: white;
font-weight: 500;
margin-left: 4px;
}
/* 添加圆角矩形样式 */
.rounded-lg {
border-radius: 12px !important;
}
</style>