Advertisement
Guest User

Untitled

a guest
Jun 21st, 2023
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>login</title>
  5. <link rel="preconnect" href="https://fonts.gstatic.com">
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
  7. <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap" rel="stylesheet">
  8. <style media="screen">
  9. *,
  10. *:before,
  11. *:after{
  12. padding: 0;
  13. margin: 0;
  14. box-sizing: border-box;
  15. }
  16. body{
  17. background-color: #080710;
  18. }
  19. .background{
  20. width: 430px;
  21. height: 520px;
  22. position: absolute;
  23. transform: translate(-50%,-50%);
  24. left: 50%;
  25. top: 50%;
  26. }
  27. .background .shape{
  28. height: 200px;
  29. width: 200px;
  30. position: absolute;
  31. border-radius: 50%;
  32. }
  33. .shape:first-child{
  34. background: linear-gradient(
  35. #1845ad,
  36. #23a2f6
  37. );
  38. left: -80px;
  39. top: -80px;
  40. }
  41. .shape:last-child{
  42. background: linear-gradient(
  43. to right,
  44. #ff512f,
  45. #f09819
  46. );
  47. right: -30px;
  48. bottom: -80px;
  49. }
  50. form{
  51. height: 520px;
  52. width: 400px;
  53. background-color: rgba(255,255,255,0.13);
  54. position: absolute;
  55. transform: translate(-50%,-50%);
  56. top: 50%;
  57. left: 50%;
  58. border-radius: 10px;
  59. backdrop-filter: blur(10px);
  60. border: 2px solid rgba(255,255,255,0.1);
  61. box-shadow: 0 0 40px rgba(8,7,16,0.6);
  62. padding: 50px 35px;
  63. }
  64. form *{
  65. font-family: 'Poppins',sans-serif;
  66. color: #ffffff;
  67. letter-spacing: 0.5px;
  68. outline: none;
  69. border: none;
  70. }
  71. form h3{
  72. font-size: 32px;
  73. font-weight: 500;
  74. line-height: 42px;
  75. text-align: center;
  76. }
  77.  
  78. label{
  79. display: block;
  80. margin-top: 30px;
  81. font-size: 16px;
  82. font-weight: 500;
  83. }
  84. input{
  85. display: block;
  86. height: 50px;
  87. width: 100%;
  88. background-color: rgba(255,255,255,0.07);
  89. border-radius: 3px;
  90. padding: 0 10px;
  91. margin-top: 8px;
  92. font-size: 14px;
  93. font-weight: 300;
  94. }
  95. ::placeholder{
  96. color: #e5e5e5;
  97. }
  98. button{
  99. margin-top: 50px;
  100. width: 100%;
  101. background-color: #ffffff;
  102. color: #080710;
  103. padding: 15px 0;
  104. font-size: 18px;
  105. font-weight: 600;
  106. border-radius: 5px;
  107. cursor: pointer;
  108. }
  109. .social{
  110. margin-top: 30px;
  111. display: flex;
  112. }
  113. .social div{
  114. background: red;
  115. width: 150px;
  116. border-radius: 3px;
  117. padding: 5px 10px 10px 5px;
  118. background-color: rgba(255,255,255,0.27);
  119. color: #eaf0fb;
  120. text-align: center;
  121. }
  122. .social div:hover{
  123. background-color: rgba(255,255,255,0.47);
  124. }
  125. footer {
  126. position: fixed;
  127. left: 0;
  128. bottom: 0;
  129. width: 100%;
  130. color: rgb(255, 255, 255);
  131. text-align: center;
  132. }
  133.  
  134. </style>
  135. <script>
  136. document.addEventListener('DOMContentLoaded', function() {
  137. function login() {
  138. var username = document.getElementById('username').value;
  139. var password = document.getElementById('password').value;
  140.  
  141. if (username = 'test123' && password === 'test') {
  142. window.location.href = 'http://www.google.com';
  143. } else {
  144. alert('Ungültiger Benutzername oder falsches Passwort.'); // Fehlermeldung bei ungültigen Daten
  145. return false;
  146. }
  147. }
  148.  
  149. var loginButton = document.getElementById('loginButton');
  150. loginButton.addEventListener('click', login);
  151. });
  152. </script>
  153. </head>
  154. <body>
  155. <div class="background">
  156. <div class="shape"></div>
  157. <div class="shape"></div>
  158. </div>
  159. <form>
  160. <h3>asfsadf</h3>
  161.  
  162. <label for="username">Usersname</label>
  163. <input type="text" placeholder="Username" id="username">
  164.  
  165. <label for="password">Password</label>
  166. <input type="password" placeholder="Password" id="password">
  167.  
  168. <button id="loginButton">Login</button>
  169. </form>
  170. <footer>
  171. <p>test</p>
  172. </footer>
  173. </body>
  174. </html>
  175.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement