Create simple template renderer
This commit is contained in:
25
templates/index.html
Normal file
25
templates/index.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>喚醒 PinLin3770</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
|
||||
}
|
||||
a, button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>喚醒 PinLin3770</h1>
|
||||
<p>已登入為身分 {{USERNAME}}</p>
|
||||
<form method="POST" action="/logout">
|
||||
<button type="submit">登出</button>
|
||||
</form>
|
||||
<br>
|
||||
<a href="/wakeup3770">喚醒 PinLin3770</a>
|
||||
</body>
|
||||
</html>
|
||||
22
templates/login-fail.html
Normal file
22
templates/login-fail.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>登入失敗 | 喚醒 PinLin3770</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
|
||||
}
|
||||
a, button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>喚醒 PinLin3770</h1>
|
||||
<p>⚠️ 登入失敗</p>
|
||||
<p>{{error}}</p>
|
||||
<a href="/">回首頁</a>
|
||||
</body>
|
||||
</html>
|
||||
20
templates/login.html
Normal file
20
templates/login.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>登入 | 喚醒 PinLin3770</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
|
||||
}
|
||||
a, button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>喚醒 PinLin3770</h1>
|
||||
<a href="/login">點此登入</a>
|
||||
</body>
|
||||
</html>
|
||||
22
templates/wakeup-fail.html
Normal file
22
templates/wakeup-fail.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>喚醒失敗 | 喚醒 PinLin3770</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
|
||||
}
|
||||
a, button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>喚醒 PinLin3770</h1>
|
||||
<p>⚠️ 發送魔法封包失敗</p>
|
||||
<p>{{error}}</p>
|
||||
<a href="/">回首頁</a>
|
||||
</body>
|
||||
</html>
|
||||
21
templates/wakeup-success.html
Normal file
21
templates/wakeup-success.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>喚醒成功 | 喚醒 PinLin3770</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
|
||||
}
|
||||
a, button {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>喚醒 PinLin3770</h1>
|
||||
<p>✅ 已經發送魔法封包</p>
|
||||
<a href="/">回首頁</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user