Skip to content

Commit

Permalink
Added Home button to header for easy navigation to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshyaPunyani-01 committed Oct 13, 2024
1 parent 084817f commit ce4c202
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion composite-view/web/header.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,30 @@
h1 { text-align: center;}
h2 { text-align: center;}
h3 { text-align: center;}
nav {
text-align: center;
margin-bottom: 20px;
}
.home-link {
padding: 10px 20px;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 5px;
}
.home-link:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<nav>
<!-- Add a Home button that links back to the homepage -->
<a href="/" class="home-link">Home</a>
</nav>

<% String todayDateStr = (new Date().toString()); %>
<h1>Today's Personalized Frontpage</h1>
<h2><%=todayDateStr%></h2>
<h2><%= todayDateStr %></h2>
</body>
</html>

0 comments on commit ce4c202

Please sign in to comment.