-
Notifications
You must be signed in to change notification settings - Fork 0
/
Blog.html
231 lines (211 loc) · 7.83 KB
/
Blog.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blog</title>
<!-- daisy ui link -->
<link
href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css"
rel="stylesheet"
type="text/css"
/>
<!-- font link -->
<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"
/>
<!-- Load Tailwind via CDN with Config -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: "#B4F461",
secondary: "#111111",
gray: "#111111b3",
},
fontFamily: {
lexed: ['"Lexend"', "sans-serif"],
},
},
},
};
</script>
<style type="text/tailwindcss">
@layer utilities {
.heading {
@apply font-bold text-lg text-secondary;
}
.btn {
@apply bg-primary rounded-md cursor-pointer transition-all ease-in-out hover:bg-gray hover:text-white duration-300 border-none py-3 px-8 text-secondary font-bold text-base font-lexed;
}
.btn-active {
@apply rounded-md cursor-pointer transition-all ease-in-out hover:bg-primary hover:border-primary duration-300 py-3 px-8 text-secondary border-2 border-primary bg-primary font-bold text-base font-lexed text-secondary hover:text-secondary;
}
.btn-normal {
@apply rounded-md cursor-pointer transition-all ease-in-out hover:bg-primary hover:border-primary duration-300 py-3 px-8 text-gray hover:text-secondary border-2 border-gray bg-transparent font-bold text-base font-lexed;
}
.wraper {
@apply container m-auto max-w-[1250px] px-5;
}
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.stickyy {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
.sticky-btn {
padding: 15px;
backdrop-filter: blur(10px);
}
</style>
</head>
<body class="font-lexed text-gray">
<div id="steckey">
<header id="header" class="bg-[#F9F7F3] py-4 pb-6">
<nav
id="nav"
class="wraper flex sticky top-0 left-0 justify-between items-center flex-wrap gap-5"
>
<button id="homtBtn" class="btn">home</button>
<div class="flex gap-2 items-center sm:order-2 order-3">
<img class="w-9" src="assets/logo.png" alt="" />
<p class="heading">Donate Bangladesh</p>
</div>
<div class="flex items-center gap-1 sm:order-3 order-2">
<img src="assets/coin.png" alt="" />
<h4 class="text-lg font-bold">
<span id="balance">5500</span> BDT
</h4>
</div>
</nav>
</header>
</div>
<!-- main part start -->
<div class="wraper min-h-[64.1vh]">
<div
class="flex mt-20 flex-col justify-center items-center px-5 md:px-20"
>
<div class="">
<h1 class="font-bold text-left text-2xl text-secondary mb-5">
Important FAQ
</h1>
</div>
<div
tabindex="0"
class="collapse mb-4 collapse-arrow border-base-300 bg-base-200 border"
>
<div class="collapse-title text-xl font-medium">
What is the DOM in JavaScript?
</div>
<div class="collapse-content">
<p>The DOM represents the structure of a webpage, allowing JavaScript to manipulate HTML elements dynamically.</p>
</div>
</div>
<div
tabindex="0"
class="collapse mb-4 collapse-arrow border-base-300 bg-base-200 border"
>
<div class="collapse-title text-xl font-medium">
How do I select an element in JavaScript?
</div>
<div class="collapse-content">
<p>Use methods like getElementById(), getElementsByClassName(), querySelector(), or querySelectorAll().</p>
</div>
</div>
<div
tabindex="0"
class="collapse mb-4 collapse-arrow border-base-300 bg-base-200 border"
>
<div class="collapse-title text-xl font-medium">
How do I handle DOM events?
</div>
<div class="collapse-content">
<p>Use element.style.property = "value" to modify an element's inline CSS.</p>
</div>
</div>
<div
tabindex="0"
class="collapse mb-4 collapse-arrow border-base-300 bg-base-200 border"
>
<div class="collapse-title text-xl font-medium">
How do I create and append an element?
</div>
<div class="collapse-content">
<p>Use createElement() to create, then appendChild() or append() to add the new element to the DOM.</p>
</div>
</div>
<div
tabindex="0"
class="collapse b-4 collapse-arrow border-base-300 bg-base-200 border"
>
<div class="collapse-title text-xl font-medium">
Difference between innerHTML and appendChild()?
</div>
<div class="collapse-content">
<p>innerHTML replaces content with a string, while appendChild() adds a new DOM element.</p>
</div>
</div>
</div>
</div>
<footer class="footer bg-neutral text-neutral-content p-10">
<aside>
<img src="assets/logo.png" alt="">
<p>
Donate Bangladesh
<br />
Support Humanity
</p>
</aside>
<nav>
<h6 class="footer-title">Social</h6>
<div class="grid grid-flow-col gap-4">
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"></path>
</svg>
</a>
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"></path>
</svg>
</a>
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"></path>
</svg>
</a>
</div>
</nav>
</footer>
<script src="js/blog.js"></script>
</body>
</html>