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.

21 lines
663 B

14 years ago
(ns NoteHub.views.pages
(:require [NoteHub.views.common :as common])
(:use [noir.core :only [defpage]]
[hiccup.form]))
14 years ago
(defpage "/" []
(common/layout "Free Markdown Hosting"
14 years ago
[:div#hero
[:h1 "NoteHub"]
[:h2.helvetica-neue "Free hosting for markdown pages."]
[:br]
[:br]
[:a.button.helvetica-neue {:href "/new"} "New Page"]]))
(defpage "/new" []
(common/layout "New Markdown Note"
[:div.central-body.max-width
(text-area {:class "max-width"} :write-textarea)
(submit-button {:class "helvetica-neue form-button"} "Publish")]))
14 years ago