forked from Vignesh016/blast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
16 lines (12 loc) · 929 Bytes
/
server.js
File metadata and controls
16 lines (12 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict';
const express = require('express');
// Constants
const PORT = 80;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Full Page Background Image</title><style>body{margin:0;padding:0;background:#000 url(\'https://i.pinimg.com/originals/67/b2/a9/67b2a9ba5e85822f237caae92111e938.gif\')no-repeat fixed;background-size:cover;background-position:center;background-attachment:fixed;color:#fff;font-family:Arial,sans-serif;}.content{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}.content h1{font-size:36px;margin-bottom:20px;}.content p{font-size:18px;}</style></head><body><div class="content"></div></body></html> ');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);