Skip to content

Commit

Permalink
feat: Added Home button to composite view appllication header for eas…
Browse files Browse the repository at this point in the history
…y navigation to home page (#3059)
  • Loading branch information
LakshyaPunyani-01 authored Nov 3, 2024
1 parent 7c8802e commit 076863b
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 076863b

Please sign in to comment.