Skip to content

Commit 16bb365

Browse files
update spa example content
1 parent 8511c82 commit 16bb365

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

demo/src/App.vue

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,79 @@
11
<script setup>
2-
import Nucleus from 'nucleus-vue';
2+
import Nucleus, { NucleusCode } from 'nucleus-vue';
33
import { configApp } from './App.config';
44
</script>
55

66
<template>
77
<Nucleus :config="configApp">
88
<VLibras />
9+
<div class="content example">
10+
<h2>Usage Example</h2>
11+
12+
<h3>Widget Position</h3>
13+
<p>You can set the widget's position using the <code>position</code> prop. For example:</p>
14+
<NucleusCode language="tsx">{{ `<VLibras position="left" />` }}</NucleusCode>
15+
16+
<h3>Available Position Types</h3>
17+
<p>The position options that can be used are:</p>
18+
<ul>
19+
<li>left</li>
20+
<li>right</li>
21+
<li>top</li>
22+
<li>bottom</li>
23+
<li>bottom-left</li>
24+
<li>top-left</li>
25+
<li>bottom-right</li>
26+
<li>top-right</li>
27+
</ul>
28+
29+
<h3>Avatar</h3>
30+
<p>You can select the widget's avatar using the <code>avatar</code> prop. Example:</p>
31+
<NucleusCode language="tsx">{{ `<VLibras avatar="hosana" />` }}</NucleusCode>
32+
33+
<h3>Available Avatar Options</h3>
34+
<ul>
35+
<li>icaro</li>
36+
<li>hosana</li>
37+
<li>guga</li>
38+
<li>random</li>
39+
</ul>
40+
41+
<h3>Opacity</h3>
42+
<p>To adjust the widget's opacity, use the <code>opacity</code> prop:</p>
43+
<NucleusCode language="tsx">{{ `<VLibras opacity="0.8" />` }}</NucleusCode>
44+
</div>
45+
946
</Nucleus>
1047
</template>
48+
49+
<style>
50+
.example {
51+
h2,
52+
h3 {
53+
color: var(--color-text);
54+
margin-bottom: 10px;
55+
}
56+
57+
p {
58+
color: var(--color-text);
59+
line-height: 1.6;
60+
margin-bottom: 20px;
61+
}
62+
63+
ul {
64+
padding-left: 20px;
65+
margin-bottom: 20px;
66+
}
67+
68+
ul li {
69+
list-style-type: disc;
70+
margin-bottom: 5px;
71+
color: var(--primary);
72+
font-weight: bold;
73+
}
74+
75+
code {
76+
margin-bottom: 1rem;
77+
}
78+
}
79+
</style>

0 commit comments

Comments
 (0)