forked from vishanurag/Canvas-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Faq.html
651 lines (563 loc) · 19.2 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>FAQ</title>
<link rel="stylesheet" href="src/Styles/scroll.css">
<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: rgb(71, 42, 73);
color: rgb(244, 240, 240);
display: flex;
flex-direction: column;
min-height: 100vh;
max-width:100vw;
overflow-y: hidden;
}
/* Media query for mobile */
@media (max-width: 768px) {
body {
overflow-y: scroll; /* Enable vertical scrolling on mobile */
}
}
.container {
margin: 0 auto;
padding: 4rem;
width: 90vw;
}
.accordion {
.accordion-item {
border-bottom: 1px solid lightgray;
button[aria-expanded='true'] {
border-bottom: 1px solid rgb(203, 222, 232);
}
}
}
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: rgb(205, 225, 250);
&::after {
cursor: pointer;
color: rgb(203, 222, 232);
border: 1px solid rgb(203, 222, 232);
}
}
.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: rgb(203, 222, 232);
.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>
<style>
/* Circle styles */
.circle {
height: 24px;
width: 24px;
border-radius: 50%;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
transition: transform 0.1s ease-out;
}
.header {
padding: 10px 50px;
/* width: 100vw; */
}
.navbar {
background-color: #f0adfb;
padding: 10px;
display: flex;
justify-content: center; /* Center aligns the navbar */
position: fixed; /* Sticks to the top */
width: 100%;
z-index: 1000;
}
.navbar h1 {
color: rgb(255, 255, 255);
margin: 0;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-links a {
color: rgb(255, 255, 255);
text-decoration: none;
padding: 6px 4px;
border-radius: 4px;
transition: background-color 0.3s;
}
.nav-links a:hover {
background-color: #541058;
}
.site-name {
margin: 0.5rem 0;
}
.title {
display: flex;
align-items: center;
color: white;
font-size: 1.5rem;
font-weight: bold;
justify-content: center;
}
@media (max-width:900px) {
.navbar {
flex-direction: column;
gap: 1rem;
padding: 0 5px;
justify-content: center;
align-items: center;
}
.nav-links {
gap: 0.3rem;
flex-wrap: wrap;
}
}
/* footer */
.footer {
margin: 0 auto;
text-align: center;
position: relative;
top:100%;
padding: 10px 0;
width:100vw;
/* background: #333; */
}
.footer .share {
padding: 0.3rem 0;
}
.footer .icon-class {
border: none;
background: none;
}
.footer .share a {
height: 2.5rem;
width: 2.5rem;
line-height: 2.5rem;
font-size: 1rem;
color: #ffffff;
border: 0.1rem solid rgba(255, 255, 255, 0.3);
margin: 0.2rem;
border-radius: 50%;
text-decoration: none;
}
.footer .share a:hover {
background-color: #837667;
}
.footer .links {
display: flex;
justify-content: center;
flex-wrap: wrap;
padding: 10px 0;
gap: 10px;
}
.footer .links a {
padding: 0.7rem 2rem;
color: #fff;
border: 0.1rem solid rgba(255, 255, 255, 0.3);
font-size: 2rem;
}
.footer .links a:hover {
background-color: #837667;
}
footer .credit {
font-size: 2rem;
font-weight: lighter;
padding: 1rem;
}
.footer .credit p {
color: #f5f5f1;
}
.footer .credit span a {
color: #fdd09c;
}
</style>
</head>
<body>
<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<header class="header">
<nav class="navbar">
<div class="nav-links">
<h1 class="canvas">Canvas Editor</h1>
<a href="index.html">Home</a>
<a href="about-us.html">About Us</a>
<a href="review.html">Review</a>
<a href="testimonial.html">Testimonial</a>
<a href="privacy.html">Privacy</a>
<a href="tutorial.html">Tutorial</a>
<a href="Blog_page.html">Blog</a>
<a href="Faq.html">FAQ</a>
<a href="./Feedback.html">Feedback</a>
<!-- <a href="signup.html">Sign Up</a> -->
<a href="contributors.html">Contributors</a>
</div>
</nav>
</header>
<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>
</div>
<div class="contact-section">
<h2>Contact Us</h2>
<p>If you have any questions, feel free to reach out to us!</p>
<form>
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your Name">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your Email">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your Message" rows="4"></textarea>
<button type="submit">Send Message</button>
</form>
</div>
<footer class="footer" id="footer">
<div class="share" style="font-size: 0.9rem; text-align: center">
<a href="#" class="fab fa-facebook-f"></a>
<a href="#" class="fa-brands fa-x-twitter"></a>
<a href="#" class="fab fa-instagram"></a>
<a href="#" class="fa-brands fa-linkedin-in"></a>
<a href="#" class="fa-brands fa-pinterest"></a>
</div>
<style>
.footer .share a {
font-size: 1.5rem;
margin: 0 0.5rem;
color: #333; /* Default color */
transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover and click effects */
}
.footer .share a:hover {
transform: scale(1.3); /* Enlarge icon on hover */
}
/* Specific hover colors for each social media platform */
.footer .share a.fa-facebook-f:hover {
color: #1877f2; /* Facebook blue */
}
.footer .share a.fa-x-twitter:hover {
color: #1da1f2; /* Twitter blue */
}
.footer .share a.fa-instagram:hover {
color: #e4405f; /* Instagram red */
}
.footer .share a.fa-linkedin-in:hover {
color: #0077b5; /* LinkedIn blue */
}
.footer .share a.fa-pinterest:hover {
color: #bd081c; /* Pinterest red */
}
/* Optional: Additional effect when clicked */
.footer .share a:active {
transform: scale(1.15); /* Slightly reduce the size on click for a pressed effect */
}
</style>
<div class="credit" style="font-size: 1rem; text-align: center">
<p style="color: white">
Created by
<span><a href="https://github.com/vishanurag/" target="_blank">ANURAG VISHWAKARMA</a></span>
| All rights reserved © <span id="year"></span>
</p>
</div>
</footer>
<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>
<script>
// Coordinates for the cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
// Colors for the circles
const colors = [
"#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d",
"#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d",
"#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060",
"#680060", "#60005f", "#48005f", "#3d005e"
];
// Assign colors and initial position to each circle
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
// Animation function to move the circles
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
// Update the position and scale of each circle
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
// Get the next circle in the sequence
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
// Repeat the animation
requestAnimationFrame(animateCircles);
}
// Start the animation
animateCircles();
</script>
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
};
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<script>
document.getElementById("year").textContent = new Date().getFullYear();
</script>
</body>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
background-color: #121212;
color: #f1f1f1;
}
body::-webkit-scrollbar {
display: none; /* Chrome, Safari, and other WebKit browsers: hide scrollbar */
}
.contact-section {
background-color: #1f1f1f; /* Dark container */
padding: 40px;
border-radius: 10px;
width: 100%;
max-width: 500px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
text-align: center;
}
.contact-section h2 {
margin-bottom: 10px;
font-size: 2em;
color: #e0e0e0;
}
.contact-section p {
font-size: 1.1em;
margin-bottom: 30px;
color: #b3b3b3;
}
form label {
display: block;
margin: 10px 0 5px;
font-size: 0.9em;
color: #cccccc;
}
form input,
form textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
background-color: #333333;
border: none;
border-radius: 5px;
color: #f1f1f1;
}
form input::placeholder,
form textarea::placeholder {
color: #aaaaaa;
}
form input:focus,
form textarea:focus {
outline: none;
border: 1px solid #555555;
background-color: #2a2a2a;
}
form button {
padding: 12px 20px;
font-size: 1em;
border: none;
border-radius: 5px;
color: #f1f1f1;
background-color: #444444;
cursor: pointer;
transition: background-color 0.3s ease;
}
form button:hover {
background-color: #555555;
}
</style>
</html>