ots/frontend/index.html
Knut Ahlers 1aa968299a
Migrate to bootstrap 4 and fontawesome 5
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-05-05 17:34:13 +02:00

143 lines
5.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha256-LA89z+k9fjgMKQ/kq4OO2Mrf8VltYml/VES+Rg0fh20=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.1.1/flatly/bootstrap.min.css"
integrity="sha256-Aq7aBPqZwiUM2fHchlRaVD7RFsEBto+K77fvREGjnHU=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.12/css/all.css"
integrity="sha384-G0fIWCsCzJIMAVNQPfjH08cyYaUtMwjJwqiRKxxE/rx96Uroj1BtIQ6MLJuheaO9" crossorigin="anonymous">
<title>OTS - One Time Secrets</title>
<style>
#somethingwrong, #notfound, #cardReadSecret, #cardSecretURL, #cardReadSecretPre { display: none; }
.footer { color: #2f2f2f; font-size: 0.9em; text-align: center; }
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#"><i class="fas fa-user-secret"></i> OTS - One Time Secrets</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item"></li>
<li class="nav-item"><a href="#" id="newSecret"><i class="fas fa-plus"></i> {{T "btn-new-secret"}}</a></li>
</ul>
</div>
</nav>
<div class="container mt-4">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="alert alert-danger" role="alert" id="notfound">
<i class="fas fa-question-circle" aria-hidden="true"></i>
{{T "alert-secret-not-found"}}
</div>
<div class="alert alert-danger" role="alert" id="somethingwrong">
<i class="fas fa-question-circle" aria-hidden="true"></i>
{{T "alert-something-went-wrong"}}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card border-primary" id="cardNewSecret">
<div class="card-header bg-primary text-white">
{{T "title-new-secret"}}
</div>
<div class="card-body">
<form id="formCreateSecret">
<div class="form-group">
<label for="secret">{{T "label-secret-data"}}</label>
<textarea class="form-control" rows="5" id="secret"></textarea>
</div>
<input class="btn btn-success" type="submit" value="{{T "btn-create-secret"}}">
</form>
</div>
</div>
<div class="card border-success" id="cardSecretURL">
<div class="card-header bg-success text-white">
{{T "title-secret-created"}}
</div>
<div class="card-body">
<p>
{{T "text-pre-url"}}
</p>
<div class="form-group">
<input type="text" class="form-control" readonly>
</div>
<p>
{{T "text-burn-hint"}}
</p>
</div>
</div>
<div class="card border-primary" id="cardReadSecretPre">
<div class="card-header bg-primary text-white">
{{T "title-reading-secret"}}
</div>
<div class="card-body">
<p>
{{T "text-pre-reveal-hint"}}
</p>
<p>
<button class="btn btn-success" id="revealSecret">{{T "btn-reveal-secret"}}</button>
</p>
</div>
</div>
<div class="card border-primary" id="cardReadSecret">
<div class="card-header bg-primary text-white">
{{T "title-reading-secret"}}
</div>
<div class="card-body">
<div class="form-group">
<textarea class="form-control" rows="5" readonly></textarea>
</div>
<p>
{{T "text-hint-burned"}}
</p>
</div>
</div>
</div> <!-- /.col-md-12 -->
</div> <!-- /.row -->
<div class="row mt-5">
<div class="col-md-12 footer">
{{T "text-powered-by"}} <a href="https://github.com/Luzifer/ots"><i class="fab fa-github"></i> Luzifer/OTS</a> {{.version}}
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.1/popper.min.js"
integrity="sha256-ST2MecrXrJaAsqmfpk9XRQITlDoyMmUtgKBEndDisSc=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha256-5+02zu5UULQkO7w1GIr6vftCgMfFdZcAHeDtFnKZsBs=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gibberish-aes/1.0.0/gibberish-aes.min.js"
integrity="sha256-H9B/XRDijNiF3agVjtiz1ILVi3csEdGz9YBg5TjWouM=" crossorigin="anonymous"></script>
<script src="application.js"></script>
</body>
</html>