Skip to content

Commit

Permalink
small improvements to onboarding flow
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Nov 16, 2024
1 parent 8f682df commit f972d6a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@ export const ComplianceButton = () => {
<Modal
showModal={modalState.show}
setShowModal={() => setModalState({ show: false, iframeSrc: "" })}
className="h-[90vh] w-full max-w-[90vw]"
className="h-[90vh] w-full max-w-[90vw] p-4"
>
<button
onClick={() => setModalState({ show: false, iframeSrc: "" })}
className="group absolute right-4 top-4 rounded-full p-2 transition-colors hover:bg-neutral-100"
>
<X className="size-5 text-neutral-700 transition-all group-hover:scale-110 group-active:scale-90" />
</button>
<iframe src={modalState.iframeSrc} className="h-full w-full" />
<iframe
src={modalState.iframeSrc}
className="h-full w-full rounded-lg"
/>
</Modal>
)}
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function ProfileForm({ partner }: { partner: PartnerProps }) {
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500",
)}
placeholder="Tell us about your business"
placeholder="Tell us about the kind of content you create – e.g. tech, travel, fashion, etc."
minRows={3}
maxRows={10}
{...register("description")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,18 @@ export function PayoutsSettingsPageClient() {
showModal={modalState.show}
setShowModal={() => setModalState({ show: false, iframeSrc: "" })}
onClose={() => mutate()}
className="h-[90vh] w-full sm:max-w-[90vw]"
className="h-full w-full bg-white p-4 sm:h-[80vh] sm:max-w-md"
>
<button
onClick={() => setModalState({ show: false, iframeSrc: "" })}
className="group absolute right-4 top-8 rounded-full p-2 transition-colors hover:bg-neutral-100 sm:top-4"
>
<X className="size-5 text-neutral-700 transition-all group-hover:scale-110 group-active:scale-90" />
</button>
<iframe src={modalState.iframeSrc} className="h-full w-full" />
<iframe
src={modalState.iframeSrc}
className="h-full w-full rounded-lg"
/>
</Modal>
)}
<div className="min-h-screen">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function OnboardingForm() {
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500",
)}
placeholder="Tell us about your business"
placeholder="Tell us about the kind of content you create – e.g. tech, travel, fashion, etc."
minRows={3}
{...register("description")}
/>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/emails/partner-invite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export default function PartnerInvite({
</Heading>

<Text className="text-sm leading-6 text-gray-600">
Acme uses Dub to power their partnership programs and wants to
partner with great people like yourself!
{programName} uses Dub Partners to power their partnership
programs and wants to partner with great people like yourself!
</Text>

<Section className="mb-12 mt-8">
Expand Down

0 comments on commit f972d6a

Please sign in to comment.