From 249234dee009ce52871b3c22040b110d94b82b16 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sun, 17 Sep 2023 17:59:21 +0800 Subject: [PATCH] [front/ux] update home page --- src/main/frontend/views.cljs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/frontend/views.cljs b/src/main/frontend/views.cljs index 5a1b78e..d940a53 100644 --- a/src/main/frontend/views.cljs +++ b/src/main/frontend/views.cljs @@ -4,21 +4,27 @@ (defn button - [id] + [id type text] [:div [:button {:type "button" - :on-click #(rfe/push-state :item {:id id}) + :on-click #(rfe/push-state type {:id id}) :class "btn btn-blue"} - "Post " id] + text " " id] [:br]]) (defn home-page [] [:div [:h2 "Try this!"] - (button 385214753) - (button 96817849) - (button 24425284)]) + [:p "Post"] + (button 385214753 :item "Post") + (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 [] [:div