diff --git a/.gitignore b/.gitignore index 3151bc6..7cd6ce1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ package-lock.json queries.sql +.env \ No newline at end of file diff --git a/index.js b/index.js index 590e0c1..4a09082 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,18 @@ import express from "express"; import bodyParser from "body-parser"; import pg from "pg"; +import dotenv from 'dotenv'; +dotenv.config(); + +const secret = process.env.SECRET +const postgresPort = process.env.PORT + const db = new pg.Client({ user: "postgres", host: "localhost", database: "runproject", - password: "mango0920", - port: 5432, + password: secret, + port: postgresPort, }) db.connect(); diff --git a/package.json b/package.json index 4c829ac..828cea9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { "body-parser": "^1.20.2", + "dotenv": "^16.4.5", "ejs": "^3.1.10", "express": "^4.19.2", "nodemon": "^3.1.0", @@ -11,7 +12,6 @@ "version": "1.0.0", "main": "index.js", "type": "module", - "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/public/styles.css b/public/styles.css index bfab56b..bf94356 100644 --- a/public/styles.css +++ b/public/styles.css @@ -29,7 +29,6 @@ img { justify-content: center; align-items: center; gap: 0.5rem; - background-color: rgb(31, 26, 26); margin: 0 auto; border-radius: 5px; padding: 1rem; @@ -54,11 +53,12 @@ footer, #title { #title { margin-top: 1rem; font-family: "Open Sans", sans-serif; + font-size: 2rem; + font-weight: bold; } footer { - position: absolute; - bottom: 0; + width: 100%; height: 2.5rem; } @@ -74,7 +74,7 @@ html { #location-text { font-weight: bold; - font-size: 2rem; + font-size: 1.5rem; font-family: "Open Sans", sans-serif; }