diff --git a/app.js b/app.js deleted file mode 100644 index 5ab128e4b..000000000 --- a/app.js +++ /dev/null @@ -1,61 +0,0 @@ -const express = require("express"); -const app = express(); -const port = process.env.PORT || 3001; - -app.get("/", (req, res) => res.type('html').send(html)); - -const server = app.listen(port, () => console.log(`Example app listening on port ${port}!`)); - -server.keepAliveTimeout = 120 * 1000; -server.headersTimeout = 120 * 1000; - -const html = ` - - - - Hello from Render! - - - - - -
- Hello from Render! -
- - -` diff --git a/index.js b/index.js new file mode 100644 index 000000000..d06c48148 --- /dev/null +++ b/index.js @@ -0,0 +1,8 @@ +const express = require('express'); +const router = express.Router(); + +//router.get('/', (req, res) => { + //res.type('html').send('

Hello, World!

'); // Replace with your HTML content +//}); + +module.exports = router; diff --git a/public/functions.js b/public/functions.js new file mode 100644 index 000000000..8fbf3bf2a --- /dev/null +++ b/public/functions.js @@ -0,0 +1,4 @@ +function showScreen(id) { + document.querySelectorAll('div').forEach(div => div.style.display = 'none'); + document.getElementById(id).style.display = 'block'; +} diff --git a/public/homeImage.png b/public/homeImage.png new file mode 100644 index 000000000..d34b13976 Binary files /dev/null and b/public/homeImage.png differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 000000000..597fce7fe --- /dev/null +++ b/public/index.html @@ -0,0 +1,68 @@ + + + + + + + Welcome to Kappa Sigma + + + +
+

LOG IN

+ + + + + + + +
+ + + + + + diff --git a/server.js b/server.js new file mode 100644 index 000000000..a4dc5d386 --- /dev/null +++ b/server.js @@ -0,0 +1,14 @@ +const express = require("express"); +const app = express(); +const port = process.env.PORT || 3001; +const path = require('path'); + +app.use(express.static(path.join(__dirname, 'public'))); + +app.get('/', (req, res) => {res.sendFile(path.join(__dirname, 'public', 'index.html'));}); + +const routes = require('./index') +app.use('/', routes); + +const server = app.listen(port, () => console.log(`Example app listening on port ${port}!`)); +