-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (77 loc) · 3.15 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
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | FAQ Accordion Card</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section class="card">
<img src="./images/illustration-woman-online-mobile.svg" alt="" class="mobile-hero">
<div class="card-image">
<div class="card-image-overflow">
<img src="./images/bg-pattern-desktop.svg" alt="" class="card-image-background">
<img src="./images/illustration-woman-online-desktop.svg" alt="" class="illustration">
</div>
<img src="./images/illustration-box-desktop.svg" alt="" class="box">
</div>
<div class="card-accordion">
<h1>FAQ</h1>
<ul>
<li>
<button class="accordion">How many team members can I invite? <img src="./images/icon-arrow-down.svg" alt=""></button>
<div class="accordion-content">
You can invite up to 2 additional users on the Free plan. There is no limit on
team members for the Premium plan.
</div>
</li>
<li>
<button class="accordion">What is the maximum file upload size? <img src="./images/icon-arrow-down.svg" alt=""></button>
<div class="accordion-content">
No more than 2GB. All files in your account must fit your allotted storage space.
</div>
</li>
<li>
<button class="accordion">How do I reset my password? <img src="./images/icon-arrow-down.svg" alt=""></button>
<div class="accordion-content">
Click “Forgot password” from the login page or “Change password” from your profile page.
A reset link will be emailed to you.
</div>
</li>
<li>
<button class="accordion">Can I cancel my subscription? <img src="./images/icon-arrow-down.svg" alt=""></button>
<div class="accordion-content">
Yes! Send us a message and we’ll process your request no questions asked.
</div>
</li>
<li>
<button class="accordion">Do you provide additional support? <img src="./images/icon-arrow-down.svg" alt=""></button>
<div class="accordion-content">
Chat and email support is available 24/7. Phone lines are open during normal business hours.
</div>
</li>
</ul>
</div>
</section>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this.classList.toggle("active");
/* Toggle between hiding and showing the active panel */
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
</body>
</html>