Skip to content

Commit c4b9060

Browse files
authored
add announcement banner (#945)
* add announcement banner * update copy
1 parent 65cdf61 commit c4b9060

File tree

5 files changed

+62
-15
lines changed

5 files changed

+62
-15
lines changed

packages/dashboard-app/src/components/installs/modal/login/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Tab, { ProfileTab } from "./tabs";
1010
import { useLocalStateZodDefault } from "@/hooks/store/useState";
1111
import { z } from "zod";
1212
import { Link } from "@/components/ui/link";
13-
import { Q_MIGRATION_URL } from "@/lib/constants";
13+
import { KIRO_CLI_URL } from "@/lib/constants";
1414
import { useAuth, useAuthRequest, useRefreshAuth } from "@/hooks/store/useAuth";
1515

1616
export default function LoginModal({ next }: { next: () => void }) {
@@ -191,10 +191,10 @@ export default function LoginModal({ next }: { next: () => void }) {
191191
{completedOnboarding && tab == "builderId" && (
192192
<div className="text-center flex flex-col">
193193
<div className="font-ember font-bold">
194-
CodeWhisperer is now Amazon Q
194+
Amazon Q Developer CLI users can now upgrade to the Kiro CLI
195195
</div>
196-
<Link href={Q_MIGRATION_URL} className="text-sm">
197-
Read the announcement blog post
196+
<Link href={KIRO_CLI_URL} className="text-sm">
197+
Learn more &gt;
198198
</Link>
199199
</div>
200200
)}

packages/dashboard-app/src/components/svg/logo.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,26 @@ export default function Lockup({
1616
</Svg>
1717
);
1818
}
19+
20+
export function KiroLogo({ size }: { size?: number }) {
21+
return (
22+
<Svg size={size} ratio={[45, 54]}>
23+
<path
24+
fill="white"
25+
d="M8.07468 38.7532C2.79107 50.2061 14.0447 53.081 22.3452 46.378C24.7875 53.8935 33.934 48.2842 37.2223 42.4562C44.4533 29.6127 41.5322 16.5192 40.782 13.8162C35.642 -4.60537 9.9423 -4.63662 5.52067 13.9099C4.4831 17.1598 4.46714 20.8473 3.89249 24.6753C3.60516 26.6128 3.38169 27.8471 2.63145 29.8783C2.18449 31.0502 1.59388 32.0814 0.636126 33.8314C-0.832429 36.5501 -0.209889 41.7844 7.38829 39.0657L8.1066 38.7532H8.07468Z"
26+
/>
27+
<path
28+
fillRule="evenodd"
29+
clipRule="evenodd"
30+
fill="black"
31+
d="M23.335 21.8005C21.2279 21.8005 20.9087 19.3318 20.9087 17.8631C20.9087 16.535 21.1481 15.4881 21.611 14.8163C22.0101 14.2225 22.6007 13.9257 23.335 13.9257C24.0693 13.9257 24.7078 14.2225 25.1547 14.8319C25.6655 15.5194 25.9369 16.5662 25.9369 17.8631C25.9369 20.3318 24.9632 21.8005 23.351 21.8005H23.335Z"
32+
/>
33+
<path
34+
fillRule="evenodd"
35+
clipRule="evenodd"
36+
fill="black"
37+
d="M32.0025 21.8005C29.8954 21.8005 29.5762 19.3318 29.5762 17.8631C29.5762 16.535 29.8156 15.4881 30.2785 14.8163C30.6776 14.2225 31.2682 13.9257 32.0025 13.9257C32.7368 13.9257 33.3753 14.2225 33.8222 14.8319C34.333 15.5194 34.6044 16.5662 34.6044 17.8631C34.6044 20.3318 33.6307 21.8005 32.0184 21.8005H32.0025Z"
38+
/>
39+
</Svg>
40+
);
41+
}

packages/dashboard-app/src/index.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
--ring: 240 10% 3.9%;
7373

7474
--radius: 0.5rem;
75+
76+
/* Amazon Q Developer CLI upgrade banner colors */
77+
--q-banner-bg: #262626;
78+
--q-banner-border: #8e48ff;
79+
--q-banner-link: #b07fff;
7580
}
7681

7782
body {
@@ -107,6 +112,11 @@
107112
--border: 240 3.7% 15.9%;
108113
--input: 240 3.7% 15.9%;
109114
--ring: 240 4.9% 83.9%;
115+
116+
/* Amazon Q Developer CLI upgrade banner colors */
117+
--q-banner-bg: #262626;
118+
--q-banner-border: #8e48ff;
119+
--q-banner-link: #b07fff;
110120
}
111121
}
112122

@@ -140,7 +150,8 @@
140150
}
141151

