
import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom';
import { Card, CardContent } from '@/components/ui/card';
import { Button } from '@/components/ui/button';

function Home() {
  return (
    <section className="p-8">
      <div className="flex justify-start">
        <img src="/assets/logo.png" alt="IFM Media Solutions Logo" className="h-20 w-auto mb-6" />
      </div>
      <div className="text-center">
      <h1 className="text-4xl font-bold mb-4">Welcome to IFM Media Solutions</h1>
      <p className="text-lg">Your one-stop solution for creative media services.</p>
    </section>
  );
}

function About() {
  return (
    <section className="p-8 max-w-3xl mx-auto">
      <h2 className="text-3xl font-semibold mb-4">About Us</h2>
      <p>IFM Media Solutions is a creative agency specializing in multimedia production, digital marketing, and branding solutions.</p>
    </section>
  );
}

function Services() {
  return (
    <section className="p-8 grid grid-cols-1 md:grid-cols-3 gap-4">
      <Card>
        <CardContent>
          <h3 className="text-xl font-bold mb-2">Video Production</h3>
          <p>High-quality video content for commercials, events, and more.</p>
        </CardContent>
      </Card>
      <Card>
        <CardContent>
          <h3 className="text-xl font-bold mb-2">Digital Marketing</h3>
          <p>SEO, social media campaigns, and targeted ads to boost your reach.</p>
        </CardContent>
      </Card>
      <Card>
        <CardContent>
          <h3 className="text-xl font-bold mb-2">Branding</h3>
          <p>Custom logos, brand strategies, and identity design.</p>
        </CardContent>
      </Card>
    </section>
  );
}

function Contact() {
  return (
    <section className="p-8 max-w-xl mx-auto">
      <h2 className="text-3xl font-semibold mb-4">Contact Us</h2>
      <form className="space-y-4">
        <input className="w-full p-2 border rounded" type="text" placeholder="Name" />
        <input className="w-full p-2 border rounded" type="email" placeholder="Email" />
        <textarea className="w-full p-2 border rounded" placeholder="Message"></textarea>
        <Button type="submit">Send</Button>
      </form>
    </section>
  );
}

function Navbar() {
  return (
    <nav className="bg-black text-white p-4 flex justify-between items-center">
      <span className="text-xl font-bold">IFM Media Solutions</span>
      <div className="space-x-4">
        <Link to="/" className="hover:underline">Home</Link>
        <Link to="/about" className="hover:underline">About</Link>
        <Link to="/services" className="hover:underline">Services</Link>
        <Link to="/contact" className="hover:underline">Contact</Link>
      </div>
    </nav>
  );
}

export default function App() {
  return (
    <Router>
      <Navbar />
      <main className="min-h-screen bg-gray-50">
        <Routes>
          <Route path="/" element={<Home />} />
          <Route path="/about" element={<About />} />
          <Route path="/services" element={<Services />} />
          <Route path="/contact" element={<Contact />} />
        </Routes>
      </main>
    </Router>
  );
}
