gencss lib added
This commit is contained in:
@@ -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 @@
|
||||
(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 @@
|
||||
(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"]))
|
||||
Reference in New Issue
Block a user