This commit is contained in:
taskylizard 2023-11-03 10:03:08 +05:30
parent c14f6be397
commit e55b7efaf2
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497

View File

@ -42,7 +42,7 @@ async function handleSubmit(type?: string) {
}; };
try { try {
const response = await fetch("/api/feedback", { const response = await fetch("https://fmhy.vercel.app/api/feedback", {
method: "POST", method: "POST",
body: JSON.stringify(body), body: JSON.stringify(body),
}); });
@ -72,11 +72,7 @@ async function handleSubmit(type?: string) {
</div> </div>
</div> </div>
<div class="button-container"> <div class="button-container">
<button <button v-for="item in feedbackOptions" :key="item.value" class="btn" @click="handleSubmit(item.value)">
v-for="item in feedbackOptions"
:key="item.value"
class="btn"
@click="handleSubmit(item.value)">
<span>{{ item.label }}</span> <span>{{ item.label }}</span>
</button> </button>
</div> </div>
@ -86,11 +82,8 @@ async function handleSubmit(type?: string) {
<p class="desc">The wiki is...</p> <p class="desc">The wiki is...</p>
<div> <div>
<span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span> <span>{{ getFeedbackOption(feedback.feedbackType)?.label }}</span>
<button <button style="margin-left: 0.5rem" class="btn" @click="feedback.feedbackType = undefined">
style="margin-left: 0.5rem" <span class="i-carbon-close-large">close</span>
class="btn"
@click="feedback.feedbackType = undefined">
<span class="i-carbon-close">close</span>
</button> </button>
</div> </div>
</div> </div>
@ -107,7 +100,7 @@ async function handleSubmit(type?: string) {
</template> </template>
<style scoped> <style scoped>
.step > * + * { .step>*+* {
margin-top: 1rem; margin-top: 1rem;
} }
@ -182,11 +175,6 @@ async function handleSubmit(type?: string) {
color: var(--vp-c-text-2); color: var(--vp-c-text-2);
} }
@media screen and (min-width: 768px) {
.button-container {
grid-template-columns: repeat(4, 1fr);
}
}
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {