import React from 'react';
import Hero from '../components/Hero';
import FeatureSection from '../components/FeatureSection';
import HorizontalScrollSection from '../components/HorizontalScrollSection';
import Collections from '../components/Collections';
import QuoteSection from '../components/QuoteSection';
import JournalSection from '../components/JournalSection';
import InstagramFeed from '../components/InstagramFeed';
import FAQ from '../components/FAQ';
import SEO, { SITE_URL } from '../components/SEO';

const homeSchema = {
    "@context": "https://schema.org",
    "@type": "WebPage",
    "name": "KNUTH Ceramics — Handcrafted Pottery from Corpus Christi, Texas",
    "description": "KNUTH Ceramics crafts small-batch stoneware pottery in Corpus Christi, Texas. Shop handmade vases, bowls, tableware, and dinnerware inspired by the Gulf Coast. Custom commissions welcome.",
    "url": `${SITE_URL}/`,
    "breadcrumb": {
        "@type": "BreadcrumbList",
        "itemListElement": [
            { "@type": "ListItem", "position": 1, "name": "Home", "item": `${SITE_URL}/` }
        ]
    }
};

const faqSchema = {
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
        {
            "@type": "Question",
            "name": "Is the online shop currently open?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Our online shop is temporarily closed while we focus on new collections and studio work. Follow us on Instagram @knuth.ceramics or email knuth.claudia@gmail.com for commissions and updates."
            }
        },
        {
            "@type": "Question",
            "name": "Are your ceramics dishwasher and microwave safe?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Yes. Our functional stoneware — including mugs, plates, and bowls — is fired to cone 6 oxidation, making it durable for daily use. Hand washing is recommended to extend the life of your piece."
            }
        },
        {
            "@type": "Question",
            "name": "Where is KNUTH Ceramics located?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Our studio is rooted in Corpus Christi, Texas, inspired by the colors and textures of the Gulf Coast."
            }
        },
        {
            "@type": "Question",
            "name": "Do you offer pottery classes in Corpus Christi?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Pottery classes and wheel-throwing workshops are available through the Art Center of Corpus Christi. Visit the Art Center for current schedules and registration."
            }
        },
        {
            "@type": "Question",
            "name": "Do you accept custom ceramic commissions?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "Yes. We accept a limited number of custom dinnerware commissions each year. Contact Claudia at knuth.claudia@gmail.com to discuss your vision, timeline, and pricing."
            }
        },
        {
            "@type": "Question",
            "name": "What clay and glazes does KNUTH Ceramics use?",
            "acceptedAnswer": {
                "@type": "Answer",
                "text": "We use a stoneware clay body that reflects the sandy textures of the Texas Gulf Coast. Our glazes are formulated in-house to capture the colors of the sea and sand along the Corpus Christi shoreline."
            }
        }
    ]
};

const Home: React.FC = () => {
    return (
        <main>
            <SEO
                title="Handcrafted Pottery from Corpus Christi, Texas | KNUTH Ceramics"
                description="KNUTH Ceramics creates small-batch stoneware pottery in Corpus Christi, TX. Shop handmade vases, bowls, and tableware inspired by the Texas Gulf Coast. Custom commissions welcome."
                canonical={`${SITE_URL}/`}
                schema={[homeSchema, faqSchema]}
            />
            <Hero />
            <FeatureSection />
            <HorizontalScrollSection />
            <Collections />
            <InstagramFeed />
            <JournalSection />
            <QuoteSection />
            <FAQ />
        </main>
    );
};

export default Home;
