reagent/demo/reagentdemo/news/news060release.cljs

49 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-06-09 13:51:04 +00:00
(ns reagentdemo.news.news060release
(:require [reagent.core :as r]
[reagent.debug :refer-macros [dbg println]]
[reagentdemo.syntax :as s]
2016-09-14 18:45:59 +00:00
[reagentdemo.common :as common :refer [demo-component]]
2016-06-09 13:51:04 +00:00
[sitetools.core :as tools :refer [link]]
[reagentdemo.news.news060 :as news060]
2016-09-14 18:45:59 +00:00
[reagentdemo.news.news060rc :as news060rc]))
2016-06-09 13:51:04 +00:00
(def url "/news/news060.html")
2016-09-14 18:45:59 +00:00
(def title "Reagent 0.6.0")
2016-06-09 13:51:04 +00:00
(def ns-src (s/syntaxed "(ns example.core
(:require [reagent.core :as r]))"))
2016-09-14 18:45:59 +00:00
(def changelog
"https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md")
(defn abstract []
[:div.demo-text
[:p
"Reagent 0.6.0 has a new version of React (15.2.1), and a few
bug fixes. Otherwise it is identical to 0.6.0-rc."]])
(defn story []
[:div.demo-text
[:p
"See " [link {:href news060/url} "this story"]
" for much more information about Reagent 0.6.0."]
[:p
"You can also have a look at the "
[link {:href news060rc/url} "news in 0.6.0-rc"]
" and the " [link {:href changelog} "change log"]
"."]])
2016-06-09 13:51:04 +00:00
(defn main [{:keys [summary]}]
[:div.reagent-demo
2016-09-14 18:45:59 +00:00
[:h1
[link {:href url} title]]
2017-11-28 17:16:26 +00:00
[:span "2016-06-09"]
2016-09-14 18:45:59 +00:00
[:div
[abstract]
2016-06-09 13:51:04 +00:00
(if summary
[link {:href url :class 'news-read-more} "Read more"]
2016-09-14 18:45:59 +00:00
[:section.demo-text
[story]])]])
2016-06-09 13:51:04 +00:00
(tools/register-page url [#'main] title)