diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/css/style.css | 59 | ||||
-rw-r--r-- | public/w/index.php | 45 |
2 files changed, 75 insertions, 29 deletions
diff --git a/public/css/style.css b/public/css/style.css index 245258c..54326c9 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,10 +1,14 @@ body { - background-color: #dcdcdceb; - + background-color: #dcdcdceb; + font-family: helvetica, arial, sans-serif; + margin: 0px; } h1 { font-size: 3em; + font-variant: all-small-caps; + margin-top: 0px; + margin-bottom: 0px; } h2 { @@ -16,7 +20,15 @@ h3 { } p{ - font-size: 1.1em; + font-size: 1em; +} + +article { + text-align: justify; + padding: 3%; +} + +article p{ } article input, textarea, select { @@ -47,13 +59,13 @@ aside { right: -300px; padding: 7px; z-index: 5; - background: coral; + background: #6c7d8a; opacity: 0.3; width: 350px; } aside:hover { - opacity: 0.9; + opacity: 1; right: 0px; } @@ -63,17 +75,46 @@ nav { right: -50px; padding: 7px; z-index: 10; - background: #5085ff; + background: #6c7d8a; opacity: 0.3; - width:100px; + width:100px; + border-width: 4px; + border-style: outset; } nav:hover { - opacity: 0.9; - right: 0px; + opacity: 1; + right: -5px; } .alert h4 { background-color: red; margin: 0px; +} + +nav a { + color: black; + padding: 1px 4px; + font-size: 13px; + background-color: #bfbfbf; + /* text-rendering: auto; */ + /* color: initial; */ + /* letter-spacing: normal; */ + /* word-spacing: normal; */ + /* text-transform: none; */ + text-indent: 0px; + text-decoration: none; + /* text-shadow: none; */ + /* display: inline-block; */ + /* -webkit-appearance: push-button; */ + align-items: flex-start; + text-align: center; + cursor: default; + /* color: buttontext; */ + /* background-color: buttonface; */ + box-sizing: border-box; + /* padding: 2px 6px 3px; */ + border-width: 2px; + border-color: lightgrey; + border-style: outset; }
\ No newline at end of file diff --git a/public/w/index.php b/public/w/index.php index 2dd33c0..f12e7f4 100644 --- a/public/w/index.php +++ b/public/w/index.php @@ -8,14 +8,19 @@ $config = require('../../config.php'); require('../../vendor/autoload.php'); use Michelf\Markdown; +use Michelf\MarkdownExtra; + require('../../fn/fn.php'); require('../../class/class.art.php'); require('../../class/class.app.php'); require('../../class/class.aff.php'); session(); -$level = 0; -$level = $_SESSION['level']; +if (!isset($_SESSION['level'])) { + $level = 0; +} else { + $level = $_SESSION['level']; +} $app = new App($config); $aff = new Aff($level); @@ -24,26 +29,26 @@ $aff = new Aff($level); if (isset($_POST['action'])) { switch ($_POST['action']) { - + case 'update': - if ($app->exist($_GET['id'])) { - $art = new Art($_POST); - $app->update($art); - header('Location: ?id=' . $art->id() . '&edit=1'); - } - break; - - case 'login' : - $_SESSION['level'] = $app->login($_POST['pass']); - header('Location: ?id=' . $_GET['id']); - break; - - case 'logout' : - $_SESSION['level'] = $app->logout(); - header('Location: ?id=' . $_GET['id']); - break; + if ($app->exist($_GET['id'])) { + $art = new Art($_POST); + $app->update($art); + header('Location: ?id=' . $art->id() . '&edit=1'); + } + break; + + case 'login': + $_SESSION['level'] = $app->login($_POST['pass']); + header('Location: ?id=' . $_GET['id']); + break; + + case 'logout': + $_SESSION['level'] = $app->logout(); + header('Location: ?id=' . $_GET['id']); + break; } - + } |