Created
December 24, 2019 09:46
-
-
Save songritk/523a6a1e95ecdb27d5a78c1a960015be to your computer and use it in GitHub Desktop.
webssh landing page for Typing speed contest 2020
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>แข่งขันพิมพ์เร็วครั้งที่ 1</title> | |
<link href="static/img/favicon.png" rel="icon" type="image/png"> | |
<link href="static/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> | |
<link href="static/css/xterm.min.css" rel="stylesheet" type="text/css"/> | |
<link href="static/css/fullscreen.min.css" rel="stylesheet" type="text/css"/> | |
<style> | |
@import url(https://fonts.googleapis.com/css?family=Exo:100,200,400); | |
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300); | |
body{ | |
margin: 0; | |
padding: 0; | |
background: #fff; | |
color: #fff; | |
font-family: Arial; | |
font-size: 12px; | |
} | |
.body{ | |
position: absolute; | |
top: -20px; | |
left: -20px; | |
right: -40px; | |
bottom: -40px; | |
width: auto; | |
height: auto; | |
background-image: url(https://c.pxhere.com/photos/4e/8a/keyboard_computer_technology_keypad_cordless_electronic_equipment_type-1123668.jpg!d); | |
background-size: cover; | |
-webkit-filter: blur(5px); | |
z-index: 0; | |
} | |
.grad{ | |
position: absolute; | |
top: -20px; | |
left: -20px; | |
right: -40px; | |
bottom: -40px; | |
width: auto; | |
height: auto; | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65))); /* Chrome,Safari4+ */ | |
z-index: 1; | |
opacity: 0.7; | |
} | |
.header{ | |
position: absolute; | |
top: calc(50% - 35px); | |
left: calc(50% - 255px); | |
z-index: 2; | |
} | |
.header div{ | |
float: left; | |
color: #fff; | |
font-family: 'Exo', sans-serif; | |
font-size: 35px; | |
font-weight: 200; | |
} | |
.header div span{ | |
color: #5379fa !important; | |
} | |
.login{ | |
position: absolute; | |
top: calc(50% - 75px); | |
left: calc(50% - 50px); | |
height: 150px; | |
width: 350px; | |
padding: 10px; | |
z-index: 2; | |
} | |
.login input[type=text]{ | |
width: 250px; | |
height: 30px; | |
background: transparent; | |
border: 1px solid rgba(255,255,255,0.6); | |
border-radius: 2px; | |
color: #fff; | |
font-family: 'Exo', sans-serif; | |
font-size: 16px; | |
font-weight: 400; | |
padding: 4px; | |
} | |
.login input[type=password]{ | |
width: 250px; | |
height: 30px; | |
background: transparent; | |
border: 1px solid rgba(255,255,255,0.6); | |
border-radius: 2px; | |
color: #fff; | |
font-family: 'Exo', sans-serif; | |
font-size: 16px; | |
font-weight: 400; | |
padding: 4px; | |
margin-top: 10px; | |
} | |
.login input[type=button]{ | |
width: 260px; | |
height: 35px; | |
background: #fff; | |
border: 1px solid #fff; | |
cursor: pointer; | |
border-radius: 2px; | |
color: #a18d6c; | |
font-family: 'Exo', sans-serif; | |
font-size: 16px; | |
font-weight: 400; | |
padding: 6px; | |
margin-top: 10px; | |
} | |
.login input[type=button]:hover{ | |
opacity: 0.8; | |
} | |
.login input[type=button]:active{ | |
opacity: 0.6; | |
} | |
.login input[type=text]:focus{ | |
outline: none; | |
border: 1px solid rgba(255,255,255,0.9); | |
} | |
.login input[type=password]:focus{ | |
outline: none; | |
border: 1px solid rgba(255,255,255,0.9); | |
} | |
.login input[type=button]:focus{ | |
outline: none; | |
} | |
::-webkit-input-placeholder{ | |
color: rgba(255,255,255,0.6); | |
} | |
::-moz-input-placeholder{ | |
color: rgba(255,255,255,0.6); | |
} | |
</style> | |
<script src="js/prefixfree.min.js"></script> | |
</head> | |
<body> | |
<div class="body"></div> | |
<div class="grad"></div> | |
<div class="header"> | |
<div>CPE<span>|NPU</span></div> | |
</div> | |
<br> | |
<div id="waiter" style="display: none"> Connecting ... </div> | |
<div class="login"> | |
<div class="container form-container" style="display: none"> | |
<form id="connect" action="" method="post" enctype="multipart/form-data"{% if debug %} novalidate{% end %}> | |
<div class="row"> | |
<div class="col"> | |
<input class="form-control" type="hidden" id="hostname" name="hostname" value="gtypist.cpek6.com" required> | |
</div> | |
<div class="col"> | |
<input class="form-control" type="hidden" id="port" name="port" placeholder="22" value="5224" min=1 max=65535> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col"> | |
<label for="User">User</label> | |
<input class="form-control" type="text" id="username" name="username" placeholder="Student ID" value="" required><br> | |
</div> | |
<div class="col"> | |
<label for="Password">Password</label> | |
<input class="form-control" type="password" id="password" name="password" value=""> | |
</div> | |
</div> | |
<input type="hidden" id="term" name="term" value="xterm-256color"> | |
{% module xsrf_form_html() %} | |
<button type="submit" >Connect</button> | |
<button type="reset" >Reset</button> | |
</form> | |
</div> | |
</div> | |
<div class="container"> | |
<div id="status" style="color: red;"></div> | |
<div id="terminal"></div> | |
</div> | |
<script src="static/js/jquery.min.js"></script> | |
<script src="static/js/popper.min.js"></script> | |
<script src="static/js/bootstrap.min.js"></script> | |
<script src="static/js/xterm.min.js"></script> | |
<script src="static/js/xterm-addon-fit.min.js"></script> | |
<script src="static/js/main.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment