dev.metalisp.sbt/examples/album/index.lisp

29 lines
780 B
Common Lisp
Raw Normal View History

2023-07-06 18:49:18 +02:00
(defpackage cl-sbt-album
2023-07-07 13:39:26 +02:00
(:use :cl)
2023-07-13 15:14:10 +02:00
(:export
:show-album-page
:header
:footer
:main
:hero
:album
:navbar
:show-navbar))
2023-07-06 16:09:48 +02:00
2023-07-06 18:49:18 +02:00
(in-package :cl-sbt-album)
2023-07-04 15:20:43 +02:00
2023-07-04 16:42:47 +02:00
(defvar contact-examples
2023-07-04 15:20:43 +02:00
'(("Follow on Twitter" . "foo")
("Like on Facebook" . "foo")
("Email me" . "foo")))
2023-07-04 16:42:47 +02:00
(defvar about-example
2023-07-04 15:20:43 +02:00
"Add some information about the album below, the author, or any other background context. Make it a few sentences long so folks can pick up some informative tidbits. Then, link them off to some social networking sites or contact information.")
2023-07-05 16:07:28 +02:00
(defun show-album-page (title)
2023-07-06 18:49:18 +02:00
(cl-sbt:with-page (:title title)
2023-07-04 16:42:47 +02:00
(header (show-navbar-header about-example contact-examples)
2023-07-05 16:07:28 +02:00
(show-navbar "brand" "#" "foo"))
2023-07-07 13:39:26 +02:00
(main (show-album))
2023-07-05 16:07:28 +02:00
(footer "bar")))