Style and textual updates. Added a footer. Added two more in-development contrib...
authorHarris Lapiroff <harris@chromamine.com>
Thu, 12 May 2011 19:39:19 +0000 (15:39 -0400)
committerHarris Lapiroff <harris@chromamine.com>
Thu, 12 May 2011 19:39:19 +0000 (15:39 -0400)
index.html
static/css/screen.css
static/scss/screen.scss

index 39bc33c..8f58b10 100644 (file)
                                <h1>Philo</h1>
                        </header><!-- /#nameplate -->
                        
-                       <div id="content">
+                       <article id="content">
+                               
                                <p>Philo is a powerful content-management system built with Django.</p>
                        
-                               <h2 id="features">Features</h2>
-                       
-                               <p>Philo allows the creation of complex site structures from Django&#8217;s web-based admin interface (or any other database-editing interface). For a simple site, you will use the following three objects, included in the Philo core.</p>
+                               <section id="featuresSection">
+                                       <header>
+                                               <h2 id="features">Features</h2>
+                                       </header>
                        
-                               <ul id="modelList">
-                                       <li><span class="name">Nodes</span> are the basic building blocks of a website using Philo. They define the URL hierarchy and connect each URL to a View subclass instance which is used to generate an HttpResponse.</li>
-                                       <li><span class="name">Templates</span> are Django templates, stored in the database and editable from the Django admin (or similar).</li>
-                                       <li><span class="name">Pages</span> are a simple view subclass which return a basic HTML page according to a template. They have related, editable Contentlets and Content References based on <code>{% container %}</code> tags used in the template.</li>
-                               </ul>
+                                       <p>Philo allows the creation of complex site structures from Django&#8217;s web-based admin interface (or similar database-editing interface). For a simple site, you will use the following three objects, included in the Philo core.</p>
                        
-                               <p>Philo also provides a number of useful template tags, in particular <code>{% container %}</code>, which generates a relationship (and a field in the admin interface) on any pages which use that template.</p>
+                                       <ul id="modelList">
+                                               <li><span class="name">Nodes</span> are the basic building blocks of a website using Philo. They define the URL hierarchy and connect each URL to a View subclass instance, such as a Page.</li>
+                                               <li><span class="name">Templates</span> are Django templates, stored in the database and editable from the Django admin (or similar).</li>
+                                               <li><span class="name">Pages</span> are a simple view subclass which return a basic HTML page according to a template. They have related, editable Contentlets and Content References based on <code>{% container %}</code> tags used in the template.</li>
+                                       </ul>
                        
-                               <h2>A Simple Example</h2>
-                       
-                               <div class="three-up">
-                                       <figure>
-                                               <img src="static/img/container1.png" />
-                                               <figcaption>Put container tags in your template.</figcaption>
-                                       </figure>
-                                       <figure>
-                                               <img src="static/img/container2.png" />
-                                               <figcaption>Edit the contentlets on the page.</figcaption>
-                                       </figure>
-                                       <figure>
-                                               <img src="static/img/container3.png" />
-                                               <figcaption>See the results on your site!</figcaption>
-                                       </figure>
-                               </div>
+                                       <p>Philo also provides a number of useful template tags, in particular <code>{% container %}</code>, which generates a relationship (and a field in the admin interface) on any pages which use that template.</p>
+                               </section>
+                               
+                               <section id="exampleSection">
+                                       <h2 id="a_simple_example">A Simple Example</h2>
                        
-                               <p>You can use also collections, redirects, files, content references (all included in the Philo core), as well as the Philo contrib apps and your own code to create and manage more powerful, complex websites.</p>
+                                       <div class="three-up">
+                                               <figure>
+                                                       <img src="static/img/container1.png" />
+                                                       <figcaption>Put container tags in your template.</figcaption>
+                                               </figure>
+                                               <figure>
+                                                       <img src="static/img/container2.png" />
+                                                       <figcaption>Edit the contentlets on the page.</figcaption>
+                                               </figure>
+                                               <figure>
+                                                       <img src="static/img/container3.png" />
+                                                       <figcaption>See the results on your site!</figcaption>
+                                               </figure>
+                                       </div>
                        
