-
Notifications
You must be signed in to change notification settings - Fork 2
/
create_page.js
28 lines (28 loc) · 1.58 KB
/
create_page.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = async (route) => {
return `
<!DOCTYPE html>
<html lang="en">
<head>
<title>UXMD</title>
<meta charset="UTF-8" />
<meta http-equiv="Refresh" content="1.5; url='/${route}'" />
<link rel="icon" href="public/favicon.svg" />
<link rel="stylesheet" href="public/style.css" />
<script defer data-domain="uxmd.io" src="https://plausible.io/js/plausible.js"></script>
</head>
<body>
<div id="loader">
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M58 22L48 32M48 12L58 22L48 12ZM68 32L58 22L68 32ZM58 22L68 12L58 22Z" stroke="#FFCB70" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1.5s" from="0 58 22" to="360 58 22" repeatCount="indefinite"></animateTransform>
</path>
<g stroke="#444" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 12V24C12 29.5228 16.4772 34 22 34C27.5228 34 32 29.5228 32 24V12"/>
<path d="M32 68V48L22 58L12 48V68"/>
<path d="M58 48H48V68H58C63.5228 68 68 63.5228 68 58C68 52.4772 63.5228 48 58 48Z"/>
</g>
</svg>
</div>
</body>
</html>`;
};