feat: Added Home button to composite view appllication header for easy navigation to home page (#3059)

This commit is contained in:
LakshyaPunyani-01
2024-11-03 15:34:30 +05:30
committed by GitHub
parent 7c8802ef6f
commit 076863b937
+20 -1
View File
@@ -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>