login1.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <title>Login Page</title>
  5. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"/>
  6. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"/>
  7. <link rel="stylesheet" type="text/css" href="styles.css"/>
  8. <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"/>
  9. <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
  10. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  11. </head>
  12. <style>
  13. @import url('https://fonts.googleapis.com/css?family=Numans');
  14. html,body{
  15. background-image: url('http://getwallpapers.com/wallpaper/full/a/5/d/544750.jpg');
  16. background-size: cover;
  17. background-repeat: no-repeat;
  18. height: 100%;
  19. font-family: 'Numans', sans-serif;
  20. }
  21. .container{
  22. height: 100%;
  23. align-content: center;
  24. }
  25. .card{
  26. height: 370px;
  27. margin-top: auto;
  28. margin-bottom: auto;
  29. width: 400px;
  30. background-color: rgba(0,0,0,0.5) !important;
  31. }
  32. .social_icon span{
  33. font-size: 60px;
  34. margin-left: 10px;
  35. color: #FFC312;
  36. }
  37. .social_icon span:hover{
  38. color: white;
  39. cursor: pointer;
  40. }
  41. .card-header h3{
  42. color: white;
  43. }
  44. .social_icon{
  45. position: absolute;
  46. right: 20px;
  47. top: -45px;
  48. }
  49. .input-group-prepend span{
  50. width: 50px;
  51. background-color: #FFC312;
  52. color: black;
  53. border:0 !important;
  54. }
  55. input:focus{
  56. outline: 0 0 0 0 !important;
  57. box-shadow: 0 0 0 0 !important;
  58. }
  59. .remember{
  60. color: white;
  61. }
  62. .remember input
  63. {
  64. width: 20px;
  65. height: 20px;
  66. margin-left: 15px;
  67. margin-right: 5px;
  68. }
  69. .login_btn{
  70. color: black;
  71. background-color: #FFC312;
  72. width: 100px;
  73. }
  74. .login_btn:hover{
  75. color: black;
  76. background-color: white;
  77. }
  78. .links{
  79. color: white;
  80. }
  81. .links a{
  82. margin-left: 4px;
  83. }
  84. </style>
  85. <body>
  86. <div class="container">
  87. <div class="d-flex justify-content-center h-100">
  88. <div class="card">
  89. <div class="card-header">
  90. <h3>Sign In</h3>
  91. <div class="d-flex justify-content-end social_icon">
  92. <span><i class="fab fa-facebook-square"></i></span>
  93. <span><i class="fab fa-google-plus-square"></i></span>
  94. <span><i class="fab fa-twitter-square"></i></span>
  95. </div>
  96. </div>
  97. <div class="card-body">
  98. <form role="form" method="post" th:action="@{/login}" th:object="${user}">
  99. <div class="input-group form-group">
  100. <div class="input-group-prepend">
  101. <span class="input-group-text"><i class="fas fa-user"></i></span>
  102. </div>
  103. <input type="text" class="form-control" placeholder="username"/>
  104. </div>
  105. <div class="input-group form-group">
  106. <div class="input-group-prepend">
  107. <span class="input-group-text"><i class="fas fa-key"></i></span>
  108. </div>
  109. <input type="password" class="form-control" placeholder="password"/>
  110. </div>
  111. <div class="row align-items-center remember">
  112. <input type="checkbox"/>Remember Me
  113. </div>
  114. <div class="form-group">
  115. <input type="submit" value="Login" class="btn float-right login_btn"/>
  116. </div>
  117. </form>
  118. </div>
  119. <div class="card-footer">
  120. <div class="d-flex justify-content-center links">
  121. Don't have an account?<a href="#">Sign Up</a>
  122. </div>
  123. <div class="d-flex justify-content-center">
  124. <a href="#">Forgot your password?</a>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </body>
  131. </html>