first commit
This commit is contained in:
163
AIEC-server/auth/pages/register.html
Normal file
163
AIEC-server/auth/pages/register.html
Normal file
@ -0,0 +1,163 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>云大阁 - 注册</title>
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,600,800" rel="stylesheet">
|
||||
|
||||
<!-- Tailwind CSS CDN -->
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
primary: '#2563eb'
|
||||
},
|
||||
fontFamily: {
|
||||
'work': ['Work Sans', 'sans-serif']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- FontAwesome 6 Free CDN -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" crossorigin="anonymous">
|
||||
|
||||
<!-- 自定义样式 -->
|
||||
<link rel="stylesheet" href="../../css/style.css">
|
||||
<link rel="stylesheet" href="../components/auth-form.css">
|
||||
</head>
|
||||
<body class="bg-gray-50 font-work min-h-screen flex items-center justify-center">
|
||||
|
||||
<!-- 动态背景 -->
|
||||
<div class="background-container" style="position: fixed; inset: 0; z-index: 1; overflow: hidden;">
|
||||
<div class="animated-gradient" id="animatedGradient" style="position: absolute; inset: 0; filter: blur(40px) saturate(1.2); transition: background 0.5s ease-out;"></div>
|
||||
<div class="backdrop-overlay" style="position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(2px);"></div>
|
||||
</div>
|
||||
|
||||
<!-- 返回首页按钮 -->
|
||||
<div class="fixed top-4 left-4 z-50">
|
||||
<a href="../../index.html" class="w-10 h-10 rounded-full bg-white/80 backdrop-blur-sm border border-white/40 flex items-center justify-center hover:bg-white/90 transition-all duration-200 shadow-lg">
|
||||
<i class="fas fa-arrow-left text-gray-600"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Logo -->
|
||||
<div class="fixed top-4 left-1/2 transform -translate-x-1/2 z-50">
|
||||
<img src="../../images/logo.png" alt="云大阁" class="w-12 h-12">
|
||||
</div>
|
||||
|
||||
<!-- 注册表单容器 -->
|
||||
<div class="auth-container relative z-10 w-full max-w-md mx-4">
|
||||
<div class="auth-form-wrapper bg-white/70 backdrop-blur-md rounded-2xl p-8 shadow-xl border border-white/40">
|
||||
<!-- 标题 -->
|
||||
<div class="text-center mb-8">
|
||||
<h1 class="text-3xl font-bold text-gray-800 mb-2">加入云大阁</h1>
|
||||
<p class="text-gray-600">创建您的新账户</p>
|
||||
</div>
|
||||
|
||||
<!-- 注册表单 -->
|
||||
<form id="registerForm" class="space-y-6">
|
||||
<!-- 用户名输入 -->
|
||||
<div class="form-group">
|
||||
<label for="username" class="block text-sm font-medium text-gray-700 mb-2">用户名</label>
|
||||
<div class="relative">
|
||||
<input type="text" id="username" name="username"
|
||||
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200"
|
||||
placeholder="请输入用户名">
|
||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center">
|
||||
<i class="fas fa-user text-gray-400"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="error-message text-red-500 text-sm mt-1 hidden" id="usernameError"></div>
|
||||
</div>
|
||||
|
||||
<!-- 手机号/邮箱输入 -->
|
||||
<div class="form-group">
|
||||
<label for="account" class="block text-sm font-medium text-gray-700 mb-2">手机号/邮箱</label>
|
||||
<div class="relative">
|
||||
<input type="text" id="account" name="account"
|
||||
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200"
|
||||
placeholder="请输入手机号或邮箱">
|
||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center">
|
||||
<i class="fas fa-envelope text-gray-400"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="error-message text-red-500 text-sm mt-1 hidden" id="accountError"></div>
|
||||
</div>
|
||||
|
||||
<!-- 验证码输入 -->
|
||||
<div class="form-group">
|
||||
<label for="verifyCode" class="block text-sm font-medium text-gray-700 mb-2">验证码</label>
|
||||
<div class="flex space-x-3">
|
||||
<div class="flex-1 relative">
|
||||
<input type="text" id="verifyCode" name="verifyCode"
|
||||
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200"
|
||||
placeholder="请输入6位验证码" maxlength="6">
|
||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center">
|
||||
<i class="fas fa-shield-alt text-gray-400"></i>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" id="sendCodeBtn"
|
||||
class="px-6 py-3 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors duration-200 whitespace-nowrap font-medium">
|
||||
发送验证码
|
||||
</button>
|
||||
</div>
|
||||
<div class="error-message text-red-500 text-sm mt-1 hidden" id="codeError"></div>
|
||||
</div>
|
||||
|
||||
<!-- 注册按钮 -->
|
||||
<button type="submit" id="registerBtn"
|
||||
class="w-full py-3 bg-blue-500 text-white rounded-lg hover:bg-blue-600 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors duration-200 font-medium text-lg">
|
||||
注册
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<!-- 用户协议 -->
|
||||
<div class="mt-6 text-center">
|
||||
<p class="text-sm text-gray-500">
|
||||
注册即表示您同意我们的
|
||||
<a href="#" class="text-blue-500 hover:text-blue-600">用户协议</a>
|
||||
和
|
||||
<a href="#" class="text-blue-500 hover:text-blue-600">隐私政策</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<div class="my-8 flex items-center">
|
||||
<div class="flex-1 border-t border-gray-300"></div>
|
||||
<span class="px-4 text-gray-500 text-sm">或</span>
|
||||
<div class="flex-1 border-t border-gray-300"></div>
|
||||
</div>
|
||||
|
||||
<!-- 登录链接 -->
|
||||
<div class="text-center">
|
||||
<p class="text-gray-600">
|
||||
已有账户?
|
||||
<a href="login.html" class="text-blue-500 hover:text-blue-600 font-medium">立即登录</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- 状态提示 -->
|
||||
<div id="statusMessage" class="mt-4 p-3 rounded-lg hidden">
|
||||
<div class="flex items-center">
|
||||
<i class="fas fa-info-circle mr-2"></i>
|
||||
<span id="statusText"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script src="../../js/main.js"></script>
|
||||
<script src="../../utils/validation/form-validator.js"></script>
|
||||
<script src="../../utils/token/token-manager.js"></script>
|
||||
<script src="../../services/api/auth-service.js"></script>
|
||||
<script src="../components/auth-handler.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user