From 67fef86bffe3944bb53b1a81a83c93ba5805f474 Mon Sep 17 00:00:00 2001 From: daniel_sp Date: Tue, 13 Feb 2024 16:58:13 +0000 Subject: [PATCH 01/17] feat: add faqs page --- ...ity-list.astro => CompatibilityList.astro} | 0 ...ent-section.astro => ContentSection.astro} | 0 src/components/Faqs.astro | 81 +++++++++++++++++++ ...showcase-card.astro => ShowcaseCard.astro} | 0 src/components/compatibility.astro | 4 +- src/components/features.astro | 2 +- src/components/github-corner.astro | 51 ------------ src/components/header.astro | 16 ++-- src/components/intro.astro | 14 +++- src/components/showcase.astro | 4 +- src/layouts/BaseLayout.astro | 30 +++++++ src/layouts/GenericLayout.astro | 17 ++++ src/layouts/IndexLayout.astro | 19 +++++ src/pages/faqs.astro | 10 +++ src/pages/index.astro | 38 ++------- src/styles/global.css | 1 + src/types.ts | 5 ++ tsconfig.json | 7 +- 18 files changed, 197 insertions(+), 102 deletions(-) rename src/components/{compatibility-list.astro => CompatibilityList.astro} (100%) rename src/components/{content-section.astro => ContentSection.astro} (100%) create mode 100644 src/components/Faqs.astro rename src/components/{showcase-card.astro => ShowcaseCard.astro} (100%) delete mode 100644 src/components/github-corner.astro create mode 100644 src/layouts/BaseLayout.astro create mode 100644 src/layouts/GenericLayout.astro create mode 100644 src/layouts/IndexLayout.astro create mode 100644 src/pages/faqs.astro diff --git a/src/components/compatibility-list.astro b/src/components/CompatibilityList.astro similarity index 100% rename from src/components/compatibility-list.astro rename to src/components/CompatibilityList.astro diff --git a/src/components/content-section.astro b/src/components/ContentSection.astro similarity index 100% rename from src/components/content-section.astro rename to src/components/ContentSection.astro diff --git a/src/components/Faqs.astro b/src/components/Faqs.astro new file mode 100644 index 00000000..c9824c3d --- /dev/null +++ b/src/components/Faqs.astro @@ -0,0 +1,81 @@ +--- +import type { FaqItem } from "~/types"; + +const faqs: Array = [ + { + question: + "I am a student from another university, can I participate in the event?", + answer: + "Yes, all higher education students over 18 can participate in the event.", + }, + { + question: "Is it free to participate in the BugsByte Hackathon?", + answer: "Yes, the event is completely free.", + }, + { + question: "Do I need to register to be able to participate in the event?", + answer: + "Yes, it is necessary to register to be able to participate in the event. Very soon we'll make a link available on our website to do so.", + }, + { + question: "Do I need to register as a team?", + answer: + "No, only individual registration is required. Once registered, you can form a team with other participants at your convenience.", + }, + { + question: "How many people can a team contain?", + answer: "The sizes of the teams may vary between 2 to 5 elements.", + }, + { + question: "Can I leave the space of the event during the weekend?", + answer: + "Yes, you're completely free to enter and exit the premisses of the event during the weekend.", + }, + { + question: "Which technology/tools are we gonna work with?", + answer: + "You're going to be totally free to choose the stack you'll work on.", + }, + { + question: "Where am I going to sleep?", + answer: + "If you intend to sleep during the event, we will have a dedicated place for you to rest. Only bring what you find essential such as pillows, sleeping bags, blankets, etc.", + }, + { + question: "What am I going to eat during the event?", + answer: "All food is provided by the BugsByte organization.", + }, +]; +--- + +
+
+

+ Frequently asked questions +

+

+ Have a different question and can’t find the answer you’re looking for? + Reach out to our support team by sending us an email and we’ll get back to you as soon as we can. +

+
+
+ { + faqs.map(({ question, answer }) => ( +
+
+ {question} +
+
{answer}
+
+ )) + } +
+
+
+
diff --git a/src/components/showcase-card.astro b/src/components/ShowcaseCard.astro similarity index 100% rename from src/components/showcase-card.astro rename to src/components/ShowcaseCard.astro diff --git a/src/components/compatibility.astro b/src/components/compatibility.astro index 987aa6ac..948a2378 100644 --- a/src/components/compatibility.astro +++ b/src/components/compatibility.astro @@ -1,6 +1,6 @@ --- -import CompatibilityList from "~/components/compatibility-list.astro"; -import ContentSection from "~/components/content-section.astro"; +import CompatibilityList from "~/components/CompatibilityList.astro"; +import ContentSection from "~/components/ContentSection.astro"; import type { CompatibilityItem } from "~/types"; const frameworks: Array = [ diff --git a/src/components/features.astro b/src/components/features.astro index 9f4a9011..bd1df411 100644 --- a/src/components/features.astro +++ b/src/components/features.astro @@ -1,6 +1,6 @@ --- import { Icon } from "astro-icon/components"; -import ContentSection from "~/components/content-section.astro"; +import ContentSection from "~/components/ContentSection.astro"; import type { FeatureItem } from "~/types"; const features: Array = [ diff --git a/src/components/github-corner.astro b/src/components/github-corner.astro deleted file mode 100644 index 24926959..00000000 --- a/src/components/github-corner.astro +++ /dev/null @@ -1,51 +0,0 @@ - - - - diff --git a/src/components/header.astro b/src/components/header.astro index 23217979..d3afe75d 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -2,19 +2,23 @@ import { Icon } from "astro-icon/components"; import type { NavItem } from "~/types"; +const { sticky } = Astro.props; + const navItems: Array = [ { title: "Previous edition", url: "https://2023.bugsbyte.org/" }, + { title: "FAQs", url: "/faqs" }, ]; + +const headerClass = sticky + ? "z-20 flex w-full items-center justify-between border-b border-default px-8 py-4 text-white" + : "absolute bottom-0 z-20 flex w-full items-center justify-between border-b border-transparent px-8 py-4 text-white"; --- -