-                               <h2 id="batteries_included">Batteries Included</h2>
+                                       <p>You can use also collections, redirects, files, content references (all included in the Philo core), as well as the Philo contrib apps and your own code to create and manage more powerful, complex websites.</p>
+                               </section>
+                               
+                               <section id="contribSection">
+                                       <h2 id="batteries_included">Batteries Included</h2>
                        
-                               <p>Following Python and Django&#8217;s <a href="http://docs.python.org/tutorial/stdlib.html#batteries-included">&ldquo;batteries included&rdquo; philosophy</a>, Philo includes a number of optional packages that simplify common website structures. These are stored in philo.contrib and include the following:</p>
+                                       <p>Following Python and Django&#8217;s <a href="http://docs.python.org/tutorial/stdlib.html#batteries-included">&ldquo;batteries included&rdquo; philosophy</a>, Philo includes a number of optional packages that simplify common website structures. These are stored in <code>philo.contrib</code> and include the following:</p>
                        
-                               <ul id="contribList">
-                                       <li>
-                                               <span class="name">Penfield</span>
-                                               <span class="description">Blog and newsletter management.</span>
-                                       </li>
-                                       <li>
-                                               <span class="name">Shipherd</span>
-                                               <span class="description">Powerful site-navigation.</span>
-                                       </li>
-                                       <li>
-                                               <span class="name">Sobol</span>
-                                               <span class="description">Custom search-engines.</span>
-                                       </li>
-                                       <li>
-                                               <span class="name">Waldo</span>
-                                               <span class="description">Custom authentication systems.</span>
-                                       </li>
-                                       <li>
-                                               <span class="status">(in development)</span>
-                                               <span class="name">Gilbert</span>
-                                               <span class="description">Alternative web-based admin.</span>
-                                       </li>
-                                       <li>
-                                               <span class="status">(in development)</span>
-                                               <span class="name">Julian</span>
-                                               <span class="description">Calendar and events system.</span>
-                                       </li>
-                                       <li>
-                                               <span class="status">(planned)</span>
-                                               <span class="description">Forums.</span>
-                                       </li>
-                                       <li>
-                                               <span class="status">(planned)</span>
-                                               <span class="description">Wikis.</span>
-                                       </li>
-                               </ul>
+                                       <ul id="contribList">
+                                               <li>
+                                                       <span class="name">Penfield</span>
+                                                       <span class="description">Blog and newsletter management.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="name">Shipherd</span>
+                                                       <span class="description">Powerful site navigation.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="name">Sobol</span>
+                                                       <span class="description">Custom web and database searches.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="name">Waldo</span>
+                                                       <span class="description">Custom authentication systems.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(in development)</span>
+                                                       <span class="name">Gilbert</span>
+                                                       <span class="description">Alternative web-based admin.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(in development)</span>
+                                                       <span class="name">Julian</span>
+                                                       <span class="description">Calendar and events system.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(in development)</span>
+                                                       <span class="name">Edmonia</span>
+                                                       <span class="description">Asset management.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(in development)</span>
+                                                       <span class="name">Bartleby</span>
+                                                       <span class="description">Form generation and handling.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(planned)</span>
+                                                       <span class="description">Forums.</span>
+                                               </li>
+                                               <li>
+                                                       <span class="status">(planned)</span>
+                                                       <span class="description">Wikis.</span>
+                                               </li>
+                                       </ul>
+                               </section>
+                               
+                               <section class="installSection">
+                                       <h2>Install Philo</h2>
+                                       <div class="codeblock shell">
+                                               <code>git clone https://github.com/ithinksw/philo.git</code>
+                                               <code>python philo/setup.py</code>
+                                               <code>rm -rf philo</code>
+                                       </div>
+                               </section>
                                
-                       </div><!-- /#content -->
+                       </article><!-- /#content -->
+                       
+                       <footer>
+                               <p>Philo is developed by iThinkSW. Read the <a href="https://github.com/ithinksw/philo/blob/master/LICENSE">license</a>.</p>
+                       </footer>
                        
                </div>
        </body>
