@ussebastian/kitdigital
Version:
Kit Digital de la Universidad San Sebastián
118 lines (116 loc) • 7.05 kB
HTML
<html>
<head>
<title>Kit Digital - Universidad San Sebastían</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/css/theme.css" rel="stylesheet" type="text/css" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body class>
<div class="container my-80">
<section class="mb-64">
<div class="uss-accordion">
<div class="accordion-item" data-uss-accordeon-open>
<div class="accordion-header">
<button class="accordion-button">
<h6>Lorem ipsum dolor sit amet, consectetur adipiscing elit ut aliquam</h6>
<i class="uss-icon ri-arrow-drop-down-line"></i>
</button>
</div>
<div class="accordion-collapse">
<div class="accordion-body">
<strong>This is the first item's accordion body.</strong> 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
<code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item" id="item2">
<div class="accordion-header">
<button class="accordion-button">
<h6>Item 2</h6>
<i class="uss-icon ri-arrow-drop-down-line"></i>
</button>
</div>
<div class="accordion-collapse">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> 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
<code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button">
<h6>Lorem ipsum dolor sit amet, consectetur adipiscing elit ut aliquam</h6>
<i class="uss-icon ri-arrow-drop-down-line"></i>
</button>
</div>
<div class="accordion-collapse">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> 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
<code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item" id="item5">
<div class="accordion-header">
<button class="accordion-button">
<h6>Item 5</h6>
<i class="uss-icon ri-arrow-drop-down-line"></i>
</button>
</div>
<div class="accordion-collapse">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> 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
<code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button">
<h6>Lorem ipsum dolor sit amet, consectetur adipiscing elit ut aliquam</h6>
<i class="uss-icon ri-arrow-drop-down-line"></i>
</button>
</div>
<div class="accordion-collapse">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> 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
<code>.accordion-body</code>, though the transition does limit overflow.
</div>
</div>
</div>
</div>
</section>
</div>
<script type="module">
import ComponentAccordion from './components/esm/ComponentAccordion.js';
window.addEventListener('DOMContentLoaded', () => {
const accordionEls = document.getElementsByClassName('uss-accordion');
const accordion = new ComponentAccordion(accordionEls[0]);
accordion.init();
});
</script>
</body>
</html>