Skip to content

Commit ac7e8a9

Browse files
authored
Merge pull request #251 from watson-developer-cloud/new-demo-banner
feat: add new stt demo notification banner
2 parents 356fb1c + 6f92e49 commit ac7e8a9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

public/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,7 @@ dialog, dd, dt {
154154
font-size: 10pt;
155155
margin-top: 1em;
156156
}
157+
158+
.new_demo_notification {
159+
max-width: 48rem;
160+
}

views/demo.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import samples from '../src/data/samples.json';
1717
import cachedModels from '../src/data/models.json';
1818

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

2122
export class Demo extends Component {
2223
constructor(props) {
@@ -460,6 +461,15 @@ export class Demo extends Component {
460461
</div>
461462
</div>
462463

464+
<div className="new_demo_notification">
465+
<Alert type="info" color="blue">
466+
{NEW_DEMO_NOTIFICATION}
467+
<a href="https://www.ibm.com/demos/live/speech-to-text/self-service/home" target="blank">
468+
here.
469+
</a>
470+
</Alert>
471+
</div>
472+
463473
<h2 className="base--h2">Transcribe Audio</h2>
464474

465475
<ul className="base--ul">

0 commit comments

Comments
 (0)