Update badge docs

This commit is contained in:
Marcus Kammer 2023-09-01 16:06:37 +02:00
parent 932bbdb9d7
commit 19bdbad390

View file

@ -70,7 +70,7 @@ them into your project:
#+begin_src lisp #+begin_src lisp
(defpackage my-web-app (defpackage my-web-app
(:use :cl :cl-sbt/badge) (:use :cl :cl-sbt/badge :cl-sbt/btn)
(:export :generate-badge-page)) (:export :generate-badge-page))
(in-package :my-web-app) (in-package :my-web-app)
@ -85,7 +85,7 @@ them into your project:
) )
(:body (:body
(:h1 "Badge Example") (:h1 "Badge Example")
(badge-primary "New") (btn-primary () "Notifications " (badge-secondary "4"))
(badge-success "Updated") (badge-success "Updated")
;; Include more badges here ;; Include more badges here
)))) ))))
@ -93,6 +93,21 @@ them into your project:
(generate-badge-page) (generate-badge-page)
#+end_src #+end_src
#+RESULTS:
#+begin_example
<html lang=en>
<head>
<meta charset=UTF-8>
<title>Badge Example</title>
</head>
<body>
<h1>Badge Example</h1>
<button class="btn btn-primary" type=button>Notifications <span class="badge text-bg-secondary">4</span></button>
<span class="badge text-bg-success">Updated</span>
</body>
</html>
#+end_example
This example demonstrates how to integrate cl-sbt/badge macros into a web This example demonstrates how to integrate cl-sbt/badge macros into a web
application to create Bootstrap-style badges. By using these macros, you can application to create Bootstrap-style badges. By using these macros, you can
quickly and easily add badges to your web application, customizing them to fit quickly and easily add badges to your web application, customizing them to fit