Update SyncXboxCloud.js
This commit is contained in:
@@ -28,41 +28,63 @@ function renderUI(title, message, type = "success") {
|
|||||||
|
|
||||||
const html = `
|
const html = `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="zh-CN">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
<title>${escapeHTML(title)}</title>
|
<title>${escapeHTML(title)}</title>
|
||||||
<style>
|
<style>
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Noto+Sans+SC:wght@400;500&display=swap');
|
||||||
|
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
|
||||||
body {
|
body {
|
||||||
margin: 0; min-height: 100vh; display: flex; align-items: center;
|
min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
||||||
justify-content: center; background: #0f1115; color: #fff;
|
background: #0b0b0b; color: #ddd;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
|
font-family: 'Noto Sans SC', sans-serif;
|
||||||
padding: 20px;
|
padding: 24px 18px;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,124,16,0.10) 0%, transparent 60%);
|
||||||
}
|
}
|
||||||
.card {
|
.card {
|
||||||
width: 100%; max-width: 560px; background: #171a21; border-radius: 16px;
|
width: 100%; max-width: 520px;
|
||||||
border: 1px solid #252a35; border-top: 5px solid ${color};
|
background: #141414;
|
||||||
padding: 24px 22px 20px; box-sizing: border-box;
|
border: 1px solid #222;
|
||||||
|
border-top: 3px solid ${color};
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 24px 20px 20px;
|
||||||
}
|
}
|
||||||
h1 { margin: 0 0 14px; font-size: 22px; color: ${color}; }
|
.card-title {
|
||||||
.msg { color: #cfd6e4; font-size: 14px; line-height: 1.7; word-break: break-word; }
|
font-family: 'Barlow Condensed', sans-serif;
|
||||||
.msg p { margin: 0 0 10px; }
|
font-size: 22px; font-weight: 700; letter-spacing: 1px;
|
||||||
.msg ul { margin: 10px 0 0; padding-left: 20px; text-align: left; }
|
color: #fff; margin-bottom: 16px;
|
||||||
.msg li { margin: 6px 0; }
|
}
|
||||||
.sub { color: #8e99ab; font-size: 12px; margin-top: 14px; }
|
.msg { font-size: 13px; line-height: 1.8; color: #aaa; word-break: break-word; }
|
||||||
|
.msg p { margin-bottom: 8px; }
|
||||||
|
.msg b { color: #ddd; }
|
||||||
|
.msg ul { margin: 10px 0 0; padding-left: 18px; }
|
||||||
|
.msg li { margin: 5px 0; color: #888; font-size: 12px; font-family: monospace; }
|
||||||
|
.footer {
|
||||||
|
margin-top: 18px;
|
||||||
|
display: flex; align-items: center; justify-content: space-between;
|
||||||
|
}
|
||||||
|
.sub { font-size: 11px; color: #333; letter-spacing: 1.5px; text-transform: uppercase; }
|
||||||
button {
|
button {
|
||||||
margin-top: 18px; border: none; background: ${color};
|
border: 1px solid ${color}; background: transparent;
|
||||||
color: white; padding: 10px 22px; border-radius: 999px; font-size: 14px;
|
color: ${color}; padding: 8px 20px; border-radius: 3px;
|
||||||
|
font-size: 13px; font-family: 'Barlow Condensed', sans-serif;
|
||||||
|
font-weight: 600; letter-spacing: 1px; cursor: pointer;
|
||||||
|
transition: background .2s, color .2s;
|
||||||
}
|
}
|
||||||
|
button:hover { background: ${color}; color: #fff; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>${escapeHTML(title)}</h1>
|
<div class="card-title">${escapeHTML(title)}</div>
|
||||||
<div class="msg">${message}</div>
|
<div class="msg">${message}</div>
|
||||||
<div class="sub">SyncXbox Cloud Queue</div>
|
<div class="footer">
|
||||||
<button onclick="history.back()">确定</button>
|
<span class="sub">Sync Xbox Cloud</span>
|
||||||
|
<button onclick="history.back()">确定</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user