-
Notifications
You must be signed in to change notification settings - Fork 2
/
faq.html
182 lines (154 loc) · 6.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ - EasyShop.com</title>
<style>
body {
font-family: 'Trebuchet MS', sans-serif;
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
}
.container {
max-width: 1000px; /* Increased max-width for wider design */
margin: 0 auto;
padding: 40px;
background-color: #fff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Increased box-shadow */
border-radius: 20px; /* Increased border-radius */
text-align: left; /* Align content to the left */
line-height: 1.6; /* Improved readability */
}
h1, h2, h3 {
color: #333;
}
p {
margin-bottom: 15px;
color: #555;
}
a {
color: #007BFF;
text-decoration: none;
cursor: pointer;
}
a:hover {
text-decoration: underline;
}
.faq-item {
margin-bottom: 30px; /* Increased margin-bottom */
border: 1px solid #ddd;
background-color: #f9f9f9; /* Slightly lighter background */
border-radius: 10px;
overflow: hidden;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Increased box-shadow */
transition: box-shadow 0.3s;
}
.faq-item:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Increased box-shadow on hover */
}
.faq-item h2 {
margin-bottom: 15px; /* Increased margin-bottom */
}
.highlight {
color: #ffcc00;
font-weight: bold;
}
.collapse-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.expand-button {
background-color: #007BFF; /* Changed button color */
color: #fff;
padding: 10px 20px; /* Increased padding */
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.expand-button:hover {
background-color: #0056b3; /* Darker color on hover */
}
#backToTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #007BFF; /* Changed button color */
color: #fff;
padding: 10px 20px; /* Increased padding */
border: none;
border-radius: 5px;
cursor: pointer;
display: none;
}
#backToTopBtn:hover {
background-color: #0056b3; /* Darker color on hover */
}
</style>
<script>
function toggleCollapse(faqItem) {
const content = faqItem.querySelector('.collapse-content');
const button = faqItem.querySelector('.expand-button');
content.style.maxHeight = content.style.maxHeight ? null : content.scrollHeight + 'px';
button.innerText = content.style.maxHeight ? 'Collapse' : 'Expand';
}
function scrollToTop() {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
function handleScroll() {
const backToTopBtn = document.getElementById('backToTopBtn');
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
backToTopBtn.style.display = 'block';
} else {
backToTopBtn.style.display = 'none';
}
}
window.onscroll = function () {
handleScroll();
};
</script>
</head>
<body>
<div class="container">
<h1 class="highlight">Frequently Asked Questions (FAQ)</h1>
<div class="faq-item" onclick="toggleCollapse(this)">
<h2>1. Do I need to create an account to shop on EasyShop.com?</h2>
<p>No, EasyShop.com does not require user accounts or signups. We aim to provide a hassle-free shopping experience without the need for creating accounts.</p>
<div class="collapse-content">
<p>At EasyShop.com, we value your time and privacy. By eliminating the need for accounts, we make shopping quick and straightforward. However, creating an account allows you to track your orders and enjoy personalized recommendations.</p>
</div>
<button class="expand-button">Expand</button>
</div>
<div class="faq-item" onclick="toggleCollapse(this)">
<h2>2. What products do you offer?</h2>
<p>EasyShop.com offers a diverse range of products, including electronics, fashion, home essentials, toys, and more. Explore our website to discover a variety of quality items.</p>
<div class="collapse-content">
<p>Our product range is carefully curated to cater to various tastes and needs. Whether you're looking for the latest gadgets, trendy fashion pieces, or practical home items, we have something for everyone. Browse our categories to find the perfect products for you.</p>
</div>
<button class="expand-button">Expand</button>
</div>
<div class="faq-item" onclick="toggleCollapse(this)">
<h2>3. How can I learn about your refund policy?</h2>
<p>Our refund policy is detailed on our <a href="refund.html">Refund Policy</a> page. Please visit this page for information on refunds and returns.</p>
<div class="collapse-content">
<p>We understand that sometimes things don't go as planned, and you may need to return or exchange a product. Our refund policy is designed to make this process as smooth as possible for you. Visit our Refund Policy page to learn about eligibility criteria, return procedures, and more.</p>
</div>
<button class="expand-button">Expand</button>
</div>
<div class="faq-item" onclick="toggleCollapse(this)">
<h2>4. Can I shop internationally on EasyShop.com?</h2>
<p>Currently, EasyShop.com caters to domestic customers. International transactions are not supported, and any foreign exchange money received will be adjusted and not returned.</p>
<div class="collapse-content">
<p>While we currently focus on serving our domestic customers, we are constantly exploring opportunities to expand our services globally. We appreciate your interest in shopping with us from abroad and hope to offer international shipping in the future. In the meantime, we apologize for any inconvenience caused.</p>
</div>
<button class="expand-button">Expand</button>
</div>
<!-- Add more FAQ items as needed -->
<button id="backToTopBtn" onclick="scrollToTop()">Back to Top</button>
</div>
</body>
</html>