mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-15 04:18:47 +00:00
feat: Added Home button to composite view appllication header for easy navigation to home page (#3059)
This commit is contained in:
1 parent
7c8802ef6f
commit
076863b937
1 file changed
+20
-1
@@ -39,11 +39,30 @@
|
|||||||
h1 { text-align: center;}
|
h1 { text-align: center;}
|
||||||
h2 { text-align: center;}
|
h2 { text-align: center;}
|
||||||
h3 { 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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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()); %>
|
<% String todayDateStr = (new Date().toString()); %>
|
||||||
<h1>Today's Personalized Frontpage</h1>
|
<h1>Today's Personalized Frontpage</h1>
|
||||||
<h2><%=todayDateStr%></h2>
|
<h2><%= todayDateStr %></h2>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user