[front/ux] update home page
This commit is contained in:
parent
44ea7aaca9
commit
249234dee0
1 changed files with 12 additions and 6 deletions
|
@ -4,21 +4,27 @@
|
||||||
|
|
||||||
|
|
||||||
(defn button
|
(defn button
|
||||||
[id]
|
[id type text]
|
||||||
[:div
|
[:div
|
||||||
[:button
|
[:button
|
||||||
{:type "button"
|
{:type "button"
|
||||||
:on-click #(rfe/push-state :item {:id id})
|
:on-click #(rfe/push-state type {:id id})
|
||||||
:class "btn btn-blue"}
|
:class "btn btn-blue"}
|
||||||
"Post " id]
|
text " " id]
|
||||||
[:br]])
|
[:br]])
|
||||||
|
|
||||||
(defn home-page []
|
(defn home-page []
|
||||||
[:div
|
[:div
|
||||||
[:h2 "Try this!"]
|
[:h2 "Try this!"]
|
||||||
(button 385214753)
|
[:p "Post"]
|
||||||
(button 96817849)
|
(button 385214753 :item "Post")
|
||||||
(button 24425284)])
|
(button 96817849 :item "Post")
|
||||||
|
(button 24425284 :item "Post")
|
||||||
|
[:p "questions"]
|
||||||
|
(button 432539930 :question "question")
|
||||||
|
(button 437735833 :question "question")
|
||||||
|
(button 535225379 :question "question")
|
||||||
|
])
|
||||||
|
|
||||||
(defn about-page []
|
(defn about-page []
|
||||||
[:div
|
[:div
|
||||||
|
|
Loading…
Reference in a new issue