Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 7dafa07

Browse files
committed
update styling
1 parent 736c8e7 commit 7dafa07

File tree

3 files changed

+28
-24
lines changed

3 files changed

+28
-24
lines changed

index.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
<h1>
1515
Real-time Audio Transcription
1616
</h1>
17-
Using the <a href="https://aws.amazon.com/transcribe/">Amazon Transcribe</a> WebSocket API
18-
<hr />
17+
<p class="small-caps">
18+
Using the <a href="https://aws.amazon.com/transcribe/">Amazon Transcribe</a> WebSocket API
19+
</p>
20+
<hr/>
1921
<p>
2022
Create an <a href="https://aws.amazon.com/free/">AWS Account</a>, attach the necessary <a
21-
href="policy.json"> IAM policy</a>, and enter your Access Id and Secret Key below
23+
href="policy.json"> IAM policy</a>, and enter your Access Id and Secret Key below
2224
</p>
2325

2426
<div id="error" class="isa_error"></div>
2527

26-
2728
<div class="row">
2829
<div class="col">
2930
<label>Access ID:</label>
3031
<input type="password" id="access_id" placeholder="ACCESS ID" value="" />
3132

3233
<label>Secret Key:</label>
3334
<input type="password" id="secret_key" placeholder="SECRET KEY" value="" />
34-
3535
</div>
3636
<div class="col">
3737
<label>Language: </label>
@@ -61,16 +61,21 @@ <h1>
6161

6262
</div>
6363
</div>
64-
<br />
65-
<div class="text-center">
66-
<button id="start-button" class="button-xl" title="Start Transcription"><i class="fa fa-microphone"></i>
67-
Start</button>
68-
<button id="stop-button" class="button-xl" title="Stop Transcription" disabled="true"><i
69-
class="fa fa-stop-circle"></i>
70-
Stop</button>
71-
<textarea id="transcript" placeholder="Press Start and speak into your mic" rows="8"
72-
readonly="readonly"></textarea>
73-
64+
<textarea id="transcript" placeholder="Press Start and speak into your mic" rows="5"
65+
readonly="readonly"></textarea>
66+
<div class="row">
67+
<div class="col">
68+
<button id="start-button" class="button-xl" title="Start Transcription"><i class="fa fa-microphone"></i>
69+
Start</button>
70+
<button id="stop-button" class="button-xl" title="Stop Transcription" disabled="true"><i
71+
class="fa fa-stop-circle"></i>
72+
Stop</button>
73+
</div>
74+
<div class="col">
75+
<a class="float-right" href="https://aws.amazon.com/free/" aria-label="Amazon Web Services">
76+
<img id="logo" src="AWS_logo_RGB.png" alt="AWS Logo" />
77+
</a>
78+
</div>
7479
</div>
7580
</div>
7681

@@ -83,13 +88,8 @@ <h1>
8388
<path
8489
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
8590
fill="currentColor" class="octo-body"></path>
86-
</svg></a>
87-
88-
<div class="text-center">
89-
<a href="https://aws.amazon.com/free/" aria-label="Amazon Web Services">
90-
<img id="logo" src="AWS_logo_RGB.png" alt="AWS Logo" />
91-
</a>
92-
</div>
91+
</svg>
92+
</a>
9393

9494
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
9595
<script src="dist/main.js"></script>

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function getAudioEventMessage(buffer) {
207207
}
208208

209209
function createPresignedUrl() {
210-
let endpoint = "transcribestreaming" + region + ".amazonaws.com";
210+
let endpoint = "transcribestreaming." + region + ".amazonaws.com";
211211

212212
// get a preauthenticated URL that we can use to establish our WebSocket
213213
return v4.createPresignedURL(

styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body {
3030
}
3131

3232
#logo {
33-
height: 80px;
33+
height: 52px;
3434
}
3535

3636
#github {
@@ -40,4 +40,8 @@ body {
4040
top: 0;
4141
border: 0;
4242
right: 0;
43+
}
44+
45+
.small-caps {
46+
font-variant: small-caps;
4347
}

0 commit comments

Comments
 (0)