Skip to content

Commit 5e88f42

Browse files
authored
fix: improve payment link sharing UI with updated styles and icons (#5313)
1 parent b1e79a7 commit 5e88f42

File tree

2 files changed

+45
-9
lines changed

2 files changed

+45
-9
lines changed

packages/webapp/pages/recruiter/[opportunityId]/payment.tsx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useRouter } from 'next/router';
44
import { RecruiterPaymentContext } from '@dailydotdev/shared/src/contexts/RecruiterPaymentContext/RecruiterPaymentContext';
55
import HeaderLogo from '@dailydotdev/shared/src/components/layout/HeaderLogo';
66
import {
7+
CreditCardIcon,
78
MoveToIcon,
89
ShareIcon,
910
} from '@dailydotdev/shared/src/components/icons';
@@ -227,16 +228,26 @@ const RecruiterPaymentPage = (): ReactElement => {
227228
</Typography>
228229
</div>
229230
</div>
230-
<div className="mt-6 flex flex-col gap-2 rounded-12 border border-border-subtlest-tertiary bg-surface-float p-4">
231-
<Typography
232-
type={TypographyType.Footnote}
233-
color={TypographyColor.Tertiary}
234-
>
235-
Need someone else to complete the payment?
236-
</Typography>
231+
<div className="relative mt-6 overflow-hidden rounded-16 border-l-4 border-accent-cabbage-default bg-gradient-to-r from-action-share-float to-transparent p-4">
232+
<div className="flex items-center gap-4">
233+
<div className="flex size-12 shrink-0 items-center justify-center rounded-12 bg-action-share-float">
234+
<CreditCardIcon className="text-accent-cabbage-default" />
235+
</div>
236+
<FlexCol className="flex-1 gap-1">
237+
<Typography type={TypographyType.Body} bold>
238+
Need someone else to pay?
239+
</Typography>
240+
<Typography
241+
type={TypographyType.Footnote}
242+
color={TypographyColor.Secondary}
243+
>
244+
Share a secure payment link with your finance team
245+
</Typography>
246+
</FlexCol>
247+
</div>
237248
<Button
249+
className="mt-4 w-full"
238250
variant={ButtonVariant.Secondary}
239-
size={ButtonSize.Small}
240251
icon={<ShareIcon />}
241252
onClick={handleSharePaymentLink}
242253
>

packages/webapp/pages/recruiter/[opportunityId]/plans.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Typography,
1212
TypographyType,
1313
TypographyColor,
14+
TypographyTag,
1415
} from '@dailydotdev/shared/src/components/typography/Typography';
1516
import { VIcon } from '@dailydotdev/shared/src/components/icons/V';
1617
import { InfoIcon } from '@dailydotdev/shared/src/components/icons/Info';
@@ -28,7 +29,10 @@ import { getPathnameWithQuery } from '@dailydotdev/shared/src/lib';
2829
import { anchorDefaultRel } from '@dailydotdev/shared/src/lib/strings';
2930
import { Loader } from '@dailydotdev/shared/src/components/Loader';
3031
import { recruiterPremiumPlanBg } from '@dailydotdev/shared/src/styles/custom';
31-
import { WarningIcon } from '@dailydotdev/shared/src/components/icons';
32+
import {
33+
CreditCardIcon,
34+
WarningIcon,
35+
} from '@dailydotdev/shared/src/components/icons';
3236
import {
3337
getLayout,
3438
layoutProps,
@@ -312,6 +316,27 @@ const RecruiterPlans = (): ReactElement => {
312316
</Typography>
313317
</div>
314318

319+
<div className="flex items-center gap-3 rounded-12 border-l-4 border-accent-cabbage-default bg-gradient-to-r from-action-share-float to-transparent px-4 py-3">
320+
<CreditCardIcon
321+
size={IconSize.Medium}
322+
className="text-accent-cabbage-default"
323+
/>
324+
<Typography
325+
type={TypographyType.Callout}
326+
color={TypographyColor.Secondary}
327+
>
328+
<Typography
329+
tag={TypographyTag.Span}
330+
type={TypographyType.Callout}
331+
bold
332+
>
333+
Not the one paying?
334+
</Typography>{' '}
335+
No problem — you can share a secure payment link with your finance
336+
team in the next step.
337+
</Typography>
338+
</div>
339+
315340
<div className="flex flex-col gap-4 laptop:flex-row">
316341
{isPending && !prices && (
317342
<div className="flex min-h-[31rem] flex-1 flex-col items-center justify-center gap-6 rounded-16 border border-border-subtlest-tertiary p-6">

0 commit comments

Comments
 (0)