-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (109 loc) · 2.89 KB
/
index.html
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
<html>
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@600;800&display=swap" rel="stylesheet">
<style>
.main-form{
background: rgba( 255, 255, 255, 0.25 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.27 );
backdrop-filter: blur( 8px );
-webkit-backdrop-filter: blur( 8px );
border-radius: 20px;
display: flex;
flex-direction:column;
padding:3em;
justify-content:center;
position: absolute; /* or absolute */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
button:hover{
color:#fff;
background: linear-gradient(10deg,rgba(231,66,124,0.4),rgba(107,206,226,0.4));
box-shadow: 0 2px 12px 0 rgba(231,66,124,0.4);
backdrop-filter: blur( 6px );
-webkit-background-clip: text;
-webkit-text-fill-color:rgba(231,66,124,0.4);
}
button:active{
transform:translatey(1.5px);
}
button{
transition: all 100ms;
text-align:center;
padding:14px 20px 14px 20px;
border-radius: 6px;
border: none;
margin-top:10px;
outline: none;
font-size: 24px;
background: rgba( 255, 255, 255, 0.30 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 4px );
-webkit-backdrop-filter: blur( 4px );
font-family: 'Open Sans', sans-serif;
font-weight:bold;
background: -webkit-linear-gradient(10deg,#DD387B,#74D1E0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.inp::placeholder{
/* color:rgba(255,0,0,0.35);*/
background: -webkit-linear-gradient(10deg,#DD387B,#74D1E0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight:bold;
}
.inp
{transition: all 100ms;
font-family: 'Open Sans', sans-serif;
font-weight:600;
height: 45px;
margin:20px;
border-radius: 6px;
border: none;
outline: none;
font-size: 16px;
background: rgba( 255, 255, 255, 0.25 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 4px );
-webkit-backdrop-filter: blur( 4px );
padding-left: 20px;
}
.inp:focus
{
background: rgba( 255, 255, 255, 0.05 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 1.0px );
-webkit-backdrop-filter: blur( 1.0px );
}
body{
background-image:url("https://cdn.dribbble.com/users/247458/screenshots/5083720/wallpaper2.jpg");
background-repeat: no-repeat;
background-size: cover;
}
@media only screen and (max-width: 670px) {
body {
background-color: lightblue;
background-size: auto;
}
}
@media only screen and (orientation:portrait){
.main-form{
margin:auto;
padding: 1.5em;
}
}
</style>
</head>
<body>
<div class="main-form">
<div><input type="text" class="inp" placeholder="Username"></div>
<div><input type="password" class="inp" id="inputpswd" placeholder="Password"></div>
<div style =" text-align:center;"> <button>Submit</button></div>
</div>
</body>
<script>
</script>
</html>