Skip to content

Commit

Permalink
feat: add new stt demo notification banner
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Nov 23, 2020
1 parent 356fb1c commit 6f92e49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/css/style.css
Expand Up @@ -154,3 +154,7 @@ dialog, dd, dt {
font-size: 10pt;
margin-top: 1em;
}

.new_demo_notification {
max-width: 48rem;
}
10 changes: 10 additions & 0 deletions views/demo.jsx
Expand Up @@ -17,6 +17,7 @@ import samples from '../src/data/samples.json';
import cachedModels from '../src/data/models.json';

const ERR_MIC_NARROWBAND = 'Microphone transcription cannot accommodate narrowband voice models, please select a broadband one.';
const NEW_DEMO_NOTIFICATION = 'A new Speech to Text demo is available, check it out ';

export class Demo extends Component {
constructor(props) {
Expand Down Expand Up @@ -460,6 +461,15 @@ export class Demo extends Component {
</div>
</div>

<div className="new_demo_notification">
<Alert type="info" color="blue">
{NEW_DEMO_NOTIFICATION}
<a href="https://www.ibm.com/demos/live/speech-to-text/self-service/home" target="blank">
here.
</a>
</Alert>
</div>

<h2 className="base--h2">Transcribe Audio</h2>

<ul className="base--ul">
Expand Down

0 comments on commit 6f92e49

Please sign in to comment.