Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.28 KB | None | 0 0
  1. <html><head>
  2. <style>
  3.   @import "https://use.fontawesome.com/releases/v5.5.0/css/all.css";
  4.   body{
  5.     font-family: sans-serif;
  6.   }
  7.   .login-box{
  8.     width: 280px;
  9.     position: absolute;
  10.     top: 50%;
  11.     left: 50%;
  12.     transform: translate(-50%,-50%);
  13.     color: white;
  14.   }
  15.   .login-box h1{
  16.     float: left;
  17.     font-size: 40px;
  18.     border-bottom: 6px solid #4CAF50;
  19.     margin-bottom: 50px;
  20.     padding: 13px 0;
  21.   }
  22.   .textbox{
  23.     width: 90%;
  24.     overflow: hidden;
  25.     font-size: 20px;
  26.     padding: 8px 0;
  27.     margin: 8px 0;
  28.     border-bottom: 1px solid #4CAF50;
  29.   }
  30.   .textbox input{
  31.     border: none;
  32.     outline: none;
  33.     background: none;
  34.     color: white;
  35.     font-size: 18px;
  36.     width: 80%;
  37.     float: left;
  38.     margin: 0 10px;
  39.   }
  40.   .textbox i{
  41.     width: 26px;
  42.     float: left;
  43.     text-align: center;
  44.   }
  45.  .btn{
  46.     width: 100%;
  47.     background: none;
  48.     border: 2px solid #4CAF50;
  49.     color: white;
  50.     padding: 5px;
  51.     font-size: 18px;
  52.     cursor: pointer;
  53.     margin: 12px 0;
  54.   }
  55.   .box{
  56.     background-color:#383838;
  57.     padding: 15px;
  58.     width:350px;
  59.     height:300px;
  60.     border:3px solid #73AD21;
  61.     position:absolute;
  62.     left:400px;
  63.     top:200px;
  64.   }
  65.   .dimScreen{
  66.     position:fixed;
  67.     padding:0;
  68.     margin:0;
  69.     top:0;
  70.     left:0;
  71.     width: 100%;
  72.     height: 100%;
  73.   }
  74. </style></head>
  75.  
  76. <body>
  77.   <canvas id="risciCanvas" width="410" height="300" style="z-index: 1;">
  78.   </canvas>
  79.   <img src="https://upload.wikimedia.org/wikipedia/commons/c/c2/Rizal_National_Science_High_School_Logo.png" style="width:100px; border:0; position:absolute; left:50px; top:40px">
  80.   <div class="box">
  81.     <div class="login-box">
  82.       <h1>Welcome</h1>
  83.       <div class="textbox">
  84.         <i class="fas fa-user"></i>
  85.         <input type="text" placeholder="Username">
  86.       </div>
  87.       <input type="button" class="btn" value="Enter">
  88.     </div>
  89.    </div>
  90.      
  91.   <script>
  92.     var c = document.querySelector("#risciCanvas");
  93.     var ctx=c.getContext("2d");
  94.     ctx.beginPath();
  95.     ctx.moveTo(0, 300);
  96.     ctx.lineTo(0,0);
  97.     ctx.lineTo(400, 0);
  98.     ctx.closePath();
  99.     ctx.lineWidth = 10;
  100.     ctx.strokeStyle = '#666666';
  101.     ctx.stroke();
  102.     ctx.fillStyle = "#FFCC00";
  103.     ctx.fill();
  104.  
  105.   </script>
  106.  
  107. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement