summaryrefslogtreecommitdiff
path: root/lisp/webapps/bogenherr
diff options
context:
space:
mode:
authorckonstanski <kostcarl@isu.edu>2026-07-15 16:14:42 -0600
committerckonstanski <kostcarl@isu.edu>2026-07-15 16:14:42 -0600
commit4d12ff855d9f440b2f00b683804b3323e1a8625a (patch)
tree1e8fb6256f1136823f0e8d4c288ef814f98f7e51 /lisp/webapps/bogenherr
parent3291eac5051fdfde7d916fe969b2b439bdcbeda7 (diff)
added software consulting
Diffstat (limited to 'lisp/webapps/bogenherr')
-rw-r--r--lisp/webapps/bogenherr/clojurescript/bogenherr/src/core.cljs21
-rw-r--r--lisp/webapps/bogenherr/site.lisp16
2 files changed, 28 insertions, 9 deletions
diff --git a/lisp/webapps/bogenherr/clojurescript/bogenherr/src/core.cljs b/lisp/webapps/bogenherr/clojurescript/bogenherr/src/core.cljs
index f5349b2..da1e424 100644
--- a/lisp/webapps/bogenherr/clojurescript/bogenherr/src/core.cljs
+++ b/lisp/webapps/bogenherr/clojurescript/bogenherr/src/core.cljs
@@ -542,12 +542,13 @@
:pwd2 (dommy/value (dommy/sel1 :#pwd2))}
:handler handler-password-submit}))
-;; about-us (lessons, gigs)
+;; about-us (lessons, gigs, programming)
(hiccups/defhtml template-about-us [jsonobj]
[:h1 {:style "text-align: center"}
(cond (= @about-us-category-state "lessons") "About the Studio"
- (= @about-us-category-state "gigs") "Hire Me to Play")]
+ (= @about-us-category-state "gigs") "Hire Me to Play"
+ (= @about-us-category-state "programming") "Hire Me to Write Software")]
[:div {:id "content"}]
[:div {:id "modify"
:class "modal fade"
@@ -584,6 +585,9 @@
(defn render-gigs []
(GET "/gigs" {:handler handler-about-us}))
+(defn render-programming []
+ (GET "/programming" {:handler handler-about-us}))
+
;; about-us-view
(hiccups/defhtml template-about-us-view [jsonobj]
@@ -600,8 +604,7 @@
(dommy/set-html! (dommy/sel1 :#markdown) (markdown-to-html (get jsonobj "content")))))
(defn render-about-us-view []
- (GET (cond (= @about-us-category-state "lessons") "/lessons/view"
- (= @about-us-category-state "gigs") "/gigs/view")
+ (GET (str "/" @about-us-category-state "/view")
{:handler handler-about-us-view}))
;; about-us-modify
@@ -617,14 +620,14 @@
(auth-notifications jsonobj)
(dommy/set-html! (dommy/sel1 :#modify-title)
(str (cond (= @about-us-category-state "lessons") "About the Studio"
- (= @about-us-category-state "gigs") "For Hire")
+ (= @about-us-category-state "gigs") "For Hire"
+ (= @about-us-category-state "programming") "Software Consulting")
" - Modify"))
(dommy/set-html! (dommy/sel1 :#modify-body) (template-about-us-modify jsonobj))
(.modal (jquery "#modify"))))
(defn render-about-us-modify []
- (POST (cond (= @about-us-category-state "lessons") "/lessons/modify"
- (= @about-us-category-state "gigs") "/gigs/modify")
+ (POST (str "/" @about-us-category-state "/modify")
{:handler handler-about-us-modify}))
;; about-us-modify-submit
@@ -643,8 +646,7 @@
(dommy/set-html! (dommy/sel1 :#markdown) (markdown-to-html (get jsonobj "content")))))
(defn render-about-us-modify-submit []
- (POST (cond (= @about-us-category-state "lessons") "/lessons/modify/submit"
- (= @about-us-category-state "gigs") "/gigs/modify/submit")
+ (POST (str "/" @about-us-category-state "/modify/submit")
{:format :raw
:params {:content (dommy/value (dommy/sel1 :#txt-content))}
:handler handler-about-us-modify-submit}))
@@ -1387,6 +1389,7 @@
(= handler "/password") (render-password)
(= handler "/lessons") (render-lessons)
(= handler "/gigs") (render-gigs)
+ (= handler "/programming") (render-programming)
(= handler "/gallery") (render-gallery)
(= handler "/testimonials") (render-testimonials)
(= handler "/contact-us") (render-contact-us)
diff --git a/lisp/webapps/bogenherr/site.lisp b/lisp/webapps/bogenherr/site.lisp
index 223ac27..b47b9d4 100644
--- a/lisp/webapps/bogenherr/site.lisp
+++ b/lisp/webapps/bogenherr/site.lisp
@@ -95,6 +95,18 @@
(defmacro .gigs-modify-submit ()
`(about-us-modify-submit-json "gigs" content))
+(defmacro .programming ()
+ `(about-us-json "programming"))
+
+(defmacro .programming-view ()
+ `(about-us-view-json "programming"))
+
+(defmacro .programming-modify ()
+ `(about-us-modify-json "programming"))
+
+(defmacro .programming-modify-submit ()
+ `(about-us-modify-submit-json "programming" content))
+
(defmacro .gallery ()
`(gallery-json))
@@ -206,6 +218,10 @@
(define-endpoint ("/gigs/view" :method :get) () .gigs-view)
(define-endpoint ("/gigs/modify" :method :post) () .gigs-modify)
(define-endpoint ("/gigs/modify/submit" :method :post) (&post (content :parameter-type 'string)) .gigs-modify-submit)
+(define-endpoint ("/programming" :method :get) () .programming)
+(define-endpoint ("/programming/view" :method :get) () .programming-view)
+(define-endpoint ("/programming/modify" :method :post) () .programming-modify)
+(define-endpoint ("/programming/modify/submit" :method :post) (&post (content :parameter-type 'string)) .programming-modify-submit)
(define-endpoint ("/gallery" :method :get) () .gallery)
(define-endpoint ("/gallery/view" :method :get) () .gallery-view)
(define-endpoint ("/gallery/add" :method :post) () .gallery-add)