Skip to content

Commit 2efac9d

Browse files
committed
refactor: improve code formatting and alignment for better readability in multiple components
1 parent c487e12 commit 2efac9d

5 files changed

Lines changed: 72 additions & 23 deletions

File tree

docs/src/components/landing/cta.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export function CTA() {
2323
Start building with Cortex
2424
</h2>
2525
<p className="mt-4 text-lg text-fd-muted-foreground leading-relaxed">
26-
Add human-emulating AI agents to your Go service in minutes.
27-
Cortex handles personas, skills, reasoning loops, and multi-tenant
26+
Add human-emulating AI agents to your Go service in minutes. Cortex
27+
handles personas, skills, reasoning loops, and multi-tenant
2828
orchestration out of the box.
2929
</p>
3030

docs/src/components/landing/delivery-flow-section.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ function AgentReasoningDiagram() {
273273
<EventRow
274274
action="step.completed"
275275
status={phase === 1 ? "indexed" : "processing"}
276-
statusLabel={phase === 1 ? "&#10003; 3 steps" : "&#8635; Reasoning"}
276+
statusLabel={
277+
phase === 1 ? "&#10003; 3 steps" : "&#8635; Reasoning"
278+
}
277279
lineColor={phase === 1 ? "green" : "violet"}
278280
delay={0.6}
279281
/>

docs/src/components/landing/flow-primitives.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ import { cn } from "@/lib/cn";
77
interface FlowNodeProps {
88
label: string;
99
sublabel?: string;
10-
color?: "teal" | "amber" | "green" | "red" | "blue" | "gray" | "purple" | "violet";
10+
color?:
11+
| "teal"
12+
| "amber"
13+
| "green"
14+
| "red"
15+
| "blue"
16+
| "gray"
17+
| "purple"
18+
| "violet";
1119
size?: "sm" | "md" | "lg";
1220
icon?: React.ReactNode;
1321
pulse?: boolean;

docs/src/components/landing/hero.tsx

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ function MiniAgentPipeline() {
5151
fill="none"
5252
aria-hidden="true"
5353
>
54-
<circle cx="6" cy="4" r="2.5" stroke="currentColor" strokeWidth="1.2" />
54+
<circle
55+
cx="6"
56+
cy="4"
57+
r="2.5"
58+
stroke="currentColor"
59+
strokeWidth="1.2"
60+
/>
5561
<path
5662
d="M2 10.5c0-2.2 1.8-4 4-4s4 1.8 4 4"
5763
stroke="currentColor"
@@ -66,7 +72,13 @@ function MiniAgentPipeline() {
6672
<FlowLine length={24} color="violet" delay={2} />
6773
<FlowNode label="Reason" color="violet" size="sm" delay={0.7} />
6874
<FlowLine length={24} color="violet" delay={3} />
69-
<FlowNode label="Execute" color="violet" size="sm" pulse delay={0.85} />
75+
<FlowNode
76+
label="Execute"
77+
color="violet"
78+
size="sm"
79+
pulse
80+
delay={0.85}
81+
/>
7082
</div>
7183

7284
{/* Row 2: Agent lifecycle events */}
@@ -80,7 +92,12 @@ function MiniAgentPipeline() {
8092
className="flex items-center gap-0"
8193
>
8294
<FlowLine length={28} color="green" delay={3} />
83-
<FlowNode label="persona.resolved" color="gray" size="sm" delay={1.1} />
95+
<FlowNode
96+
label="persona.resolved"
97+
color="gray"
98+
size="sm"
99+
delay={1.1}
100+
/>
84101
<FlowLine length={24} color="green" delay={4} />
85102
<StatusBadge status="delivered" label="loaded" />
86103
</motion.div>
@@ -93,12 +110,7 @@ function MiniAgentPipeline() {
93110
className="flex items-center gap-0"
94111
>
95112
<FlowLine length={28} color="violet" delay={5} />
96-
<FlowNode
97-
label="step.3"
98-
color="gray"
99-
size="sm"
100-
delay={1.3}
101-
/>
113+
<FlowNode label="step.3" color="gray" size="sm" delay={1.3} />
102114
<FlowLine length={24} color="violet" delay={6} />
103115
<StatusBadge status="retry" label="reasoning" />
104116
</motion.div>
@@ -111,12 +123,7 @@ function MiniAgentPipeline() {
111123
className="flex items-center gap-0"
112124
>
113125
<FlowLine length={28} color="green" delay={7} />
114-
<FlowNode
115-
label="run.done"
116-
color="gray"
117-
size="sm"
118-
delay={1.5}
119-
/>
126+
<FlowNode label="run.done" color="gray" size="sm" delay={1.5} />
120127
<FlowLine length={24} color="green" delay={8} />
121128
<StatusBadge status="delivered" label="completed" />
122129
</motion.div>

docs/src/components/ui/themed-logo.tsx

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,42 @@ export function ThemedLogo() {
2727
<circle cx="9" cy="22" r="2" className="fill-white/80" />
2828
<circle cx="23" cy="22" r="2" className="fill-white/80" />
2929
{/* Connections */}
30-
<line x1="12" y1="12" x2="14" y2="14" stroke="white" strokeWidth="1.2" strokeOpacity="0.6" />
31-
<line x1="20" y1="12" x2="18" y2="14" stroke="white" strokeWidth="1.2" strokeOpacity="0.6" />
32-
<line x1="12" y1="20" x2="14" y2="18" stroke="white" strokeWidth="1.2" strokeOpacity="0.6" />
33-
<line x1="20" y1="20" x2="18" y2="18" stroke="white" strokeWidth="1.2" strokeOpacity="0.6" />
30+
<line
31+
x1="12"
32+
y1="12"
33+
x2="14"
34+
y2="14"
35+
stroke="white"
36+
strokeWidth="1.2"
37+
strokeOpacity="0.6"
38+
/>
39+
<line
40+
x1="20"
41+
y1="12"
42+
x2="18"
43+
y2="14"
44+
stroke="white"
45+
strokeWidth="1.2"
46+
strokeOpacity="0.6"
47+
/>
48+
<line
49+
x1="12"
50+
y1="20"
51+
x2="14"
52+
y2="18"
53+
stroke="white"
54+
strokeWidth="1.2"
55+
strokeOpacity="0.6"
56+
/>
57+
<line
58+
x1="20"
59+
y1="20"
60+
x2="18"
61+
y2="18"
62+
stroke="white"
63+
strokeWidth="1.2"
64+
strokeOpacity="0.6"
65+
/>
3466
</svg>
3567
</div>
3668
);

0 commit comments

Comments
 (0)