From 19f75c8147b3cb8e8b6990a9b1fe18898c8e8875 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sat, 26 Aug 2023 22:54:55 +0800 Subject: [PATCH] [chore] add lines --- src/main/frontend/views.cljs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/frontend/views.cljs b/src/main/frontend/views.cljs index 8205adc..189c9f7 100644 --- a/src/main/frontend/views.cljs +++ b/src/main/frontend/views.cljs @@ -2,6 +2,7 @@ (:require [reitit.frontend.easy :as rfe] [re-frame.core :refer [subscribe]])) + (defn button [id] [:div @@ -21,12 +22,14 @@ (button 24425284) ]) + (defn about-page [] [:div [:h2 "About"] [:ul [:li [:a {:href "stub"} "Source code"]]]]) + (defn item-page [] (let [loading @(subscribe [:loading]) post @(subscribe [:post])] @@ -39,6 +42,7 @@ {:dangerouslySetInnerHTML {:__html (:content post)}}]]))) + (defn nav [{:keys [current-route]}] (let [active #(when (= % (-> current-route :data :name)) "> ")] [:ul {:class "nav flex flex-col overflow-hidden"} @@ -47,6 +51,7 @@ [:li [:a {:href (rfe/href :about)} (active :about) "About"]]])) + (defn current-page [] (let [current-route @(subscribe [:current-route])] [:div {:class "container p-2 mx-auto"}