@@ -12,6 +12,9 @@ const showOpenAIKey = ref(false)
12
12
<template >
13
13
<div id =" overlay-container" >
14
14
<div id =" overlay" >
15
+ <div id =" accept-terms-prompt" v-if =" settingsStore.showSettingsWarning" >
16
+ You must enter an OpenAI API Key (and accept the terms and conditions) before Ossia Voice can do anything smart!
17
+ </div >
15
18
<div id =" scrollable" >
16
19
<h2 class =" title" >Welcome to Ossia</h2 >
17
20
<div class =" group-content" >
@@ -45,7 +48,8 @@ const showOpenAIKey = ref(false)
45
48
<h3 class =" subheading" ><span style =" color : red " >*</span > User Backstory</h3 >
46
49
Describe the user in as much detail as possible. e.g. name, hobbies, political leaning, temperament, family
47
50
and close friends etc.
48
- <span id =" example-link" @click =" settingsStore.backstory = settingsStore.exampleBackstory" >Or use an example</span >
51
+ <span id =" example-link"
52
+ @click =" settingsStore.backstory = settingsStore.exampleBackstory" >Or use an example</span >
49
53
<div id =" backstory-input-wrapper" >
50
54
<v-textarea id =" backstory-input" label =" user backstory" v-model =" settingsStore.backstory" hide-details />
51
55
</div >
@@ -66,27 +70,45 @@ const showOpenAIKey = ref(false)
66
70
most. Thoughts, ideas and contributions are very much welcomed. Please reach out if you would like to be
67
71
involved!
68
72
<div id =" contact-links" >
69
- <a href =" https://twitter.com/arneyjfs" rel =" noopener noreferrer"
70
- target =" _blank" ><v-icon >mdi-twitter</v-icon ></a >
71
- <a href =" https://github.com/OssiaAI/OssiaVoice" rel =" noopener noreferrer"
72
- target =" _blank" ><v-icon >mdi-github</v-icon ></a >
73
- <a href =" https://www.linkedin.com/in/james-arney-50246711a/" rel =" noopener noreferrer"
74
- target =" _blank" ><v-icon >mdi-linkedin</v-icon ></a >
73
+ <a href =" https://twitter.com/arneyjfs" rel =" noopener noreferrer" target =" _blank" >
74
+ <v-icon >mdi-twitter</v-icon >
75
+ </a >
76
+ <a href =" https://github.com/OssiaAI/OssiaVoice" rel =" noopener noreferrer" target =" _blank" >
77
+ <v-icon >mdi-github</v-icon >
78
+ </a >
79
+ <a href =" https://www.linkedin.com/in/james-arney-50246711a/" rel =" noopener noreferrer" target =" _blank" >
80
+ <v-icon >mdi-linkedin</v-icon >
81
+ </a >
75
82
</div >
76
83
84
+ <!-- <a id="buy-me-a-coffee" class="raised" href="https://www.buymeacoffee.com/arneyjfs" target="_blank"-->
85
+ <!-- rel="noopener noreferrer">-->
86
+ <!-- <img-->
87
+ <!-- src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"-->
88
+ <!-- alt="Buy Me A Coffee"-->
89
+ <!-- >-->
90
+ <!-- </a>-->
91
+
77
92
© James Arney, 2024
78
93
</div >
79
94
</div >
80
- <v-btn
81
- id =" save-btn"
82
- :disabled =" !(settingsStore.liabilityAgreement &&
95
+ <div id =" bottom-buttons" >
96
+ <v-btn
97
+ id =" complete-later-btn"
98
+ @click =" emit('close')" >
99
+ Complete later
100
+ </v-btn >
101
+ <v-btn
102
+ id =" save-btn"
103
+ :disabled =" !(settingsStore.liabilityAgreement &&
83
104
settingsStore.cookieAgreement &&
84
105
settingsStore.openAIAPIKey &&
85
106
settingsStore.backstory
86
107
)"
87
- @click =" emit('close'); settingsStore.save()" >
88
- Let's Go
89
- </v-btn >
108
+ @click =" emit('close'); settingsStore.save()" >
109
+ Let's Go
110
+ </v-btn >
111
+ </div >
90
112
</div >
91
113
</div >
92
114
</template >
@@ -123,6 +145,14 @@ const showOpenAIKey = ref(false)
123
145
margin : 10px 0 0 10px ;
124
146
}
125
147
148
+ #accept-terms-prompt {
149
+ background : orange ;
150
+ border-radius : 5px ;
151
+ padding : 10px ;
152
+ margin : 5px ;
153
+ text-align : center ;
154
+ }
155
+
126
156
#scrollable {
127
157
display : flex ;
128
158
flex-direction : column ;
@@ -184,16 +214,55 @@ a {
184
214
padding : 10px 0px ;
185
215
}
186
216
217
+ #bottom-buttons {
218
+ display : flex ;
219
+ justify-content : end ;
220
+ }
221
+
222
+ #complete-later-btn {
223
+ background : #e1e1e1 ;
224
+ width : 150px ;
225
+ height : 40px ;
226
+ margin : 10px 10px 0 20px ;
227
+ text-transform : none ;
228
+
229
+ // &:deep(span) {
230
+ // color: theme.$text-color;
231
+ // }
232
+ }
233
+
187
234
#save-btn {
188
235
background : theme .$primary ;
189
- bottom : 0 ;
190
236
width : 130px ;
191
237
height : 40px ;
192
- margin : 10px 20px 10px auto ;
238
+ margin : 10px 20px 0 10px ;
239
+ text-transform : none ;
240
+
193
241
194
242
& :deep (span ) {
195
243
color : theme .$text-color ;
196
244
}
197
245
}
198
246
247
+ #buy-me-a-coffee {
248
+ margin : 10px 0 20px 0 ;
249
+ width : 145px ;
250
+ height : 40px ;
251
+ border-radius : 7px ;
252
+ position : relative ;
253
+
254
+ & :deep (img ) {
255
+ width : 145px ;
256
+ height : 40px ;
257
+
258
+ & :hover {
259
+ filter : brightness (98% )
260
+ }
261
+
262
+ & :active {
263
+ filter : brightness (95% )
264
+ }
265
+ }
266
+ }
267
+
199
268
</style >
0 commit comments