Add better example content for accordion docs

This commit is contained in:
Marcus Kammer 2024-02-04 20:18:25 +01:00
parent 9da0853591
commit 9bd02b29cd
2 changed files with 109 additions and 13 deletions

View file

@ -15,16 +15,14 @@
<h2 class=accordion-header>
<button class=accordion-button type=button data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-1
aria-expanded=true aria-controls=collapse-accordionExample-1>Accordion Item #1</button>
aria-expanded=true aria-controls=collapse-accordionExample-1>What is the purpose of this website?</button>
</h2>
<div class="accordion-collapse collapse show"
id=collapse-accordionExample-1
data-bs-parent=#accordionExample>
<div class=accordion-body>
This is the first item&#39;s accordion body. It is shown by default, until the collapse plugin adds the appropriate
classes that we use to style each element. These classes control the overall appearance, as well as the showing and
hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It&#39;s
also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.
This website is designed to provide information and resources on various topics related to user experience, design
thinking, and agile methodologies.
</div>
</div>
</div>
@ -33,16 +31,96 @@
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-2
aria-expanded=false aria-controls=collapse-accordionExample-2>Accordion Item #2</button>
aria-expanded=false aria-controls=collapse-accordionExample-2>How can I contact the support team?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-2
data-bs-parent=#accordionExample>
<div class=accordion-body>
This is the second item&#39;s accordion body. It is hidden by default, until the collapse plugin adds the appropriate
classes that we use to style each element. These classes control the overall appearance, as well as the showing and
hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It&#39;s
also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.
You can reach our support team by sending an email to support@example.com. We&#39;ll be happy to assist you with any
questions or issues you may have.
</div>
</div>
</div>
<div class=accordion-item>
<h2 class=accordion-header>
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-3
aria-expanded=false aria-controls=collapse-accordionExample-3>Is there a mobile app available?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-3
data-bs-parent=#accordionExample>
<div class=accordion-body>
Yes, we have a mobile app available for both iOS and Android devices. You can download it from the App Store or Google
Play Store.
</div>
</div>
</div>
<div class=accordion-item>
<h2 class=accordion-header>
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-4
aria-expanded=false aria-controls=collapse-accordionExample-4>What payment methods do you accept?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-4
data-bs-parent=#accordionExample>
<div class=accordion-body>
We accept payments through credit cards, PayPal, and bank transfers. You can choose the payment method that suits you
best during the checkout process.
</div>
</div>
</div>
<div class=accordion-item>
<h2 class=accordion-header>
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-5
aria-expanded=false aria-controls=collapse-accordionExample-5>How do I reset my password?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-5
data-bs-parent=#accordionExample>
<div class=accordion-body>
To reset your password, go to the login page and click on the &#39;Forgot Password&#39; link. Follow the instructions
sent to your registered email address to create a new password.
</div>
</div>
</div>
<div class=accordion-item>
<h2 class=accordion-header>
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-6
aria-expanded=false aria-controls=collapse-accordionExample-6>Can I contribute to your knowledge sharing
initiatives?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-6
data-bs-parent=#accordionExample>
<div class=accordion-body>
Absolutely! We encourage contributions from our community. You can participate in our knowledge sharing initiatives by
joining our forums and sharing your insights and experiences.
</div>
</div>
</div>
<div class=accordion-item>
<h2 class=accordion-header>
<button class="accordion-button collapsed" type=button
data-bs-toggle=collapse
data-bs-target=#collapse-accordionExample-7
aria-expanded=false aria-controls=collapse-accordionExample-7>What is the schedule for upcoming webinars and
events?</button>
</h2>
<div class="accordion-collapse collapse"
id=collapse-accordionExample-7
data-bs-parent=#accordionExample>
<div class=accordion-body>
You can find the schedule for upcoming webinars and events on our Events page. We regularly update it with details of
upcoming sessions.
</div>
</div>
</div>

View file

@ -1,7 +1,7 @@
#+title: Using cl-sbt/accordion Macros in a Web Application
#+author: Marcus Kammer
#+email: marcus.kammer@mailbox.org
#+date: 2024-02-04T18:34+01:00
#+date: 2024-02-04T20:18+01:00
* Introduction
The accordion component is a popular UI element that helps to organize and
@ -56,8 +56,26 @@ can integrate them into your project:
(with-output-to-string (spinneret:*html*)
(with-page (:title "Accordion Example" :main-con t)
(accordion ()
"Accordion Item #1" "This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow."
"Accordion Item #2" "This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow."))))
"What is the purpose of this website?"
"This website is designed to provide information and resources on various topics related to user experience, design thinking, and agile methodologies."
"How can I contact the support team?"
"You can reach our support team by sending an email to support@example.com. We'll be happy to assist you with any questions or issues you may have."
"Is there a mobile app available?"
"Yes, we have a mobile app available for both iOS and Android devices. You can download it from the App Store or Google Play Store."
"What payment methods do you accept?"
"We accept payments through credit cards, PayPal, and bank transfers. You can choose the payment method that suits you best during the checkout process."
"How do I reset my password?"
"To reset your password, go to the login page and click on the 'Forgot Password' link. Follow the instructions sent to your registered email address to create a new password."
"Can I contribute to your knowledge sharing initiatives?"
"Absolutely! We encourage contributions from our community. You can participate in our knowledge sharing initiatives by joining our forums and sharing your insights and experiences."
"What is the schedule for upcoming webinars and events?"
"You can find the schedule for upcoming webinars and events on our Events page. We regularly update it with details of upcoming sessions."))))
(format t (generate-accordion-page))
#+end_src