Created
April 13, 2023 20:49
-
-
Save PonomareVlad/ffc19166c78c1e74358d505cf3788aa5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Glassmorphism Login Form</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: Arial, sans-serif; | |
} | |
body { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
height: 100vh; | |
background-image: url('https://picsum.photos/id/237/2000/1200'); | |
background-size: cover; | |
background-position: center; | |
} | |
.container { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
width: 400px; | |
height: 400px; | |
background-color: rgba(255, 255, 255, 0.2); | |
border-radius: 20px; | |
backdrop-filter: blur(10px); | |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); | |
} | |
h2 { | |
font-size: 24px; | |
font-weight: bold; | |
color: #fff; | |
text-align: center; | |
margin-bottom: 20px; | |
} | |
form { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
width: 80%; | |
height: 200px; | |
} | |
input[type="text"], input[type="password"] { | |
display: block; | |
width: 100%; | |
padding: 10px; | |
border: none; | |
border-radius: 5px; | |
margin-bottom: 10px; | |
background-color: rgba(255, 255, 255, 0.5); | |
backdrop-filter: blur(10px); | |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | |
} | |
input[type="submit"] { | |
background-color: #fff; | |
border: none; | |
border-radius: 5px; | |
padding: 10px 20px; | |
font-size: 16px; | |
color: #000; | |
transition: all 0.3s ease-in-out; | |
cursor: pointer; | |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); | |
} | |
input[type="submit"]:hover { | |
background-color: #000; | |
color: #fff; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<h2>Login Form</h2> | |
<form action="#"> | |
<input type="text" name="username" placeholder="Username"> | |
<input type="password" name="password" placeholder="Password"> | |
<input type="submit" value="Login"> | |
</form> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment