Files
Ivan VasilovandJoshen Lim 586a829828 feat: Project claim (#35992)
* Add another page for claiming a project.

* Fix a misspell.

* Minor fixes.

* Comment some test code.

* Update the design on the confirm step.

* Reorganize the authorize page. Bunch of design fixes for the claim page.

* Fix

* Delete added files my mistake.

* Separate claim-project and authorize pages. Minor design fixes.

* Add more logs to the generate claim button.

* snapshot.

* Add more copy to the three steps.

* Make the claim URL button better.

* Add missing comma.

* Fix unneeded changes.

* Make the header full width.

* Fix all comments by Joshen.

* Clean up extra code.

* Forgotten some things to clean.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-06-10 11:49:23 +03:00

92 lines
3.5 KiB
TypeScript

import { CheckCircle2 } from 'lucide-react'
import { ApiAuthorizationResponse } from 'data/api-authorization/api-authorization-query'
import { OrganizationProjectClaimResponse } from 'data/organizations/organization-project-claim-query'
import { Button } from 'ui'
import { ProjectClaimLayout } from './layout'
export const ProjectClaimBenefits = ({
projectClaim,
requester,
onContinue,
}: {
projectClaim: OrganizationProjectClaimResponse
requester: ApiAuthorizationResponse
onContinue: () => void
}) => {
return (
<ProjectClaimLayout
title={
<>
Claim a project <span className="text-brand">{projectClaim?.project?.name}</span> from{' '}
<span className="text-brand">{requester?.name}</span>
</>
}
>
<div className="space-y-8 text-sm flex flex-col items-center">
<div className="space-y-4 mt-6">
<h3 className="">Why manage your database project on Supabase?</h3>
<ul className="space-y-3">
<li className="flex space-x-2">
<CheckCircle2 className="text-brand w-5 h-5" />
<span>
<span className="text-foreground-light">Excellent Technical Support</span>
<span className="block text-foreground-lighter">
Get expert help when you need it, with support ready to assist your development
process.
</span>
</span>
</li>
<li className="flex space-x-2">
<CheckCircle2 className="text-brand w-5 h-5" />
<span>
<span className="text-foreground-light">Unrestricted usage.</span>
<span className="block text-foreground-lighter">
Grow your application without hitting arbitrary usage caps—built to scale with
you.
</span>
</span>
</li>
<li className="flex space-x-2">
<CheckCircle2 className="text-brand w-5 h-5" />
<span>
<span className="text-foreground-light">Visibility into your data.</span>
<span className="block text-foreground-lighter">
You'll have full control over your data to help your users get the best
experience.
</span>
</span>
</li>
<li className="flex space-x-2">
<CheckCircle2 className="text-brand w-5 h-5" />
<span>
<span className="text-foreground-light">Observability and easy debugging.</span>
<span className="block text-foreground-lighter">
You'll have full view when things go wrong.
</span>
</span>
</li>
<li className="flex space-x-2">
<div>
<CheckCircle2 className="text-brand w-5 h-5" />
</div>
<span>
<span className="text-foreground-light">Easy Compute Scaling.</span>
<span className="block text-foreground-lighter">
Upgrade compute resources to handle increased traffic and larger database
operations smoothly.
</span>
</span>
</li>
</ul>
</div>
<div className="flex justify-center sticky bottom-0">
<Button size="medium" onClick={onContinue}>
Continue connection
</Button>
</div>
</div>
</ProjectClaimLayout>
)
}