Skip to content

Commit e9cc623

Browse files
authored
Add AI coding agent CTA to Quickstarts page (#5066)
- Link to Develop with AI from the Quickstarts page via a CallToAction banner - Add a theme-aware light-mode style to the shared CallToAction component (previously dark-only) - Add optional analyticsId support to CallToAction for click tracking
1 parent 9d8009c commit e9cc623

3 files changed

Lines changed: 47 additions & 15 deletions

File tree

docs/quickstarts.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Start building with Temporal using language-specific quickstarts.
66
hide_table_of_contents: true
77
---
88

9-
import { QuickstartCards } from '@site/src/components';
9+
import { QuickstartCards, CallToAction } from '@site/src/components';
1010

1111
# Quickstarts
1212

@@ -25,3 +25,8 @@ Choose your language to get started locally. If you're using Temporal Cloud, che
2525
]}
2626
/>
2727

28+
<CallToAction href="/with-ai" analyticsId="quickstarts-pair-with-ai-cta">
29+
<h3>Pair with an AI coding agent</h3>
30+
<p>Give Claude Code, Cursor, or Codex Temporal expertise with Skills and real-time documentation access.</p>
31+
</CallToAction>
32+

src/components/Quickstart/CallToAction/CallToAction.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import React from 'react';
22
import styles from './call-to-action.module.css';
33

4-
export const CallToAction = ({ href, children }) => {
4+
export const CallToAction = ({ href, children, analyticsId }) => {
5+
const analyticsProps = analyticsId
6+
? { 'data-analytics-id': analyticsId, 'data-analytics-action': 'click' }
7+
: {};
8+
59
return (
6-
<a href={href} className={styles.cta}>
10+
<a href={href} className={styles.cta} {...analyticsProps}>
711
<div className={styles.content}>
812
{children}
913
</div>

src/components/Quickstart/CallToAction/call-to-action.module.css

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,64 @@
22
display: flex;
33
align-items: center;
44
justify-content: space-between;
5-
background: linear-gradient(to right, #2e2e60, #1e1e40);
6-
border: 1px solid #3b3b7c;
5+
background: linear-gradient(to right, #eef0fd, #e4e7fc);
6+
border: 1px solid rgba(68, 76, 231, 0.3);
77
border-radius: 8px;
88
padding: 1.5rem;
99
margin: 2rem 0;
10-
color: #e6e6fa;
10+
color: var(--ifm-color-emphasis-900);
1111
text-decoration: none;
1212
transition: all 0.3s ease;
1313
}
14-
14+
1515
.cta:hover {
1616
transform: translateY(-2px);
17-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
17+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
1818
text-decoration: none;
19-
color: #e6e6fa;
19+
color: var(--ifm-color-emphasis-900);
2020
}
21-
21+
2222
.content {
2323
flex: 1;
2424
}
25-
25+
2626
.content h3 {
2727
margin: 0;
2828
font-size: 1.2rem;
29-
color: #e6e6fa;
29+
color: var(--ifm-color-emphasis-900);
3030
}
31-
31+
3232
.content p {
3333
margin: 0.5rem 0 0 0;
34-
color: #b4b4d4;
34+
color: var(--ifm-color-emphasis-700);
3535
font-size: 0.95rem;
3636
}
37-
37+
3838
.arrow {
3939
font-size: 1.5rem;
4040
margin-left: 1rem;
41+
color: #444CE7;
42+
}
43+
44+
:global([data-theme='dark']) .cta {
45+
background: linear-gradient(to right, #2e2e60, #1e1e40);
46+
border-color: #3b3b7c;
47+
color: #e6e6fa;
48+
}
49+
50+
:global([data-theme='dark']) .cta:hover {
51+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
52+
color: #e6e6fa;
53+
}
54+
55+
:global([data-theme='dark']) .content h3 {
56+
color: #e6e6fa;
57+
}
58+
59+
:global([data-theme='dark']) .content p {
60+
color: #b4b4d4;
61+
}
62+
63+
:global([data-theme='dark']) .arrow {
4164
color: #8585ff;
4265
}

0 commit comments

Comments
 (0)