index 606b774..a1fc8a5 100644 (file)
@@ -1,7 +1,7 @@
 @import "http://fonts.googleapis.com/css?family=Expletus+Sans";
 html, body, div, span, applet, object, iframe,
 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
+a, abbr, acronym, address, big, cite, code, #content .codeblock,
 del, dfn, em, img, ins, kbd, q, s, samp,
 small, strike, strong, sub, sup, tt, var,
 b, u, i, center,
@@ -67,6 +67,11 @@ body {
 html > body {
   font-size: 16px; }
 
+::selection {
+  background: #ff6ae6;
+  text-shadow: none !important;
+  color: #FFF !important; }
+
 body {
   background: #e0e5ef;
   color: #333333;
@@ -113,7 +118,7 @@ body {
 #content h2 {
   font-size: 1.25em;
   line-height: 1.25em; }
-#content code {
+#content code, #content .codeblock {
   background: #bec9de;
   padding: 3px;
   margin: -4px 0;
@@ -131,6 +136,27 @@ body {
   font-family: Menlo, monospace;
   font-size: 0.813em;
   line-height: 1.923em; }
+#content .codeblock {
+  padding: 10px;
+  display: block; }
+  #content .codeblock code, #content .codeblock .codeblock {
+    margin: 0;
+    padding: 0;
+    -moz-box-shadow: none;
+    -webkit-box-shadow: none;
+    -o-box-shadow: none;
+    box-shadow: none;
+    -moz-border-radius: 0;
+    -webkit-border-radius: 0;
+    -o-border-radius: 0;
+    -ms-border-radius: 0;
+    -khtml-border-radius: 0;
+    border-radius: 0;
+    border: none;
+    display: block; }
+  #content .codeblock.shell code::before, #content .codeblock.shell .codeblock::before {
+    content: "$ ";
+    color: #4d4d4d; }
 
 .three-up {
   background: #333333;
@@ -257,3 +283,20 @@ body {
     font-size: 0.813em;
     line-height: 1.923em;
     float: right; }
+
+footer {
+  margin-top: 25px;
+  padding-top: 20px;
+  border-top: 5px solid #333333;
+  -moz-box-shadow: 0 1px 0 0 white inset;
+  -webkit-box-shadow: 0 1px 0 0 white inset;
+  -o-box-shadow: 0 1px 0 0 white inset;
+  box-shadow: 0 1px 0 0 white inset;
+  font-size: 0.813em;
+  line-height: 1.923em;
+  color: #666666; }
+  footer a {
+    text-decoration: none;
+    color: #5974aa; }
+    footer a:hover {
+      color: #131924; }
index ab4b7bf..ff293f2 100644 (file)
@@ -9,7 +9,13 @@
                "compass/utilities/general/clearfix";
                
 @include establish-baseline;
-               
+
+::selection{
+       background: darken(saturate(adjust-hue($page-background, 90deg), 100%), 20%);
+       text-shadow: none !important;
+       color:#FFF !important;
+}
+
 body{
        background:$page-background;
        @include body-text;
@@ -63,6 +69,23 @@ body{
                font-family:Menlo, monospace;
                @include adjust-font-size-to(13px);
        }
+       .codeblock{
+               @extend code;
+               padding: 10px;
+               display:block;
+               code{
+                       margin:0;
+                       padding:0;
+                       @include box-shadow(none);
+                       @include border-radius(0);
+                       border:none;
+                       display:block;
+               }
+               &.shell code::before{
+                       content: "$ ";
+                       color:lighten($foreground, 10%);
+               }
+       }
 }
 
 .three-up{
@@ -169,4 +192,20 @@ body{
                @include adjust-font-size-to(13px);
                float:right;
        }
+}
+
+footer{
+       margin-top: 25px;
+       padding-top: 20px;
+       border-top:5px solid $foreground;
+       @include box-shadow(0 1px 0 0 #FFF inset);
+       @include adjust-font-size-to(13px);
+       color:lighten($foreground, 20%);
+       a{
+               text-decoration:none;
+               color:darken($page-background, 40%);
+               &:hover{
+                       color:darken($page-background, 80%);
+               }
+       }
 }
\ No newline at end of file