diff --git a/src/app/page.tsx b/src/app/page.tsx index 6ac3e08..118fc45 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,8 +11,29 @@ import FaqSplitText from '@/components/sections/faq/FaqSplitText'; import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import FooterBase from '@/components/sections/footer/FooterBase'; import { Award, Sparkles, TrendingUp, Zap } from 'lucide-react'; +import { useState } from 'react'; export default function LandingPage() { + const [generatedPalette, setGeneratedPalette] = useState(null); + const [isGenerating, setIsGenerating] = useState(false); + + const generateColors = async () => { + setIsGenerating(true); + try { + // Simulate color generation + const colors = [ + '#' + Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'), + '#' + Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'), + '#' + Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'), + '#' + Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'), + '#' + Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0'), + ]; + setGeneratedPalette(colors); + } finally { + setIsGenerating(false); + } + }; + return ( +
+
+
+

Generate Colors Instantly

+

Try our color palette generator right here. Click below to generate a professional color palette based on advanced color theory principles.

+ + {generatedPalette && ( +
+

Your Generated Palette:

+
+ {generatedPalette.map((color, idx) => ( +
+
{ + navigator.clipboard.writeText(color); + }} + title="Click to copy" + /> + {color} +
+ ))} +
+

Click any color to copy its hex code

+
+ )} + + +
+
+
+
); -} +} \ No newline at end of file