Skip to content

Commit

Permalink
Fix: FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
chamodshehanka committed Nov 17, 2023
1 parent d7947a7 commit 0c8d5d2
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<meta property="twitter:title" content="Tech Events Portal">
<meta property="twitter:description" content="A unified all in one tech event portal">
<meta property="twitter:card" content="summary_large_image">
<title>Bashaway | 2023</title>
<title>Techevents.lk</title>
</head>

<body>
Expand Down
20 changes: 12 additions & 8 deletions src/components/event-details/faq.jsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import { useRef, useState } from "react";
import { ChevronDown } from "lucide-react";
import { faqs } from "@/constants/faqs";

export default function FAQ() {
const [closed, setClosed] = useState(true);
const pRef = useRef(null);

return (
<div className="bg-slate-50 rounded-2xl px-5 py-4 flex gap-4 justify-between border border-slate-100">
<div>
<h6 className="text-lg font-medium">What are the prerequisites for joining this workshop?</h6>
<div
style={{ height: closed ? "0px" : `${pRef.current.clientHeight}px` }}
className="overflow-clip transition-all duration-500 ease-in-out"
>
<p ref={pRef}>Anyone can</p>
{faqs.map((faq, index) => (
<div key={index}>
<h6 className="text-lg font-medium">{faq.question}</h6>
<div
style={{ height: closed ? "0px" : `${pRef.current.clientHeight}px` }}
className="overflow-clip transition-all duration-500 ease-in-out"
>
<p ref={pRef}>{faq.answer}</p>
</div>
</div>
</div>
))}

<div>
<button onClick={() => setClosed((prev) => !prev)}>
<ChevronDown className={`${closed ? "rotate-0" : "-rotate-180"} transition-all duration-500`} />
Expand Down
59 changes: 59 additions & 0 deletions src/constants/faqs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
export const faqs = [
{
question: "What is GDG DevFest Sri Lanka?",
answer:
"GDG DevFest Sri Lanka is a community-organized developer conference that is part of the global Google Developer Groups (GDG) DevFest series. It brings together developers, designers, and technology enthusiasts to learn, share, and network. DevFest Sri Lanka typically features a variety of technical sessions, workshops, and keynote presentations on cutting-edge technologies, platforms, and development practices."
},
{
question: "Where will GDG DevFest Sri Lanka 2023 be held?",
answer: "At Bishop’s College Auditorium, Colombo 03"
},
{
question: "Is there a selection process for those who paid for the ticket?",
answer:
"No, there is no selection process. If you have completed the registration, including the payment for the ticket, you are eligible to attend the event."
},
{
question:
"When will participants who have paid for Google I/O Extended Sri Lanka 2023 tickets receive their official tickets?",
answer:
"Participants who have purchased tickets for Google I/O Extended Sri Lanka 2023 will receive their official event tickets via email from GDG Sri Lanka three days prior to the event."
},
{
question: "What are the benefits I can get from attending this event?",
answer:
"By attending this event, you will have the opportunity to acquire extensive knowledge of Google technologies from experts, network with Googlers, GDEs, and industry experts, and most importantly, have a lot of fun!"
},
{
question: "Is this event beneficial for beginners in the IT industry?",
answer:
"Absolutely! This event offers valuable benefits for individuals of all levels, from beginners just starting their journey to experts with extensive experience."
},
{
question: "Has the registration for this event been closed?",
answer:
"Yes, registration for this event is now closed as all the available slots have been filled at a rapid pace. We sincerely appreciate your tremendous enthusiasm and interest in participating."
},
{
question:
"If I have registered and obtained a ticket for the event but am unable to attend on the event day, can I transfer my ticket to someone else?",
answer: "Unfortunately, you cannot transfer your ticket to someone else."
},
{
question:
"Is it still possible for someone who has registered but has not yet paid for the ticket to make the payment now?",
answer:
"Unfortunately, it is not possible to make the payment for the ticket now as all the slots have been sold out."
},
{
question:
"Can I purchase the Google I/O Extended Sri Lanka 2023 participant t-shirt without being a participant in the event?",
answer:
"Unfortunately, the participant t-shirts for the event are exclusively provided to registered participants who possess a valid ticket, and they are not available for individual sale."
},
{
question: "Is it possible to receive a refund for the payment I made for the event ticket?",
answer:
"Unfortunately, event tickets are non-refundable as stated in the ticket guidelines on the EventsHere platform."
}
];

0 comments on commit 0c8d5d2

Please sign in to comment.