|
|
|
@ -13,6 +13,7 @@ import {
@@ -13,6 +13,7 @@ import {
|
|
|
|
|
} from "@/pages/onboarding/onboardingHooks"; |
|
|
|
|
import { Card, CardContent, Link } from "@/pages/onboarding/utils"; |
|
|
|
|
import { PageTitle } from "@/pages/parts/util/PageTitle"; |
|
|
|
|
import { getProxyUrls } from "@/utils/proxyUrls"; |
|
|
|
|
|
|
|
|
|
function VerticalLine(props: { className?: string }) { |
|
|
|
|
return ( |
|
|
|
@ -27,6 +28,7 @@ export function OnboardingPage() {
@@ -27,6 +28,7 @@ export function OnboardingPage() {
|
|
|
|
|
const skipModal = useModal("skip"); |
|
|
|
|
const { completeAndRedirect } = useRedirectBack(); |
|
|
|
|
const { t } = useTranslation(); |
|
|
|
|
const noProxies = getProxyUrls().length === 0; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<MinimalPageLayout> |
|
|
|
@ -85,32 +87,34 @@ export function OnboardingPage() {
@@ -85,32 +87,34 @@ export function OnboardingPage() {
|
|
|
|
|
</CardContent> |
|
|
|
|
</Card> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<p className="text-center hidden md:block mt-12"> |
|
|
|
|
<Trans i18nKey="onboarding.start.options.default.text"> |
|
|
|
|
<br /> |
|
|
|
|
<a |
|
|
|
|
onClick={skipModal.show} |
|
|
|
|
type="button" |
|
|
|
|
className="text-onboarding-link hover:opacity-75 cursor-pointer" |
|
|
|
|
/> |
|
|
|
|
</Trans> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<div className=" max-w-[300px] mx-auto md:hidden mt-12 "> |
|
|
|
|
<Button |
|
|
|
|
className="!text-type-text !bg-opacity-50" |
|
|
|
|
theme="secondary" |
|
|
|
|
onClick={skipModal.show} |
|
|
|
|
> |
|
|
|
|
<span> |
|
|
|
|
{noProxies ? null : ( |
|
|
|
|
<> |
|
|
|
|
<p className="text-center hidden md:block mt-12"> |
|
|
|
|
<Trans i18nKey="onboarding.start.options.default.text"> |
|
|
|
|
<span /> |
|
|
|
|
<span /> |
|
|
|
|
<br /> |
|
|
|
|
<a |
|
|
|
|
onClick={skipModal.show} |
|
|
|
|
type="button" |
|
|
|
|
className="text-onboarding-link hover:opacity-75 cursor-pointer" |
|
|
|
|
/> |
|
|
|
|
</Trans> |
|
|
|
|
</span> |
|
|
|
|
</Button> |
|
|
|
|
</div> |
|
|
|
|
</p> |
|
|
|
|
<div className=" max-w-[300px] mx-auto md:hidden mt-12 "> |
|
|
|
|
<Button |
|
|
|
|
className="!text-type-text !bg-opacity-50" |
|
|
|
|
theme="secondary" |
|
|
|
|
onClick={skipModal.show} |
|
|
|
|
> |
|
|
|
|
<span> |
|
|
|
|
<Trans i18nKey="onboarding.start.options.default.text"> |
|
|
|
|
<span /> |
|
|
|
|
<span /> |
|
|
|
|
</Trans> |
|
|
|
|
</span> |
|
|
|
|
</Button> |
|
|
|
|
</div> |
|
|
|
|
</> |
|
|
|
|
)} |
|
|
|
|
</CenterContainer> |
|
|
|
|
</MinimalPageLayout> |
|
|
|
|
); |
|
|
|
|