Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | 3x 3x 3x 3x 1x 3x 3x 3x 1x 1x 3x 1x 3x 1x 3x 3x 3x 1x | import { lazyPage } from "@/routes/lazyPage";
import NavTitle from "@/components/nav/NavTitle/NavTitle";
import { APP_ROUTES } from "@/routes/const";
import {
Blocks,
BookText,
CircleHelpIcon,
DoorOpen,
HandCoins,
House,
Milestone,
Phone,
} from "lucide-react";
import { PageConfig } from "../App";
// Every page below is loaded on demand. Imported eagerly, the fifty-two user
// pages compiled into one 3.6 MB chunk that any visit had to download in full
// before anything rendered. `MyApp` provides the Suspense boundary.
const Home = lazyPage(() => import("@/apps/home/pages/Home"));
const Contact = lazyPage(() => import("@/apps/home/pages/Contact"));
const Docs = lazyPage(() => import("@/apps/home/pages/Docs"));
const Help = lazyPage(() => import("@/apps/home/pages/Help"));
const ForgotPassword = lazyPage(
() => import("@/apps/home/pages/login/ForgotPassword"),
);
const Login = lazyPage(() => import("@/apps/home/pages/login/Login"));
const Signup = lazyPage(() => import("@/apps/home/pages/login/Signup"));
const NotFound = lazyPage(() => import("@/apps/home/pages/NotFound"));
const PolicyDocs = lazyPage(
() => import("@/apps/home/pages/policies/PolicyDocs"),
);
const PrivacyPolicy = lazyPage(
() => import("@/apps/home/pages/policies/PrivacyPolicy"),
);
const TermsOfService = lazyPage(
() => import("@/apps/home/pages/policies/TermsOfService"),
);
const Pricing = lazyPage(() => import("@/apps/home/pages/Pricing"));
const Services = lazyPage(() => import("@/apps/home/pages/Services"));
export const HOME_APP: Record<string, PageConfig> = {
// Home
home: {
title: <NavTitle icon={House} label="Home" />,
route: APP_ROUTES.HOME.home,
page: Home,
nav_section: "home",
},
// Services
services: {
title: <NavTitle icon={Blocks} label="Services" />,
route: APP_ROUTES.HOME.services,
page: Services,
nav_section: "main",
},
// Pricing
pricing: {
title: <NavTitle icon={HandCoins} label="Pricing" />,
route: APP_ROUTES.HOME.pricing,
page: Pricing,
nav_section: "main",
},
// Docs
docs: {
title: <NavTitle icon={BookText} label="Docs" />,
route: `${APP_ROUTES.HOME.docs}/*`,
page: Docs,
nav_section: "help",
},
// Help
help: {
title: <NavTitle icon={CircleHelpIcon} label="Help" />,
route: APP_ROUTES.HOME.help,
page: Help,
nav_section: "help",
},
// Contact
contact: {
title: <NavTitle icon={Phone} label="Contact" />,
route: APP_ROUTES.HOME.contact,
page: Contact,
nav_section: "help",
},
// Login
login: {
title: <NavTitle icon={DoorOpen} label="Login" />,
route: APP_ROUTES.HOME.login,
page: Login,
nav_section: "login",
},
// Forgot Password
forgot_password: {
title: <NavTitle icon={DoorOpen} label="Forgot Password" />,
route: APP_ROUTES.HOME.forgot_password,
page: ForgotPassword,
},
// Signup
signup: {
title: <NavTitle icon={Milestone} label="Signup" />,
route: APP_ROUTES.HOME.signup,
page: Signup,
nav_section: "login",
},
// Utils
legal_docs: {
title: <NavTitle icon={BookText} label="Legal Docs" />,
route: APP_ROUTES.LEGAL.legal_docs,
page: PolicyDocs,
},
privacy_policy: {
title: <NavTitle icon={BookText} label="Privacy Policy" />,
route: APP_ROUTES.LEGAL.privacy_policy,
page: PrivacyPolicy,
},
terms_of_service: {
title: <NavTitle icon={BookText} label="Terms Of Service" />,
route: APP_ROUTES.LEGAL.terms_of_service,
page: TermsOfService,
},
notfound: {
title: <NavTitle icon={BookText} label="Not Found" />,
route: APP_ROUTES._util.notfound,
page: NotFound,
},
};
|