Skip to content

armgit / crm

Public Imported from GitHub
0

Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.

TypeScript

refactor(landing): replace Link components with divs for improved layout consistency

Lewis Carhart79749f5e0f76
diff --git a/apps/app/components/landing/agent-section.tsx b/apps/app/components/landing/agent-section.tsx
index f0710e85..16b02600 100644
--- a/apps/app/components/landing/agent-section.tsx
+++ b/apps/app/components/landing/agent-section.tsx
@@ -127,23 +127,17 @@ function SuggestedAction({
children: React.ReactNode;
}) {
return (
- <Link
- href="/sign-in"
- className="group/action -mx-2 flex items-center gap-3 rounded-sm border-border border-t px-2 py-[13px] text-[13px]/4 transition-colors hover:bg-accent/40"
- >
+ <div className="flex items-center gap-3 border-border border-t py-[13px] text-[13px]/4">
<span
className={cn(
- "flex min-w-0 grow flex-wrap items-center gap-y-2 gap-x-1.5",
+ "flex min-w-0 grow flex-wrap items-center gap-x-1.5 gap-y-2",
className,
)}
>
{children}
</span>
- <ArrowRight
- size={16}
- className="shrink-0 text-muted-foreground transition-transform group-hover/action:translate-x-0.5"
- />
- </Link>
+ <ArrowRight size={16} className="shrink-0 text-muted-foreground" />
+ </div>
);
}
diff --git a/apps/app/components/landing/ask-card.tsx b/apps/app/components/landing/ask-card.tsx
index 49d0f53a..fd4cf2da 100644
--- a/apps/app/components/landing/ask-card.tsx
+++ b/apps/app/components/landing/ask-card.tsx
@@ -1,7 +1,6 @@
"use client";
import { cn } from "@crm/ui/lib/utils";
-import Link from "next/link";
import { useState } from "react";
import { BentoCard, CardHeading } from "./bento-card";
import { SendArrow } from "./send-arrow";
@@ -15,9 +14,9 @@ const QUESTIONS = [
const PLACEHOLDER = "What do they sell?";
/**
- * The one card a reader can actually drive. Picking a question loads it into
- * the composer, and sending it is the sign-in — the answer needs a record, and
- * a record needs an account.
+ * The one card a reader can actually drive: picking a question loads it into
+ * the composer. It goes no further on purpose — the answer needs a record, and
+ * the homepage does not send anybody to a sign-in form to see one.
*/
export function AskCard() {
const [asked, setAsked] = useState<string | null>(null);
@@ -60,13 +59,9 @@ export function AskCard() {
>
{asked ?? PLACEHOLDER}
</span>
- <Link
- href="/sign-in"
- aria-label="Ask this question in the CRM"
- className="flex size-[30px] shrink-0 items-center justify-center rounded-full bg-primary transition-transform hover:scale-105 active:scale-95"
- >
+ <span className="flex size-[30px] shrink-0 items-center justify-center rounded-full bg-primary">
<SendArrow className="size-3.5 text-primary-foreground" />
- </Link>
+ </span>
</div>
</BentoCard>
);
diff --git a/apps/app/components/landing/capabilities-section.tsx b/apps/app/components/landing/capabilities-section.tsx
index b39c7052..d7f8c991 100644
--- a/apps/app/components/landing/capabilities-section.tsx
+++ b/apps/app/components/landing/capabilities-section.tsx
@@ -124,19 +124,15 @@ function AgentBuilderCard() {
<div className="flex select-none flex-col">
<MonoLabel className="h-[26px] shrink-0">SUGGESTED AGENTS</MonoLabel>
{SUGGESTED_AGENTS.map((agent) => (
- <Link
+ <div
key={agent}
- href="/sign-in"
- className="group/agent -mx-2 flex h-11 shrink-0 items-center gap-3 rounded-sm border-border border-t px-2 transition-colors hover:bg-muted/50"
+ className="flex h-11 shrink-0 items-center gap-3 border-border border-t"
>
<span className="min-w-0 grow font-medium text-[13px]/[18px]">
{agent}
</span>
- <ArrowRight
- size={14}
- className="shrink-0 text-muted-foreground transition-transform group-hover/agent:translate-x-0.5"
- />
- </Link>
+ <ArrowRight size={14} className="shrink-0 text-muted-foreground" />
+ </div>
))}
</div>
</BentoCard>