mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-06-22 04:11:55 +10:00
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import { createFileRoute } from "@tanstack/react-router";
|
|
import { createRootStructuredDataScript, getCanonicalRootUrl } from "@/libs/seo";
|
|
import { DonationBanner } from "./-sections/donate";
|
|
import { Faq } from "./-sections/faq";
|
|
import { Features } from "./-sections/features";
|
|
import { Footer } from "./-sections/footer";
|
|
import { Hero } from "./-sections/hero";
|
|
import { Prefooter } from "./-sections/prefooter";
|
|
import { Sponsors } from "./-sections/sponsors";
|
|
import { Statistics } from "./-sections/statistics";
|
|
import { Templates } from "./-sections/templates";
|
|
import { Testimonials } from "./-sections/testimonials";
|
|
|
|
export const Route = createFileRoute("/_home/")({
|
|
component: RouteComponent,
|
|
head: () => {
|
|
const appUrl = typeof window !== "undefined" ? window.location.origin : "https://rxresu.me";
|
|
const canonicalUrl = getCanonicalRootUrl(appUrl);
|
|
|
|
return {
|
|
links: [{ rel: "canonical", href: canonicalUrl }],
|
|
scripts: [createRootStructuredDataScript(canonicalUrl)],
|
|
};
|
|
},
|
|
});
|
|
|
|
function RouteComponent() {
|
|
const { flags } = Route.useRouteContext();
|
|
|
|
return (
|
|
<main id="main-content" className="relative">
|
|
<Hero />
|
|
|
|
<div className="container mx-auto px-4 sm:px-6 lg:px-12">
|
|
<div className="border-border border-x [&>section:first-child]:border-t-0 [&>section]:border-border [&>section]:border-t">
|
|
<Statistics />
|
|
<Sponsors show={flags.showSponsors} />
|
|
<Features />
|
|
<Templates />
|
|
<Testimonials />
|
|
<DonationBanner />
|
|
<Faq />
|
|
<Prefooter />
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|