Skip to content

Commit a88dbc4

Browse files
committed
fix(connection): Redesign instructions for account linking
1 parent dda4a42 commit a88dbc4

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

connection.html

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@
286286
$('#user-code').html(user_code)
287287
$('#verification-uri').attr('href', verification_uri)
288288
$('#verification-uri').html(verification_uri)
289-
$('#expiry').html(expiresAt)
290289
$('#refresh-interval').html(interval)
291290

292291
pollingIntervalId = setInterval(async () => {
@@ -442,11 +441,24 @@
442441

443442
#user-code {
444443
font-family: 'Courier New', Courier, monospace;
444+
font-size: 140%;
445+
font-weight: bold;
446+
color: #3737bd;
445447
}
446448

447449
#device-code a {
448450
text-decoration: underline !important;
449451
}
452+
453+
#device-code .step {
454+
height: 25px;
455+
width: 25px;
456+
line-height: 25px;
457+
color: rgb(236, 233, 233);
458+
background-color: rgb(114, 137, 160);
459+
border-radius: 50%;
460+
display: inline-block;
461+
}
450462
</style>
451463

452464
<script type="text/html" data-template-name="vsh-connection">
@@ -467,20 +479,35 @@ <h1>Account Linking</h1>
467479
that connection instead of creating another one!
468480
</p>
469481
<p>
470-
The connection must be linked to the same Amazon Alexa account that was /
471-
will be used to activate the 'virtual smart home' skill.
482+
Follow these steps to link this connection to the <i>same</i> Amazon Alexa
483+
account that was used to activate the 'virtual smart home' skill.
472484
</p>
485+
473486
<p>
487+
<span class="step">1</span>
488+
<br />
474489
Go to
475-
<a id="verification-uri" href="" target="_blank">VERIFICATION_URI</a> on
476-
your smartphone, computer, or tablet and enter this code after logging in:
490+
<a id="verification-uri" href="" target="_blank">VERIFICATION_URI</a>
491+
</p>
492+
<p>
493+
<span class="step">2</span>
494+
<br />
495+
Enter this code (after logging in)
496+
<br />
497+
<span id="user-code">USER_CODE</span>
498+
</p>
499+
<p>
500+
<span class="step">3</span>
501+
<br />
502+
Wait up to <span id="refresh-interval">REFRESH-INTERVAL</span> seconds for
503+
this message to disappear
477504
</p>
478-
<h2 id="user-code">USER_CODE</h2>
479505
<p>
480-
Once you entered the code, the linking process may take up to
481-
<span id="refresh-interval">REFRESH-INTERVAL</span> seconds.
506+
<span class="step">4</span>
507+
<br />
508+
Close this dialog by clicking the &quot;Add&quot; / &quot;Update&quot;
509+
button
482510
</p>
483-
<p>The code expires <span id="expiry">EXPIRY</span>.</p>
484511
</div>
485512

486513
<div id="provisioned">

0 commit comments

Comments
 (0)