import React, { useState } from 'react'; import { useCopilotTrigger } from '../../hooks/useCopilotTrigger'; import BlogWriterPhasesSection from './BlogWriterPhasesSection'; interface BlogWriterLandingProps { onStartWriting: () => void; } const BlogWriterLanding: React.FC = ({ onStartWriting }) => { const [showSuperPowers, setShowSuperPowers] = useState(false); const { triggerResearch } = useCopilotTrigger(); const handleStartWriting = () => { // Open the copilot sidebar (same functionality as LinkedIn writer) const copilotButton = document.querySelector('.copilotkit-open-button') || document.querySelector('[data-copilot-open]') || document.querySelector('button[aria-label*="Open"]') || document.querySelector('.alwrity-copilot-sidebar button'); if (copilotButton) { (copilotButton as HTMLElement).click(); } else { // Fallback: scroll to bottom right where the button should be window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }); } // Also call the parent callback onStartWriting(); }; const superPowers = [ { icon: "🔍", title: "AI-Powered Research", description: "Comprehensive research with Google Search grounding, competitor analysis, and content gap identification" }, { icon: "📝", title: "Intelligent Outline Generation", description: "AI-generated outlines with source mapping, grounding insights, and optimization recommendations" }, { icon: "✨", title: "Content Enhancement", description: "Section-by-section content generation with SEO optimization and engagement improvements" }, { icon: "🎯", title: "SEO Intelligence", description: "Advanced SEO analysis, metadata generation, and keyword optimization for maximum visibility" }, { icon: "🔍", title: "Fact-Checking & Quality", description: "Hallucination detection, claim verification, and content quality assurance" }, { icon: "🚀", title: "Multi-Platform Publishing", description: "Direct publishing to WordPress, Wix, and other platforms with scheduling capabilities" } ]; return ( <>
{/* Animated overlay for subtle movement */}
{/* Main content container */}
{/* Main heading */}

Step1- Research Your Blog Topic

{/* Action buttons */}
{/* Primary CTA Button */} {/* Secondary CTA Button */}
{/* SuperPowers Modal with 6 Phases */} {showSuperPowers && (
{/* Modal Header */}

🚀 ALwrity Blog Writer SuperPowers

Discover the powerful features that make ALwrity the ultimate blog writing assistant

{/* 6 Phases Section */} {/* Quick SuperPowers Grid */}

Quick Feature Overview

{superPowers.map((power, index) => (
{ e.currentTarget.style.transform = 'translateY(-4px)'; e.currentTarget.style.boxShadow = '0 8px 25px rgba(0,0,0,0.1)'; e.currentTarget.style.borderColor = '#1976d2'; }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)'; e.currentTarget.style.boxShadow = 'none'; e.currentTarget.style.borderColor = '#e0e0e0'; }} >
{power.icon}

{power.title}

{power.description}

))}
{/* Modal Footer */}
)} ); }; export default BlogWriterLanding;