import React, { useState, useEffect } from 'react'; import { Cpu, Target, Zap, Clock, CheckCircle2, ArrowRight, Users, School, Building2, PenTool, Quote, Sparkles, Loader2, BrainCircuit, Lightbulb, Image as ImageIcon } from 'lucide-react'; const App = () => { const [formData, setFormData] = useState({ name: '', email: '', organization: '', message: '' }); // AI Feature States const [aiIndustry, setAiIndustry] = useState(''); const [aiResult, setAiResult] = useState(null); const [isAiLoading, setIsAiLoading] = useState(false); const [aiError, setAiError] = useState(null); const apiKey = ""; // Environment provides key // Exponential backoff fetch function for Gemini API const fetchGemini = async (prompt, retryCount = 0) => { try { const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-09-2025:generateContent?key=${apiKey}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ contents: [{ parts: [{ text: prompt }] }], systemInstruction: { parts: [{ text: "אתה מומחה להטמעת בינה מלאכותית בארגונים ומחלקות עיצוב. ענה בצורה שיווקית, מקצועית וקצרה בעברית." }] } }) }); if (!response.ok) { if (response.status === 429 && retryCount < 5) { const delay = Math.pow(2, retryCount) * 1000; await new Promise(resolve => setTimeout(resolve, delay)); return fetchGemini(prompt, retryCount + 1); } throw new Error('API request failed'); } const data = await response.json(); return data.candidates?.[0]?.content?.parts?.[0]?.text; } catch (err) { if (retryCount < 5) { const delay = Math.pow(2, retryCount) * 1000; await new Promise(resolve => setTimeout(resolve, delay)); return fetchGemini(prompt, retryCount + 1); } throw err; } }; const handleAiConsultation = async () => { if (!aiIndustry) return; setIsAiLoading(true); setAiError(null); setAiResult(null); const prompt = `אני עובד בתחום: ${aiIndustry}. תן לי 3 דוגמאות ספציפיות ומרגשות איך בינה מלאכותית יכולה לחסוך לי זמן וליצור תוצרים ויזואליים מדהימים ביומיום שלי. ענה בנקודות קצרות.`; try { const text = await fetchGemini(prompt); setAiResult(text); } catch (err) { setAiError("מצטערים, חלה שגיאה בחיבור ל-AI. נסו שוב מאוחר יותר."); } finally { setIsAiLoading(false); } }; const SafeImage = ({ src, alt, className }) => { const [error, setError] = useState(false); if (error) { return (
{alt}
כולם מדברים על AI. בואו נראה איך זה עובד בשבילכם.
ובינתיים — העבודה ממשיכה כמו פעם.
אני מגיעה אליכם. ועובדת איתכם על החומר שלכם.
מטמיעה AI בתוך שגרת העבודה הקיימת. לא מלמדת 'עקרונות' מופשטים ולא זורקת רשימת כלים. ב־3-4 שעות אתם יוצאים עם כלים ותוצרים.
השאירו פרטים ואחזור אליכם בהקדם לתיאום פגישה