Skip to content

Commit

Permalink
Added Home.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jonelrelucio committed May 9, 2023
1 parent f07b38e commit c4a1994
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t

User user = (User) session.getAttribute("user");
System.out.println(user.getUsername());

response.sendRedirect("homeTemplate.html");

}

Expand Down
12 changes: 12 additions & 0 deletions TIW-HTML-project-taxonomy/src/main/webapp/homeTemplate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<title>Satellite Images - Login</title>
</head>
<body>
<h1 class="title">Satellite Images</h1>
<div class="logout"> <h3><a href="index.html">logout</a></h3></div>
</body>
</html>
13 changes: 13 additions & 0 deletions TIW-HTML-project-taxonomy/src/main/webapp/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,17 @@ h1.title{
color: red;
}


div.logout{
text-align: right;
position:fixed;
top: 0;
right: 0;
padding-right: 70px;
padding-top: 25px;
text-decoration: none;
color: green;
}



0 comments on commit c4a1994

Please sign in to comment.