4 changed files with 16 additions and 11 deletions
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
||||
(defproject NoteHub "0.1.0-SNAPSHOT" |
||||
: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"]] |
||||
:main NoteHub.server) |
||||
|
||||
|
||||
@ -1,12 +1,16 @@
@@ -1,12 +1,16 @@
|
||||
(ns NoteHub.views.common |
||||
(:use [noir.core :only [defpartial]] |
||||
[hiccup.page-helpers :only [include-css html5]])) |
||||
(use 'cssgen) |
||||
|
||||
(defpartial layout [& content] |
||||
(html5 |
||||
[:head |
||||
[:title "NoteHub"] |
||||
(include-css "/css/reset.css")] |
||||
[:style {:type "text/css"} |
||||
(css (rule "h1" :font-family "Impact"))] |
||||
] |
||||
[:body |
||||
; TODO: replace wrapper with smth |
||||
[:div#wrapper |
||||
content]])) |
||||
|
||||
@ -0,0 +1,9 @@
@@ -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"])) |
||||
|
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
(ns NoteHub.views.welcome |
||||
(:require [NoteHub.views.common :as common] |
||||
[noir.content.getting-started]) |
||||
(:use [noir.core :only [defpage]] |
||||
[hiccup.core :only [html]])) |
||||
|
||||
(defpage "/welcome" [] |
||||
(common/layout |
||||
[:p "Welcome to NoteHub"])) |
||||
Loading…
Reference in new issue