mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +00:00
feat: Added Home button to composite view appllication header for easy navigation to home page (#3059)
This commit is contained in:
committed by
GitHub
parent
7c8802ef6f
commit
076863b937
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user