-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
88 lines (88 loc) · 5.02 KB
/
home.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">
<title>Donate Bangladesh Blog</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://kit.fontawesome.com/147de7fead.js" crossorigin="anonymous"></script>
<style>
.fonts-family{
font-family: "Lexend", sans-serif;
}
</style>
</head>
<body class="fonts-family">
<!-- nav section start -->
<nav class="w-full bg-gray-100/70 py-6 h-40 sticky top-0 backdrop-blur-md z-50">
<div class="container px-4 mx-auto h-24 flex justify-between">
<!-- Back Home button -->
<div class="btn w-24 h-12 bg-[#B4F461] border-0 px-8 py-3 font-semibold text-xl"><a href="./index.html">Home</a></div>
<!-- Logo donate Bangladesh -->
<div class="flex gap-2 lg:gap-4 h-12">
<!-- logo image -->
<img class="w-12 h-12 border-2 border-dashed border-gray-300 " src="./images/logo.png" alt="Logo donate Bangladesh">
<!-- logo text -->
<h1 class="text-base lg:text-xl font-semibold text-center content-center">Donate Bangladesh</h1>
</div>
<!-- account balance -->
<div class="flex gap-2 lg:gap-4 h-7 justify-center items-center mt-3">
<img src="./images/coin.png" alt="coin image">
<h2 id="account-balance" class="text-base lg:text-xl font-medium">5500 BDT</h2>
</div>
</div>
</nav>
<!-- nav section End -->
<!-- FAQ section start -->
<h1 class="container px-4 mx-auto font-bold text-3xl mt-10">
Important FAQ <i class="fa-regular fa-circle-question text-4xl"></i>
</h1>
<div class="container px-4 mx-auto">
<!-- Question No.1 -->
<div class="collapse collapse-arrow border-2 mt-5">
<input type="radio" name="my-accordion-2" checked="checked" title='Question'/>
<div class="collapse-title text-xl font-medium">What is Document Object Model (DOM) ?</div>
<div class="collapse-content">
<p>The Document Object Model (DOM) is a structured representation of an HTML document, enabling dynamic manipulation and interaction with elements using programming languages like JavaScript.</p>
</div>
</div>
<!-- Question No.2 -->
<div class="collapse collapse-arrow border-2 mt-5">
<input type="radio" name="my-accordion-2" title='Question'/>
<div class="collapse-title text-xl font-medium">How do you select an element from DOM ?</div>
<div class="collapse-content">
<p>You can select an element from the DOM using methods like document.getElementById(), document.querySelector(), document.getElementsByClassName(), or document.getElementsByTagName().</p>
</div>
</div>
<!-- Question No.3 -->
<div class="collapse collapse-arrow border-2 mt-5">
<input type="radio" name="my-accordion-2" checked="checked" title='Question'/>
<div class="collapse-title text-xl font-medium">What an event delegation in the context of the DOM, and why is it useful ?</div>
<div class="collapse-content">
<p>Event delegation attaches a single event listener to a parent element, handling events from its child elements using event bubbling. It's useful for improved performance, fewer listeners, and managing dynamically added elements without needing to reassign event handlers.</p>
</div>
</div>
<!-- Question No.4 -->
<div class="collapse collapse-arrow border-2 mt-5">
<input type="radio" name="my-accordion-2" checked="checked" title='Question'/>
<div class="collapse-title text-xl font-medium">How to function work ?</div>
<div class="collapse-content">
<p>A function is a reusable block of code that performs a specific task. It can take inputs (parameters) and return an output or result.</p>
</div>
</div>
<!-- Question No.5 -->
<div class="collapse collapse-arrow border-2 my-5">
<input type="radio" name="my-accordion-2" checked="checked" title='Question'/>
<div class="collapse-title text-xl font-medium">How to make a common function ?</div>
<div class="collapse-content">
<p>A common function is reusable code that performs a task, takes inputs (parameters), and returns output. Define it once and call it multiple times</p>
</div>
</div>
</div>
<!-- FAQ section End -->
</body>
</html>