Skip to content

Commit

Permalink
styles updated
Browse files Browse the repository at this point in the history
  • Loading branch information
LeuKhaak committed May 6, 2023
1 parent 504f732 commit 09b731c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
21 changes: 14 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<div class="text-2xl w-full text-center mt-10">
<b>Vue.js GPT API Sample:</b>
</div>
<div class="description container mt-4">
<div class="description container mt-4 pr-2">
<a target="_blank" :href="currentGuide">API Guide</a>
</div>

<div class="main container mx-auto mt-6">
<div class="main container mx-auto mt-6 pl-1 pb-3">
<div class="settingsWrapper">
<button @click="showApiKeyInput">
<button @click="showApiKeyInput" class="bg-white">
<span v-if="!apiKeyVisible">Set API KEY</span>
<span v-else style="color: red"
>Hide api-key input &#215;</span
Expand All @@ -29,7 +29,7 @@
v-if="apiKeyVisible"
v-model:value="apiKey"
:label="'API Key:'"
class="w-1/2 mt-4"
class="w-3/4 mt-4"
@update:value="
(val) => {
api.setApiKey(val), (apiKeyNeeded = false);
Expand All @@ -38,7 +38,7 @@
placeholder="Paste a key here"
/>

<button @click="showSettings">
<button @click="showSettings" class="bg-white">
<span v-if="!settings" class="underline">Settings</span>
<span v-else style="color: red">Close settings &#215;</span>
</button>
Expand Down Expand Up @@ -74,7 +74,7 @@
v-model:value="prompt"
@setPromt="(val) => $emit('update:value', val)"
:label="'Prompt:'"
class="w-1/2 mt-8"
class="w-4/5 rounded-lg mt-8 p-1"
:rows="10"
/>
<button
Expand All @@ -93,7 +93,7 @@
v-model:value="result"
:label="'Result:'"
disabled
class="mt-8 w-1/2"
class="mt-8 p-1 w-4/5 rounded-lg bg-white"
:rows="10"
/>
</div>
Expand Down Expand Up @@ -260,6 +260,13 @@ export default defineComponent({
a {
@apply underline text-blue-600 hover:text-blue-800;
}
.app {
background: linear-gradient(
to right,
rgb(202, 245, 194),
rgb(223, 207, 239)
);
}
.description {
text-align: right;
Expand Down
2 changes: 1 addition & 1 deletion src/components/misc/InputTextarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
></SpeechRecording>
<textarea
type="text"
class="border-2"
class="border-2 rounded-lg p-1"
ref="input"
:id="id"
:value="value"
Expand Down
2 changes: 1 addition & 1 deletion src/components/misc/Tabs.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<ul class="tabs flex items-center">
<li
class="tab px-4 py-2 cursor-pointer flex-grow text-center bg-gray-50 hover:bg-gray-200"
class="tab px-4 py-2 cursor-pointer flex-grow mr-1 text-center bg-gray-50 hover:bg-gray-200"
:class="{
'active bg-gray-200': value ? value === tab.value : i === 0,
}"
Expand Down

0 comments on commit 09b731c

Please sign in to comment.