This commit is contained in:
DelLevin-Home
2026-01-28 22:07:22 +08:00
parent 1ad51c6a09
commit 674f3d42a7
3 changed files with 44 additions and 1 deletions

View File

@@ -4,6 +4,12 @@ import proj_utils.utils as utils # 导入你的工具模块
app = Flask(__name__)
@app.route('/')
def index():
"""渲染主页模板"""
return render_template('index.html')
@app.route('/en-de-code')
def index():
"""渲染主页模板"""

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Base64/编码检测与解码器 (Flask)</title>
<title>Base64/编码检测与解码器</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>白荼 - BAITU</title>
<!-- 引入 Google Fonts -->
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Noto Serif SC', serif;
background-color: #f5f5f5;
color: #333;
}
p {
font-size: 2rem;
font-weight: 400;
text-align: center;
line-height: 1.5;
letter-spacing: 1px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<p>恭喜你,来到了一片荒芜之地</p>
</body>
</html>