witty/assets/index.html
Zhi Wang 2720c1ba3f wip
2022-01-11 15:22:24 -05:00

47 lines
1.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Web Terminal</title>
<!-- Bootstrap core CSS -->
<link href="/assets/external/bootstrap.min.css" rel="stylesheet">
<link href="/assets/main.css" rel="stylesheet">
<body>
<header>
<nav class="navbar navbar-dark bg-dark shadow-sm navbar-xs">
<div class="container-fluid">
<a class="navbar-brand">
<img src="/assets/logo.svg" style="margin-left: 2em;margin-right: 1em;" height="24"
class="d-inline-block align-text-top">
Web-based Terminal Emulator
<a class="btn btn-primary btn-sm float-end" href="/new" role="button">New Session</a>
</div>
</nav>
</header>
<main>
<div class="container" style="margin-top:1em;">
<div class="card-deck row justify-content-center">
<!-- repeat this for each interactive session -->
<div class="card shadow-sm border-info bg-light mb-3" style="width: 16rem; margin:1em;">
<div class="card-body">
<h5 class="card-title">Interactive session</h5>
<p class="card-text">From {{.ip}}, running {{.cmd}}</p>
<a class="btn btn-secondary btn-sm float-end" href="{{.url}}" role="button">View</a>
</div>
</div>
</div>
</div>
</main>
</body>
</html>