Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update ui

Kiran K1dd30e22749b
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/layout.tsx
index c73d4b2571..b2b3014f2c 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/layout.tsx
@@ -7,11 +7,9 @@ export default function ProgramLayout({ children }: { children: ReactNode }) {
return (
<PageContent>
<div className="relative min-h-[calc(100vh-16px)]">
- <MaxWidthWrapper className="grid gap-5 pb-10 pt-3">
- <div className="grid gap-4">
- <ProgramHeader />
- {children}
- </div>
+ <MaxWidthWrapper>
+ <ProgramHeader />
+ {children}
</MaxWidthWrapper>
</div>
</PageContent>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/delete-program.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/delete-program.tsx
index a85939ac1c..e7043938b4 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/delete-program.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/delete-program.tsx
@@ -9,8 +9,8 @@ export function DeleteProgram({ programId }: { programId: string }) {
return (
<div className="rounded-lg border border-gray-200 bg-white">
<div className="flex flex-col gap-1 p-8">
- <h2 className="text-xl font-medium text-gray-900">Delete program</h2>
- <p className="text-sm font-normal text-gray-600">
+ <h2 className="text-xl font-medium text-neutral-900">Delete program</h2>
+ <p className="text-sm font-normal text-neutral-600">
Permanently delete your affiliate program, and all of your data. This
action cannot be undone - please proceed with caution.
</p>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/settings.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/settings.tsx
index 35ff58ccb2..a388932ff9 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/settings.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/settings/settings.tsx
@@ -17,15 +17,17 @@ const commissionTypes = [
export function ProgramSettings({ programId }: { programId: string }) {
return (
- <div className="rounded-lg border border-gray-200 bg-white">
+ <div className="rounded-lg border border-neutral-200 bg-white">
<div className="flex items-center border-b border-neutral-200 p-6">
<h2 className="text-xl font-medium text-neutral-900">Program</h2>
</div>
<div className="space-y-8 divide-y divide-neutral-200 p-8">
<div className="flex flex-col gap-2 sm:flex-row">
- <h3 className="basis-1/2 font-medium text-gray-900">Summary</h3>
- <p className="basis-1/2 rounded-md border border-neutral-200 bg-[#f9f9f9] p-4 text-sm font-normal leading-relaxed text-neutral-600">
+ <h3 className="basis-1/2 font-medium leading-none text-neutral-900">
+ Summary
+ </h3>
+ <p className="basis-1/2 rounded-md border border-neutral-200 bg-[#f9f9f9] p-4 text-sm font-normal leading-relaxed text-neutral-900">
Earn $10.00 for each conversion, and again for every conversion of
the customers lifetime.
</p>
@@ -33,8 +35,10 @@ export function ProgramSettings({ programId }: { programId: string }) {
<div className="flex flex-col gap-2 pt-8 sm:flex-row">
<div className="flex basis-1/2 flex-col gap-1">
- <h3 className="font-medium text-gray-900">Commission</h3>
- <p className="text-sm text-gray-600">
+ <h3 className="font-medium leading-none text-neutral-900">
+ Commission
+ </h3>
+ <p className="text-sm font-normal text-neutral-600">
Set how the affiliate will get rewarded
</p>
</div>
@@ -43,7 +47,7 @@ export function ProgramSettings({ programId }: { programId: string }) {
{commissionTypes.map((commissionType) => (
<label
key={commissionType.value}
- className="relative inline-flex w-full cursor-pointer flex-col gap-1 rounded-md border border-neutral-200 bg-white p-3 hover:bg-gray-50"
+ className="relative inline-flex w-full cursor-pointer flex-col gap-1 rounded-md border border-neutral-200 bg-white p-3 hover:bg-neutral-50"
>
<input
type="radio"
@@ -62,12 +66,15 @@ export function ProgramSettings({ programId }: { programId: string }) {
</div>
<div>
- <label htmlFor="duration" className="flex items-center space-x-2">
- <h2 className="text-sm font-medium text-gray-600">Duration</h2>
+ <label
+ htmlFor="duration"
+ className="text-sm font-medium text-neutral-800"
+ >
+ Duration
</label>
<div className="relative mt-2 rounded-md shadow-sm">
<select
- className="block w-full rounded-md border-gray-300 text-gray-900 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-neutral-300 text-neutral-900 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
required
>
<option value="checking">Checking</option>
@@ -80,24 +87,24 @@ export function ProgramSettings({ programId }: { programId: string }) {
<div className="flex flex-col gap-2 pt-8 sm:flex-row">
<div className="flex basis-1/2 flex-col gap-1">
- <h3 className="font-medium text-gray-900">Payout</h3>
- <p className="text-sm text-gray-500">
+ <h3 className="font-medium leading-none text-neutral-900">
+ Payout
+ </h3>
+ <p className="text-sm font-normal text-neutral-600">
Set how much the affiliate will get rewarded
</p>
</div>
<p className="basis-1/2 space-y-6">
<div>
<label
- htmlFor="payoutModel"
- className="flex items-center space-x-2"
+ htmlFor="duration"
+ className="text-sm font-medium text-neutral-800"
>
- <h2 className="text-sm font-medium text-gray-600">
- Payout model
- </h2>
+ Payout model
</label>
<div className="relative mt-2 rounded-md shadow-sm">
<select
- className="block w-full rounded-md border-gray-300 text-gray-900 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-neutral-300 text-neutral-900 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
required
>
<option value="flat">Flat</option>
@@ -108,14 +115,14 @@ export function ProgramSettings({ programId }: { programId: string }) {
<div>
<label
- htmlFor="payoutAmount"
- className="flex items-center space-x-2"
+ htmlFor="duration"
+ className="text-sm font-medium text-neutral-800"
>
- <h2 className="text-sm font-medium text-gray-600">Amount</h2>
+ Amount
</label>
<div className="relative mt-2 rounded-md shadow-sm">
<input
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
required
autoComplete="off"
/>
@@ -124,21 +131,19 @@ export function ProgramSettings({ programId }: { programId: string }) {
<div>
<label
- htmlFor="minimumAmount"
- className="flex items-center space-x-2"
+ htmlFor="duration"
+ className="text-sm font-medium text-neutral-800"
>
- <h2 className="text-sm font-medium text-gray-600">
- Minimum payout
- </h2>
+ Minimum payout
</label>
<div className="relative mt-2 rounded-md shadow-sm">
<input
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
+ className="block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
required
autoComplete="off"
/>
</div>
- <p className="mt-2 text-sm text-gray-500">
+ <p className="mt-2 text-sm text-neutral-500">
Minimum payout is $100
</p>
</div>
@@ -146,7 +151,7 @@ export function ProgramSettings({ programId }: { programId: string }) {
</div>
</div>
- <div className="flex items-center justify-end border-t border-neutral-200 bg-gray-50 px-8 py-5">
+ <div className="flex items-center justify-end border-t border-neutral-200 bg-neutral-50 px-8 py-5">
<div>
<Button text="Save changes" className="h-8" />
</div>