feat: render ascii art

This commit is contained in:
SouthFox 2024-10-29 23:15:07 +08:00
parent bf128418cc
commit 688f694091

View file

@ -42,6 +42,10 @@
(set! *template* template-task) (set! *template* template-task)
(render)))) (render))))
"Task") "Task")
(button (@ (click ,(lambda (event)
(set! *template* template-ascii-art)
(render))))
"Ascii art")
(div (@ (id "application")) ,(template)))) (div (@ (id "application")) ,(template))))
(define (render) (define (render)
@ -146,6 +150,22 @@
(render)))))) (render))))))
"Add task"))) "Add task")))
;; render ascii art
(define (template-ascii-art)
(define ink-script '(
"(\\ "
"\\'\\ "
" \\'\\ __________ "
" / '| ()_________) "
" \\ '/ \\ ~~~~~~~~ \\ "
" \\ \\ ~~~~~~ \\ "
" ==). \\__________\\ "
" (__) ()__________) "
))
`(pre ,(string-join ink-script "\n")))
;; Main ;; Main
(set! *template* template-task) (set! *template* template-task)