172 lines
4.6 KiB
HTML
172 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="大语言模型聊天网站 - 智能对话助手" />
|
|
<meta name="keywords" content="AI,聊天,大语言模型,对话,智能助手" />
|
|
<meta name="author" content="LLM Chat Website" />
|
|
|
|
<!-- Open Graph 标签 -->
|
|
<meta property="og:title" content="LLM聊天网站" />
|
|
<meta property="og:description" content="与AI进行智能对话的聊天网站" />
|
|
<meta property="og:type" content="website" />
|
|
|
|
<!-- 预连接外部资源 -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
<!-- 字体 -->
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
|
|
|
|
<title>LLM聊天网站</title>
|
|
|
|
<style>
|
|
/* 全局样式重置 */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loading-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9999;
|
|
transition: opacity 0.5s ease-out;
|
|
}
|
|
|
|
.loading-container.fade-out {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
border-top: 3px solid white;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.loading-text {
|
|
color: white;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.loading-subtitle {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 14px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 应用根容器 */
|
|
#app {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #c1c1c1;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #a8a8a8;
|
|
}
|
|
|
|
/* 响应式断点 */
|
|
@media (max-width: 768px) {
|
|
.loading-text {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.loading-subtitle {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- 加载动画 -->
|
|
<div id="loading" class="loading-container">
|
|
<div class="loading-spinner"></div>
|
|
<div class="loading-text">正在加载聊天应用</div>
|
|
<div class="loading-subtitle">请稍候...</div>
|
|
</div>
|
|
|
|
<!-- Vue应用挂载点 -->
|
|
<div id="app"></div>
|
|
|
|
<script>
|
|
// 在应用加载完成后隐藏加载动画
|
|
window.addEventListener('load', function() {
|
|
setTimeout(function() {
|
|
const loading = document.getElementById('loading');
|
|
if (loading) {
|
|
loading.classList.add('fade-out');
|
|
setTimeout(function() {
|
|
loading.style.display = 'none';
|
|
}, 500);
|
|
}
|
|
}, 1000);
|
|
});
|
|
|
|
// 错误处理
|
|
window.addEventListener('error', function(e) {
|
|
console.error('应用加载错误:', e.error);
|
|
const loading = document.getElementById('loading');
|
|
if (loading) {
|
|
const text = loading.querySelector('.loading-text');
|
|
const subtitle = loading.querySelector('.loading-subtitle');
|
|
if (text) text.textContent = '加载失败';
|
|
if (subtitle) subtitle.textContent = '请刷新页面重试';
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<!-- Vue应用入口 -->
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html> |