diff --git a/consumerWebsite/public/css/sp.css b/consumerWebsite/public/css/sp.css index 236fe6a..b127874 100644 --- a/consumerWebsite/public/css/sp.css +++ b/consumerWebsite/public/css/sp.css @@ -251,4 +251,4 @@ form .top-nav .navbar-toggler:hover{ color: #4eae3a; border-color: #4eae3a; -} \ No newline at end of file +} diff --git a/consumerWebsite/public/js/contact.js b/consumerWebsite/public/js/contact.js index 98a07a6..75ef351 100644 --- a/consumerWebsite/public/js/contact.js +++ b/consumerWebsite/public/js/contact.js @@ -23,17 +23,15 @@ document.addEventListener('DOMContentLoaded', () => { const result = await response.json(); // Handle the API response - //console.log(result); + console.log(result); if (result.success) { // Form submitted successfully, display notification alert('Form submitted successfully!'); location.reload() - // You can replace the alert with your custom notification logic } else { // Form submission failed, display error notification alert('Form submission failed. Please try again.'); - // You can replace the alert with your custom error notification logic } } catch (error) { diff --git a/consumerWebsite/routes/render.js b/consumerWebsite/routes/render.js index 857727c..1b1f2c9 100644 --- a/consumerWebsite/routes/render.js +++ b/consumerWebsite/routes/render.js @@ -51,12 +51,36 @@ router.get('/news', function(req, res, next) { res.render('news'); }); +<<<<<<< Updated upstream //login / register page +======= +//learn more page +router.get('/learnmore', function(req, res, next) { + res.render('learnmore'); +}); + +//login | register page +>>>>>>> Stashed changes router.get('/login', function(req, res, next) { res.render('signuplogin'); }); +<<<<<<< Updated upstream //login / register page +======= +//profile page +router.get('/profile', function(req, res, next) { + res.render('profile'); +}); + +//forgot password page +router.get('/forgotPassword', function(req, res, next) { + res.render('forgotPassword'); +}); + + +//contact page +>>>>>>> Stashed changes router.get('/contact', function(req, res, next) { res.render('contact'); }); diff --git a/consumerWebsite/views/bot.ejs b/consumerWebsite/views/bot.ejs index 898fd63..22424d4 100644 --- a/consumerWebsite/views/bot.ejs +++ b/consumerWebsite/views/bot.ejs @@ -85,4 +85,7 @@ + + +
+