mirror of https://github.com/status-im/reagent.git
Add permalink support
This commit is contained in:
parent
702dd1a113
commit
ebade509bf
|
@ -2,7 +2,7 @@
|
||||||
(:require [reagent.core :as reagent :refer [atom]]
|
(:require [reagent.core :as reagent :refer [atom]]
|
||||||
[reagent.debug :refer-macros [dbg println]]
|
[reagent.debug :refer-macros [dbg println]]
|
||||||
[reagentdemo.syntax :refer-macros [get-source]]
|
[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]))
|
[todomvc :as todomvc]))
|
||||||
|
|
||||||
(def funmap (-> "reagentdemo/news.cljs" get-source common/fun-map))
|
(def funmap (-> "reagentdemo/news.cljs" get-source common/fun-map))
|
||||||
|
@ -46,6 +46,6 @@
|
||||||
(defn main []
|
(defn main []
|
||||||
(let [head "This should become news"]
|
(let [head "This should become news"]
|
||||||
[:div.reagent-demo
|
[:div.reagent-demo
|
||||||
[:h1 head]
|
[:h1 [link {:href :undo-demo} head]]
|
||||||
[title head]
|
[title head]
|
||||||
[undo-demo-cleanup]]))
|
[undo-demo-cleanup]]))
|
||||||
|
|
|
@ -67,6 +67,11 @@ ul.nav > li.brand > a {
|
||||||
line-height: 1.25em;
|
line-height: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reagent-demo > h1 > a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
body {
|
body {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
Loading…
Reference in New Issue