@@ -76,14 +76,6 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
7676 } ) ;
7777 } , [ _props . copyKeysUrl ] ) ;
7878
79- const getKeysUrlFromLastActive = useMemo ( ( ) => {
80- return withLastActiveFallback ( ( ) => {
81- const redirectUrlParts = handleDashboardUrlParsing ( _props . copyKeysUrl ) ;
82- const url = new URL ( `${ redirectUrlParts . baseDomain } /last-active?path=api-keys` ) ;
83- return url . href ;
84- } ) ;
85- } , [ _props . copyKeysUrl ] ) ;
86-
8779 const mainCTAStyles = css `
8880 ${ basePromptElementStyles } ;
8981 dis play: flex;
@@ -133,7 +125,7 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
133125 flexDirection : 'column' ,
134126 alignItems : 'flex-center' ,
135127 justifyContent : 'flex-center' ,
136- height : claimed || success ? 'fit-content' : isSignedIn ? '11rem ' : '12rem' ,
128+ height : claimed || success ? 'fit-content' : isSignedIn ? '8.5rem ' : '12rem' ,
137129 overflow : 'hidden' ,
138130 width : 'fit-content' ,
139131 minWidth : '16.125rem' ,
@@ -321,13 +313,12 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
321313 aria-labelledby = { buttonIdentifier }
322314 hidden = { ! isForcedExpanded }
323315 >
324- < p
316+ < div
325317 css = { css `
326- ${ basePromptElementStyles } ;
318+ display : flex;
319+ flex-direction : column;
320+ gap : 0.5rem ;
327321 color : # b4b4b4 ;
328- font- size: 0.8125rem;
329- font- weight: 400;
330- line-height: 1rem;
331322 max-width : 14.625rem ;
332323 animation : ${ isForcedExpanded && 'show-description 500ms ease-in forwards' } ;
333324 @keyframes show-description {
@@ -343,16 +334,26 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
343334 ` }
344335 >
345336 { success ? (
346- < >
337+ < p
338+ css = { css `
339+ ${ basePromptElementStyles } ;
340+ color : # b4b4b4 ;
341+ font- size: 0.8125rem;
342+ font- weight: 400;
343+ line-height: 1rem;
344+ ` }
345+ >
347346 Your application{ ' ' }
348347 < span
349348 css = { css `
349+ ${ basePromptElementStyles } ;
350350 dis play: inline-block;
351351 white-space: nowrap;
352352 overflow: hidden;
353353 text- overflow: ellipsis ;
354354 max- width: 8.125rem;
355355 vertical- align: botto m;
356+ font- size: 0.8125rem;
356357 font- weight: 500;
357358 color : # d5d5d5 ;
358359 ` }
@@ -375,20 +376,65 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
375376 >
376377 Clerk Dashboard
377378 </ Link >
378- </ >
379+ </ p >
379380 ) : claimed ? (
380- < >
381+ < p
382+ css = { css `
383+ ${ basePromptElementStyles } ;
384+ color : # b4b4b4 ;
385+ font- size: 0.8125rem;
386+ font- weight: 400;
387+ line-height: 1rem;
388+ ` }
389+ >
381390 You claimed this application but haven't set keys in your environment. Get them from the Clerk
382391 Dashboard.
383- </ >
392+ </ p >
393+ ) : isSignedIn ? (
394+ < p
395+ css = { css `
396+ ${ basePromptElementStyles } ;
397+ color : # b4b4b4 ;
398+ font- size: 0.8125rem;
399+ font- weight: 400;
400+ line-height: 1rem;
401+ ` }
402+ >
403+ < span >
404+ You've created your first user! Link this application to your Clerk account to explore the
405+ Dashboard.
406+ </ span >
407+ </ p >
384408 ) : (
385- < span >
386- { isSignedIn
387- ? "You've created your first user! Link this application to your Clerk account to explore the Dashboard."
388- : 'This app uses Clerk for authentication. We generated temporary API keys for you. Link this application to your Clerk account to configure it.' }
389- </ span >
409+ < >
410+ < p
411+ css = { css `
412+ ${ basePromptElementStyles } ;
413+ color : # b4b4b4 ;
414+ font- size: 0.8125rem;
415+ font- weight: 400;
416+ line-height: 1rem;
417+ text- wrap: pretty;
418+ ` }
419+ >
420+ Temporary API keys are enabled so you can get started immediately.
421+ </ p >
422+ < p
423+ css = { css `
424+ ${ basePromptElementStyles } ;
425+ color : # b4b4b4 ;
426+ font- size: 0.8125rem;
427+ font- weight: 400;
428+ line-height: 1rem;
429+ text- wrap: pretty;
430+ ` }
431+ >
432+ Claim this application to access the Clerk Dashboard where you can manage auth settings and explore
433+ more Clerk features.
434+ </ p >
435+ </ >
390436 ) }
391- </ p >
437+ </ div >
392438 </ div >
393439
394440 { isForcedExpanded &&
@@ -457,53 +503,6 @@ const KeylessPromptInternal = (_props: KeylessPromptProps) => {
457503 >
458504 { claimed ? 'Get API keys' : 'Claim application' }
459505 </ a >
460-
461- { ! claimed && (
462- < >
463- < span
464- css = { css `
465- height : 1px ;
466- background-color : # 151515 ;
467- width : 100% ;
468- box-shadow : 0px 1px 0px 0px # 424242 ;
469- ` }
470- />
471-
472- < a
473- href = { getKeysUrlFromLastActive }
474- target = '_blank'
475- rel = 'noopener noreferrer'
476- css = { css `
477- ${ basePromptElementStyles } ;
478- color : # ffffff9e ;
479- font- size: 0.75rem;
480- transition: color 120ms ease- out;
481-
482- : hover {
483- color : # ffffffcf ;
484- text-decoration : none;
485- }
486-
487- animation : ${ isForcedExpanded && isSignedIn
488- ? 'show-secondary-CTA 800ms ease forwards'
489- : 'show-secondary-CTA 650ms ease-in forwards' } ;
490-
491- @keyframes show-secondary-CTA {
492- 0% ,
493- 9% {
494- opacity : 0 ;
495- }
496- 19% ,
497- 100% {
498- opacity : 1 ;
499- }
500- }
501- ` }
502- >
503- Already have a Clerk app? Get keys
504- </ a >
505- </ >
506- ) }
507506 </ Flex >
508507 ) ) }
509508 </ Flex >
0 commit comments