Stubs out project info pages.
authorDavid Schoonover <dsc@wikimedia.org>
Thu, 7 Jun 2012 10:20:07 +0000 (03:20 -0700)
committerDavid Schoonover <dsc@wikimedia.org>
Thu, 7 Jun 2012 10:20:07 +0000 (03:20 -0700)
lib/server/server.co
www/about.jade [new file with mode: 0644]
www/contact.jade [new file with mode: 0644]
www/css/layout.styl
www/geo.jade
www/help.jade [new file with mode: 0644]
www/layout.jade
www/project.jade [new file with mode: 0644]

index 8f90ffd..9ee2a1f 100755 (executable)
@@ -195,6 +195,13 @@ app.get '/:type/:action/?', (req, res, next) ->
     else
         next()
 
+app.get '/:type/?', (req, res, next) ->
+    {type} = req.params
+    if exists "#WWW/#type.jade"
+        res.render "#type"
+    else
+        next()
+
 /**
  * Handle webhook notification to pull from origin.
  */
diff --git a/www/about.jade b/www/about.jade
new file mode 100644 (file)
index 0000000..d3645d1
--- /dev/null
@@ -0,0 +1,13 @@
+extends layout
+
+block title
+    title About Us | Wikimedia Reportcard
+
+block content
+    section.about.centered
+        .page-header
+            h1 About Us 
+                small (the Wikimedia Analytics Team)
+        
+        p hallo!
+        
diff --git a/www/contact.jade b/www/contact.jade
new file mode 100644 (file)
index 0000000..6a64d99
--- /dev/null
@@ -0,0 +1,13 @@
+extends layout
+
+block title
+    title Contact | Wikimedia Reportcard
+
+block content
+    section.contact.centered
+        .page-header
+            h1 Contact Us 
+                small (the Wikimedia Analytics Team)
+        
+        p hallo!
+        
index 1892e48..742deb5 100644 (file)
@@ -69,12 +69,16 @@ header, footer, #content
         z-index 12
         position relative
         margin 0 auto
-        // max-width 960px
         
         &.fluid-inner
             width 80%
             min-width 960px
             max-width none
+        
+        .centered
+            margin 0 auto
+            max-width 960px
+        
     
     // .spacer offsets #content to pad for header
     .spacer
index bf0c0d2..c7f3d30 100644 (file)
@@ -3,6 +3,12 @@ extends layout
 block title
     title Editors by Location, February 2012 | English Wikipedia
 
+append styles
+    mixin css('geo-display.css')
+
+block main-scripts
+    script(src="/js/kraken/main-geo.js?"+version)
+
 block content
     section.geo
         .page-header
@@ -29,9 +35,3 @@ block content
         .help
             h6 Zoom/Pan using mouse.
 
-append styles
-    mixin css('geo-display.css')
-
-block main-scripts
-    script(src="/js/kraken/main-geo.js?"+version)
-
diff --git a/www/help.jade b/www/help.jade
new file mode 100644 (file)
index 0000000..b3925a6
--- /dev/null
@@ -0,0 +1,13 @@
+extends layout
+
+block title
+    title Help | Wikimedia Reportcard
+
+block content
+    section.limn-project.centered
+        .page-header
+            h1 Help 
+                small (Maybe)
+        
+        p hallo!
+        
index 3b325e8..a2a1d9b 100644 (file)
@@ -20,7 +20,7 @@ html(lang="en", dir="ltr")
             link(type="image/x-icon", rel="shortcut icon", href="/favicon.ico")
             
             block title
-                title GraphKit
+                title Limn
     
     body
         block body
@@ -35,7 +35,7 @@ html(lang="en", dir="ltr")
                         .site-map.col.span4
                             h3
                                 i.hicon-chart-curve.icon-white.icon-sm
-                                a(href="/") GraphKit
+                                a(href="/") Limn
                             ul.site-level
                                 li
                                     i.icon-home.icon-white
@@ -56,7 +56,7 @@ html(lang="en", dir="ltr")
                                     a(href="/project") Project
                                     ul
                                         //- 
-                                            li: a(href="mailto:dsc@wikimedia.org?subject=Reportcard/GraphKit Feedback") Feedback!
+                                            li: a(href="mailto:dsc@wikimedia.org?subject=Reportcard/Limn Feedback") Feedback!
                                             li: a(href="/blog") Blog
                                             li: a(href="/docs/roadmap") Roadmap
                                         li: a(href="https://github.com/wikimedia/graphkit", target="_blank") Source Repository
@@ -71,7 +71,7 @@ html(lang="en", dir="ltr")
                                 i.icon-comment.icon-white
                                 a(href="/project") Get Involved!
                             p
-                                a(href="/project", target="_blank") GraphKit
+                                a(href="/project") Limn
                                 |  is  
                                 a(href="https://github.com/wikimedia/graphkit", target="_blank") open-source software
                                 | , made with love by the 
@@ -79,7 +79,7 @@ html(lang="en", dir="ltr")
                                 | .
                             p
                                 | Find a bug or have a suggestion? 
-                                a(href="mailto:dsc@wikimedia.org?subject=GraphKit Feedback") We'd love to hear from you!
+                                a(href="mailto:dsc@wikimedia.org?subject=Limn Feedback") We'd love to hear from you!
                             
                         .about-wmf.col.span4
                             h3
@@ -129,9 +129,7 @@ html(lang="en", dir="ltr")
                             script(src=src+"?"+version)
                     
                     block page-scripts
-                    
                     block main-scripts
-                        script(src="/js/kraken/main.js?"+version)
             
             block addenda
                 .rilke: blockquote
diff --git a/www/project.jade b/www/project.jade
new file mode 100644 (file)
index 0000000..5ef17d5
--- /dev/null
@@ -0,0 +1,13 @@
+extends layout
+
+block title
+    title Limn: A Graphing Toolkit | Wikimedia Reportcard
+
+block content
+    section.limn-project.centered
+        .page-header
+            h1 Limn 
+                small A Graphing Toolkit
+        
+        p hallo!
+