Browse Source

front page minified

master
Christian Mueller 12 years ago
parent
commit
bccac0acbc
  1. 19
      LANDING.md
  2. 7
      messages
  3. 6
      src/NoteHub/views/pages.clj

19
LANDING.md

@ -0,0 +1,19 @@
## News
- January 2014: NoteHub made more lightweight by dropping of CSS generation & ClojureScript usage
- September 2013: Solarized color theme [added](https://github.com/chmllr/NoteHub/pull/4) (thanks Brandon!) ([Demo](http://notehub.org/2012/6/16/how-notehub-is-built?theme=solarized))
## About
[NoteHub](http://notehub.org) is a free and hassle-free anonymous pastebin for markdown pages, intended for anonymous one-off publishing.
Send your feedback and comments directly to [@gravitydenier](http://twitter.com/gravitydenier) or open an [issue](https://github.com/gravitydenier/NoteHub/issues) on GitHub.
## Features
- **Color Themes**: specify the color scheme by appending the corresponding parameter to the URL:
- [Dark](http://notehub.org/2012/6/16/how-notehub-is-built?theme=dark)
- [Solarized](http://notehub.org/2012/6/16/how-notehub-is-built?theme=solarized)
- **Fonts**: select a [Google Web Font](http://www.google.com/webfonts/) for headers and for the text by appending parameters to the note [URL](http://notehub.org/2012/6/16/how-notehub-is-built?header-font=Chau+Philomene+One&text-font=Alegreya+Sans+SC).
- **Short URLs**: every page (including theme & font options) has its own short url.
- **Editing**: if you set a password during publishing, you can edit your note any time later.
- **Statistics**: a rudimentary statistics available (date of publishing & view counter).
- **Export**: the original markdown content can be displayed in plain text format.

7
messages

@ -1,4 +1,5 @@
title = Free and Hassle-free Hosting for Markdown Pages. page-title = Publish Markdown for Free
title = Free and Hassle-free Pastebin for Markdown Pages.
name = NoteHub name = NoteHub
new-page = New Page new-page = New Page
@ -7,12 +8,11 @@ status-400 = Bad Request.
status-403 = Wrong Password. status-403 = Wrong Password.
status-500 = OMG, Server Exploded. status-500 = OMG, Server Exploded.
created-by = Created by [@gravitydenier](http://twitter.com/gravitydenier) footer = Created by [@gravitydenier](http://twitter.com/gravitydenier) ♣ Available on [GitHub](https://github.com/chmllr/NoteHub)
loading = Loading... loading = Loading...
set-passwd = Password for editing set-passwd = Password for editing
enter-passwd = Password enter-passwd = Password
preview = Preview
publish = Publish publish = Publish
update = Save update = Save
published = Published published = Published
@ -22,4 +22,3 @@ stats = statistics
export = export export = export
edit = edit edit = edit
short-url = short url short-url = short url
new-note = New Markdown Note

6
src/NoteHub/views/pages.clj

@ -85,7 +85,7 @@
; Landing Page ; Landing Page
(defpage "/" {} (defpage "/" {}
(layout (get-message :title) (layout (get-message :page-title)
[:div#hero [:div#hero
[:h1 (get-message :name)] [:h1 (get-message :name)]
[:h2 (get-message :title)] [:h2 (get-message :title)]
@ -94,8 +94,8 @@
[:div#dashed-line] [:div#dashed-line]
; dynamically generates three column, retrieving corresponding messages ; dynamically generates three column, retrieving corresponding messages
[:article.helvetica-neue.bottom-space {:style "font-size: 1em"} [:article.helvetica-neue.bottom-space {:style "font-size: 1em"}
(md-to-html (slurp "README.md"))] (md-to-html (slurp "LANDING.md"))]
[:div.centered.helvetica-neue (md-to-html (get-message :created-by))])) [:div.centered.helvetica-neue (md-to-html (get-message :footer))]))
; input form for the markdown text with a preview area ; input form for the markdown text with a preview area
(defpartial input-form [form-url command fields content passwd-msg] (defpartial input-form [form-url command fields content passwd-msg]

Loading…
Cancel
Save