import { About } from "@/components/About";
import { EventInfo } from "@/components/EventInfo";
import { FAQ } from "@/components/FAQ";
import { Footer } from "@/components/Footer";
import { Hero } from "@/components/Hero";
import { MotionProvider } from "@/components/MotionProvider";
import { Navbar } from "@/components/Navbar";
import { QuotaIndicator } from "@/components/QuotaIndicator";
import { QuotaProvider } from "@/components/QuotaProvider";
import { RegistrationOptions } from "@/components/RegistrationOptions";
import { Speakers } from "@/components/Speakers";
import { Terms } from "@/components/Terms";
import { getPublicUrls } from "@/lib/config";

export default function Home() {
  const { offlineUrl, onlineUrl } = getPublicUrls();

  return (
    <MotionProvider>
      <QuotaProvider>
        <a
          href="#tentang"
          className="sr-only z-[200] rounded-full bg-white px-4 py-2 font-semibold text-navy focus:not-sr-only focus:fixed focus:top-4 focus:left-4"
        >
          Lewati ke konten
        </a>
        <Navbar />
        <main>
          <Hero />
          <About />
          <EventInfo />
          <RegistrationOptions urls={{ offlineUrl, onlineUrl }} />
          <QuotaIndicator />
          <Speakers />
          <Terms />
          <FAQ />
        </main>
        <Footer />
      </QuotaProvider>
    </MotionProvider>
  );
}
