diff --git a/src/pages/api/init-session.ts b/src/pages/api/init-session.ts index fd1b9b31..457a0fb1 100644 --- a/src/pages/api/init-session.ts +++ b/src/pages/api/init-session.ts @@ -1,5 +1,5 @@ import type { APIRoute } from "astro"; -import { app } from "@/firebase/server"; +import { app } from "@/lib/firebase/server"; import { getAuth } from "firebase-admin/auth"; // TODO: check if we really need this export const prerender = false; diff --git a/src/pages/before-start.astro b/src/pages/before-start.astro index 832ab507..cc225f13 100644 --- a/src/pages/before-start.astro +++ b/src/pages/before-start.astro @@ -1,57 +1,116 @@ --- import BaseLayout from "@/layouts/layout.astro"; + +const rules = [ + "We care about privacy; that's why all your answers are completely anonymous. We only rely on anonymous sessions to avoid spam", + "Please be honest. Our goal is to understand the Moroccan IT market and share results with the community.", + "The survey is divided into 6 parts: Profile, Learning & Education, AI, Work, Technology, and Community,(we submit your answers at the end of each part)", + "All Questions are required unless you have a skip button", + "There are two types of questions: Multiple Choice (select one or more options) and Single Select (choose only one option)", + "Do not refresh the questions page before submitting your answers" +]; --- -
-
-

Survey Rules

-
    -
  • Answer all questions honestly and to the best of your ability.
  • -
  • - Complete the survey in one sitting; it should take about 15 minutes. -
  • -
  • Ensure you have a stable internet connection.
  • -
  • - Your responses are confidential and will be used for research purposes - only. -
  • -
  • - You may exit the survey at any time, but your progress won't be saved. -
  • +
    +
    +

    + Before You Start +

    +

    Here's what you need to know:

    +
      + { + rules.map((rule, index) => ( +
    • + + {index + 1} + + {rule} +
    • + )) + }
    +
    + + Start +
    + + diff --git a/src/pages/survey.astro b/src/pages/survey.astro index a6cea09b..fd8f5dcb 100644 --- a/src/pages/survey.astro +++ b/src/pages/survey.astro @@ -1,7 +1,7 @@ --- export const prerender = false; import BaseLayout from "@/layouts/layout.astro"; -import { app } from "@/firebase/server"; +import { app } from "@/lib/firebase/server"; import { getAuth } from "firebase-admin/auth"; import SurveyForm from "@/components/survey/index.astro"; diff --git a/src/pages/thanks.astro b/src/pages/thanks.astro index af830faf..2217e1db 100644 --- a/src/pages/thanks.astro +++ b/src/pages/thanks.astro @@ -1,7 +1,7 @@ --- export const prerender = false; import BaseLayout from "@/layouts/layout.astro"; -import { app } from "@/firebase/server"; +import { app } from "@/lib/firebase/server"; import { getAuth } from "firebase-admin/auth"; const auth = getAuth(app);