|
1 | 1 | import { Card, CardContent } from '@renderer/components/ui/card' |
2 | 2 | import { Button } from '@renderer/components/ui/button' |
3 | 3 | import { MessageCircle, Bell, HelpCircle, Users, ExternalLink } from 'lucide-react' |
| 4 | +import whatsappQr from '../../../../../resources/whatsapp-qr.png?asset' |
| 5 | + |
| 6 | +const WHATSAPP_LINK = 'https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris' |
4 | 7 |
|
5 | 8 | export const CommunitySection = () => { |
6 | 9 | const benefits = [ |
@@ -50,23 +53,34 @@ export const CommunitySection = () => { |
50 | 53 | > |
51 | 54 | <CardContent className="pt-8 pb-8 relative"> |
52 | 55 | <div className="absolute top-0 right-0 w-48 h-48 bg-green-500/10 rounded-full -translate-y-1/2 translate-x-1/2 blur-3xl" /> |
53 | | - <div className="flex flex-col items-center text-center relative"> |
54 | | - <div className="h-16 w-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-4 transition-transform duration-200 hover:scale-105"> |
55 | | - <MessageCircle className="h-8 w-8 text-green-500" /> |
| 56 | + <div className="flex flex-col md:flex-row items-center gap-6 relative"> |
| 57 | + {/* QR Code */} |
| 58 | + <div className="flex-shrink-0"> |
| 59 | + <div className="p-3 bg-white rounded-xl shadow-sm"> |
| 60 | + <img src={whatsappQr} alt="WhatsApp QR Code" className="w-32 h-32" /> |
| 61 | + </div> |
| 62 | + <p className="text-xs text-muted-foreground text-center mt-2">Scan to join</p> |
| 63 | + </div> |
| 64 | + |
| 65 | + {/* Content */} |
| 66 | + <div className="flex flex-col items-center md:items-start text-center md:text-left"> |
| 67 | + <div className="h-12 w-12 rounded-xl bg-green-500/20 flex items-center justify-center mb-3"> |
| 68 | + <MessageCircle className="h-6 w-6 text-green-500" /> |
| 69 | + </div> |
| 70 | + <h3 className="text-xl font-bold mb-2">WhatsApp Community</h3> |
| 71 | + <p className="text-muted-foreground max-w-sm mb-4"> |
| 72 | + Join our active WhatsApp community to get instant support, share feedback, |
| 73 | + and connect with healthcare professionals using Op Notes. |
| 74 | + </p> |
| 75 | + <Button |
| 76 | + className="bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white" |
| 77 | + onClick={() => window.open(WHATSAPP_LINK, '_blank')} |
| 78 | + > |
| 79 | + <MessageCircle className="h-4 w-4 mr-2" /> |
| 80 | + Join WhatsApp Community |
| 81 | + <ExternalLink className="h-3 w-3 ml-2" /> |
| 82 | + </Button> |
56 | 83 | </div> |
57 | | - <h3 className="text-xl font-bold mb-2">WhatsApp Community</h3> |
58 | | - <p className="text-muted-foreground max-w-sm mb-6"> |
59 | | - Join our active WhatsApp community to get instant support, share feedback, |
60 | | - and connect with healthcare professionals using Op Notes. |
61 | | - </p> |
62 | | - <Button |
63 | | - className="bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white" |
64 | | - onClick={() => window.open('https://chat.whatsapp.com/L4LMwxsbjPk514I1ToRris', '_blank')} |
65 | | - > |
66 | | - <MessageCircle className="h-4 w-4 mr-2" /> |
67 | | - Join WhatsApp Community |
68 | | - <ExternalLink className="h-3 w-3 ml-2" /> |
69 | | - </Button> |
70 | 84 | </div> |
71 | 85 | </CardContent> |
72 | 86 | </Card> |
|
0 commit comments