Advertisement
Sharishah97

Login page

Nov 8th, 2018
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1.  
  2. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  3. pageEncoding="ISO-8859-1"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="ISO-8859-1">
  9. <title>Awesome to-do list</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  12. <style>
  13. body {
  14. font-family: Lucida Console, Helvetica, sans-serif;
  15. }
  16.  
  17. * {
  18. box-sizing: border-box;
  19. }
  20.  
  21. /* style the container */
  22. .container {
  23. position: relative;
  24. border-radius: 5px;
  25. background-color: #f2f2f2;
  26. padding: 20px 0 30px 0;
  27. }
  28.  
  29. /* style inputs and link buttons */
  30. input,
  31. .btn {
  32. width: 50%;
  33. padding: 12px;
  34. border: none;
  35. border-radius: 4px;
  36. margin: 5px 0;
  37. opacity: 0.85;
  38. display: inline-block;
  39. font-size: 17px;
  40. line-height: 20px;
  41. text-decoration: none; /* remove underline from anchors */
  42. font-family: Lucida Console, Helvetica, sans-serif;
  43. }
  44.  
  45. input:hover,
  46. .btn:hover {
  47. opacity: 1;
  48. }
  49.  
  50. /* style the submit button */
  51. input[type=submit] {
  52. background-color: rgb(255, 102, 163);
  53. color: white;
  54. cursor: pointer;
  55. font-family: Lucida Console, Helvetica, sans-serif;
  56. }
  57.  
  58. input[type=submit]:hover {
  59. background-color: rgb(204, 0, 82);
  60. }
  61.  
  62. /* Clear floats after the columns */
  63. .row:after {
  64. content: "";
  65. display: table;
  66. clear: both;
  67. }
  68.  
  69. /* hide some text on medium and large screens */
  70. .hide-md-lg {
  71. display: none;
  72. }
  73.  
  74. /* bottom container */
  75. .bottom-container {
  76. text-align: center;
  77. background-color: rgb(153, 0, 61);
  78. border-radius: 0px 0px 4px 4px;
  79. }
  80. /* Responsive layout - when the screen is less than 650px wide, make the two columns stack on top of each other instead of next to each other */
  81. @media screen and (max-width: 650px) {
  82. /* show the hidden text on small screens */
  83. .hide-md-lg {
  84. display: block;
  85. text-align: center;
  86. }
  87. </style>
  88. </head>
  89. <body>
  90. <div class="container">
  91. <form action="Login" method="POST">
  92. <div class="row">
  93. <h2 style="text-align:center; color: rgb(153, 0, 61);">Awesome To-Do List</h2>
  94. <div class="col" style="text-align:center;">
  95. <div class="hide-md-lg">
  96. <p>Or sign in manually:</p>
  97. </div>
  98. <input type="text" name="username" placeholder="Username" required>
  99. <input type="password" name="password" placeholder="Password" required>
  100. <input type="submit" value="Login">
  101. </div>
  102.  
  103. </div>
  104. </form>
  105. </div>
  106. <div class="bottom-container">
  107. <div class="row">
  108. <div class="col">
  109. <a href="register.jsp" style="color:white" class="btn">Are u new? Register <b>here</b></a>
  110. </div>
  111. </div>
  112. </div>
  113. <c:if test="${loginerror == 'yes'}">
  114. <script>alert("Invalid username and password");</script>
  115. </c:if>
  116. <c:if test="${logout == 'yes'}">
  117. <script>alert("You have logout");</script>
  118. </c:if>
  119. </body>
  120. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement