forked from Code-Learn-Work/codage101
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblur.html
More file actions
132 lines (113 loc) · 2.44 KB
/
blur.html
File metadata and controls
132 lines (113 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
font-family: 'Times New Roman', Times, serif;
}
.header {
padding: 0.5px;
text-align: center;
background-color: gray;
color: black;
font-size: 30px;
}
* {
box-sizing: border-box;
}
.bg-image {
background-image: url("com.jpg");
filter: blur(8px);
-webkit-filter: blur(8px);
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.bg-text {
margin-top: 8em;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0, 0.4);
color: white;
font-weight: bold;
border: 3px solid #f1f1f1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: 70%;
height: 70%;
padding: 20px;
text-align: center;
}
form {border: 3px solid #f1f1f1;}
input[type=text], input[type=password] {
width: 40%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
margin-top: 4em;
}
.container {
padding: 10px;
}
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 10px 0;
border: none;
cursor: pointer;
width: 15%;
}
button:hover {
opacity: 0.8;
}
span.psw {
float: center;
padding-top: 16px;
}
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
margin-top: 4em;
}
}
</style>
</head>
<body>
<div class="header">
<h1>CODING101</h1>
<p>Just Code It</p>
</div>
<div class="bg-image"></div>
<div class="bg-text">
<h2>Login Form</h2>
<form action="/action_page.php">
<div class="container">
<label for="uname"><b>USERNAME</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<br>
<label for="psw"><b>PASSWORD</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<br>
<button type="submit">LOGIN</button>
<br>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<span class="psw">Forgot <a href="#">forgot password?</a></span>
</div>
</form>
</div>
</body>
</html>