Create server.js
Browse files
server.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const http = require('http');
|
| 2 |
+
|
| 3 |
+
http.createServer((req, res) => {
|
| 4 |
+
res.writeHead(200, {'Content-Type': 'text/html'});
|
| 5 |
+
res.end(`
|
| 6 |
+
<!DOCTYPE html>
|
| 7 |
+
<html lang="en">
|
| 8 |
+
<head>
|
| 9 |
+
<meta charset="UTF-8">
|
| 10 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 11 |
+
<title>Ayanokoji Kiyotaka</title>
|
| 12 |
+
<style>
|
| 13 |
+
body {
|
| 14 |
+
display: flex;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
align-items: center;
|
| 17 |
+
height: 100vh;
|
| 18 |
+
margin: 0;
|
| 19 |
+
background-color: #282c34;
|
| 20 |
+
color: white;
|
| 21 |
+
font-family: 'Arial', sans-serif;
|
| 22 |
+
}
|
| 23 |
+
h1 {
|
| 24 |
+
font-size: 4em;
|
| 25 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
| 26 |
+
}
|
| 27 |
+
marquee {
|
| 28 |
+
font-size: 3em; /* Change this to make the marquee text bigger */
|
| 29 |
+
color: #ffcc00;
|
| 30 |
+
font-weight: bold;
|
| 31 |
+
margin: 20px;
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
</head>
|
| 35 |
+
<body>
|
| 36 |
+
<h1>Welcome to Ayanokoji Kiyotaka's World!</h1>
|
| 37 |
+
<marquee>AYANOKOJI KIYOTAKA</marquee>
|
| 38 |
+
</body>
|
| 39 |
+
</html>
|
| 40 |
+
`);
|
| 41 |
+
}).listen(7860, () => {
|
| 42 |
+
console.log('Server listening on port 7860');
|
| 43 |
+
});
|