上传文件至「templates」

This commit is contained in:
admin committed 2026-04-28 10:45:39 +00:00
1 parent 634bf7a4d5
commit d4926b4fdd
2 files changed
+143

No files matched your search

+95
View File
@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Modern Navigator | 现代导航</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<nav class="glass-nav">
<div class="logo">NAVIGATOR</div>
<div class="nav-links">
{% if current_user.is_authenticated %}
<a href="{{ url_for('admin_dashboard') }}" class="nav-btn">管理</a>
<a href="{{ url_for('logout') }}" class="nav-btn logout">登出</a>
{% else %}
<a href="{{ url_for('login') }}" class="nav-btn">登录</a>
{% endif %}
</div>
</nav>
<main class="hero-section">
<div id="hero-bg" class="hero-bg"></div>
<div class="hero-content-pure">
<h1 id="hero-title">载入中...</h1>
<p id="hero-desc">正在为您获取最佳资源...</p>
<div class="btn-container">
<a id="hero-link" href="#" target="_blank" class="btn-visit">立即访问</a>
</div>
</div>
</main>
<footer class="bottom-nav-container">
<div class="swiper-button-prev custom-arrow"></div>
<div class="swiper-button-next custom-arrow"></div>
<div class="swiper mySwiper">
<div class="swiper-wrapper">
{% for item in items %}
<div class="swiper-slide nav-card {{ 'grayscale' if item.status.value != 'enabled' }}"
data-title="{{ item.title }}"
data-desc="{{ item.description }}"
data-url="{{ item.url or '' }}"
data-bg="{{ item.image_large }}"
data-status="{{ item.status.value }}">
<img src="{{ item.image_thumb }}" alt="{{ item.title }}">
<div class="card-info">
<h3>{{ item.title }}</h3>
</div>
</div>
{% endfor %}
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
<script>
window.difyChatbotConfig = {
token: 'USxT0fq160sy4KaN',
baseUrl: 'https://dify.aibi.chat',
inputs: {
// You can define the inputs from the Start node here
// key is the variable name
// e.g.
// name: "NAME"
},
systemVariables: {
// user_id: 'YOU CAN DEFINE USER ID HERE',
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
},
userVariables: {
// avatar_url: 'YOU CAN DEFINE USER AVATAR URL HERE',
// name: 'YOU CAN DEFINE USER NAME HERE',
},
}
</script>
<script
src="https://dify.aibi.chat/embed.min.js"
id="USxT0fq160sy4KaN"
defer>
</script>
<style>
#dify-chatbot-bubble-button {
background-color: #1C64F2 !important;
}
#dify-chatbot-bubble-window {
width: 24rem !important;
height: 40rem !important;
}
</style>
</body>
</html>
+48
View File
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录 - 后台管理系统</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<style>
.login-container {
height: 100vh; display: flex; align-items: center; justify-content: center;
background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1f 100%);
}
.login-card { width: 100%; max-width: 400px; }
input {
width: 100%; padding: 12px; margin: 10px 0;
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px; color: white; box-sizing: border-box;
}
.btn-login {
width: 100%; padding: 12px; background: #fff; color: #000;
border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
margin-top: 10px;
}
.alert { color: #ff4444; font-size: 14px; margin-bottom: 10px; }
</style>
</head>
<body>
<div class="login-container">
<div class="login-card hero-content">
<h2>管理员登录</h2>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
<form method="POST">
<input type="text" name="username" placeholder="用户名" required>
<input type="password" name="password" placeholder="密码" required>
<button type="submit" class="btn-login">登录系统</button>
</form>
<p style="margin-top: 20px; font-size: 12px; opacity: 0.5;">
</p>
</div>
</div>
</body>
</html>