A pastebin for markdown pages.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
(ns NoteHub.views.pages
|
|
|
|
|
(:require [NoteHub.views.common :as common])
|
|
|
|
|
(:use [noir.core :only [defpage]]
|
|
|
|
|
[hiccup.core :only [html]]
|
|
|
|
|
[hiccup.form]))
|
|
|
|
|
|
|
|
|
|
(defpage "/" []
|
|
|
|
|
(common/layout
|
|
|
|
|
[:div#hero
|
|
|
|
|
[:h1 "NoteHub"]
|
|
|
|
|
[:h2.helvetica-neue "Free hosting for markdown pages."]
|
|
|
|
|
[:button.helvetica-neue {:onclick "window.location='/new'"} "New Page"]]))
|
|
|
|
|
|
|
|
|
|
(defpage "/new" []
|
|
|
|
|
(common/layout
|
|
|
|
|
[:div.central-body.max-width
|
|
|
|
|
(text-area {:class "central-body max-width"} :write-textarea)]))
|
|
|
|
|
|