| <!DOCTYPE html>
|
| <html lang="zh-CN">
|
| <head>
|
| <meta charset="UTF-8">
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| <title>{{ .title }}</title>
|
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| <link rel="stylesheet" href="/static/css/styles.css">
|
| <style>
|
| :root {
|
| --primary-color: #4285f4;
|
| --primary-dark: #3367d6;
|
| --secondary-color: #34a853;
|
| --danger-color: #ea4335;
|
| --warning-color: #fbbc05;
|
| --dark-bg: #202124;
|
| --light-bg: #f8f9fa;
|
| --card-bg: #ffffff;
|
| --border-color: #dadce0;
|
| }
|
|
|
| body {
|
| font-family: 'Roboto', sans-serif;
|
| margin: 0;
|
| padding: 0;
|
| min-height: 100vh;
|
| display: flex;
|
| align-items: center;
|
| justify-content: center;
|
| background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| }
|
|
|
| .login-container {
|
| width: 100%;
|
| max-width: 400px;
|
| padding: 20px;
|
| }
|
|
|
| .login-card {
|
| background: var(--card-bg);
|
| border-radius: 10px;
|
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| overflow: hidden;
|
| animation: fadeIn 0.8s ease-out;
|
| position: relative;
|
| }
|
|
|
| .login-header {
|
| background: var(--primary-color);
|
| padding: 30px 20px;
|
| text-align: center;
|
| color: white;
|
| position: relative;
|
| overflow: hidden;
|
| }
|
|
|
| .login-header::before {
|
| content: '';
|
| position: absolute;
|
| top: -50%;
|
| left: -50%;
|
| width: 200%;
|
| height: 200%;
|
| background: linear-gradient(
|
| to bottom right,
|
| rgba(255, 255, 255, 0.1) 0%,
|
| rgba(255, 255, 255, 0.2) 50%,
|
| rgba(255, 255, 255, 0.1) 100%
|
| );
|
| transform: rotate(45deg);
|
| animation: shine 3s infinite;
|
| }
|
|
|
| @keyframes shine {
|
| 0% { transform: translateX(-100%) rotate(45deg); }
|
| 100% { transform: translateX(100%) rotate(45deg); }
|
| }
|
|
|
| .login-logo {
|
| font-size: 3rem;
|
| margin-bottom: 10px;
|
| color: white;
|
| }
|
|
|
| .login-title {
|
| font-size: 1.8rem;
|
| font-weight: 500;
|
| margin: 0;
|
| }
|
|
|
| .login-subtitle {
|
| font-size: 1rem;
|
| opacity: 0.8;
|
| margin-top: 5px;
|
| }
|
|
|
| .login-body {
|
| padding: 30px;
|
| }
|
|
|
| .form-group {
|
| margin-bottom: 25px;
|
| position: relative;
|
| }
|
|
|
| .form-group label {
|
| display: block;
|
| margin-bottom: 8px;
|
| font-weight: 500;
|
| color: var(--dark-bg);
|
| }
|
|
|
| .input-group {
|
| position: relative;
|
| display: flex;
|
| align-items: center;
|
| }
|
|
|
| .input-icon {
|
| position: absolute;
|
| left: 15px;
|
| top: 50%;
|
| transform: translateY(-50%);
|
| color: #9e9e9e;
|
| z-index: 1;
|
| pointer-events: none;
|
| }
|
|
|
| .form-control {
|
| width: 100%;
|
| padding: 12px 15px;
|
| border: 1px solid var(--border-color);
|
| border-radius: 5px;
|
| font-size: 1rem;
|
| transition: all 0.3s ease;
|
| box-sizing: border-box;
|
| text-indent: 30px;
|
| }
|
|
|
| .form-control:focus {
|
| outline: none;
|
| border-color: var(--primary-color);
|
| box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
|
| }
|
|
|
| .btn {
|
| display: block;
|
| width: 100%;
|
| padding: 12px 15px;
|
| background: var(--primary-color);
|
| color: white;
|
| border: none;
|
| border-radius: 5px;
|
| font-size: 1rem;
|
| font-weight: 500;
|
| cursor: pointer;
|
| transition: all 0.3s ease;
|
| text-align: center;
|
| }
|
|
|
| .btn:hover {
|
| background: var(--primary-dark);
|
| transform: translateY(-2px);
|
| box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
|
| }
|
|
|
| .btn:active {
|
| transform: translateY(0);
|
| }
|
|
|
| .alert {
|
| padding: 15px;
|
| border-radius: 5px;
|
| margin-bottom: 20px;
|
| animation: fadeIn 0.5s ease-out;
|
| display: flex;
|
| align-items: center;
|
| gap: 10px;
|
| }
|
|
|
| .alert-error {
|
| background-color: rgba(234, 67, 53, 0.1);
|
| border-left: 4px solid var(--danger-color);
|
| color: var(--danger-color);
|
| }
|
|
|
| .alert-success {
|
| background-color: rgba(52, 168, 83, 0.1);
|
| border-left: 4px solid var(--secondary-color);
|
| color: var(--secondary-color);
|
| }
|
|
|
| .alert i {
|
| font-size: 1.2rem;
|
| }
|
|
|
| @keyframes fadeIn {
|
| from {
|
| opacity: 0;
|
| transform: translateY(20px);
|
| }
|
| to {
|
| opacity: 1;
|
| transform: translateY(0);
|
| }
|
| }
|
|
|
| .login-footer {
|
| text-align: center;
|
| padding: 15px;
|
| border-top: 1px solid var(--border-color);
|
| color: #757575;
|
| font-size: 0.9rem;
|
| }
|
|
|
| .login-footer a {
|
| color: var(--primary-color);
|
| text-decoration: none;
|
| }
|
|
|
| .login-footer a:hover {
|
| text-decoration: underline;
|
| }
|
|
|
|
|
| .wave {
|
| position: absolute;
|
| bottom: 0;
|
| left: 0;
|
| width: 100%;
|
| height: 100px;
|
| background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,181.3C960,181,1056,203,1152,202.7C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
|
| background-size: cover;
|
| background-repeat: no-repeat;
|
| }
|
| </style>
|
| </head>
|
| <body>
|
| <div class="login-container">
|
| <div class="login-card">
|
| <div class="login-header">
|
| <div class="login-logo">
|
| <i class="fas fa-shield-alt"></i>
|
| </div>
|
| <h1 class="login-title">管理员登录</h1>
|
|
|
| <div class="wave"></div>
|
| </div>
|
|
|
| <div class="login-body">
|
| {{ if .error }}
|
| <div class="alert alert-error">
|
| <i class="fas fa-exclamation-circle"></i>
|
| <span>{{ .error }}</span>
|
| </div>
|
| {{ end }}
|
|
|
| {{ if .message }}
|
| <div class="alert alert-success">
|
| <i class="fas fa-check-circle"></i>
|
| <span>{{ .message }}</span>
|
| </div>
|
| {{ end }}
|
|
|
| <form action="/admin/login" method="POST">
|
| <div class="form-group">
|
| <label for="password">密码</label>
|
| <div class="input-group">
|
| <span class="input-icon">
|
| <i class="fas fa-lock"></i>
|
| </span>
|
| <input type="password" id="password" name="password" class="form-control" required autofocus>
|
| </div>
|
| </div>
|
|
|
| <button type="submit" class="btn">
|
| 登录 <i class="fas fa-arrow-right"></i>
|
| </button>
|
| </form>
|
| </div>
|
|
|
| <div class="login-footer">
|
| Atlassian API 代理服务 © 2025
|
| </div>
|
| </div>
|
| </div>
|
| </body>
|
| </html> |