-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved logon HTML to a template - Created a separate CSS file for logon - Added two default background images - Made first scaffolding to display the background images Issue #72
- Loading branch information
Showing
9 changed files
with
189 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
/** | ||
* This file is part of Zoph. | ||
* | ||
* Zoph is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Zoph is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Zoph; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
* | ||
* @author Jeroen Roos | ||
* @package ZophTemplates | ||
* | ||
*/ | ||
?> | ||
|
||
body { | ||
font-family: Verdana, Arial, Sans-serif; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 10px; | ||
} | ||
|
||
img.background { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
body > h1 { | ||
position: absolute; | ||
left: 15px; | ||
top: 0px; | ||
font-size: 6em; | ||
text-align: left; | ||
color: rgba(0,0,0,0.3); | ||
margin: 0; | ||
} | ||
|
||
div.logon { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
bottom: 0; | ||
right: 0; | ||
margin: auto; | ||
background: white; | ||
width: 300px; | ||
height: 220px; | ||
border-radius: 15px; | ||
opacity: 0.95; | ||
box-shadow: 5px 5px 5px 5px rgba(0,0,0,0.5); | ||
background: linear-gradient(to bottom, #1e5799 0%,#7db9e8 100%); | ||
} | ||
|
||
div.logon h1 { | ||
background: #1e5799; | ||
color: white; | ||
border-radius: 15px 15px 0 0; | ||
padding: 10px; | ||
margin: 0; | ||
text-align: center; | ||
font-size: 1.5em; | ||
font-weight: bold; | ||
} | ||
|
||
div.logon label { | ||
color: rgba(0,0,0,0.8); | ||
display: block; | ||
clear: both; | ||
font-size: 1.5em; | ||
margin: 5px 20px 0 20px; | ||
} | ||
|
||
div.logon input { | ||
opacity: 0.6; | ||
display: block; | ||
clear: both; | ||
} | ||
|
||
div.logon input[type=text], | ||
div.logon input[type=password] { | ||
width: 256px; | ||
height: 35px; | ||
padding: 8px; | ||
margin: 0 20px 5px 20px; | ||
border: 1px solid rgba(0,0,0,0.5); | ||
border-radius: 5px; | ||
background: rgba(0,0,0,0.1); | ||
|
||
} | ||
|
||
div.logon input[type=submit] { | ||
position: absolute; | ||
border: none; | ||
width: 300px; | ||
padding: 10px; | ||
margin: auto 0 0 0; | ||
background: #1e5799; | ||
color: white; | ||
font-size: 1.5em; | ||
font-weight: bold; | ||
top: auto; | ||
bottom: 0; | ||
height: 35px; | ||
border-radius: 0 0 15px 15px; | ||
} | ||
|
||
div.logon input[type=submit]:hover { | ||
background: #7db9e8; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Template for logon screen | ||
* | ||
* Zoph is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Zoph is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Zoph; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
* | ||
* @author Jeroen Roos | ||
* @package ZophTemplates | ||
*/ | ||
if (!ZOPH) { | ||
die("Illegal call"); | ||
} | ||
?> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<link TYPE="text/css" REL="stylesheet" HREF="css.php?logged_on=no"> | ||
<title><?= $tpl_title . ' - ' . translate("logon",0) ?></title> | ||
</head> | ||
<body> | ||
<img class="background" srcset="image.php?type=background 2x, image.php?type=background 1x"> | ||
<h1><?= $tpl_title ?></h1> | ||
<div class="logon"> | ||
<h1><?= translate("logon",0)?></h1> | ||
<form action="zoph.php" method="POST"> | ||
<label for="uname"><?= translate("username",0) ?></label> | ||
<input type="text" name="uname" id="uname"><br> | ||
<label for="pword"><?= translate("password",0) ?></label> | ||
<input type="password" name="pword" id="pword"><br> | ||
<input type="hidden" name="redirect" value="<?= $tpl_redirect ?>"> | ||
<input type="submit" value="<?= translate("submit",0); ?>"> | ||
</form> | ||
</div> | ||
</body> | ||
</html> | ||
|