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 | 2x 2x 6x | 'use client'
import Image from 'next/image'
import { FreePlan, PaymentPlans } from '../../../../../../content/paymentPlans'
import image from '../../../../../assets/images/layout/testamentPreview.jpg'
import isAuth from '../../../../../components/Auth/isAuth'
import { Route } from '../../../../../components/ButtonsAndLinks/Route/Route'
import { Headline } from '../../../../../components/Headline/Headline'
import { Icon } from '../../../../../components/Icon/Icon'
import { PaymentPlan } from '../../../../../components/PaymentPlan/PaymentPlan'
import { routes } from '../../../../../services/routes/routes'
/**
* Login/Register Page with ads for last will.
*/
const Plans = () => {
return (
<div className="container mt-5 flex flex-col gap-8 p-8 md:px-16 lg:gap-4 xl:flex-row xl:p-20">
<div className="order-2 flex h-full flex-col justify-center lg:p-4 lg:pb-0 xl:order-1 xl:w-2/3">
<div className="mb-6 xl:mb-16">
<Headline>Ihr Testament ist bereit, um abgeschrieben zu werden</Headline>
<p className="text-base md:text-xl">Schalten Sie es jetzt frei</p>
</div>
{/* Plans */}
<div className="mb-4 flex w-full flex-col gap-4">
<div className="flex flex-col gap-4 md:flex-row">
{[FreePlan, ...PaymentPlans].map((plan) => (
<PaymentPlan key={plan.type} {...plan} hasButton={false} size="md" />
))}
</div>
</div>
{/* Buttons */}
<div className="flex flex-col-reverse items-center justify-center gap-4 sm:flex-row sm:justify-between">
<Route
datacy="login-route"
icon="login"
href={routes.account.login({ callbackUrl: routes.lastWill.buy() })}
kind="tertiary"
className="w-auto"
>
Einloggen
</Route>
<Route
datacy="register-route"
icon="arrow_forward"
href={routes.account.register({ callbackUrl: routes.lastWill.buy() })}
className="sm:w-max"
>
Account erstellen
</Route>
</div>
</div>
{/* Image */}
<div className="order-1 flex w-full items-center justify-center xl:order-2 xl:w-1/3">
<div className="h-full max-h-[480px] w-40 rounded-xl border-2 p-4 lg:h-2/3 lg:rounded-3xl xl:h-full xl:w-auto">
<Image
priority
className="h-full w-auto object-cover object-top blur-[2px]"
src={image}
alt="Testament Preview"
/>
</div>
<Icon icon="lock" className="absolute text-[80px] xl:text-[200px]" />
</div>
</div>
)
}
export default isAuth(Plans, 'guest')
|