Skip to content

Commit

Permalink
add index
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Dec 23, 2023
1 parent b64b092 commit a12368e
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express');
const dotenv = require('dotenv');
const proxy_router = require('./src/router');
const fs = require('fs');

dotenv.config();
const app = express();
Expand All @@ -12,6 +13,10 @@ app.use((req, res, _next) => {

proxy_router.load(app);

app.get('/', (req, res) => {
res.end(fs.readFileSync('./public/index.html').toString('utf-8'));
})

app.use((req, res, _next) => {
res.status(403);
res.header('Content-Type', 'application/json');
Expand Down
60 changes: 60 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>FNJ Fast Nya Just - CDN站镜像服务</title>
</head>

<body>
<!-- Header -->
<header>

</header>

<!-- Main -->
<main>
<div class="homebox">
<h1>FNJ Fast Nya Just</h1>
<br>
<p>Home work in progress🔧, it will come in future.</p>
<p>Powered by love<span class=""></span>.</p>
<br>
<a href="https://blog.1l1.icu">MIRROR CREATED BY: 夏沫花火zzz🌙(Muska_Ami).</a>
<br><span>Copyright © 2023 k43Lab.</span>
</div>
</main>

<!-- Footer -->
<footer>

</footer>
</body>
<style>
* {
margin: 0;
padding: 0;
}
h1,h2,h3,h4,h5,h6 {
font-weight: 400;
}
p,span,a {
font-weight: 300;
}

.❤ {
color: red;
}

.homebox {
height: 100vh;
width: 100vw;
position: relative;
display: table-cell;
text-align: center;
vertical-align: middle;
}
</style>

</html>

0 comments on commit a12368e

Please sign in to comment.