32 lines
1.6 KiB
HTML
32 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ file.filename }} - 临时文件下载</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; display: flex; justify-content: center; align-items: center; min-height: 100vh; }
|
|
.container { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; max-width: 500px; text-align: center; }
|
|
h1 { color: #333; margin-bottom: 20px; }
|
|
.file-info { background: #f8f9fa; padding: 20px; border-radius: 4px; margin: 20px 0; }
|
|
.file-info p { margin: 8px 0; color: #666; }
|
|
.file-info strong { color: #333; }
|
|
.expires { color: #dc3545; font-size: 14px; margin-top: 10px; }
|
|
a.download-btn { display: inline-block; padding: 12px 30px; background: #28a745; color: white; text-decoration: none; border-radius: 4px; font-size: 16px; }
|
|
a.download-btn:hover { background: #218838; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>文件下载</h1>
|
|
<div class="file-info">
|
|
<p><strong>文件名:</strong>{{ file.filename }}</p>
|
|
<p><strong>大小:</strong>{{ (file.filesize / 1024 / 1024) | round(2) }} MB</p>
|
|
<p class="expires">过期时间:{{ file.expires_at }}</p>
|
|
</div>
|
|
<a href="{{ url_for('serve_file', file_id=file.id) }}" class="download-btn">下载文件</a>
|
|
</div>
|
|
</body>
|
|
</html>
|