Add permalink support

This commit is contained in:
Dan Holmsand 2014-01-20 10:46:51 +01:00
parent 702dd1a113
commit ebade509bf
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@
(:require [reagent.core :as reagent :refer [atom]]
[reagent.debug :refer-macros [dbg println]]
[reagentdemo.syntax :refer-macros [get-source]]
[reagentdemo.common :as common :refer [demo-component title]]
[reagentdemo.common :as common :refer [demo-component title link]]
[todomvc :as todomvc]))
(def funmap (-> "reagentdemo/news.cljs" get-source common/fun-map))
@ -46,6 +46,6 @@
(defn main []
(let [head "This should become news"]
[:div.reagent-demo
[:h1 head]
[:h1 [link {:href :undo-demo} head]]
[title head]
[undo-demo-cleanup]]))

View File

@ -67,6 +67,11 @@ ul.nav > li.brand > a {
line-height: 1.25em;
}
.reagent-demo > h1 > a {
color: inherit;
text-decoration: none;
}
@media (max-width: 768px) {
body {
width: auto;