Skip to content

Commit 4f95784

Browse files
add nucleus-box
1 parent 8fe8b74 commit 4f95784

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

src/app/example/example.component.html

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<div class="content">
2-
<h2>VoiceCapture Example</h2>
1+
<nucleus-box title="VoiceCapture Example">
32
<div class="content-actions">
43
<div class="example-actions">
54
<button
@@ -20,9 +19,7 @@ <h2>VoiceCapture Example</h2>
2019
</button>
2120
</div>
2221
<div class="language">
23-
<label for="langSelect" class="lang-label"
24-
>Choose the language:</label
25-
>
22+
<label for="langSelect" class="lang-label">Choose the language:</label>
2623
<select id="langSelect" [(ngModel)]="langSelect" class="lang-select">
2724
<option value="en">English</option>
2825
<option value="pt">Portuguese</option>
@@ -47,9 +44,10 @@ <h2>VoiceCapture Example</h2>
4744
[lang]="langSelect"
4845
[mode]="modeSelect"
4946
/>
50-
</div>
47+
</nucleus-box>
48+
5149
@if(voiceTextTranscript) {
52-
<div class="content">
50+
<nucleus-box>
5351
<div class="input-group">
5452
<label for="voiceTextArea" class="input-label">
5553
<h2>Transcript Results</h2>
@@ -61,5 +59,5 @@ <h2>Transcript Results</h2>
6159
placeholder="Texto do Voice Transcript"
6260
></textarea>
6361
</div>
64-
</div>
62+
</nucleus-box>
6563
}

src/app/example/example.component.scss

+14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
.content-actions {
2+
display: flex;
3+
gap: 20px;
4+
@media (max-width: 800px) {
5+
flex-direction: column;
6+
}
7+
}
8+
19
.example-actions {
210
width: 50%;
311
display: flex;
412
gap: 20px;
13+
margin-top: .5rem;
514
@media (max-width: 800px) {
615
width: 100%;
716
}
@@ -19,6 +28,7 @@
1928
cursor: pointer;
2029
min-height: 70px;
2130
white-space: nowrap;
31+
flex: 1;
2232

2333
svg {
2434
margin-right: 1rem;
@@ -32,6 +42,10 @@
3242
}
3343
}
3444

45+
.language {
46+
flex: 1;
47+
}
48+
3549
.lang-label {
3650
display: block;
3751
margin-bottom: 10px;

src/app/example/example.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Component, signal, WritableSignal } from '@angular/core';
22
import { VoiceCapture } from '../../../projects/voicecapture-angular/src/public-api';
33
import { FormsModule } from '@angular/forms';
4+
import { NucleusBox } from 'nucleus-angular';
45

56
@Component({
67
selector: 'example-voicecapture',
78
standalone: true,
8-
imports: [VoiceCapture, FormsModule],
9+
imports: [VoiceCapture, FormsModule, NucleusBox],
910
templateUrl: './example.component.html',
1011
styleUrl: './example.component.scss',
1112
})

0 commit comments

Comments
 (0)