Marketing: route registration to checkout

This commit is contained in:
Codex Agent
2026-01-06 08:36:55 +01:00
parent 34eb2b94b3
commit f89f6d6223
14 changed files with 105 additions and 328 deletions

View File

@@ -10,8 +10,8 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import AuthLayout from '@/layouts/auth-layout';
import AppLayout from '@/layouts/app/AppLayout';
import { register } from '@/routes';
import { request } from '@/routes/password';
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
import { LoaderCircle } from 'lucide-react';
import toast from 'react-hot-toast';
@@ -27,6 +27,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
const { t } = useTranslation('auth');
const page = usePage<{ flash?: { verification?: { status: string; title?: string; message?: string } } }>();
const verificationFlash = page.props.flash?.verification;
const { localizedPath } = useLocalizedRoutes();
const { data, setData, post, processing, errors, clearErrors } = useForm({
login: '',
@@ -278,7 +279,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
<div className="rounded-2xl border border-gray-200/60 bg-gray-50/80 p-4 text-center text-sm text-muted-foreground shadow-inner dark:border-gray-800/70 dark:bg-gray-900/60">
{t('login.no_account')}{' '}
<TextLink
href={register()}
href={localizedPath('/packages')}
tabIndex={5}
className="font-semibold text-[#ff5f87] transition hover:text-[#ff3b6d]"
>

View File

@@ -167,7 +167,7 @@ const DemoPage: React.FC<DemoPageProps> = ({ demoToken }) => {
{t('marketing.labels.readyToLaunchCopy', 'Registriere dich kostenlos und lege noch heute dein erstes Event an.')}
</span>
<Button asChild className="bg-pink-500 hover:bg-pink-600">
<Link href={localizedPath('/register')}>{demo.primaryCta}</Link>
<Link href={localizedPath('/packages')}>{demo.primaryCta}</Link>
</Button>
</AlertDescription>
</Alert>

View File

@@ -379,7 +379,7 @@ const HowItWorks: React.FC = () => {
))}
</ul>
<Button asChild className="mt-6 bg-pink-500 hover:bg-pink-600">
<Link href={localizedPath('/register')}>
<Link href={localizedPath('/packages')}>
{checklist.cta}
</Link>
</Button>

View File

@@ -162,12 +162,6 @@ const AuthRedirectSuccess: React.FC<{ emailVerified?: boolean | null }> = ({ ema
>
{t('login')}
</a>
<p className="text-sm text-gray-600">
{t('no_account')}{' '}
<a href={localizedPath('/register')} className="text-blue-600 hover:text-blue-500">
{t('register')}
</a>
</p>
</div>
</div>
</div>

View File

@@ -1,4 +1,4 @@
import { dashboard, login, register } from '@/routes';
import { dashboard, login } from '@/routes';
import { type SharedData } from '@/types';
import { Head, Link, usePage } from '@inertiajs/react';
@@ -29,12 +29,6 @@ export default function Welcome() {
>
Log in
</Link>
<Link
href={register()}
className="inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]"
>
Register
</Link>
</>
)}
</nav>