2023-07-06 18:49:18 +02:00
( defpackage cl-sbt-album
( :use :cl ) )
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-06 18:49:18 +02:00
( load "examples/album/_navbar.lisp" )
( load "examples/album/_main.lisp" )
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." )
( defmacro header ( &body body )
` ( spinneret:with-html
( :header ,@ body ) ) )
2023-07-05 16:07:28 +02:00
( defmacro footer ( &body body )
` ( spinneret:with-html
( :footer ,@ body ) ) )
( 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" ) )
( main "foo" )
( footer "bar" ) ) )