forked from vishanurag/Canvas-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFaq.html
221 lines (193 loc) · 7.79 KB
/
Faq.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Hind:300,400&display=swap');
* {
box-sizing: border-box;
&::before,
&::after {
box-sizing: border-box;
}
}
body {
margin: 0;
padding: 0;
font-family: 'Hind', sans-serif;
background: black;
color: gray;
display: flex;
min-height: 100vh;
}
.container {
margin: 0 auto;
padding: 4rem;
width: 48rem;
}
.accordion {
.accordion-item {
border-bottom: 1px solid lightgray;
button[aria-expanded='true'] {
border-bottom: 1px solid blue;
}
}
}
button {
position: relative;
display: block;
text-align: left;
width: 100%;
padding: 1em 0;
color: white;
font-size: 1.15rem;
font-weight: 400;
border: none;
background: none;
outline: none;
&:hover,
&:focus {
cursor: pointer;
color: blue;
&::after {
cursor: pointer;
color: blue;
border: 1px solid blue;
}
}
.accordion-title {
padding: 1em 1.5em 1em 0;
}
.icon {
display: inline-block;
position: absolute;
top: 18px;
right: 0;
width: 22px;
height: 22px;
border: 1px solid;
border-radius: 22px;
&::before {
display: block;
position: absolute;
content: '';
top: 9px;
left: 5px;
width: 10px;
height: 2px;
background: currentColor;
}
&::after {
display: block;
position: absolute;
content: '';
top: 5px;
left: 9px;
width: 2px;
height: 10px;
background: currentColor;
}
}
}
button[aria-expanded='true'] {
color: blue;
.icon {
&::after {
width: 0;
}
}
+.accordion-content {
opacity: 1;
max-height: 9em;
transition: all 200ms linear;
will-change: opacity, max-height;
}
}
.accordion-content {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 200ms linear, max-height 200ms linear;
will-change: opacity, max-height;
p {
font-size: 1rem;
font-weight: 300;
margin: 2em 0;
}
}
</style>
</head>
<body>
<div class="container">
<h2>Frequently Asked Questions</h2>
<div class="accordion">
<div class="accordion-item">
<button id="accordion-button-1" aria-expanded="false"><span class="accordion-title">1. What is the
Canvas Editor?</span><span class="icon" aria-hidden="true"></span></button>
<div class="accordion-content">
<p>Creative Canvas Tool empowers artists of all levels with an intuitive platform for digital art
creation. Offering a variety of brushes, colors, and textures, it encourages creativity and
style exploration. Whether sketching or perfecting a masterpiece, its user-friendly interface
ensures a smooth experience, letting you focus on your art.</p>
</div>
</div>
<div class="accordion-item">
<button id="accordion-button-2" aria-expanded="false"><span class="accordion-title">2. How do I create
an account using the "Sign Up" button in the navbar?</span><span class="icon"
aria-hidden="true"></span></button>
<div class="accordion-content">
<p>To create an account, click on the "Sign Up" button located in the navigation bar. A registration
form will appear where you need to enter Username, email address, and password. After filling
out the form submit the form. Otherwise You can Sign up Using Your Google Account.</p>
</div>
</div>
<div class="accordion-item">
<button id="accordion-button-3" aria-expanded="false"><span class="accordion-title">3. How do I log in
using the "Login" button in the navbar?</span><span class="icon"
aria-hidden="true"></span></button>
<div class="accordion-content">
<p>To log in, click on the "Login" button in the navigation bar. Enter the email address or Username
and
password associated with your account, then click "Login." Once authenticated, you will be
redirected to your account dashboard, where you can manage your profile or access other
features.</p>
</div>
</div>
<div class="accordion-item">
<button id="accordion-button-4" aria-expanded="false"><span class="accordion-title">4. How do I convert
text to uppercase, lowercase, bold, or italic in the editor?</span><span class="icon"
aria-hidden="true"></span></button>
<div class="accordion-content">
<p>To convert text to uppercase,lowercase,bold and italic, just click on the button as your desire .
There are buttons for uppercase,lowercase,bold and italic , write your text and convert it as
your wish. </p>
</div>
</div>
<div class="accordion-item">
<button id="accordion-button-5" aria-expanded="false"><span class="accordion-title">5. How do I choose a
background image in the Canvas Editor?</span><span class="icon"
aria-hidden="true"></span></button>
<div class="accordion-content">
<p>To select a background image, navigate to the "Background" section in the toolbar. From there,
you can either upload your own image or choose from a library of pre-loaded
images. Once selected, the image will be applied to the entire canvas.</p>
</div>
</div>
</div>
<script>
const items = document.querySelectorAll(".accordion button");
function toggleAccordion() {
const itemToggle = this.getAttribute('aria-expanded');
for (i = 0; i < items.length; i++) {
items[i].setAttribute('aria-expanded', 'false');
}
if (itemToggle == 'false') {
this.setAttribute('aria-expanded', 'true');
}
}
items.forEach(item => item.addEventListener('click', toggleAccordion));
</script>
</body>
</html>