diff --git a/src/assets/logo-128.png b/src/assets/logo-128.png index fc39320..54d1778 100644 Binary files a/src/assets/logo-128.png and b/src/assets/logo-128.png differ diff --git a/src/assets/logo-16.png b/src/assets/logo-16.png index 9bf4b05..4d8f180 100644 Binary files a/src/assets/logo-16.png and b/src/assets/logo-16.png differ diff --git a/src/assets/logo-378.png b/src/assets/logo-378.png deleted file mode 100644 index fad5a09..0000000 Binary files a/src/assets/logo-378.png and /dev/null differ diff --git a/src/assets/logo-48.png b/src/assets/logo-48.png index 996b163..2f96d27 100644 Binary files a/src/assets/logo-48.png and b/src/assets/logo-48.png differ diff --git a/src/assets/logo-96-128.png b/src/assets/logo-96-128.png index de5604f..7abd611 100644 Binary files a/src/assets/logo-96-128.png and b/src/assets/logo-96-128.png differ diff --git a/src/assets/logo-96.png b/src/assets/logo-96.png new file mode 100644 index 0000000..928a6e7 Binary files /dev/null and b/src/assets/logo-96.png differ diff --git a/src/popup/popup.html b/src/popup/popup.html index a8ebf53..de988c8 100644 --- a/src/popup/popup.html +++ b/src/popup/popup.html @@ -11,7 +11,7 @@ QuickCite logo

- QuickCite + QuickCite

diff --git a/web/src/app/favicon.ico b/web/src/app/favicon.ico index 317c09c..6e55dd4 100644 Binary files a/web/src/app/favicon.ico and b/web/src/app/favicon.ico differ diff --git a/web/src/components/FeedbackForm.jsx b/web/src/components/FeedbackForm.jsx index ca4b2c9..1756a32 100644 --- a/web/src/components/FeedbackForm.jsx +++ b/web/src/components/FeedbackForm.jsx @@ -2,120 +2,112 @@ import React, { useId, useState } from 'react' import { Button } from '@/components/Button' export function FeedbackForm() { - const emailId = useId() - const feedbackId = useId() - const honeypotId = useId() - const [feedback, setFeedback] = useState('') - const [email, setEmail] = useState('') - const [honeypot, setHoneypot] = useState('') - const [isSubmitting, setIsSubmitting] = useState(false) - const [submitStatus, setSubmitStatus] = useState(null) + const emailId = useId() + const feedbackId = useId() + const honeypotId = useId() + const [feedback, setFeedback] = useState('') + const [email, setEmail] = useState('') + const [honeypot, setHoneypot] = useState('') + const [isSubmitting, setIsSubmitting] = useState(false) + const [submitStatus, setSubmitStatus] = useState(null) - const handleSubmit = async (e) => { - e.preventDefault() - if (honeypot) { - // If honeypot is filled, silently reject the submission - return - } - setIsSubmitting(true) - setSubmitStatus(null) + const handleSubmit = async (e) => { + e.preventDefault() + if (honeypot) { + // If honeypot is filled, silently reject the submission + return + } + setIsSubmitting(true) + setSubmitStatus(null) - try { - const response = await fetch('https://flows.apps.frsn.io/webhook/quickcite-feedback', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ feedback, email }), - }) + try { + const response = await fetch('https://flows.apps.frsn.io/webhook/quickcite-feedback', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ feedback, email }), + }) - if (!response.ok) { - throw new Error('Network response was not ok') - } + if (!response.ok) { + throw new Error('Network response was not ok') + } - setSubmitStatus('success') - setFeedback('') - setEmail('') - } catch (error) { - console.error('Error submitting form:', error) - setSubmitStatus('error') - } finally { - setIsSubmitting(false) - } - } + setSubmitStatus('success') + setFeedback('') + setEmail('') + } catch (error) { + console.error('Error submitting form:', error) + setSubmitStatus('error') + } finally { + setIsSubmitting(false) + } + } - return ( -
- {/* Feedback text area */} -
- -