forked from Disroot/gpg-lacre
Compare commits
2 commits
main
...
fe_theme_s
Author | SHA1 | Date | |
---|---|---|---|
603cc3ab79 | |||
d77f03bb85 |
6 changed files with 165 additions and 22 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,36 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<h1><?= $config['site_title'] ?></h1>
|
||||
<div id=header>
|
||||
<a href <?= $config['site_url'] ?>><img src="theme/branding/logo.png" class="center logo"></a>
|
||||
<h1><?= $config['site_title'] ?></h1>
|
||||
</div>
|
||||
|
||||
<? if(!empty($message)) { ?>
|
||||
<p><b><i><?= htmlspecialchars($message) ?></i></b></p>
|
||||
<? } ?>
|
||||
<div class="wrapper padding">
|
||||
<? if(!empty($message)) { ?>
|
||||
<div id=infomsg><p><b><i><?= htmlspecialchars($message) ?></i></b></p></div>
|
||||
<? } ?>
|
||||
<p><?= $lang['home_text'] ?></p>
|
||||
<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-->
|
||||
<textarea rows="5" cols="80" name="key" id="key" class="key" required></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="<?= $lang['home_submitkey'] ?>" />
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p><?= $lang['home_text'] ?></p>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<p><?= $lang['home_footer'] ?></p>
|
||||
<div id=footer>
|
||||
<img src="theme/branding/bottom_ribbon.png" class="cover">
|
||||
<p><?= $lang['home_footer'] ?></p>
|
||||
</div>
|
||||
|
|
133
gpg-mailgate-web/public_html/theme/style.css
Normal file
133
gpg-mailgate-web/public_html/theme/style.css
Normal file
|
@ -0,0 +1,133 @@
|
|||
|
||||
: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;
|
||||
/* --bg-color: #203040 ;
|
||||
--logo-color: #BB2244;
|
||||
--highlight-color: #DD4466;
|
||||
--txt-color: #E3DEDB;
|
||||
--select-color: #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: 70%;
|
||||
margin: 0 auto;
|
||||
background-color: var(--bg);
|
||||
color: var(--font);
|
||||
font-family: var(--main-font);
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
.wrapper {
|
||||
margin: 0 20%;
|
||||
}
|
||||
.padding {
|
||||
padding: 3rem 1rem;
|
||||
}
|
||||
img.logo {
|
||||
width: 70%;
|
||||
}
|
||||
.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.cover {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
object-fit: cover;
|
||||
}
|
||||
.hide {
|
||||
display:none;
|
||||
}
|
||||
a {
|
||||
color: var(--main);
|
||||
text-decoration:none;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--main-darker);
|
||||
}
|
||||
.txtinfo {
|
||||
padding: 2rem;
|
||||
}
|
||||
.key {
|
||||
width: 80%;
|
||||
margin: 1rem auto;
|
||||
height: 150px;
|
||||
padding: 12px 20px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--main);
|
||||
background-color: var(--font);
|
||||
color: var(--bg);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
.email {
|
||||
width: 50%;
|
||||
margin: 1rem auto;
|
||||
padding: 12px 20px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--main);
|
||||
background-color: var(--font);
|
||||
color: var(--bg);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
input[type=submit] {
|
||||
background-color: var(--main-darker);
|
||||
border-radius: 4px;
|
||||
border: 0px;
|
||||
color: var(--font);
|
||||
padding: 16px 32px;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
input:hover[type=submit] {
|
||||
background-color: var(--main-darkest);
|
||||
}
|
||||
.infomsg {
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
border-radius: 4px;
|
||||
border: 2px;
|
||||
border-color: var(--main);
|
||||
background-color: var(--bg); /*shold be bg-darker but hidden when empty*/
|
||||
color: var(--main);
|
||||
font-family: var(--main-font);
|
||||
resize: none;
|
||||
}
|
||||
#infomsg p:empty {
|
||||
display: none;
|
||||
}
|
||||
#infomsg p {
|
||||
padding: 12px 24px;
|
||||
}
|
Loading…
Reference in a new issue