diff --git a/app/tools/page.tsx b/app/tools/page.tsx index ddb51fa..5904741 100644 --- a/app/tools/page.tsx +++ b/app/tools/page.tsx @@ -6,7 +6,7 @@ export default function ToolsPage() { return (

Tools

-
+

UTM Campaign Builder

diff --git a/components/dashboard/Campaigns.tsx b/components/dashboard/Campaigns.tsx index 97dd753..5bee4ee 100644 --- a/components/dashboard/Campaigns.tsx +++ b/components/dashboard/Campaigns.tsx @@ -3,7 +3,7 @@ import { useState, useEffect } from 'react' import Link from 'next/link' import { formatNumber } from '@/lib/utils/format' -import { Modal, ArrowRightIcon } from '@ciphera-net/ui' +import { Modal, ArrowRightIcon, Button } from '@ciphera-net/ui' import { getCampaigns, CampaignStat } from '@/lib/api/stats' import { FaBullhorn } from 'react-icons/fa' import { PlusIcon } from '@radix-ui/react-icons' @@ -70,21 +70,23 @@ export default function Campaigns({ siteId, dateRange }: CampaignsProps) {

Campaigns

-
- + {showViewAll && ( - + )}
diff --git a/components/tools/UtmBuilder.tsx b/components/tools/UtmBuilder.tsx index 37c3710..f4b1593 100644 --- a/components/tools/UtmBuilder.tsx +++ b/components/tools/UtmBuilder.tsx @@ -3,7 +3,7 @@ import { useState, useEffect } from 'react' import { CopyIcon, CheckIcon } from '@radix-ui/react-icons' import { listSites, Site } from '@/lib/api/sites' -import { Select } from '@ciphera-net/ui' +import { Select, Input, Button } from '@ciphera-net/ui' interface UtmBuilderProps { initialSiteId?: string @@ -132,62 +132,58 @@ export default function UtmBuilder({ initialSiteId }: UtmBuilderProps) { )}
- + {selectedSite ? ( -
- +
+ https://{selectedSite.domain}
) : ( - )} -

+

You can add specific paths (e.g., /blog/post-1) to the URL above.

- - Source * +
- - Medium * +
- - Campaign Name * + @@ -197,13 +193,14 @@ export default function UtmBuilder({ initialSiteId }: UtmBuilderProps) { {generatedUrl && (
{generatedUrl} - + {copied ? : } +
)}