|
| 1 | +'use client'; |
| 2 | + |
| 3 | +import { useState } from 'react'; |
| 4 | +import { motion } from 'framer-motion'; |
| 5 | +import { Mail, X, Coffee, Calendar, Users } from 'lucide-react'; |
| 6 | +import { useLanguage } from '@/contexts/LanguageContext'; |
| 7 | + |
| 8 | +const ContactBanner = () => { |
| 9 | + const [isDismissed, setIsDismissed] = useState(false); |
| 10 | + const { t } = useLanguage(); |
| 11 | + |
| 12 | + if (isDismissed) return null; |
| 13 | + |
| 14 | + return ( |
| 15 | + <motion.div |
| 16 | + initial={{ opacity: 0, y: -20 }} |
| 17 | + animate={{ opacity: 1, y: 0 }} |
| 18 | + exit={{ opacity: 0, y: -20 }} |
| 19 | + transition={{ duration: 0.5 }} |
| 20 | + className="fixed top-0 left-0 right-0 z-50 bg-gradient-to-r from-accent/10 via-accent/5 to-accent/10 border-b border-accent/20" |
| 21 | + > |
| 22 | + <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 23 | + <div className="flex items-center justify-between py-3"> |
| 24 | + {/* Content */} |
| 25 | + <div className="flex items-center space-x-4 flex-1"> |
| 26 | + <div className="flex items-center space-x-3"> |
| 27 | + <div className="flex items-center space-x-2"> |
| 28 | + <Coffee className="w-4 h-4 text-accent" /> |
| 29 | + <span className="text-sm font-medium text-foreground"> |
| 30 | + {t('banner.title')} |
| 31 | + </span> |
| 32 | + </div> |
| 33 | + <div className="hidden sm:flex items-center space-x-2 text-sm text-muted-foreground"> |
| 34 | + <Mail className="w-3 h-3" /> |
| 35 | + <span>design-team@buzzvil.com</span> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + <div className="hidden md:flex items-center space-x-4 text-xs text-muted-foreground"> |
| 40 | + <div className="flex items-center space-x-1"> |
| 41 | + <Calendar className="w-3 h-3" /> |
| 42 | + <span>{t('banner.requirements.schedule')}</span> |
| 43 | + </div> |
| 44 | + <div className="flex items-center space-x-1"> |
| 45 | + <Users className="w-3 h-3" /> |
| 46 | + <span>{t('banner.requirements.info')}</span> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + |
| 51 | + {/* CTA Button */} |
| 52 | + <motion.a |
| 53 | + href="mailto:design-team@buzzvil.com?subject=Design Team Meeting Request&body=Hi there!%0A%0AI'd like to schedule a meeting to discuss:%0A%0A[Please describe what you'd like to discuss]%0A%0AAbout me:%0A- Name:%0A- Company/Role:%0A- Brief background:%0A%0AWhen would be a good time for you?%0A%0AThanks!" |
| 54 | + whileHover={{ scale: 1.02 }} |
| 55 | + whileTap={{ scale: 0.98 }} |
| 56 | + className="flex items-center space-x-2 px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 transition-all duration-200 text-sm font-medium shadow-sm" |
| 57 | + > |
| 58 | + <Mail className="w-4 h-4" /> |
| 59 | + <span className="hidden sm:inline">{t('banner.cta')}</span> |
| 60 | + <span className="sm:hidden">{t('banner.cta.short')}</span> |
| 61 | + </motion.a> |
| 62 | + |
| 63 | + {/* Dismiss Button */} |
| 64 | + <motion.button |
| 65 | + whileHover={{ scale: 1.1 }} |
| 66 | + whileTap={{ scale: 0.9 }} |
| 67 | + onClick={() => setIsDismissed(true)} |
| 68 | + className="ml-3 p-1 rounded-lg hover:bg-muted/50 transition-colors" |
| 69 | + aria-label="Dismiss banner" |
| 70 | + > |
| 71 | + <X className="w-4 h-4 text-muted-foreground" /> |
| 72 | + </motion.button> |
| 73 | + </div> |
| 74 | + |
| 75 | + {/* Mobile Requirements */} |
| 76 | + <div className="md:hidden mt-2 pb-2"> |
| 77 | + <div className="flex flex-wrap items-center gap-3 text-xs text-muted-foreground"> |
| 78 | + <div className="flex items-center space-x-1"> |
| 79 | + <Calendar className="w-3 h-3" /> |
| 80 | + <span>{t('banner.requirements.schedule')}</span> |
| 81 | + </div> |
| 82 | + <div className="flex items-center space-x-1"> |
| 83 | + <Users className="w-3 h-3" /> |
| 84 | + <span>{t('banner.requirements.info')}</span> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + </motion.div> |
| 90 | + ); |
| 91 | +}; |
| 92 | + |
| 93 | +export default ContactBanner; |
0 commit comments