forked from Disroot/gpg-lacre
initial changes to the web frontend
This commit is contained in:
parent
002e150805
commit
d77f03bb85
6 changed files with 132 additions and 17 deletions
|
@ -26,7 +26,7 @@ require_once("include/common.php");
|
|||
require_once("include/dbconnect.php");
|
||||
require_once("include/pgp.php");
|
||||
require_once("include/phphkp.php");
|
||||
|
||||
echo "<link rel='stylesheet' href='theme/style.css' type='text/css'>";
|
||||
|
||||
if(isset($_POST['email']) && isset($_POST['key'])) {
|
||||
$result = requestPGP($_POST['email'], $_POST['key']);
|
||||
|
|
BIN
gpg-mailgate-web/public_html/theme/branding/bottom_ribbon.png
Normal file
BIN
gpg-mailgate-web/public_html/theme/branding/bottom_ribbon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
BIN
gpg-mailgate-web/public_html/theme/branding/logo.png
Normal file
BIN
gpg-mailgate-web/public_html/theme/branding/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
|
@ -23,6 +23,6 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>gpg-mailgate-web</title>
|
||||
<title>Lacre - PGP key management</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -21,26 +21,30 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<img src="theme/branding/logo.png" class="center logo">
|
||||
<h1><?= $config['site_title'] ?></h1>
|
||||
|
||||
<? if(!empty($message)) { ?>
|
||||
<p><b><i><?= htmlspecialchars($message) ?></i></b></p>
|
||||
<p style="color:red;"><div id=infomsg><b><i><?= htmlspecialchars($message) ?></i></b></div></p>
|
||||
<? } ?>
|
||||
|
||||
<p><?= $lang['home_text'] ?></p>
|
||||
|
||||
<form method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?= $lang['home_emaildesc'] ?></td>
|
||||
<td><input type="text" name="email" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $lang['home_keydesc'] ?></td>
|
||||
<td><textarea name="key" rows="10" cols="80"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="<?= $lang['home_submitkey'] ?>" />
|
||||
<form id="keyform" method="POST">
|
||||
<p>
|
||||
<label for="email"><?= $lang['home_emaildesc'] ?></label>
|
||||
<br>
|
||||
<input type="text" class="email" name="email" required>
|
||||
</p>
|
||||
<p>
|
||||
<label for="key"><?= $lang['home_keydesc'] ?></label>
|
||||
<br>
|
||||
<input type="text" class="key" name="key" required></label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="<?= $lang['home_submitkey'] ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<img src="theme/branding/bottom_ribbon.png" class="cover">
|
||||
<p><?= $lang['home_footer'] ?></p>
|
||||
|
||||
|
||||
|
|
111
gpg-mailgate-web/public_html/theme/style.css
Normal file
111
gpg-mailgate-web/public_html/theme/style.css
Normal file
|
@ -0,0 +1,111 @@
|
|||
|
||||
:root {
|
||||
--main-bg-color: #203040;
|
||||
--main-dark: darken(var(--main-bg-color), 90%);
|
||||
--main-font: Tahoma, Verdana, Arial, sans-serif;
|
||||
--main-font-color: #E3DEDB;
|
||||
--main-linkcolor: #BB2244;
|
||||
--main-hovercolor: #2C4359;
|
||||
|
||||
/* background colors */
|
||||
--bg-hs: 210, 33%;
|
||||
--bg-l:19%;
|
||||
--bg: hsl(var(--bg-hs),var(--bg-l));
|
||||
--bg-darker: hsl(var(--bg-hs),calc(var(--bg-l) - 5%));
|
||||
--bg-darkest: hsl(var(--bg-hs),calc(var(--bg-l) - 10%));
|
||||
|
||||
/* main color */
|
||||
--main-hs: 347, 69%;
|
||||
--main-l: 43%;
|
||||
--main: hsl(var(--main-hs),var(--main-l));
|
||||
--main-darker: hsl(var(--main-hs),calc(var(--main-l) - 5%));
|
||||
--main-darkest: hsl(var(--main-hs),calc(var(--main-l) - 10%));
|
||||
|
||||
/* font color */
|
||||
--font-hs: 23, 12%;
|
||||
--font-l: 87%;
|
||||
--font: hsl(var(--font-hs),var(--font-l));
|
||||
--font-darker: hsl(var(--font-hs),calc(var(--font-l) - 5%));
|
||||
--font-darkest: hsl(var(--font-hs),calc(var(--font-l) - 70%));
|
||||
}
|
||||
html {
|
||||
background-color: var(--bg-darkest);
|
||||
}
|
||||
body {
|
||||
width: 45em;
|
||||
margin: 0 auto;
|
||||
background-color: var(--bg);
|
||||
color: var(--font);
|
||||
font-family: var(--main-font);
|
||||
text-align: center;
|
||||
}
|
||||
img.logo {
|
||||
padding-top: 10em;
|
||||
width: 30em;
|
||||
}
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.cover {
|
||||
width: 100%;
|
||||
margin-top: 10%;
|
||||
object-fit: cover;
|
||||
}
|
||||
a {
|
||||
color: var(--main);
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--main-darker);
|
||||
}
|
||||
.txtinfo {
|
||||
padding: 2rem;
|
||||
}
|
||||
.key {
|
||||
width: 80%;
|
||||
height: 150px;
|
||||
padding: 12px 20px;
|
||||
border-radius: 4px;
|
||||
border: 0px;
|
||||
background-color: var(--bg-darker);
|
||||
color: var(--font);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
.email {
|
||||
width: 50%;
|
||||
padding: 12px 20px;
|
||||
border-radius: 4px;
|
||||
border: 0px;
|
||||
background-color: var(--bg-darker);
|
||||
color: var(--font);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
input[type=submit] {
|
||||
background-color: var(--main-darker);
|
||||
border: none;
|
||||
color: var(--font);
|
||||
padding: 16px 32px;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
input:hover[type=submit] {
|
||||
background-color: var(--main-darkest);
|
||||
}
|
||||
.infomsg {
|
||||
width: 80%;
|
||||
padding: 12px 20px;
|
||||
border-radius: 4px;
|
||||
border: 2px;
|
||||
border-color: var(--main);
|
||||
background-color: var(--bg-darker);
|
||||
color: var(--font);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
.infomsg:empty {
|
||||
display: none;
|
||||
}
|
Loading…
Reference in a new issue