diff --git a/404.html b/404.html deleted file mode 100644 index c4c0b3a..0000000 --- a/404.html +++ /dev/null @@ -1,214 +0,0 @@ - - - -
- -We’re sorry, the page you have looked for does not exist in our website! Maybe go to our home page or try to use a search?
- Go Back To Home -Name:
${name}Email:
${email}Phone:
${phone}Message:
${message}` + }; + + // Send email + transporter.sendMail(mailOptions, (error, info) => { + if (error) { + console.error(error); + res.status(500).send('Error sending message'); + } else { + console.log('Email sent: ' + info.response); + res.send('We have received your message and will respond shortly. Thank you for reaching out to us!'); + } + }); +}); + + +app.get("/blogs", (req, res) => { + res.sendFile("blogs.html", { root: path.join(__dirname, 'public') }) +}) + +app.get("/*", (req, res) => { + // res.redirect("/") + + res.sendFile("/", { root: path.join(__dirname, 'public') }) +}) + +// Start the server +app.listen(port, () => { + console.log(`Server is running on http://localhost:${port}`); +}); diff --git a/contact.html b/contact.html index 0032cba..71e5b21 100644 --- a/contact.html +++ b/contact.html @@ -1,390 +1,451 @@ - - - - - - - - - - -- Trusted IT experts delivering innovative solutions, stellar service, and lasting partnerships -
-