142152
.gradient-q-secondary-dark {
143-
background: radial-gradient(
153+
background:
154+
radial-gradient(
144155
122.5% 122.5% at 0% 0%,
145156
#000000 0%,
146157
rgba(0, 0, 0, 0) 100%
@@ -162,6 +173,11 @@
162173
),
163174
#301673;
164175
}
176+
177+
.q-banner {
178+
background-color: var(--q-banner-bg);
179+
border: 1px solid var(--q-banner-border);
180+
}
165181
}
166182

167183
/* Currently an issue with Linux webkit CSS variables */

packages/dashboard-app/src/lib/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const TELEMETRY_WIKI_URL =
2020
"https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/opt-out-IDE.html";
2121
export const Q_MIGRATION_URL =
2222
"https://docs.aws.amazon.com/codewhisperer/latest/userguide/whisper-legacy.html";
23+
export const KIRO_CLI_URL = "https://kiro.dev/cli";
2324

2425
export const AMZN_START_URL = "https://amzn.awsapps.com/start";
2526

packages/dashboard-app/src/pages/onboarding.tsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import autocompleteDemo from "@assets/images/autocomplete_demo.gif";
22
import translateDemo from "@assets/images/translate_demo.gif";
33
import chatDemo from "@assets/images/chat_demo.gif";
44
import { Link } from "@/components/ui/link";
5-
import { QLogo } from "@/components/svg/icons";
6-
import { AUTOCOMPLETE_SSH_WIKI_URL, Q_MIGRATION_URL } from "@/lib/constants";
5+
import { AUTOCOMPLETE_SSH_WIKI_URL, KIRO_CLI_URL } from "@/lib/constants";
76
import { Terminal } from "@/components/ui/terminal";
7+
import { KiroLogo } from "@/components/svg/logo";
88

99
export default function Page() {
1010
return (
@@ -14,20 +14,27 @@ export default function Page() {
1414
Getting started
1515
</h1>
1616
</div>
17-
<section className="flex flex-col p-6 gap-4 w-full gradient-q-secondary-light-alt rounded-lg items-start text-white">
17+
<section className="flex flex-col p-6 gap-4 w-full rounded-2xl items-start text-white q-banner">
1818
<div className="flex flex-row gap-4 w-full items-center">
19-
<QLogo size={42} />
19+
<div className="flex-shrink-0">
20+
<KiroLogo size={60} />
21+
</div>
2022
<div className="flex flex-col gap-1">
21-
<h1 className="font-bold text-xl font-ember leading-none">
22-
CodeWhisperer is now Amazon Q
23+
<h1 className="font-bold text-lg font-ember leading-none">
24+
Amazon Q Developer CLI users can now upgrade to the Kiro CLI
2325
</h1>
24-
<p className="text-base leading-tight">
26+
<p className="text-sm leading-tight">
27+
The Kiro CLI leverages the agentic features of Q CLI and can be
28+
used with your existing Q Developer subscription. If you have auto
29+
updates enabled for the Q CLI, unless you disable that setting, Q
30+
CLI will auto update to Kiro CLI on 11/24{" "}
2531
<Link
26-
href={Q_MIGRATION_URL}
27-
className="font-medium"
32+
href={KIRO_CLI_URL}
33+
className="font-medium no-underline"
2834
variant="primary"
35+
style={{ color: "var(--q-banner-link)" }}
2936
>
30-
Read the announcement blog post
37+
Learn more &gt;
3138
</Link>
3239
</p>
3340
</div>

0 commit comments

Comments
 (0)