improve onboarding a bit

This commit is contained in:
Ivan Evans 2024-12-06 15:47:02 -07:00
parent 42d8013c28
commit af3793b3f3
2 changed files with 23 additions and 26 deletions

View file

@ -228,7 +228,7 @@
"defaultConfirm": {
"cancel": "Cancel",
"confirm": "Use default setup",
"description": "The default setup does not have the best streams and can be unbearably slow. ( ͠° ͟ʖ ͡°)",
"description": "The default setup does not have the best streams and can be unbearably slow.",
"title": "Are you sure?"
},
"extension": {
@ -269,7 +269,7 @@
"explainer": "To get the best streams possible, you will need to choose which streaming method you want to use.",
"options": {
"default": {
"text": "I don't want good quality streams,<0 /> <1>use the default setup ▄︻デ══━一 ʕ•͡-•ʔ</1>"
"text": "I don't want good quality streams, use the default setup."
},
"extension": {
"action": "Install extension",

View file

@ -23,6 +23,14 @@ function VerticalLine(props: { className?: string }) {
);
}
function HorizontalLine(props: { className?: string }) {
return (
<div className={classNames("w-full grid justify-center", props.className)}>
<div className="h-px w-10 bg-onboarding-divider" />
</div>
);
}
export function OnboardingPage() {
const navigate = useNavigateOnboarding();
const skipModal = useModal("skip");
@ -60,7 +68,7 @@ export function OnboardingPage() {
{t("onboarding.start.explainer")}
</Paragraph>
<div className="w-full flex flex-col md:flex-row gap-3">
<div className="w-full flex flex-col md:flex-row gap-3 pb-6">
<Card onClick={() => navigate("/onboarding/extension")}>
<CardContent
colorClass="!text-onboarding-best"
@ -89,30 +97,19 @@ export function OnboardingPage() {
</div>
{noProxies ? null : (
<>
<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>
<Trans i18nKey="onboarding.start.options.default.text">
<span />
<span />
</Trans>
</span>
</Button>
<div className="w-full flex flex-col md:flex-row">
<HorizontalLine className="items-end pb-6" />
</div>
<Card onClick={skipModal.show}>
<CardContent
colorClass="!text-onboarding-bad"
title={t("onboarding.defaultConfirm.confirm")}
subtitle=""
description={t("onboarding.defaultConfirm.description")}
>
<Trans i18nKey="onboarding.start.options.default.text" />
</CardContent>
</Card>
</>
)}
</CenterContainer>