diff --git a/app.js b/app.js index a34f7b8..ea4b837 100644 --- a/app.js +++ b/app.js @@ -175,6 +175,16 @@ app.get('/contact', (req, res) => { }); }); +// Contact Route (Render the contact form) +app.get('/chat', (req, res) => { + res.render('chat', { + title: `Chat ${process.env.OWNER_NAME}`, + msg: undefined, + menuItems // Pass the menu items to the view + }); +}); + + // Blog Post Route app.get('/blog/:slug', (req, res) => { const slug = req.params.slug; diff --git a/public/js/chat.js b/public/js/chat.js new file mode 100644 index 0000000..8e09e8e --- /dev/null +++ b/public/js/chat.js @@ -0,0 +1,207 @@ + + + +
+ + + + + +Ask any question, and the AI will respond to you!
+ + +