-
Notifications
You must be signed in to change notification settings - Fork 424
/
faq.html
148 lines (126 loc) · 4.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./faviconicon.png" type="image/x-icon">
<title>FAQ Page</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #222;
color: #eee;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.faq-container {
width: 90%;
max-width: 800px;
margin: 40px auto;
background-color: #333;
border-radius: 12px;
padding: 30px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
h1 {
text-align: center;
font-size: 2.5em;
color: #ff6b6b;
margin-bottom: 30px;
letter-spacing: 1px;
}
.faq-item {
margin-bottom: 25px;
padding-bottom: 15px;
}
.faq-question {
margin: 0;
padding: 20px;
background-color: #ff6b6b;
color: #fff;
font-size: 1.2em;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
}
.faq-question::after {
content: '\25BC';
font-size: 1.3em;
transition: transform 0.3s ease;
}
.faq-question.active::after {
transform: rotate(180deg);
}
.faq-question:hover {
background-color: #ffab3a;
transform: translateY(-3px);
}
.faq-answer {
display: none;
margin-top: 10px;
padding: 15px 20px;
background-color: #444;
border-left: 10px solid #ffab3a;
border-radius: 6px;
font-size: 1em;
line-height: 1.6;
color: #ccc;
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="faq-container">
<h1>Frequently Asked Questions</h1>
<div class="faq-item">
<h3 class="faq-question">How do I create an account to start playing?</h3>
<p class="faq-answer">You don't need to create an account here. You can freely visit and play any game you want.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Can I play games anytime?</h3>
<p class="faq-answer">Yes, all the games on our site can be played anytime.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Do I need to purchase any games?</h3>
<p class="faq-answer">No, all the games on our site are free to play anytime.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">What should I do if a game isn't loading properly?</h3>
<p class="faq-answer">If a game isn’t loading, try refreshing the page or clearing your browser cache.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">What kind of games are available here?</h3>
<p class="faq-answer">We have a variety of games including beginner-friendly games, IQ games, puzzles, and fun games.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Can I play the games on any device?</h3>
<p class="faq-answer">Yes, all the games are responsive, so you can play them on any device.</p>
</div>
</div>
<script>
// Select all question elements
const faqQuestions = document.querySelectorAll('.faq-question');
faqQuestions.forEach(question => {
question.addEventListener('click', () => {
// Toggle active class and visibility of answer
question.classList.toggle('active');
const answer = question.nextElementSibling;
answer.style.display = (answer.style.display === 'block') ? 'none' : 'block';
// Toggle active class for rotation of the arrow
question.classList.toggle('active');
});
});
</script>
</body>
</html>