Skip to content
Snippets Groups Projects
Commit bda83feb authored by Yannis Devos's avatar Yannis Devos
Browse files

Styles

parent 67667cca
No related branches found
No related tags found
No related merge requests found
...@@ -38,12 +38,13 @@ public class Account extends HttpServlet { ...@@ -38,12 +38,13 @@ public class Account extends HttpServlet {
out.println("</body>"); out.println("</body>");
out.println("<section class=\"account_section\">");
out.println("<h2>CHANGE YOUR PASSWORD</h2>"); out.println("<h2>CHANGE YOUR PASSWORD</h2>");
out.println("<form class=\"changepwdForm\" action=\"/s4a021-web-backend/Account\">"); out.println("<form class=\"changepwdForm\" action=\"/s4a021-web-backend/Account\">");
out.println("<input name=\"newPwd\" type=\"password\" placeholder=\"New password\">"); out.println("<input name=\"newPwd\" type=\"password\" placeholder=\"New password\">");
out.println("<button type=\"submit\">Change it !</button>"); out.println("<button type=\"submit\">Change it !</button>");
out.println("</form>"); out.println("</form>");
out.println("</section>");
String npwd = req.getParameter("newPwd"); String npwd = req.getParameter("newPwd");
if (npwd != null){ if (npwd != null){
...@@ -65,10 +66,12 @@ public class Account extends HttpServlet { ...@@ -65,10 +66,12 @@ public class Account extends HttpServlet {
// out.println("<button type=\"submit\">Delete Account</button>"); // out.println("<button type=\"submit\">Delete Account</button>");
// out.println("</form>"); // out.println("</form>");
out.println("<section class=\"account_section\">");
out.println("<h2>DELETE YOUR ACCOUNT</h2>"); out.println("<h2>DELETE YOUR ACCOUNT</h2>");
out.println("<form class=\"delForm\" action=\"/s4a021-web-backend/deletedAccount\" method=\"post\">"); out.println("<form class=\"delForm\" action=\"/s4a021-web-backend/deletedAccount\" method=\"post\">");
out.println("<button type=\"submit\">Delete Account</button>"); out.println("<button type=\"submit\">Delete Account</button>");
out.println("</form>"); out.println("</form>");
out.println("</section>");
out.println("<footer>"); out.println("<footer>");
out.println("Connected as " + login); out.println("Connected as " + login);
......
...@@ -42,16 +42,11 @@ public class Following extends HttpServlet { ...@@ -42,16 +42,11 @@ public class Following extends HttpServlet {
out.println("<html><body><meta charset=\"utf-8\">"); out.println("<html><body><meta charset=\"utf-8\">");
out.println("<link rel=\"stylesheet\" href=\"css/feed.css\">"); out.println("<link rel=\"stylesheet\" href=\"css/feed.css\">");
out.println("<title>Followed</title>"); out.println("<title>Followed</title>");
out.println("<nav>");
out.println("<ul class=\"menu\">");
out.println("<li class=\"menu_option\"><a href=\"http://localhost:8080/s4a021-web-backend/Welcome\">\uD83C\uDFE0 Home</a></li>");
out.println("<li class=\"menu_option\"><a href=\"http://localhost:8080/s4a021-web-backend/Followed\">\uD83E\uDDF5 Followed</a></li>");
out.println("<li class=\"menu_option\"><a href=\"http://localhost:8080/s4a021-web-backend/Account\">\uD83D\uDC64 Account</a></li>");
out.println("</ul></nav>");
out.println("<h1>Threads followed</h1>"); out.println("<h1>Threads followed</h1>");
out.println(PageGeneration.generateNavMenu());
if (!threadsFollowedByUser.isEmpty()) { if (!threadsFollowedByUser.isEmpty()) {
for (Integer t : threadsFollowedByUser) { for (Integer t : threadsFollowedByUser) {
MyThread thread = null; MyThread thread = null;
......
...@@ -60,7 +60,8 @@ public class NewThread extends HttpServlet { ...@@ -60,7 +60,8 @@ public class NewThread extends HttpServlet {
out.println("<title>New thread</title>"); out.println("<title>New thread</title>");
out.println("<div class=\"write\">"); out.println("<div class=\"write\">");
out.println("<h3>Create a new thread</h3>"); out.println("<h1>Create a new thread</h1>");
out.println(PageGeneration.generateNavMenu());
out.println("<form action=\"http://localhost:8080/s4a021-web-backend/NewThread\" method=\"post\">"); out.println("<form action=\"http://localhost:8080/s4a021-web-backend/NewThread\" method=\"post\">");
out.println("<input name=\"threadname\" type=\"text\" placeholder=\"Name of new thread\">"); out.println("<input name=\"threadname\" type=\"text\" placeholder=\"Name of new thread\">");
out.println("<textarea name=\"first_message\" type=\"text\" rows=\"2\" cols=\"30\" placeholder=\"Post the first message of your new thread!\"></textarea>"); out.println("<textarea name=\"first_message\" type=\"text\" rows=\"2\" cols=\"30\" placeholder=\"Post the first message of your new thread!\"></textarea>");
......
...@@ -7,12 +7,14 @@ ...@@ -7,12 +7,14 @@
</head> </head>
<body> <body>
<div class="form"> <div class="form">
<h1>REGISTER</h1> <section>
<form action="http://localhost:8080/s4a021-web-backend/SignUp" method="post"> <h1>REGISTER</h1>
<input name="login" type="text" placeholder="username"> <form action="http://localhost:8080/s4a021-web-backend/SignUp" method="post">
<input name="pwd" type="password" placeholder="password"> <input name="login" type="text" placeholder="username">
<button type="submit">Create my Account !</button> <input name="pwd" type="password" placeholder="password">
</form> <button type="submit">Create my Account !</button>
</form>
</section>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -2,4 +2,15 @@ ...@@ -2,4 +2,15 @@
background-color : red; background-color : red;
border-color : red; border-color : red;
color : white; color : white;
}
.account_section{
background-color : #333333;
border-radius : 15px;
margin-right : auto;
margin-left : auto;
padding : 1%;
width : 50%;
margin-top : 5%;
text-align : center;
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ body{ ...@@ -7,7 +7,7 @@ body{
background-color: #232323; background-color: #232323;
} }
body{ section{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
......
...@@ -10,13 +10,15 @@ ...@@ -10,13 +10,15 @@
</head> </head>
<body> <body>
<div class="form"> <div class="form">
<h1>LOGIN</h1> <section>
<form action="http://localhost:8080/s4a021-web-backend/LogIn" method="post"> <h1>LOGIN</h1>
<input name="login" type="text" placeholder="username"> <form action="http://localhost:8080/s4a021-web-backend/LogIn" method="post">
<input name="pwd" type="password" placeholder="password"> <input name="login" type="text" placeholder="username">
<button type="submit">Let's go !</button> <input name="pwd" type="password" placeholder="password">
<p><i>New user ? Click <a href="./create.html">here</a> to create an account</i></p> <button type="submit">Let's go !</button>
</form> <p><i>New user ? Click <a href="./create.html">here</a> to create an account</i></p>
</form>
</section>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment