feat(frontend): unify landing style and add product/scenes/start pages
This commit is contained in:
@@ -3,9 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>玩玩云 - 现代化云存储平台</title>
|
||||
<title>玩玩云 - 企业网盘</title>
|
||||
<script>
|
||||
// 邮件激活/重置链接重定向
|
||||
(function() {
|
||||
const search = window.location.search;
|
||||
if (!search) return;
|
||||
@@ -17,651 +16,243 @@
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="libs/fontawesome/css/all.min.css">
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 暗色主题(默认) */
|
||||
:root {
|
||||
--bg-primary: #0a0a0f;
|
||||
--bg-secondary: #12121a;
|
||||
--glass: rgba(255, 255, 255, 0.03);
|
||||
--glass-border: rgba(255, 255, 255, 0.08);
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: rgba(255, 255, 255, 0.6);
|
||||
--accent-1: #667eea;
|
||||
--accent-2: #764ba2;
|
||||
--accent-3: #f093fb;
|
||||
--glow: rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
/* 亮色主题 */
|
||||
.light-theme {
|
||||
--bg-primary: #f0f4f8;
|
||||
--bg-secondary: #ffffff;
|
||||
--glass: rgba(102, 126, 234, 0.05);
|
||||
--glass-border: rgba(102, 126, 234, 0.15);
|
||||
--text-primary: #1a1a2e;
|
||||
--text-secondary: rgba(26, 26, 46, 0.7);
|
||||
--accent-1: #5a67d8;
|
||||
--accent-2: #6b46c1;
|
||||
--accent-3: #d53f8c;
|
||||
--glow: rgba(90, 103, 216, 0.3);
|
||||
}
|
||||
|
||||
/* 亮色主题特定样式 */
|
||||
body.light-theme .navbar {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
|
||||
body.light-theme .grid-bg {
|
||||
background-image:
|
||||
linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
body.light-theme .gradient-orb {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
body.light-theme .feature-card {
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
body.light-theme .tech-bar {
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* 动态背景 */
|
||||
.bg-gradient {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.gradient-orb {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(80px);
|
||||
opacity: 0.5;
|
||||
animation: float 20s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.orb-1 {
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
|
||||
top: -200px;
|
||||
right: -200px;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
|
||||
.orb-2 {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
|
||||
bottom: -150px;
|
||||
left: -150px;
|
||||
animation-delay: -7s;
|
||||
}
|
||||
|
||||
.orb-3 {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
animation-delay: -14s;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translate(0, 0) scale(1); }
|
||||
25% { transform: translate(50px, -50px) scale(1.1); }
|
||||
50% { transform: translate(-30px, 30px) scale(0.95); }
|
||||
75% { transform: translate(-50px, -30px) scale(1.05); }
|
||||
}
|
||||
|
||||
/* 网格背景 */
|
||||
.grid-bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image:
|
||||
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
|
||||
background-size: 60px 60px;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 20px 50px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
z-index: 100;
|
||||
background: rgba(10, 10, 15, 0.8);
|
||||
backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.logo i {
|
||||
font-size: 32px;
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 12px 28px;
|
||||
border-radius: 12px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.btn-ghost:hover {
|
||||
color: var(--text-primary);
|
||||
background: var(--glass);
|
||||
border-color: var(--glass-border);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
|
||||
color: white;
|
||||
box-shadow: 0 4px 20px var(--glow);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px var(--glow);
|
||||
}
|
||||
|
||||
/* 主内容区 */
|
||||
.main {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 120px 50px 80px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 80px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* 左侧内容 */
|
||||
.hero-content {
|
||||
animation: fadeIn 1s ease-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(30px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
background: var(--glass);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 50px;
|
||||
font-size: 13px;
|
||||
color: var(--accent-3);
|
||||
margin-bottom: 30px;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.badge i {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 64px;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 24px;
|
||||
letter-spacing: -2px;
|
||||
}
|
||||
|
||||
.hero-title .gradient-text {
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.hero-desc {
|
||||
font-size: 18px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.7;
|
||||
margin-bottom: 40px;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 16px 36px;
|
||||
font-size: 16px;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
/* 统计数据 */
|
||||
.stats {
|
||||
display: flex;
|
||||
gap: 50px;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* 右侧功能卡片 */
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
animation: fadeIn 1s ease-out 0.3s both;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background: var(--glass);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 20px;
|
||||
padding: 28px;
|
||||
backdrop-filter: blur(20px);
|
||||
transition: all 0.4s ease;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
transform: translateY(-8px);
|
||||
border-color: rgba(102, 126, 234, 0.3);
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.feature-card:nth-child(2) { animation-delay: 0.1s; }
|
||||
.feature-card:nth-child(3) { animation-delay: 0.2s; }
|
||||
.feature-card:nth-child(4) { animation-delay: 0.3s; }
|
||||
|
||||
.feature-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 18px;
|
||||
font-size: 22px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.feature-desc {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 底部技术栈 */
|
||||
.tech-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 20px 50px;
|
||||
background: rgba(10, 10, 15, 0.9);
|
||||
backdrop-filter: blur(20px);
|
||||
border-top: 1px solid var(--glass-border);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tech-list {
|
||||
display: flex;
|
||||
gap: 30px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tech-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
.tech-item:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.tech-item i {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 1024px) {
|
||||
.container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.hero-desc {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stats {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.navbar {
|
||||
padding: 15px 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.logo i {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.main {
|
||||
padding: 100px 20px 120px;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 40px;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
.hero-desc {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.hero-buttons {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stats {
|
||||
flex-wrap: wrap;
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.tech-bar {
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
padding: 15px 20px;
|
||||
}
|
||||
|
||||
.tech-list {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.nav-links .btn span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-links .btn {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="landing.css?v=20260212006">
|
||||
</head>
|
||||
<body>
|
||||
<!-- 背景效果 -->
|
||||
<div class="bg-gradient">
|
||||
<div class="gradient-orb orb-1"></div>
|
||||
<div class="gradient-orb orb-2"></div>
|
||||
<div class="gradient-orb orb-3"></div>
|
||||
</div>
|
||||
<div class="grid-bg"></div>
|
||||
<div class="page">
|
||||
<header class="site-header">
|
||||
<div class="container site-header-inner">
|
||||
<a class="brand" href="index.html">
|
||||
<i class="fas fa-cloud"></i>
|
||||
<span>玩玩云</span>
|
||||
</a>
|
||||
|
||||
<!-- 导航栏 -->
|
||||
<nav class="navbar">
|
||||
<div class="logo">
|
||||
<i class="fas fa-cloud"></i>
|
||||
<span>玩玩云</span>
|
||||
</div>
|
||||
<div class="nav-links">
|
||||
<a href="app.html?action=login" class="btn btn-ghost">
|
||||
<i class="fas fa-arrow-right-to-bracket"></i>
|
||||
<span>登录</span>
|
||||
</a>
|
||||
<a href="app.html?action=register" class="btn btn-primary">
|
||||
<i class="fas fa-rocket"></i>
|
||||
<span>开始使用</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
<nav class="top-nav">
|
||||
<a href="product.html">产品能力</a>
|
||||
<a href="scenes.html">应用场景</a>
|
||||
<a href="start.html">快速开始</a>
|
||||
</nav>
|
||||
|
||||
<!-- 主内容 -->
|
||||
<main class="main">
|
||||
<div class="container">
|
||||
<!-- 左侧文案 -->
|
||||
<div class="hero-content">
|
||||
<div class="badge">
|
||||
<i class="fas fa-circle"></i>
|
||||
<span>安全 · 高效 · 简洁</span>
|
||||
</div>
|
||||
<h1 class="hero-title">
|
||||
现代化<br><span class="gradient-text">云存储平台</span>
|
||||
</h1>
|
||||
<p class="hero-desc">
|
||||
简单、安全、高效的文件管理解决方案。支持 OSS 云存储和服务器本地存储双模式,随时随地管理和分享你的文件。
|
||||
</p>
|
||||
<div class="hero-buttons">
|
||||
<a href="app.html?action=register" class="btn btn-primary btn-large">
|
||||
<i class="fas fa-rocket"></i>
|
||||
<span>免费注册</span>
|
||||
<div class="header-actions">
|
||||
<a href="app.html?action=login" class="btn btn-secondary">
|
||||
<i class="fas fa-circle-user"></i>
|
||||
登录
|
||||
</a>
|
||||
<a href="app.html?action=login" class="btn btn-ghost btn-large">
|
||||
<i class="fas fa-play"></i>
|
||||
<span>已有账号</span>
|
||||
<a href="app.html?action=register" class="btn btn-primary">
|
||||
<i class="fas fa-user-plus"></i>
|
||||
免费注册
|
||||
</a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<div class="stat-item">
|
||||
<div class="stat-value">5GB</div>
|
||||
<div class="stat-label">单文件上限</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-value">双模式</div>
|
||||
<div class="stat-label">存储方案</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-value">24/7</div>
|
||||
<div class="stat-label">全天候服务</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 右侧功能卡片 -->
|
||||
<div class="features-grid">
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fas fa-cloud"></i>
|
||||
<main class="main">
|
||||
<div class="container">
|
||||
<section class="hero">
|
||||
<div>
|
||||
<div class="hero-tag">
|
||||
<i class="fas fa-shield-halved"></i>
|
||||
企业网盘 · 稳定可控
|
||||
</div>
|
||||
<h1 class="hero-title">像主流网盘一样好用,
|
||||
<br>更适合你的私有部署场景</h1>
|
||||
<p class="hero-desc">
|
||||
玩玩云提供文件上传、在线预览、分享权限、存储配额与后台管理能力,支持本地与 OSS 双模式,满足团队长期文件管理与协作需求。
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a href="app.html?action=register" class="btn btn-primary">
|
||||
<i class="fas fa-rocket"></i>
|
||||
立即开始
|
||||
</a>
|
||||
<a href="app.html?action=login" class="btn btn-secondary">
|
||||
<i class="fas fa-circle-user"></i>
|
||||
已有账号,去登录
|
||||
</a>
|
||||
</div>
|
||||
<div class="hero-points">
|
||||
<span><i class="fas fa-check-circle"></i> 单文件分享 / 密码访问 / 时效控制</span>
|
||||
<span><i class="fas fa-check-circle"></i> 用户存储策略与配额可按人精细化配置</span>
|
||||
<span><i class="fas fa-check-circle"></i> 网页端与移动端统一体验,开箱即用</span>
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="feature-title">OSS 云存储</h3>
|
||||
<p class="feature-desc">支持阿里云、腾讯云、AWS S3,数据完全自主掌控</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fas fa-cloud-arrow-up"></i>
|
||||
</div>
|
||||
<h3 class="feature-title">极速上传</h3>
|
||||
<p class="feature-desc">拖拽上传,实时进度,支持大文件直连上传</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fas fa-share-nodes"></i>
|
||||
</div>
|
||||
<h3 class="feature-title">安全分享</h3>
|
||||
<p class="feature-desc">一键生成链接,支持密码保护和有效期</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<i class="fas fa-shield-halved"></i>
|
||||
</div>
|
||||
<h3 class="feature-title">企业安全</h3>
|
||||
<p class="feature-desc">JWT 认证,bcrypt 加密,全链路安全</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- 底部技术栈 -->
|
||||
<div class="tech-bar">
|
||||
<div class="tech-list">
|
||||
<div class="tech-item">
|
||||
<i class="fab fa-node-js"></i>
|
||||
<span>Node.js</span>
|
||||
<div class="carousel" id="netdiskCarousel">
|
||||
<div class="carousel-viewport">
|
||||
<article class="carousel-slide is-active" data-title="文件管理">
|
||||
<div class="slide-head">
|
||||
<div class="slide-title">文件管理界面</div>
|
||||
<span class="slide-tag">目录组织</span>
|
||||
</div>
|
||||
<div class="slide-body">
|
||||
<div class="slide-row"><span>当前目录</span><strong>/项目文档/交付包</strong></div>
|
||||
<div class="slide-row"><span>文件数量</span><strong>128 项</strong></div>
|
||||
<div class="slide-row"><span>总容量</span><strong>7.6 GB</strong></div>
|
||||
<div class="slide-progress"><span style="width: 62%;"></span></div>
|
||||
<div class="slide-row"><span>最近上传</span><strong>需求说明-v3.pdf</strong></div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="carousel-slide" data-title="分享控制">
|
||||
<div class="slide-head">
|
||||
<div class="slide-title">分享权限控制</div>
|
||||
<span class="slide-tag">安全分享</span>
|
||||
</div>
|
||||
<div class="slide-body">
|
||||
<div class="slide-row"><span>分享链接</span><strong>/s/Ab8K9Q</strong></div>
|
||||
<div class="slide-row"><span>访问方式</span><strong>密码 + 有效期</strong></div>
|
||||
<div class="slide-row"><span>访问次数</span><strong>剩余 9 / 10</strong></div>
|
||||
<div class="slide-progress"><span style="width: 90%; background: linear-gradient(90deg,#f59e0b,#ef4444);"></span></div>
|
||||
<div class="slide-row"><span>过期时间</span><strong>2026-02-20 23:59</strong></div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="carousel-slide" data-title="存储策略">
|
||||
<div class="slide-head">
|
||||
<div class="slide-title">双存储模式</div>
|
||||
<span class="slide-tag">本地 + OSS</span>
|
||||
</div>
|
||||
<div class="slide-body">
|
||||
<div class="slide-row"><span>当前存储</span><strong>OSS 存储</strong></div>
|
||||
<div class="slide-row"><span>已使用</span><strong>408.99 MB / 1 GB</strong></div>
|
||||
<div class="slide-row"><span>用户配额</span><strong>默认 1 GB(可调整)</strong></div>
|
||||
<div class="slide-progress"><span style="width: 41%; background: linear-gradient(90deg,#22c55e,#2468f2);"></span></div>
|
||||
<div class="slide-row"><span>策略状态</span><strong>管理员可统一下发</strong></div>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="carousel-footer">
|
||||
<div class="carousel-dots" id="carouselDots">
|
||||
<button class="carousel-dot active" data-index="0" aria-label="切换到第1张"></button>
|
||||
<button class="carousel-dot" data-index="1" aria-label="切换到第2张"></button>
|
||||
<button class="carousel-dot" data-index="2" aria-label="切换到第3张"></button>
|
||||
</div>
|
||||
<div class="carousel-nav">
|
||||
<button class="carousel-btn" id="carouselPrev" aria-label="上一张"><i class="fas fa-angle-left"></i></button>
|
||||
<button class="carousel-btn" id="carouselNext" aria-label="下一张"><i class="fas fa-angle-right"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h2 class="section-title"><i class="fas fa-layer-group"></i>核心能力</h2>
|
||||
<div class="feature-grid">
|
||||
<article class="feature-card">
|
||||
<div class="feature-icon"><i class="fas fa-cloud-arrow-up"></i></div>
|
||||
<div class="feature-name">高效上传</div>
|
||||
<p class="feature-desc">支持多文件上传、拖拽上传与进度反馈,日常资料归档更高效。</p>
|
||||
</article>
|
||||
<article class="feature-card">
|
||||
<div class="feature-icon"><i class="fas fa-folder-tree"></i></div>
|
||||
<div class="feature-name">目录管理</div>
|
||||
<p class="feature-desc">支持目录层级导航、重命名、删除等管理操作,结构清晰。</p>
|
||||
</article>
|
||||
<article class="feature-card">
|
||||
<div class="feature-icon"><i class="fas fa-share-nodes"></i></div>
|
||||
<div class="feature-name">可控分享</div>
|
||||
<p class="feature-desc">可设置密码、有效期、访问次数,外发资料更安全。</p>
|
||||
</article>
|
||||
<article class="feature-card">
|
||||
<div class="feature-icon"><i class="fas fa-user-shield"></i></div>
|
||||
<div class="feature-name">后台管控</div>
|
||||
<p class="feature-desc">支持用户权限、配额策略、存储类型管理,维护成本低。</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tech-item">
|
||||
<i class="fab fa-vuejs"></i>
|
||||
<span>Vue.js</span>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container footer-inner">
|
||||
<div>玩玩云 © 2026</div>
|
||||
<div class="footer-tech">
|
||||
<span><i class="fab fa-node-js"></i> Node.js</span>
|
||||
<span><i class="fab fa-vuejs"></i> Vue.js</span>
|
||||
<span><i class="fas fa-database"></i> SQLite</span>
|
||||
<span><i class="fab fa-docker"></i> Docker</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tech-item">
|
||||
<i class="fas fa-database"></i>
|
||||
<span>SQLite</span>
|
||||
</div>
|
||||
<div class="tech-item">
|
||||
<i class="fab fa-docker"></i>
|
||||
<span>Docker</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
玩玩云 © 2025
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 加载全局主题
|
||||
(function() {
|
||||
const carousel = document.getElementById('netdiskCarousel');
|
||||
if (!carousel) return;
|
||||
|
||||
const slides = Array.from(carousel.querySelectorAll('.carousel-slide'));
|
||||
const dots = Array.from(document.querySelectorAll('#carouselDots .carousel-dot'));
|
||||
const prevBtn = document.getElementById('carouselPrev');
|
||||
const nextBtn = document.getElementById('carouselNext');
|
||||
let currentIndex = 0;
|
||||
let timer = null;
|
||||
|
||||
function render(index) {
|
||||
currentIndex = (index + slides.length) % slides.length;
|
||||
slides.forEach((slide, idx) => {
|
||||
slide.classList.toggle('is-active', idx === currentIndex);
|
||||
});
|
||||
dots.forEach((dot, idx) => {
|
||||
dot.classList.toggle('active', idx === currentIndex);
|
||||
});
|
||||
}
|
||||
|
||||
function next() {
|
||||
render(currentIndex + 1);
|
||||
}
|
||||
|
||||
function startAuto() {
|
||||
stopAuto();
|
||||
timer = setInterval(next, 4500);
|
||||
}
|
||||
|
||||
function stopAuto() {
|
||||
if (timer) {
|
||||
clearInterval(timer);
|
||||
timer = null;
|
||||
}
|
||||
}
|
||||
|
||||
dots.forEach((dot, idx) => {
|
||||
dot.addEventListener('click', () => {
|
||||
render(idx);
|
||||
startAuto();
|
||||
});
|
||||
});
|
||||
|
||||
if (prevBtn) {
|
||||
prevBtn.addEventListener('click', () => {
|
||||
render(currentIndex - 1);
|
||||
startAuto();
|
||||
});
|
||||
}
|
||||
|
||||
if (nextBtn) {
|
||||
nextBtn.addEventListener('click', () => {
|
||||
render(currentIndex + 1);
|
||||
startAuto();
|
||||
});
|
||||
}
|
||||
|
||||
carousel.addEventListener('mouseenter', stopAuto);
|
||||
carousel.addEventListener('mouseleave', startAuto);
|
||||
carousel.addEventListener('touchstart', stopAuto, { passive: true });
|
||||
carousel.addEventListener('touchend', startAuto, { passive: true });
|
||||
|
||||
render(0);
|
||||
startAuto();
|
||||
})();
|
||||
|
||||
(async function() {
|
||||
try {
|
||||
const response = await fetch('/api/public/theme');
|
||||
const data = await response.json();
|
||||
if (data.success && data.theme === 'light') {
|
||||
document.body.classList.add('light-theme');
|
||||
if (data.success && data.theme === 'dark') {
|
||||
document.body.classList.add('theme-dark');
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('无法加载主题设置');
|
||||
} catch (error) {
|
||||
console.log('主题加载失败,使用默认主题');
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user