'use client' import { useEffect, useState } from 'react' import Link from 'next/link' import { isAuthenticated } from '@/lib/auth' import { Button } from '@/components/ui/button' import { HeroSection, UseCaseShowcase, HowItWorks, Differentiators, SocialProof, FinalCTA } from '@/components/landing/LandingSections' import { LiveStatsBar } from '@/components/landing/LiveStatsBar' import { PricingComparison } from '@/components/landing/PricingComparison' import { SectionDivider } from '@/components/landing/MagneticElements' import { motion, AnimatePresence } from 'framer-motion' import { Check, ChevronDown, Monitor, Globe, Shield, Clock, Zap, Menu } from 'lucide-react' export default function Home() { const [loading, setLoading] = useState(true) const [isAuth, setIsAuth] = useState(false) const [openFaq, setOpenFaq] = useState(null) const [billingPeriod, setBillingPeriod] = useState<'monthly' | 'yearly'>('monthly') const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const [scrollProgress, setScrollProgress] = useState(0) useEffect(() => { // Check auth status but DO NOT redirect const auth = isAuthenticated() setIsAuth(auth) setLoading(false) }, []) // Scroll progress tracking useEffect(() => { const handleScroll = () => { const totalScroll = document.documentElement.scrollHeight - window.innerHeight const progress = totalScroll > 0 ? (window.scrollY / totalScroll) * 100 : 0 setScrollProgress(progress) } window.addEventListener('scroll', handleScroll, { passive: true }) return () => window.removeEventListener('scroll', handleScroll) }, []) if (loading) { return (
) } const faqs = [ { question: 'What is website monitoring?', answer: 'Website monitoring is the process of testing and verifying that end-users can interact with a website or web application as expected. It continuously checks your website for changes, downtime, or performance issues.' }, { question: 'How fast are the alerts?', answer: 'Our alerts are sent within seconds of detecting a change. You can configure notifications via email, webhook, Slack, or other integrations.' }, { question: 'Can I monitor SSL certificates?', answer: 'Yes! We automatically monitor SSL certificate expiration and will alert you before your certificate expires.' }, { question: 'Do you offer a free trial?', answer: 'Yes, we offer a free Starter plan that includes 3 monitors with hourly checks. No credit card required.' } ] return (
{/* Header */}
MonitorTool
{isAuth ? ( ) : ( )} {/* Mobile Menu Button */}
{/* Mobile Menu */} {mobileMenuOpen && (
setMobileMenuOpen(false)} className="text-sm font-medium text-muted-foreground hover:text-foreground">Features setMobileMenuOpen(false)} className="text-sm font-medium text-muted-foreground hover:text-foreground">Pricing {!isAuth && ( <> setMobileMenuOpen(false)} className="text-sm font-medium text-primary font-bold">Get Started )}
)}
{/* Scroll Progress Indicator */} {/* Hero Section */} {/* Live Stats Bar */} {/* Use Case Showcase */} {/* Section Divider: Use Cases -> How It Works */} {/* How It Works */} {/* Differentiators */} {/* Section Divider: Differentiators -> Pricing */} {/* Pricing Comparison */} {/* Social Proof */} {/* Pricing Section */} < section id="pricing" className="border-t border-border/40 bg-[hsl(var(--section-bg-2))] py-24" >

Simple pricing, no hidden fees

Start for free and scale as you grow. Change plans anytime.

{/* Starter Plan */}

Starter

Perfect for side projects

$0 /mo
  • 3 monitors
  • Hourly checks
  • Email alerts
{/* Pro Plan */}
MOST POPULAR

Pro

For serious businesses

${billingPeriod === 'monthly' ? '29' : '24'} /mo
  • 50 monitors
  • 1-minute checks
  • All alert channels (Slack/SMS)
  • SSL monitoring
{/* Enterprise Plan */}

Enterprise

Custom solutions

Custom
  • Unlimited monitors
  • 30-second checks
  • SSO & SAML
  • Dedicated support
{/* FAQ Section */} < section id="faq" className="border-t border-border/40 py-24 bg-background" >

Frequently Asked Questions

{faqs.map((faq, index) => ( {openFaq === index && ( {faq.answer} )} ))}
{/* Final CTA */} {/* Footer */} < footer className="border-t border-border bg-background py-12 text-sm" >
MonitorTool

The modern platform for uptime monitoring, change detection, and performance tracking.

{/* Social icons placeholders */}

Product

  • Features
  • Pricing

Company

  • About
  • Blog
  • Careers
  • Contact

Legal

  • Privacy
  • Terms
  • Cookie Policy

© 2026 MonitorTool. All rights reserved.

System Operational
) }