This commit is contained in:
Moe Poi ~ 2021-11-21 08:36:49 +07:00
parent 43bbbfdb92
commit 1ac61b6731
4 changed files with 164 additions and 0 deletions

4
public/css/faq.css Normal file
View file

@ -0,0 +1,4 @@
.card {
border-radius: 10px;
background-color: #212226;
}

View file

@ -232,4 +232,18 @@ router.get("/about-us", (req, res) => {
});
});
router.get("/faq", (req, res) => {
auth.session_converter(req.cookies.session_token).then((key) => {
if (key != null) {
res.render("pages/faq", {
loggedIn: 'true'
});
} else {
res.render("pages/faq", {
loggedIn: 'false'
});
}
});
});
module.exports = router;

View file

@ -45,5 +45,7 @@
<link href="/css/change-password.css" rel="stylesheet">
<% } else if(state == "otp") { %>
<link href="/css/otp.css" rel="stylesheet">
<% } else if(state == "faq") { %>
<link href="/css/faq.css" rel="stylesheet">
<% } %>
</head>

144
views/pages/faq.ejs Normal file
View file

@ -0,0 +1,144 @@
<html lang="en">
<%- include('../layouts/header.ejs', {title: 'Frequently Ask Question', state: 'faq'}); %>
<body class="bg-color">
<%- include('../layouts/navbar.ejs', {types: 'v1', state: 'faq'}); %>
<div class="container-fluid mt-3">
<div class="accordion" id="accordionExample">
<div class="card">
<div class="card-header" id="head-1">
<h2 class="mb-0">
<button aria-controls="collapse-1" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-1" data-toggle="collapse" type="button">
Do you ship to my country?
</button>
</h2>
</div>
<div aria-labelledby="head-1" class="collapse" data-parent="#accordionExample" id="collapse-1">
<div class="card-body text-white">
We ship to nearly 200 countries worldwide.
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-2">
<h2 class="mb-0">
<button aria-controls="collapse-2" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-2" data-toggle="collapse" type="button">
How long does shipping take? When will I receive my order?
</button>
</h2>
</div>
<div aria-labelledby="head-2" class="collapse" data-parent="#accordionExample" id="collapse-2">
<div class="card-body text-white">
Please note, we require 1-5 days to process orders. We strive to ship all items on-time, however, in rare cases, it can take longer than 3 months. Any orders not received within 8 weeks automatically qualify for a full-refund or reship free of charge! 🌟
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-3">
<h2 class="mb-0">
<button aria-controls="collapse-3" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-3" data-toggle="collapse" type="button">
My order has been dispatched, can I track it?
</button>
</h2>
</div>
<div aria-labelledby="head-3" class="collapse" data-parent="#accordionExample" id="collapse-3">
<div class="card-body text-white">
Once your order has been shipped, youll receive a tracking number via email. Note, it can take up to 7 days for shipping activity to update.
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-4">
<h2 class="mb-0">
<button aria-controls="collapse-4" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-4" data-toggle="collapse" type="button">
Do you offer a guarantee? Can I return my items?
</button>
</h2>
</div>
<div aria-labelledby="head-4" class="collapse" data-parent="#accordionExample" id="collapse-4">
<div class="card-body text-white">
Of course. We offer an extended 30 day guarantee! ☑️
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-5">
<h2 class="mb-0">
<button aria-controls="collapse-5" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-5" data-toggle="collapse" type="button">
Can I change or cancel my order?
</button>
</h2>
</div>
<div aria-labelledby="head-5" class="collapse" data-parent="#accordionExample" id="collapse-5">
<div class="card-body text-white">
Sure! You can cancel, or change your order within 24 hours of confirmation.
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-6">
<h2 class="mb-0">
<button aria-controls="collapse-6" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-6" data-toggle="collapse" type="button">
What methods of payment do you take?
</button>
</h2>
</div>
<div aria-labelledby="head-6" class="collapse" data-parent="#accordionExample" id="collapse-6">
<div class="card-body text-white">
We accept ALL major bank methods.
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-7">
<h2 class="mb-0">
<button aria-controls="collapse-7" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-7" data-toggle="collapse" type="button">
Do you offer promotional or affiliate opportunities?
</button>
</h2>
</div>
<div aria-labelledby="head-7" class="collapse" data-parent="#accordionExample" id="collapse-7">
<div class="card-body text-white">
We do and wed love to hear from you! 👋
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="head-8">
<h2 class="mb-0">
<button aria-controls="collapse-8" aria-expanded="false"
class="btn btn-link btn-block text-left collapsed text-decoration-none text-white"
data-target="#collapse-8" data-toggle="collapse" type="button">
Do I need to pay import duties?
</button>
</h2>
</div>
<div aria-labelledby="head-8" class="collapse" data-parent="#accordionExample" id="collapse-8">
<div class="card-body text-white">
Some packages may be subject to import duties depending on the country of receipt.
</div>
</div>
</div>
</div>
</div>
<%- include('../layouts/footer.ejs', {state: 'faq'}); %>
</body>
</html>