Skip to content

Commit

Permalink
Added Testimonials page
Browse files Browse the repository at this point in the history
  • Loading branch information
MuraliDharan7 committed Jul 4, 2024
1 parent 0d8cc66 commit 24b89fa
Show file tree
Hide file tree
Showing 3 changed files with 549 additions and 6 deletions.
9 changes: 8 additions & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, "../public")));

app.set('view engine', 'ejs');

// Serve static files (like CSS and images)
app.use(express.static('public'));

app.get("/", (req, res) => {
res.render("index.ejs");
});
Expand All @@ -32,7 +37,9 @@ app.get("/playgames", (req, res) => {
app.get("/products", (req, res) => {
res.render("products.ejs");
});

app.get('/testimonials', (req, res) => {
res.render('testimonials');
});
app.listen(3000, () => {
console.log("Server is running on http://localhost:3000");
});
6 changes: 1 addition & 5 deletions server/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,6 @@
color: black;
padding: 1rem 0;
}
.page-leaderboard {
/* background-color: black; */
}
</style>
<script src="/js/script.js" defer></script>
</head>
Expand Down Expand Up @@ -781,7 +777,7 @@
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">GDPR</a></li>
<li><a href="#">Security</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="/testimonials">Testimonials</a></li>
<li><a href="#">Media Kit</a></li>
</ul>
</div>
Expand Down
Loading

0 comments on commit 24b89fa

Please sign in to comment.