Skip to content

Commit

Permalink
6318 enable faq page (#1198)
Browse files Browse the repository at this point in the history
* FAQ page

* Ui fix

* FAQ ID renamed
  • Loading branch information
PiranavanShanmugavadivelu authored Feb 27, 2024
1 parent ac9ca6f commit 6096696
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 48 deletions.
13 changes: 8 additions & 5 deletions frontend/marketplace/src/components/FAQCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const handleClick = () => {
<div
:id="props.id"
ref="rootElRef"
class="collapse group collapse-arrow mb-1"
class="collapse group collapse-arrow mb-3"
>
<input
type="radio"
Expand All @@ -51,17 +51,20 @@ const handleClick = () => {
:onClick="handleClick"
/>
<div
class="flex collapse-title text-white bg-mediumGray"
class="flex flex-row items-center collapse-title text-white bg-mediumGray"
:onClick="handleClick"
>
<div
class="w-7 h-7 border-2 border-white rounded-full mr-3"
class="min-w-[20px] h-[20px] border-2 border-white rounded-full mr-3"
:class="{ 'bg-greenPrimary': isChecked }"
/>
{{ title }}
<p>{{ title }}</p>
</div>
<div class="collapse-content bg-lightBlack">
<p class="text-textWhite px-10 py-3">{{ content }}</p>
<p
class="text-textWhite md:px-10 px-3 pt-5 pb-2 whitespace-pre-line"
v-html="content"
/>
</div>
</div>
</template>
7 changes: 2 additions & 5 deletions frontend/marketplace/src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const handleGetMPWR = () => {
<div class="flex flex-row justify-around text-white text-title18">
<router-link :to="{ name: PageNames.START_PAGE }">Home</router-link>
<button type="button" @click="handleGetMPWR">Get <b>$MPWR</b></button>
<button type="button" @click="toast.info('Coming soon!')">FAQ</button>
<router-link :to="{ name: PageNames.FAQ }">FAQ</router-link>
</div>

<div class="flex flex-row justify-end">
Expand Down Expand Up @@ -377,10 +377,7 @@ const handleGetMPWR = () => {
</button>
</li>
<li>
<!-- <a href="/faq">FAQ</a> -->
<button type="button" @click="toast.info('Coming soon!')">
FAQ
</button>
<router-link :to="{ name: PageNames.FAQ }">FAQ</router-link>
</li>
</ul>
</div>
Expand Down
127 changes: 90 additions & 37 deletions frontend/marketplace/src/pages/FAQPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,136 @@
import FAQCollapse from "@/components/FAQCollapse.vue";
const faqData = [
{
id: "foo",
title: "Frequently asked q 1",
id: "what_are_plastic_credits",
title: "What are plastic credits?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"A plastic credit is a certificate representing the collection of a specified weight of plastic waste that has been recovered and/or recycled. The plastic credit can represent plastic which would have otherwise ended up in the natural environment or it can represent plastic that has been cleaned up from the environment. These credits are measurable, traceable, and verifiable, ensuring that they represent actual reductions in plastic waste.",
},
{
id: "bar",
title: "Lorem ipsum dolor sit amet",
id: "what_does_one_plastic_credit_represent",
title: "What does one plastic credit represent?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"On the Empower platform 1 plastic credit equals 1 kg of plastic collected or recycled from the environment or other unmanaged locations that could cause a plastic leakage.",
},
{
id: "baz",
title: "Ipsum dolor sit amet",
id: "why_would_i_want_to_buy_plastic_credits",
title: "Why would I want to buy plastic credits?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"Plastic credits are a way to combat the global problem of plastic pollution. Organisations and individuals can purchase plastic credits in order to support plastic clean up efforts around the world, offset their own plastic footprint. Purchasing plastic credits is an efficient way of financing projects that help remove and recycle plastic waste from the environment as well as build recycling infrastructure around the world. This creates a market-based solution that incentivises the reduction of plastic usage and waste while also providing funding for plastic waste recovery and recycling efforts.",
},
{
id: "qux",
title: "Sit amet lorem ipsum",
id: "how_do_i_pay_for_plastic_credits",
title: "How do I pay for plastic credits?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"You can purchase plastic credits through the empower plastic credit marketplace. We accept various payment methods including credit cards, debit cards and crypto.",
},
{
id: "foo1",
title: "Frequently asked q 1",
id: "how_much_is_a_plastic_credit",
title: "How much is a plastic credit?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"The price of a plastic credit varies based on market conditions and the cost of collecting and recycling plastic waste. Please check the different projects on the platform for the current price.",
},
{
id: "bar1",
title: "Lorem ipsum dolor sit amet",
id: "how_much_money_does_the_seller_of_plastic_credit_get",
title: "How much money does the seller of plastic credit get?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"Out of the total transaction, the seller retains a substantial percentage. There is a 3% service fee, and in addition, a payment processing fee of 0-5%, depending on the selected payment method. The exact percentage retained by the seller can be calculated by deducting these fees from the total transaction amount",
},
{
id: "baz1",
title: "Ipsum dolor sit amet",
id: "what_is_blockchain",
title: "What is blockchain?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"Blockchain is a type of distributed ledger technology, a distributed data table if you will, that allows for data to be stored across a network of computers in a secure and transparent manner. It's the technology that underpins cryptocurrencies like Bitcoin, Ethereum and MPWR.",
},
{
id: "qux1",
title: "Sit amet lorem ipsum",
id: "what_is_MPWR",
title: "What is MPWR?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"MPWR is the Empower platform's native digital currency. You can use MPWR to purchase plastic credits and other services on the Empower platform.",
},
{
id: "foo2",
title: "Frequently asked q 1",
id: "what_is_an_offset_certificate",
title: "What is an 'offset certificate'?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"An offset certificate is a document that certifies you have offset a certain amount of plastic waste by purchasing and retiring plastic credits.",
},
{
id: "bar2",
title: "Lorem ipsum dolor sit amet",
id: "what_is_plastic_offsetting",
title: "What is plastic offsetting?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"Plastic offsetting is a mechanism for companies or individuals to compensate for the plastic produced, consumed, or disposed of from their products, services, operations or consumption. Through the purchase of credits, companies or individuals fund projects that physically remove plastic from the environment or from recycling plastics that would otherwise be disposed of. These projects can take various forms, including environmental collection and leakage prevention projects (waste management) to recycling technologies.",
},
{
id: "baz2",
title: "Ipsum dolor sit amet",
id: "what_does_it_mean_to_retire_a_plastic_credit",
title: "What does it mean to retire a plastic credit?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"In practice, retiring a credit means taking this credit off of the market, claiming part of the impact it made on the environment and receiving a certificate for it .\n" +
"Retiring a credit always means that someone is a “retirer” and is taking the credit off of the market either by themselves or on behalf of someone else (a client, a relative, a public institution, etc).\n" +
"Some companies may refer to retirement of credits as “offset” and claim different achievements through it. These claims are the sole responsibility of the entity that emits them. To learn more on plastic offset methodologies and claims, visit <a href='https://www.plasticfootprint.earth' target='_blank'>https://www.plasticfootprint.earth</a>\n" +
"As a result of retirement, Empower registry will display publicly all informations linked to this specific event, including:\n" +
"\u2022 The project issuing the credit, \n" +
"\u2022 The date of issuance and retirement, \n" +
"\u2022 The number of credits retired and all their contained data, along with \n" +
"\u2022 The name of the end-buyer of the credit, who shall be able to claim the impact made.\n",
},
{
id: "qux2",
title: "Sit amet lorem ipsum",
id: "can_I_get_my_name_on_the_certificate",
title: "Can I get my name on the certificate?",
content:
"Decentralizing the new (circular) economy so everyone can get a fair share of the upside of making the world a cleaner and better place. Decentralizing the new (circular) economy",
"Yes, when you purchase plastic credits, you have the option to include your name on the offset certificate.",
},
{
id: "will_I_get_a_receipt_for_my_purchase",
title: "Will I get a receipt for my purchase?",
content:
"Yes, you will receive a receipt for your purchase. The receipt will be sent to the email address you provide during the purchase process.",
},
{
id: "how_do_I_know_plastic_has_been_collected",
title: "How do I know plastic has been collected?",
content:
"Empower´s platform uses blockchain technology to track the collection and recycling of plastic waste. This provides a transparent and verifiable record of the plastic waste that has been offset by your purchase. You can view the plastic which your plastic credits represent on the plastic credit registry.",
},
{
id: "how_can_I_use_this_in_my_company_CSR_work",
title: "How can I use this in my company's CSR work?",
content:
"Purchasing plastic credits can be a part of your company's Corporate Social Responsibility (CSR) strategy. By purchasing plastic credits, you can demonstrate your company's commitment to sustainable practices and social responsibility and can help enhance your company's reputation.",
},
{
id: "who_creates_the_credits_listed_for_sale",
title: "Who creates the credits listed for sale?",
content:
"Collectors using Empower tools for traceability are able to create credits based on the data of the materials collected. Active and vetted collectors are the generators of the plastic credits listed for sale.",
},
{
id: "how_do_I_know_the_credits_are_based_on_real_collection_recycling_efforts",
title:
"How do I know the credits are based on real collection/recycling efforts?",
content:
"On this marketplace, all collectors able to list credits for sale have been subject to a Due Diligence and Impact assessment. Additionally, all data contained in listed credits have been verified pre-publishing by Empower, or by third-party auditors if the collector is certified under a certain standard, in which case the listing will display the standard in question.",
},
{
id: "what_are_the_different_standards_of_the_marketplace_listings",
title: "What are the different standards of the marketplace listings?",
content:
"Empower allows validated auditors of different standards to audit the data of certified collectors. Certain standards may focus on social impact, origin of the material or even traceability. We invite you to consult the online websites of any of these standards to learn more about their requirements.",
},
{
id: "I_want_to_purchase_credits_in_larger_quantities_or_I_have_special_purchasing_criterias_Who_can_I_get_in_contact_with_to_discuss_my_needs",
title:
"I want to purchase credits in larger quantities, or I have special purchasing criterias. Who can I get in contact with to discuss my needs?",
content:
"Empower Global Cleanup Fund can help you meet these requirements. Send us your questions at [email protected] and we will be in touch for your special order.",
},
];
</script>

<template>
<div class="p-5 min-h-[50vh] font-Inter">
<h3 class="text-white text-title24 md:mt-10">Frequently asked questions</h3>
<h3 class="text-white text-title24 md:mt-10 mt-5">
Frequently asked questions
</h3>

<div class="my-5 text-title18">
<FAQCollapse
Expand Down
3 changes: 2 additions & 1 deletion frontend/marketplace/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export { PageNames };
const router = createRouter({
scrollBehavior: (to, from) => {
// always scroll to top after navigation
if (to.name === "FAQPage" && to.name === from.name) {
if (to.name === PageNames.FAQ && to.name === from.name) {
return undefined;
}
return { top: 0 };
Expand All @@ -48,6 +48,7 @@ const router = createRouter({
},
{
path: "/faq",
name: PageNames.FAQ,
component: FAQPage,
},
{
Expand Down

0 comments on commit 6096696

Please sign in to comment.