4 changed files with 16 additions and 11 deletions
@ -1,6 +1,7 @@ |
|||||||
(defproject NoteHub "0.1.0-SNAPSHOT" |
(defproject NoteHub "0.1.0-SNAPSHOT" |
||||||
:description "A free and anonymous hosting for markdown pages." |
:description "A free and anonymous hosting for markdown pages." |
||||||
:dependencies [[org.clojure/clojure "1.3.0"] |
:dependencies [[org.clojure/clojure "1.4.0"] |
||||||
|
[cssgen "0.2.6"] |
||||||
[noir "1.2.1"]] |
[noir "1.2.1"]] |
||||||
:main NoteHub.server) |
:main NoteHub.server) |
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,16 @@ |
|||||||
(ns NoteHub.views.common |
(ns NoteHub.views.common |
||||||
(:use [noir.core :only [defpartial]] |
(:use [noir.core :only [defpartial]] |
||||||
[hiccup.page-helpers :only [include-css html5]])) |
[hiccup.page-helpers :only [include-css html5]])) |
||||||
|
(use 'cssgen) |
||||||
|
|
||||||
(defpartial layout [& content] |
(defpartial layout [& content] |
||||||
(html5 |
(html5 |
||||||
[:head |
[:head |
||||||
[:title "NoteHub"] |
[:title "NoteHub"] |
||||||
(include-css "/css/reset.css")] |
[:style {:type "text/css"} |
||||||
|
(css (rule "h1" :font-family "Impact"))] |
||||||
|
] |
||||||
[:body |
[:body |
||||||
|
; TODO: replace wrapper with smth |
||||||
[:div#wrapper |
[:div#wrapper |
||||||
content]])) |
content]])) |
||||||
|
|||||||
@ -0,0 +1,9 @@ |
|||||||
|
(ns NoteHub.views.pages |
||||||
|
(:require [NoteHub.views.common :as common]) |
||||||
|
(:use [noir.core :only [defpage]] |
||||||
|
[hiccup.core :only [html]])) |
||||||
|
|
||||||
|
(defpage "/" [] |
||||||
|
(common/layout |
||||||
|
[:h1 "Welcome to NoteHub"])) |
||||||
|
|
||||||
Loading…
Reference in new issue