From 44cee349e9a7e421ca4c59a11468e2cfb4c84704 Mon Sep 17 00:00:00 2001 From: knighthawk4227 Date: Fri, 2 May 2025 01:53:47 -0700 Subject: [PATCH] ejs login and signup with tailwind --- app.js | 4 +-- package.json | 6 ++--- src/views/index.ejs | 61 +++++++++++++++++++++++++++++++++++------- src/views/signup.ejs | 63 +++++++++++++++++++++++++++++++++++++++----- 4 files changed, 112 insertions(+), 22 deletions(-) diff --git a/app.js b/app.js index f8df3b8..0c4ff4c 100644 --- a/app.js +++ b/app.js @@ -9,7 +9,7 @@ const app = express(); const port = process.env.PORT || 3000; app.set('view engine', 'ejs'); -app.set('views',path.join(__dirname, 'views')); +app.set('views', path.join(__dirname, '/src/views')); /* ROUTINGS @@ -73,4 +73,4 @@ app.get('/*splat', (req, res) => { app.listen(port, () => { console.log(`Server listening on port ${port}`); -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index 4e872df..c1b70da 100755 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "retirementcalculator", "version": "0.1.0", "description": "Retirement Calculator", - "main": "./src/app.js", + "main": "app.js", "scripts": { - "start": "node ./src/app.js", - "dev": "nodemon ./src/app.js" + "start": "node app.js", + "dev": "nodemon app.js" }, "repository": { "type": "git", diff --git a/src/views/index.ejs b/src/views/index.ejs index b616f96..3655c20 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -1,12 +1,53 @@ - - - - - -

Welcome!

-
- + + + + + + + Login Page + + + + + + + +
+ +
+

Login

+
+
+ + +
+
+ + +
+ +
+
+ + +
+ +
+
+ +
+
- - \ No newline at end of file +
+ + + + diff --git a/src/views/signup.ejs b/src/views/signup.ejs index 245f005..44d67ba 100644 --- a/src/views/signup.ejs +++ b/src/views/signup.ejs @@ -1,9 +1,58 @@ - - + - - -

SIGNUP

- - \ No newline at end of file + + + + + Signup + + + + + + +
+
+
+

Signup

+
+
+ + +
+
+ + + + +
+ +
+
+ + +
+ +
+
+ +
+
+
+
+ + + +