Initial commit 🍀
This commit is contained in:
BIN
src/himasaku/resources/himasaku.png
Normal file
BIN
src/himasaku/resources/himasaku.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
35
src/himasaku/resources/index.html
Normal file
35
src/himasaku/resources/index.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="description" content="ひまさく">
|
||||
<meta name="keywords" content="ひまさく, さくひま, 向日葵, 櫻子">
|
||||
<title>ひまさく</title>
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
position: absolute;
|
||||
max-width: 100%;
|
||||
margin: auto;
|
||||
top: 0; right: 0; bottom: 0; left: 0;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<img src="/himasaku.png" alt="ひまさく">
|
||||
</body>
|
||||
</html>
|
||||
23
src/himasaku/server.ts
Normal file
23
src/himasaku/server.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Himasaku Server
|
||||
*/
|
||||
|
||||
import * as express from 'express';
|
||||
|
||||
/**
|
||||
* Init app
|
||||
*/
|
||||
const app = express();
|
||||
|
||||
app.disable('x-powered-by');
|
||||
app.locals.cache = true;
|
||||
|
||||
app.get('/himasaku.png', (req, res) => {
|
||||
res.sendFile(__dirname + '/resources/himasaku.png');
|
||||
});
|
||||
|
||||
app.get('*', (req, res) => {
|
||||
res.sendFile(__dirname + '/resources/index.html');
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
Reference in New Issue
Block a user