aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-21 18:47:57 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-21 18:47:57 +0200
commitfb57be5a5af3a2fb46b2dbf2b503ffe78eb5cf49 (patch)
tree9440fc7846d8a56a7005b9ef029669c96ad959aa /public
First commit
Diffstat (limited to 'public')
-rw-r--r--public/.htaccess6
-rwxr-xr-xpublic/index.php38
-rw-r--r--public/theme/base.css295
3 files changed, 339 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess
new file mode 100644
index 000000000..7a9766d5e
--- /dev/null
+++ b/public/.htaccess
@@ -0,0 +1,6 @@
+RewriteEngine On
+RewriteCond %{REQUEST_FILENAME} -s [OR]
+RewriteCond %{REQUEST_FILENAME} -l [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^.*$ - [NC,L]
+RewriteRule ^.*$ index.php [NC,L]
diff --git a/public/index.php b/public/index.php
new file mode 100755
index 000000000..8d7dc4ae4
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,38 @@
+<?php
+# ***** BEGIN LICENSE BLOCK *****
+# MINZ - A free PHP framework
+# Copyright (C) 2011 Marien Fressinaud
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program 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 Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# ***** END LICENSE BLOCK *****
+
+// Constantes de chemins
+define ('PUBLIC_PATH', realpath (dirname(__FILE__)));
+define ('LIB_PATH', realpath (PUBLIC_PATH.'/../lib'));
+define ('APP_PATH', realpath (PUBLIC_PATH.'/../app'));
+define ('LOG_PATH', realpath (PUBLIC_PATH.'/../log'));
+define ('CACHE_PATH', realpath (PUBLIC_PATH.'/../cache'));
+
+set_include_path (get_include_path ()
+ . PATH_SEPARATOR
+ . LIB_PATH
+ . PATH_SEPARATOR
+ . APP_PATH);
+
+require_once(APP_PATH.'/App_FrontController.php');
+
+$front_controller = new App_FrontController ();
+$front_controller->init ();
+$front_controller->run ();
diff --git a/public/theme/base.css b/public/theme/base.css
new file mode 100644
index 000000000..f5cf72d60
--- /dev/null
+++ b/public/theme/base.css
@@ -0,0 +1,295 @@
+* {
+ margin: 0;
+ padding: 0;
+}
+html, body {
+ height: 100%;
+}
+
+/* LIENS */
+a {
+ color: #0062BE;
+ text-decoration: none;
+}
+ a:hover {
+ text-decoration: underline;
+ }
+ a.add, a.update, a.delete, a.back {
+ height: 30px;
+ padding: 0 20px;
+ line-height: 30px;
+ }
+ a.add {
+ background: url("img/add.png") no-repeat left 3px;
+ }
+ a.update {
+ background: url("img/update.png") no-repeat left 3px;
+ }
+ a.delete {
+ background: url("img/delete.png") no-repeat left 3px;
+ }
+ a.back {
+ background: url("img/back.png") no-repeat left 5px;
+ }
+
+/* LISTES */
+ul {
+ margin: 10px 0 10px 30px;
+ line-height: 190%;
+}
+
+/* TITRES */
+h1, h2, h3 {
+ min-height: 50px;
+ padding: 10px 0 20px;
+ line-height: 50px;
+}
+
+/* IMG */
+img {
+ max-width: 100%;
+ vertical-align: middle;
+}
+
+/* FORMULAIRES */
+form {
+ width: 450px;
+ max-width: 100%;
+ margin: 20px auto;
+ padding: 20px;
+ background: #f0f0f0;
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ box-shadow: 0 1px 3px #aaa;
+}
+ label {
+ display: block;
+ padding: 0 20px 0 0;
+ font-weight: bold;
+ }
+ input:focus, textarea:focus {
+ color: #3366cc !important;
+ border: 1px solid #3366cc !important;
+ }
+ input[type="text"], input[type="url"], input[type="number"], textarea {
+ display: block;
+ width: 430px;
+ max-width: 95%;
+ margin: 5px 0 5px;
+ padding: 5px 10px;
+ background: #fff;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ font-size: 90%;
+ }
+ textarea {
+ min-height: 100px;
+ font-size: 110%;
+ line-height: 150%;
+ font-family: Monospace;
+ }
+ input[type="submit"] {
+ width: 100%;
+ margin: 5px 0 5px;
+ padding: 5px 0;
+ }
+ .radio_group label {
+ display: inline-block;
+ padding: 0 0 0 5px;
+ font-weight: normal;
+ }
+
+/* STRUCTURE */
+#global {
+ display: table;
+ width: 100%;
+ height: 100%;
+}
+ .aside {
+ display: table-cell;
+ height: 100%;
+ width: 250px;
+ vertical-align: top;
+ border-right: 1px solid #aaa;
+ }
+ .aside ul {
+ margin: 0;
+ list-style: none;
+ }
+ .aside li {
+ height: 50px;
+ line-height: 50px;
+ }
+ .aside li.active a {
+ background: #0062BE !important;
+ color: #fff;
+ }
+ .aside li a {
+ display: block;
+ padding: 0 10px;
+ }
+ .aside li a:hover {
+ text-decoration: none;
+ background: #fafafa;
+ }
+ .aside li h2 {
+ height: 50px;
+ padding: 0;
+ text-align: center;
+ background: #eee;
+ line-height: 50px;
+ }
+ .aside form {
+ display: table;
+ width: 250px;
+ margin: 0;
+ padding: 0;
+ background: #f0f0f0;
+ border: none;
+ border-bottom: 1px solid #aaa;
+ border-radius: 0;
+ box-shadow: none;
+ }
+ .aside form input {
+ display: table-cell;
+ height: 48px;
+ line-height: 48px;
+ }
+ .aside form input[type="url"] {
+ width: 200px;
+ margin: 0;
+ padding: 0;
+ border: none !important;
+ border-radius: 0;
+ }
+ .aside form input[type="submit"] {
+ width: 50px;
+ margin: 0;
+ padding: 0;
+ border: none;
+ border-radius: 0;
+ }
+ #main {
+ display: table-cell;
+ height: 100%;
+ max-width: 800px;
+ line-height: 180%;
+ background: #fafafa;
+ }
+ #top {
+ width: 100%;
+ background: #eee;
+ border-bottom: 1px solid #aaa;
+ box-shadow: 0 1px 3px #aaa;
+ text-align: center;
+ }
+ #top a {
+ display: inline-block;
+ height: 50px;
+ width: 50%;
+ line-height: 50px;
+ font-weight: bold;
+ }
+ #top a:hover {
+ background: #fafafa;
+ text-decoration: none;
+ }
+ #stream {
+ padding: 20px 0;
+ }
+
+.post {
+ width: 80%;
+ margin: 0 auto;
+}
+ .post.flux {
+ margin: 40px auto;
+ padding: 25px 20px;
+ font-family: Palatino, "Times New Roman", serif;
+ line-height: 170%;
+ border-left: 5px solid #aaa;
+ background: #eee;
+ border-radius: 5px;
+ box-shadow: 0 1px 3px #aaa;
+ }
+ .post.flux .before {
+ color: #666;
+ font-size: 80%;
+ text-align: center;
+ }
+ .post.flux .after {
+ margin: 50px 0 0;
+ font-size: 80%;
+ text-align: center;
+ border-top: 1px solid #aaa;
+ }
+ .post.flux .after a {
+ display: inline-block;
+ height: 50px;
+ line-height: 50px;
+ width: 50%;
+ }
+ .post.flux .after a:hover {
+ background: #fff;
+ text-decoration: none;
+ border-radius: 0 0 5px 5px;
+ box-shadow: 0 1px 3px #aaa;
+ }
+ /* temporaire !!! */
+ .post.flux .content {
+ /*display: none;*/
+ }
+ .post.flux .content img {
+ border-radius: 5px;
+ }
+ .post.flux .content pre {
+ width: 90%;
+ margin: 10px auto;
+ padding: 10px;
+ overflow: auto;
+ background: #666;
+ border: 1px solid #000;
+ color: #fafafa;
+ border-radius: 5px;
+ }
+ .post.flux .content q {
+ display: block;
+ width: 90%;
+ margin: 10px auto;
+ padding: 10px;
+ font-style: italic;
+ border-left: 15px solid #ccc;
+ color: #669;
+ border-radius: 5px 0 0 5px;
+ }
+ .post.flux.not_read {
+ border-left: 5px solid #FF5300;
+ background: #FFF3ED;
+ }
+ .post.flux.favorite {
+ border-left: 5px solid #FFC300;
+ background: #FFF6DA;
+ }
+
+/*** PAGINATION ***/
+.pagination {
+ margin: 20px 0;
+ list-style: none;
+ text-align: center;
+ font-size: 100%;
+ }
+ .pagination li {
+ display: inline-block;
+ width: 30px;
+ height: 30px;
+ }
+ .pagination li.pager-next, .pagination li.pager-previous, .pagination li.pager-first, .pagination li.pager-last {
+ width: 100px;
+ }
+ .pagination li.pager-current {
+ font-weight: bold;
+ }
+ .pagination li a {
+ display: block;
+ color: #F09600;
+ }