Skip to content

Commit 076863b

Browse files
feat: Added Home button to composite view appllication header for easy navigation to home page (iluwatar#3059)
1 parent 7c8802e commit 076863b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

composite-view/web/header.jsp

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,30 @@
3939
h1 { text-align: center;}
4040
h2 { text-align: center;}
4141
h3 { text-align: center;}
42+
nav {
43+
text-align: center;
44+
margin-bottom: 20px;
45+
}
46+
.home-link {
47+
padding: 10px 20px;
48+
background-color: #007bff;
49+
color: white;
50+
text-decoration: none;
51+
border-radius: 5px;
52+
}
53+
.home-link:hover {
54+
background-color: #0056b3;
55+
}
4256
</style>
4357
</head>
4458
<body>
59+
<nav>
60+
<!-- Add a Home button that links back to the homepage -->
61+
<a href="/" class="home-link">Home</a>
62+
</nav>
63+
4564
<% String todayDateStr = (new Date().toString()); %>
4665
<h1>Today's Personalized Frontpage</h1>
47-
<h2><%=todayDateStr%></h2>
66+
<h2><%= todayDateStr %></h2>
4867
</body>
4968
</html>

0 commit comments

Comments
 (0)