Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 50d3c461166c99bb1c9bc133cb1e36ebbe3203b9 @AlexBaranosky AlexBaranosky committed Nov 4, 2011
@@ -0,0 +1,7 @@
+pom.xml
+*jar
+/lib/
+/classes/
+.lein-deps-sum
+.idea
+*.iml
@@ -0,0 +1,17 @@
+# baznex-website
+
+A website written in noir.
+
+## Usage
+
+```bash
+lein deps
+lein run
+```
+
+## License
+
+Copyright (C) 2011 FIXME
+
+Distributed under the Eclipse Public License, the same as Clojure.
+
@@ -0,0 +1,6 @@
+(defproject baznex-website "0.1.0-SNAPSHOT"
+ :description "Website for self-directed community software organization BAZNEX"
+ :dependencies [[org.clojure/clojure "1.3.0"]
+ [noir "1.2.0"]]
+ :main baznex-website.server)
+
@@ -0,0 +1,57 @@
+html {
+ margin:0;
+ padding:0;
+ border:0;
+}
+
+body, div, span, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, code,
+del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, dialog, figure, footer, header,
+hgroup, nav, section {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+article, aside, dialog, figure, footer, header,
+hgroup, nav, section {
+ display:block;
+}
+
+body {
+ line-height: 1.5;
+ background: white;
+}
+
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+}
+
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+ float:none !important;
+}
+table, th, td {
+ vertical-align: middle;
+}
+
+blockquote:before, blockquote:after, q:before, q:after { content: ''; }
+blockquote, q { quotes: "" ""; }
+
+a img { border: none; }
+
+/*:focus { outline: 0; }*/
+
+
+
@@ -0,0 +1,11 @@
+(ns baznex-website.server
+ (:require [noir.server :as server]))
+
+(server/load-views "src/baznex_website/views/")
+
+(defn -main [& m]
+ (let [mode (keyword (or (first m) :dev))
+ port (Integer. (get (System/getenv) "PORT" "8080"))]
+ (server/start port {:mode mode
+ :ns 'baznex-website})))
+
@@ -0,0 +1,9 @@
+(ns baznex-website.views.common
+ (:use noir.core
+ hiccup.core
+ hiccup.page-helpers))
+
+(defpartial layout [& content]
+ (html5
+ [:head [:title "baznex-website"] (include-css "/css/reset.css")]
+ [:body [:div#wrapper content]]))
@@ -0,0 +1,10 @@
+(ns baznex-website.views.welcome
+ (:use [baznex-website.views.common :only (layout)]
+ [noir.core :only [defpage]]
+ hiccup.core
+ hiccup.page-helpers))
+
+(defpage "/welcome" []
+ (layout
+ [:h1 "B.A.Z.N.E.X."]
+ [:h2 "Boston Autonomous Zone Nerd Nexus"]))

0 comments on commit 50d3c46

Please sign in to comment.