-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
79 lines (68 loc) · 3.48 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
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--=============== BOXICONS ===============-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<!--=============== CSS ===============-->
<link rel="stylesheet" href="assets/css/styles.css">
<title>Accordion</title>
</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>
<!--=============== MAIN JS ===============-->
<script src="assets/js/main.js"></script>
</body>
</html>