Advertisement
DewClarke

Web Login

May 19th, 2016
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.02 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.  
  6.   <meta charset="UTF-8">
  7.  
  8.   <title>Login</title>
  9.  
  10.     <style>
  11. @import url(http://fonts.googleapis.com/css?family=Exo:100,200,400);
  12. @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);
  13.  
  14.  
  15.  
  16. .body{
  17.     position: fixed;
  18.     overflow-y: scroll;
  19.     width: 100%;
  20.     top: -20px;
  21.     left: -20px;
  22.     right: -40px;
  23.     bottom: -40px;
  24.     width: auto;
  25.     height: auto;
  26.     background-image: url(http://dewclarke.com/subscribe.png);
  27.     background-size: cover;
  28.     -webkit-filter: blur(0px);
  29.    
  30. }
  31.  
  32.  
  33.  
  34. .header{
  35.     position: absolute;
  36.     top: calc(50% - 35px);
  37.     left: calc(50% - 255px);
  38.    
  39. }
  40.  
  41. .header div{
  42.     float: left;
  43.     color: #fff;
  44.     font-family: 'Exo', sans-serif;
  45.     font-size: 40px;
  46.     font-weight: 200;
  47. }
  48.  
  49. .header div span{
  50.     color: #F29E20 !important;
  51. }
  52.  
  53. .login{
  54.     position: absolute;
  55.     top: calc(50% - 75px);
  56.     left: calc(50% - 50px);
  57.     height: 150px;
  58.     width: 350px;
  59.     padding: 10px;
  60.    
  61. }
  62.  
  63. .login input[type=text]{
  64.     width: 250px;
  65.     height: 30px;
  66.     background: transparent;
  67.     border: 1px solid rgba(255,255,255,0.6);
  68.     border-radius: 2px;
  69.     color: #fff;
  70.     font-family: 'Exo', sans-serif;
  71.     font-size: 16px;
  72.     font-weight: 400;
  73.     padding: 4px;
  74. }
  75.  
  76. .login input[type=password]{
  77.     width: 250px;
  78.     height: 30px;
  79.     background: transparent;
  80.     border: 1px solid rgba(255,255,255,0.6);
  81.     border-radius: 2px;
  82.     color: #fff;
  83.     font-family: 'Exo', sans-serif;
  84.     font-size: 16px;
  85.     font-weight: 400;
  86.     padding: 4px;
  87.     margin-top: 10px;
  88. }
  89.  
  90. .login input[type=button]{
  91.     width: 260px;
  92.     height: 35px;
  93.     background: #fff;
  94.     border: 1px solid #fff;
  95.     cursor: pointer;
  96.     border-radius: 2px;
  97.     color: #a18d6c;
  98.     font-family: 'Exo', sans-serif;
  99.     font-size: 16px;
  100.     font-weight: 400;
  101.     padding: 6px;
  102.     margin-top: 10px;
  103. }
  104.  
  105. .login input[type=button]:hover{
  106.     opacity: 0.8;
  107. }
  108.  
  109. .login input[type=button]:active{
  110.     opacity: 0.6;
  111. }
  112.  
  113. .login input[type=text]:focus{
  114.     outline: none;
  115.     border: 1px solid rgba(255,255,255,0.9);
  116. }
  117.  
  118. .login input[type=password]:focus{
  119.     outline: none;
  120.     border: 1px solid rgba(255,255,255,0.9);
  121. }
  122.  
  123. .login input[type=button]:focus{
  124.     outline: none;
  125. }
  126.  
  127. ::-webkit-input-placeholder{
  128.    color: rgba(255,255,255,0.6);
  129. }
  130.  
  131. ::-moz-input-placeholder{
  132.    color: rgba(255,255,255,0.6);
  133. }
  134. </style>
  135.  
  136.  
  137.  
  138. </head>
  139.  
  140. <body oncontextmenu="return false">
  141.  
  142.   <div class="body"></div>
  143.         <div class="grad"></div>
  144.         <div class="header">
  145.             <div>Dew<span>Clarke</span></div>
  146.         </div>
  147.         <br>
  148.         <form name="login">
  149.         <div class="login">
  150.                 <input type="text" placeholder="Please" name="userid"><br>
  151.                 <input type="password" placeholder="Subscribe :)" name="pswrd"><br>
  152.                 <input type="button" onclick="check(this.form)" value="Login"/>
  153.         </div>
  154.  
  155.  
  156.  
  157. </form>
  158. <script language="javascript">
  159. function check(form)
  160. {
  161.  
  162.  if(form.userid.value == "subscribe" && form.pswrd.value == "dewclarke")
  163.  {
  164.    window.open('https://www.youtube.com/c/dewclarke?sub_confirmation=1')
  165.  }
  166. else
  167. {
  168.   alert("Please subscribe to my channel for more coding!")
  169.  }
  170. }
  171. </script>
  172. </body>
  173. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement