summaryrefslogtreecommitdiff
path: root/apps/web/src/components/ui/sponsor-button.tsx
diff options
context:
space:
mode:
authoriza <59828082+izadoesdev@users.noreply.github.com>2025-07-16 17:06:36 +0300
committerGitHub <noreply@github.com>2025-07-16 17:06:36 +0300
commit3b93fd6b68980b5c6d9264486d062845597fb5d7 (patch)
tree3614e23d183aa31879cce7ac4b2251778f2d653b /apps/web/src/components/ui/sponsor-button.tsx
parent3371a6889634f326063351295faca9a56c566706 (diff)
parent20f73bf7050f91bafd499c58b85667393cf647b4 (diff)
downloadopencut-3b93fd6b68980b5c6d9264486d062845597fb5d7.tar.gz
Merge pull request #315 from OpenCut-app/staging
Staging
Diffstat (limited to 'apps/web/src/components/ui/sponsor-button.tsx')
-rw-r--r--apps/web/src/components/ui/sponsor-button.tsx42
1 files changed, 42 insertions, 0 deletions
diff --git a/apps/web/src/components/ui/sponsor-button.tsx b/apps/web/src/components/ui/sponsor-button.tsx
new file mode 100644
index 00000000..fdfaa0b0
--- /dev/null
+++ b/apps/web/src/components/ui/sponsor-button.tsx
@@ -0,0 +1,42 @@
+import { motion } from "motion/react";
+import { ComponentType } from "react";
+
+interface SponsorButtonProps {
+ href: string;
+ logo: ComponentType<{ className?: string }>;
+ companyName: string;
+ className?: string;
+}
+
+export function SponsorButton({
+ href,
+ logo: Logo,
+ companyName,
+ className = "",
+}: SponsorButtonProps) {
+
+ return (
+ <motion.a
+ href={href}
+ target="_blank"
+ rel="noopener noreferrer"
+ className={`inline-flex items-center gap-2 px-3 py-2 rounded-full border border-white/10 bg-white/5 backdrop-blur-sm hover:bg-white/10 hover:border-white/20 transition-all duration-200 group shadow-lg ${className}`}
+ whileHover={{ scale: 1.02 }}
+ whileTap={{ scale: 0.98 }}
+ >
+ <span className="text-xs font-medium text-zinc-400 group-hover:text-zinc-300 transition-colors">
+ Sponsored by
+ </span>
+
+ <div className="flex items-center gap-1.5">
+ <div className="text-zinc-100 group-hover:text-white transition-colors">
+ <Logo className="w-4 h-4" />
+ </div>
+
+ <span className="text-xs font-medium text-zinc-100 group-hover:text-white transition-colors">
+ {companyName}
+ </span>
+ </div>
+ </motion.a>
+ );
+}