|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import { Timeline, HorizontalTimeline, TimelineStep } from "@/components/ui/timeline"; |
| 4 | +import { |
| 5 | + Pencil, |
| 6 | + Search, |
| 7 | + MessageSquareMore, |
| 8 | + ListChecks, |
| 9 | + Rocket, |
| 10 | + ArrowRight, |
| 11 | + Sparkles, |
| 12 | +} from "lucide-react"; |
| 13 | + |
| 14 | +/** |
| 15 | + * Publishing flow steps following the Writers Program workflow: |
| 16 | + * Draft → Review → Changes → Lineup → Publish |
| 17 | + */ |
| 18 | +const publishingSteps: TimelineStep[] = [ |
| 19 | + { |
| 20 | + id: "draft-submission", |
| 21 | + title: "Draft Submission", |
| 22 | + description: |
| 23 | + "Start by writing your blog post draft. Follow our content guidelines and submit your work through the designated channel for review.", |
| 24 | + icon: <Pencil className="w-full h-full" />, |
| 25 | + }, |
| 26 | + { |
| 27 | + id: "review-by-team", |
| 28 | + title: "Review by Team", |
| 29 | + description: |
| 30 | + "Our editorial team carefully reviews your submission for technical accuracy, clarity, SEO optimization, and adherence to Keploy's style guidelines.", |
| 31 | + icon: <Search className="w-full h-full" />, |
| 32 | + }, |
| 33 | + { |
| 34 | + id: "feedback-changes", |
| 35 | + title: "Feedback & Changes", |
| 36 | + description: |
| 37 | + "Receive constructive feedback from the team. Make necessary revisions to improve your content quality and address any suggested changes.", |
| 38 | + icon: <MessageSquareMore className="w-full h-full" />, |
| 39 | + }, |
| 40 | + { |
| 41 | + id: "add-to-lineup", |
| 42 | + title: "Add to Lineup (Approved)", |
| 43 | + description: |
| 44 | + "Once approved, your blog is added to our publishing queue. We'll schedule it for publication and prepare any final formatting touches.", |
| 45 | + icon: <ListChecks className="w-full h-full" />, |
| 46 | + }, |
| 47 | + { |
| 48 | + id: "final-publish", |
| 49 | + title: "Final Publish", |
| 50 | + description: |
| 51 | + "Your blog goes live on Keploy's platform! It's shared across our channels, and you earn your well-deserved recognition and rewards.", |
| 52 | + icon: <Rocket className="w-full h-full" />, |
| 53 | + }, |
| 54 | +]; |
| 55 | + |
| 56 | +export function PublishingFlowSection() { |
| 57 | + return ( |
| 58 | + <section |
| 59 | + className="relative py-24 px-6 bg-white overflow-hidden" |
| 60 | + aria-labelledby="publishing-flow-title" |
| 61 | + > |
| 62 | + {/* Subtle Background Decoration */} |
| 63 | + <div className="absolute inset-0 pointer-events-none"> |
| 64 | + <div className="absolute top-0 right-0 w-[800px] h-[800px] bg-gradient-to-bl from-[#F89559]/5 to-transparent rounded-full -mr-96 -mt-96" /> |
| 65 | + <div className="absolute bottom-0 left-0 w-[600px] h-[600px] bg-gradient-to-tr from-blue-500/5 to-transparent rounded-full -ml-72 -mb-72" /> |
| 66 | + </div> |
| 67 | + |
| 68 | + <div className="max-w-6xl mx-auto relative z-10"> |
| 69 | + {/* Header Section */} |
| 70 | + <div className="text-center mb-20"> |
| 71 | + <div className="inline-flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-[#F89559]/10 to-[#E87B3A]/10 border border-[#F89559]/20 rounded-full mb-6"> |
| 72 | + <Sparkles className="w-4 h-4 text-[#F89559]" /> |
| 73 | + <span className="text-[#F89559] text-sm font-bold uppercase tracking-wider">Publishing Guide</span> |
| 74 | + </div> |
| 75 | + |
| 76 | + <h1 |
| 77 | + id="publishing-flow-title" |
| 78 | + className="text-4xl md:text-5xl lg:text-6xl font-black mb-6 tracking-tight" |
| 79 | + > |
| 80 | + <span className="text-[#1a1a1a]">Blog Publishing </span> |
| 81 | + <span className="text-[#F89559]">Workflow</span> |
| 82 | + </h1> |
| 83 | + |
| 84 | + <p className="text-lg md:text-xl text-gray-600 max-w-2xl mx-auto leading-relaxed"> |
| 85 | + A clear, step-by-step guide for writers contributing to the Keploy Writers Program. |
| 86 | + From your first draft to going live. |
| 87 | + </p> |
| 88 | + </div> |
| 89 | + |
| 90 | + {/* Timeline Section */} |
| 91 | + <div className="mb-20"> |
| 92 | + {/* Desktop Horizontal Timeline */} |
| 93 | + <div className="hidden lg:block"> |
| 94 | + <HorizontalTimeline steps={publishingSteps} /> |
| 95 | + </div> |
| 96 | + |
| 97 | + {/* Mobile/Tablet Vertical Timeline */} |
| 98 | + <div className="lg:hidden max-w-xl mx-auto"> |
| 99 | + <Timeline steps={publishingSteps} /> |
| 100 | + </div> |
| 101 | + </div> |
| 102 | + |
| 103 | + {/* CTA Section - Keploy Theme with Stars */} |
| 104 | + <div className="max-w-4xl mx-auto"> |
| 105 | + <div |
| 106 | + className="relative rounded-3xl p-12 md:p-16 text-center overflow-hidden shadow-2xl" |
| 107 | + style={{ |
| 108 | + background: "radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 50%, #000000 100%)" |
| 109 | + }} |
| 110 | + > |
| 111 | + {/* Animated Stars Background */} |
| 112 | + <div className="absolute inset-0 overflow-hidden"> |
| 113 | + <div className="stars-layer-1" /> |
| 114 | + <div className="stars-layer-2" /> |
| 115 | + <div className="stars-layer-3" /> |
| 116 | + </div> |
| 117 | + |
| 118 | + {/* Glowing Orbs */} |
| 119 | + <div className="absolute top-0 right-0 w-64 h-64 bg-[#F89559]/20 rounded-full blur-[80px] animate-pulse" /> |
| 120 | + <div className="absolute bottom-0 left-0 w-48 h-48 bg-purple-500/15 rounded-full blur-[60px] animate-pulse" style={{ animationDelay: '1s' }} /> |
| 121 | + |
| 122 | + <div className="relative z-10"> |
| 123 | + <h2 className="text-4xl md:text-5xl font-black text-white mb-6"> |
| 124 | + Ready to Start Writing? |
| 125 | + </h2> |
| 126 | + <p className="text-xl text-white/70 mb-10 max-w-xl mx-auto leading-relaxed"> |
| 127 | + Join our community of technical writers and share your knowledge with developers worldwide. |
| 128 | + </p> |
| 129 | + |
| 130 | + <div className="flex flex-col sm:flex-row gap-5 justify-center items-center"> |
| 131 | + <a |
| 132 | + href="/#about" |
| 133 | + className="group inline-flex items-center justify-center gap-3 px-10 py-5 bg-gradient-to-r from-[#F89559] to-[#E87B3A] text-white text-lg font-bold rounded-2xl hover:shadow-[0_0_40px_rgba(248,149,89,0.5)] transition-all duration-300 hover:scale-105" |
| 134 | + > |
| 135 | + Become a Writer |
| 136 | + <ArrowRight className="w-5 h-5 group-hover:translate-x-1 transition-transform" /> |
| 137 | + </a> |
| 138 | + <a |
| 139 | + href="/" |
| 140 | + className="inline-flex items-center justify-center px-10 py-5 text-lg font-bold text-white border-2 border-white/30 rounded-2xl hover:bg-[#F89559] hover:border-[#F89559] hover:text-white transition-all duration-300 hover:scale-105" |
| 141 | + > |
| 142 | + Back to Home |
| 143 | + </a> |
| 144 | + </div> |
| 145 | + </div> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + |
| 149 | + </div> |
| 150 | + </section> |
| 151 | + ); |
| 152 | +} |
0 commit comments