feat: add feedback system with modal, api endpoints, and stats tracking
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { TOGETHER_LINK } from "@/lib/utils";
|
||||
import { Github } from "lucide-react";
|
||||
import { Github, MessageSquare } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { FeedbackModal } from "@/components/feedback-modal";
|
||||
|
||||
function XIcon({ className }: { className?: string }) {
|
||||
return (
|
||||
@@ -11,39 +15,52 @@ function XIcon({ className }: { className?: string }) {
|
||||
}
|
||||
|
||||
export function Footer() {
|
||||
const [showFeedback, setShowFeedback] = useState(false);
|
||||
|
||||
return (
|
||||
<footer className="h-8 border-t border-border/50 bg-background flex items-center justify-between px-6 text-[10px] text-muted-foreground select-none">
|
||||
<div className="flex items-center gap-4">
|
||||
<span>
|
||||
Made & powered by{" "}
|
||||
<>
|
||||
<footer className="h-8 border-t border-border/50 bg-background flex items-center justify-between px-6 text-[10px] text-muted-foreground select-none">
|
||||
<div className="flex items-center gap-4">
|
||||
<span>
|
||||
Made & powered by{" "}
|
||||
<Link
|
||||
href={TOGETHER_LINK}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-white transition-colors text-white"
|
||||
>
|
||||
Together.ai
|
||||
</Link>
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
<button
|
||||
onClick={() => setShowFeedback(true)}
|
||||
className="flex items-center gap-1.5 px-2 py-0.5 rounded-full border border-border/50 hover:border-border hover:text-white transition-colors cursor-pointer"
|
||||
>
|
||||
<MessageSquare className="w-3 h-3" />
|
||||
Got ideas? Tell us
|
||||
</button>
|
||||
<Link
|
||||
href={TOGETHER_LINK}
|
||||
href="https://github.com/nutlope/make-comics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-white transition-colors text-white"
|
||||
className="hover:text-white transition-colors"
|
||||
>
|
||||
Together.ai
|
||||
<Github className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
<Link
|
||||
href="https://github.com/nutlope/make-comics"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-white transition-colors"
|
||||
>
|
||||
<Github className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
<Link
|
||||
href="https://x.com/nutlope"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-white transition-colors"
|
||||
>
|
||||
<XIcon className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
<Link
|
||||
href="https://x.com/nutlope"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-white transition-colors"
|
||||
>
|
||||
<XIcon className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<FeedbackModal isOpen={showFeedback} onClose={() => setShowFeedback(false)} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user