mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-26 10:31:10 -04:00
111 lines
3.8 KiB
TypeScript
111 lines
3.8 KiB
TypeScript
import {getProfileOgImageUrl} from 'common/profiles/og-image'
|
|
import Image from 'next/image'
|
|
import Router from 'next/router'
|
|
import {Button} from 'web/components/buttons/button'
|
|
import {Col} from 'web/components/layout/col'
|
|
import {PageBase} from 'web/components/page-base'
|
|
import {SEO} from 'web/components/SEO'
|
|
import {ShareProfileButtons} from 'web/components/widgets/share-profile-button'
|
|
import {useProfile} from 'web/hooks/use-profile'
|
|
import {useUser} from 'web/hooks/use-user'
|
|
import {useT} from 'web/lib/locale'
|
|
|
|
export default function SoftGatePage() {
|
|
const user = useUser()
|
|
const t = useT()
|
|
const profile = useProfile()
|
|
|
|
const handleExplore = () => {
|
|
Router.push('/?fromSignup=true')
|
|
}
|
|
|
|
const handleRefine = () => {
|
|
Router.push(`/${user?.username ?? ''}`)
|
|
}
|
|
|
|
return (
|
|
<PageBase trackPageView={'soft gate'}>
|
|
<SEO
|
|
title={t('onboarding.soft-gate.seo.title', "You're ready to explore - Compass")}
|
|
description={t(
|
|
'onboarding.soft-gate.seo.description',
|
|
'Get started with Compass - transparent connections without algorithms',
|
|
)}
|
|
/>
|
|
<Col className="min-h-screen items-center justify-center p-6">
|
|
<Col className="max-w-xl w-full gap-6 text-center">
|
|
<h1 className="text-4xl font-semibold text-ink-900">
|
|
{t('onboarding.soft-gate.title', "You're ready to explore")}
|
|
</h1>
|
|
|
|
{profile && user && (
|
|
<Col className="gap-4 text-ink-700 items-center">
|
|
<Image
|
|
src={getProfileOgImageUrl(user, profile)}
|
|
alt="OG"
|
|
width={550}
|
|
height={325}
|
|
className="rounded-xl border border-md"
|
|
/>
|
|
<p>
|
|
{t(
|
|
'onboarding.soft-gate.profile_card',
|
|
'You created a public profile card and values-based profile. Share them to attract people who think like you. Shared profiles are discovered much more often.',
|
|
)}
|
|
</p>
|
|
<ShareProfileButtons username={user?.username} />
|
|
</Col>
|
|
)}
|
|
|
|
<Col className="gap-4 text-ink-700">
|
|
<p>
|
|
{t(
|
|
'onboarding.soft-gate.intro',
|
|
"You've answered your first compatibility questions and shared your top interests.",
|
|
)}
|
|
</p>
|
|
<p className="text-left space-y-2 text-ink-600">
|
|
{t('onboarding.soft-gate.what_it_means', "Here's what that means for you:")}
|
|
</p>
|
|
|
|
<ul className="text-left mx-auto space-y-2">
|
|
{/*<li>*/}
|
|
{/* {t("onboarding.soft-gate.bullet1", "Compatibility scores now reflect your values and preferences")}*/}
|
|
{/*</li>*/}
|
|
<li>
|
|
<span>
|
|
{t(
|
|
'onboarding.soft-gate.bullet2',
|
|
"You'll see match percentages that align closely with what you care about",
|
|
)}
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span>
|
|
{t(
|
|
'onboarding.soft-gate.bullet3',
|
|
'You can update your profile anytime to increase the chances of the right people reaching out.',
|
|
)}
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</Col>
|
|
|
|
<Col className="gap-3 items-center">
|
|
<Button onClick={handleExplore} size="lg">
|
|
{t('onboarding.soft-gate.explore_button', 'Explore Profiles Now')}
|
|
</Button>
|
|
|
|
<button
|
|
onClick={handleRefine}
|
|
className="text-sm text-ink-500 hover:text-ink-700 transition-colors"
|
|
>
|
|
{t('onboarding.soft-gate.refine_button', 'Refine Profile')}
|
|
</button>
|
|
</Col>
|
|
</Col>
|
|
</Col>
|
|
</PageBase>
|
|
)
|
|
}
|