2 changed files with 56 additions and 40 deletions
@ -1,16 +1,18 @@ |
|||||||
(ns NoteHub.views.pages |
(ns NoteHub.views.pages |
||||||
(:require [NoteHub.views.common :as common]) |
(:require [NoteHub.views.common :as common]) |
||||||
(:use [noir.core :only [defpage]] |
(:use [noir.core :only [defpage]] |
||||||
[hiccup.core :only [html]])) |
[hiccup.core :only [html]] |
||||||
|
[hiccup.form])) |
||||||
|
|
||||||
(defpage "/" [] |
(defpage "/" [] |
||||||
(common/layout |
(common/layout |
||||||
[:div#hero |
[:div#hero |
||||||
[:h1 "NoteHub"] |
[:h1 "NoteHub"] |
||||||
[:h2.helvetica-neue "Free hosting for markdown pages."] |
[:h2.helvetica-neue "Free hosting for markdown pages."] |
||||||
[:button.helvetica-neue "Create Page"]] |
[:button.helvetica-neue {:onclick "window.location='/new'"} "New Page"]])) |
||||||
[:div#body |
|
||||||
[:p.centerized.helvetica-neue |
(defpage "/new" [] |
||||||
(interpose (repeat 10 " ") |
(common/layout |
||||||
["About" "How to use" "Impressum"])]])) |
[:div.central-body.max-width |
||||||
|
(text-area {:class "central-body max-width"} :article-write)])) |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue