Added basic site skin

This commit is contained in:
Latif Khalifa
2012-02-10 22:34:40 +01:00
parent 869f1f3850
commit 77ffe182aa
7 changed files with 119 additions and 1 deletions

55
buildsite.css Normal file
View File

@@ -0,0 +1,55 @@
html {
padding: 0;
margin: 0;
background-color: #1e1e1e;
}
body {
padding: 0;
margin: 0;
background-color: #1e1e1e;
font: normal 10pt "Lucida Grande","Lucida Sans Unicode",sans-serif;
color: #a0a0a0;
}
div {
display: block;
padding: 0;
margin: 0;
}
#everything {
background: url(images/body-bg.png) top repeat-x;
min-height: 100%;
}
#page-wrapper {
margin: 0 auto;
width: 960px;
}
#header {
margin-bottom: 10px;
width: 100%;
height: 144px;
background: url(images/singularity_logo.gif) left top no-repeat;
border-bottom: solid 2px black;
}
.container {
padding: 5px;
margin-bottom: 10px;
background: url(images/container-bg.gif) top repeat-x;
border-bottom: solid 2px black;
background-color: #1b1b1b;
}
a, a:link, a:hover, a:visited, a:active {
text-decoration: none;
color: #e0e0e0;
}
.bottom-links {
text-align: center;
}

BIN
images/body-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

BIN
images/container-bg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

BIN
images/singularity_logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

46
lib/Layout.php Normal file
View File

@@ -0,0 +1,46 @@
<?php
class Layout
{
function header()
{ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php print URL_ROOT ?>/buildsite.css"/>
<title>Singularity Viewer Automated Build System</title>
</head>
<body>
<div id="everything">
<div id="page-wrapper">
<div id="header"></div>
<div class="container"><p style="font-size: 20px;">Automated Build System</p>
<?php
}
function footer()
{
{ ?>
</div><!-- container -->
<div class="container">
<table style="width: 100%; border: none; padding: 0;"><tr>
<td class="bottom-links"><a href="http://www.singularityviewer.org/">Sigularity Main Site</a></td>
<td class="bottom-links"><a href="http://www.singularityviewer.org/about">About</a></td>
<td class="bottom-links"><a href="http://code.google.com/p/singularity-viewer/issues/">Issue Tracker</a></td>
<td class="bottom-links"><a href="https://github.com/siana/SingularityViewer">Source Tracker</a></td>
<td width="50%" align="right">&copy; 2012 Singularity Viewer Project</td>
</tr></table>
</div>
</div><!-- everything -->
</div><!-- page-wrapper -->
</body>
</html>
<?php
}
}
}

View File

@@ -19,7 +19,7 @@ function __autoload($class)
* Example: http://www.example.com/applications/app1/
*/
define('REL_DIR', '');
define('REL_DIR', 'singularity');
if (!defined('URL_ROOT')) {
$init_port = "";

17
pretty.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
define("SITE_ROOT", realpath(dirname(__file__)));
require_once SITE_ROOT . "/lib/init.php";
Layout::header();
Layout::footer();
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/