-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
72 lines (60 loc) · 2.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive accordion</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<section class="accordion container">
<div class="accordion__container">
<div class="accordion__item">
<header class="accordion__header">
<i class='bx bx-plus accordion__icon'></i>
<h3 class="accordion__title">What's an accordion?</h3>
</header>
<div class="accordion__content">
<p class="accordion__description">An accordion always contains the category title, an expanded and a collapsed
state, an icon indicating expansion, and the spacing between them.</p>
</div>
</div>
<div class="accordion__item">
<header class="accordion__header">
<i class='bx bx-plus accordion__icon'></i>
<h3 class="accordion__title">When and how should it be used?</h3>
</header>
<div class="accordion__content">
<p class="accordion__description">It should be used when users only need a few key concepts or descriptions
of the content on a single page.</p>
</div>
</div>
<div class="accordion__item">
<header class="accordion__header">
<i class='bx bx-plus accordion__icon'></i>
<h3 class="accordion__title">What happens if the user clicks on a collapsed card while another card is open?
</h3>
</header>
<div class="accordion__content">
<p class="accordion__description">It happens that the open card was closed, to give way to the information of
the next
open card, but there are different designs that prefer it the other way around.</p>
</div>
</div>
<div class="accordion__item">
<header class="accordion__header">
<i class='bx bx-plus accordion__icon'></i>
<h3 class="accordion__title">How to choose an icon to indicate expansion?</h3>
</header>
<div class="accordion__content">
<p class="accordion__description">You must choose a different icon to open and close, so that the user
understands what action he took.</p>
</div>
</div>
</div>
</section>
<script src="js/app.js"></script>
</body>
</html>