const { useState, useEffect, useRef } = React;
const ASSET_BASE = (typeof window !== "undefined" && window.ALHAMZA_ASSET_URL) ? window.ALHAMZA_ASSET_URL : "assets/img/";
const LOGO_WHITE = ASSET_BASE + "logo-white.png";
const LOGO_COLOR = ASSET_BASE + "logo.png";
/* ---------------- helpers ---------------- */
function useInView(threshold = 0.15) {
const ref = useRef(null);
const [inView, setInView] = useState(false);
useEffect(() => {
const el = ref.current;
if (!el) return;
const obs = new IntersectionObserver((entries) => {
entries.forEach((e) => {
if (e.isIntersecting) { setInView(true); obs.unobserve(el); }
});
}, { threshold, rootMargin: "0px 0px -60px 0px" });
obs.observe(el);
return () => obs.disconnect();
}, []);
return [ref, inView];
}
function Reveal({ as: Tag = "div", delay = "0s", className = "", children, ...rest }) {
const [ref, inView] = useInView();
return (
{children}
);
}
function Icon({ html, box = "0 0 24 24", strokeWidth = "1.6", className, style }) {
return (
);
}
/* ---------------- data ---------------- */
const NAV_LINKS = [
{ href: "#home", label: "Home" },
{ href: "#about", label: "About Us" },
];
const NAV_LINKS_AFTER = [
{ href: "#services", label: "Services" },
{ href: "#network", label: "Markets" },
{ href: "#industries", label: "Industries" },
{ href: "#contact", label: "Contact" },
];
const COMMODITY_DROPDOWN = ["Oilseeds", "Edible Oils", "Pulses", "Feed Ingredients", "Raw Cashew Nuts"];
const COMMODITIES = [
{ img: "https://images.unsplash.com/photo-1601993488142-d3050a16478d?auto=format&fit=crop&w=800&q=80", alt: "Soybeans, an oilseed commodity", title: "Oilseeds", desc: "Soybeans, Canola, Sunflower, Sesame & more", icon: ' ' },
{ img: "https://images.unsplash.com/photo-1552592074-ea7a91b851b3?auto=format&fit=crop&w=800&q=80", alt: "Bottle of edible vegetable oil", title: "Edible Oils", desc: "Crude & refined sunflower, soybean, canola oil & more", icon: ' ' },
{ img: "https://images.unsplash.com/photo-1644432757699-bb5a01e8fb0e?auto=format&fit=crop&w=800&q=80", alt: "Bowl of chickpeas, a pulse commodity", title: "Pulses", desc: "Lentils, chickpeas, dry peas, black matpe & more", icon: ' ' },
{ img: "https://images.unsplash.com/reserve/vW7acWlWSk6m3e6HuxsQ_corn.jpg?auto=format&fit=crop&w=800&q=80", alt: "Close-up of grain used for feed ingredients", title: "Feed Ingredients", desc: "Canola meal, soybean meal, sunflower meal & more", icon: ' ' },
{ img: "https://images.unsplash.com/photo-1573555657105-47a0bb37c3ea?auto=format&fit=crop&w=800&q=80", alt: "Raw cashew nuts", title: "Raw Cashew Nuts", desc: "Raw cashew nuts & other agricultural products", icon: ' ' },
];
const SERVICES = [
{ title: "Commodity Brokerage", icon: ' ' },
{ title: "International Trading", icon: ' ' },
{ title: "Strategic Sourcing", icon: ' ' },
{ title: "Market Intelligence", icon: ' ' },
{ title: "Logistics Coordination", icon: ' ' },
{ title: "Inspection Coordination", icon: ' ' },
{ title: "Supplier Development", icon: ' ' },
{ title: "Trade Consultation", icon: ' ' },
{ title: "Documentation Support", icon: ' ' },
{ title: "Risk Management", icon: ' ' },
];
const INDUSTRIES = [
{ label: "Edible Oil Refineries", icon: ' ' },
{ label: "Feed Manufacturers", icon: ' ' },
{ label: "Food Processing Companies", icon: ' ' },
{ label: "Importers", icon: ' ' },
{ label: "Exporters", icon: ' ' },
{ label: "Commodity Traders", icon: ' ' },
{ label: "Crushing Plants", icon: ' ' },
{ label: "Government Buyers", icon: ' ' },
];
const WHY_CARDS = [
{ title: "Global Network", desc: "Strong presence across key producing and consuming regions", icon: ' ' },
{ title: "Quality Assurance", desc: "International standards with independent quality inspections", icon: ' ' },
{ title: "Market Intelligence", desc: "Real-time insights and analysis to help you make informed decisions", icon: ' ' },
{ title: "Timely Execution", desc: "Efficient logistics and execution ensuring on-time shipments", icon: ' ' },
{ title: "Trusted Partnerships", desc: "Long-term relationships built on trust, transparency and integrity", icon: ' ' },
{ title: "Competitive Pricing", desc: "Access to global markets to ensure the best commercial opportunities", icon: ' ' },
];
const MAP_ROUTES = [
{ region: "na", d: "M170 155 C330 120 420 180 505 250" },
{ region: "sa", d: "M140 330 C260 300 400 260 505 250" },
{ region: "eu", d: "M505 250 C520 190 530 140 555 110" },
{ region: "af", d: "M505 250 C500 280 480 310 460 340" },
{ region: "as", d: "M505 250 C540 245 565 248 585 258" },
{ region: "as", d: "M505 250 C555 265 590 280 615 300" },
{ region: "as", d: "M505 250 C640 190 760 160 850 155" },
{ region: "as", d: "M505 250 C650 280 760 320 820 340" },
{ region: "au", d: "M505 250 C650 340 780 380 855 390" },
];
const MAP_NODES = [
{ region: "na", x: 170, y: 155, label: "Canada", lx: 182, ly: 152 },
{ region: "sa", x: 140, y: 330, label: "Brazil", lx: 152, ly: 327 },
{ region: "sa", x: 120, y: 385, label: "Argentina", lx: 132, ly: 400 },
{ region: "eu", x: 555, y: 110, label: "Black Sea", lx: 567, ly: 107 },
{ region: "af", x: 460, y: 340, label: "Africa", lx: 472, ly: 337 },
{ region: "as", x: 585, y: 258, label: "Pakistan", lx: 597, ly: 255 },
{ region: "as", x: 615, y: 300, label: "India", lx: 627, ly: 297 },
{ region: "as", x: 850, y: 155, label: "China", lx: 862, ly: 152 },
{ region: "as", x: 820, y: 340, label: "Vietnam", lx: 832, ly: 337 },
{ region: "au", x: 855, y: 390, label: "Australia", lx: 867, ly: 387 },
];
const REGION_CHIPS = [
{ key: "all", label: "All Regions" },
{ key: "na", label: "North America" },
{ key: "sa", label: "South America" },
{ key: "eu", label: "Europe" },
{ key: "af", label: "Africa" },
{ key: "as", label: "Asia" },
{ key: "au", label: "Australia" },
];
/* ---------------- Preloader ---------------- */
function Preloader() {
const [done, setDone] = useState(false);
useEffect(() => {
const t1 = setTimeout(() => setDone(true), 1500);
const onLoad = () => setTimeout(() => setDone(true), 350);
window.addEventListener("load", onLoad);
return () => { clearTimeout(t1); window.removeEventListener("load", onLoad); };
}, []);
return (
);
}
/* ---------------- Header ---------------- */
function Header() {
const [scrolled, setScrolled] = useState(false);
const [navOpen, setNavOpen] = useState(false);
const [dropOpen, setDropOpen] = useState(false);
const headerRef = useRef(null);
useEffect(() => {
function setHVar() {
if (headerRef.current) document.documentElement.style.setProperty("--header-h", headerRef.current.offsetHeight + "px");
}
function onScroll() { setScrolled(window.scrollY > 40); setHVar(); }
setHVar();
window.addEventListener("scroll", onScroll, { passive: true });
window.addEventListener("resize", setHVar);
window.addEventListener("load", setHVar);
if (document.fonts && document.fonts.ready) document.fonts.ready.then(setHVar);
return () => { window.removeEventListener("scroll", onScroll); window.removeEventListener("resize", setHVar); };
}, []);
function closeMobile() { setNavOpen(false); setDropOpen(false); }
return (
);
}
/* ---------------- Hero ---------------- */
function Hero() {
const [ref] = useInView();
return (
Dubai, UAE — Global Commodity Brokerage
Trading Hub. Connecting Markets.Creating Value.
Al Hamza Meridian Trading FZCO is your trusted global partner in agricultural commodity brokerage, sourcing, and international trade — connecting buyers and suppliers worldwide with transparency, integrity, and market expertise.
);
}
/* ---------------- Stats ---------------- */
function Stat({ icon, box, count, suffix, staticVal, label }) {
const [ref, inView] = useInView(0.6);
const [val, setVal] = useState(staticVal ? staticVal : "0");
useEffect(() => {
if (!inView) return;
if (staticVal) { setVal(staticVal); return; }
let start = null;
const duration = 1400;
function step(ts) {
if (!start) start = ts;
const progress = Math.min((ts - start) / duration, 1);
const eased = 1 - Math.pow(1 - progress, 3);
setVal(Math.round(eased * count) + suffix);
if (progress < 1) requestAnimationFrame(step);
}
requestAnimationFrame(step);
}, [inView]);
return (
{val}
{label}
);
}
function StatsStrip() {
return (
);
}
/* ---------------- About ---------------- */
function About() {
return (
15+
Years of Excellence
Who We Are
Dubai-Based Global Commodity Partner
Al Hamza Meridian Trading FZCO is a premier commodity brokerage and international trading company headquartered in Dubai, UAE. Operating at the crossroads of global trade, we specialise in the sourcing, brokerage, and distribution of agricultural commodities across international markets.
With a trusted network spanning Australia, Canada, Brazil, the Black Sea, South Asia, and Southeast Asia, we connect buyers and suppliers with unmatched expertise, transparency, and integrity — building long-term partnerships that create lasting value.
Global Sourcing
Transparency
Reliable Partnerships
Commodity Expertise
);
}
/* ---------------- Commodities ---------------- */
function Commodities() {
return (
What We Trade
Our Commodities
We deal in a wide range of agricultural commodities, sourced responsibly from trusted origins around the world.
{COMMODITIES.map((c, i) => (
{c.title}
{c.desc}
))}
);
}
/* ---------------- Services ---------------- */
function Services() {
return (
What We Do
Our Services
End-to-end solutions tailored to your business needs — from sourcing and brokerage to logistics and documentation.
{SERVICES.map((s, i) => (
{s.title}
))}
);
}
/* ---------------- Industries ---------------- */
function Industries() {
return (
Who We Serve
Industries We Serve
Tailored commodity solutions for every sector across the agricultural supply chain.
{INDUSTRIES.map((ind, i) => (
{ind.label}
))}
);
}
/* ---------------- Why Choose ---------------- */
function WhyChoose() {
return (
Our Advantage
Why Choose Al Hamza Meridian?
We deliver value through expertise, global reach, and an unwavering commitment to our partners. With over a decade in commodity markets, we bring unparalleled sourcing capability, transparent business practices, and reliable execution to every trade.
Partner With Us
{WHY_CARDS.map((w, i) => (
{w.title} {w.desc}
))}
);
}
/* ---------------- Trading network map ---------------- */
function Network() {
const [mapRef, mapInView] = useInView(0.3);
const [region, setRegion] = useState("all");
return (
Our Reach
Our Trading Network
Headquartered in Dubai, we connect commodity producers and buyers across four continents through trusted trade routes.
Dubai HQ
Trading Partner
Trade Route
{REGION_CHIPS.map((c) => (
setRegion(c.key)}>{c.label}
))}
{MAP_ROUTES.map((r, i) => {
const hidden = region !== "all" && region !== r.region;
return (
);
})}
Dubai HQ
{MAP_NODES.map((n, i) => {
const hidden = region !== "all" && region !== n.region;
return (
{n.label}
);
})}
);
}
/* ---------------- CTA banner ---------------- */
function CtaBanner() {
return (
Start Trading Today
Ready to Trade Globally?
Partner with Al Hamza Meridian Trading FZCO for reliable supply, competitive pricing, and global market expertise.
);
}
/* ---------------- Contact ---------------- */
function Contact() {
const [note, setNote] = useState("");
const formRef = useRef(null);
function onSubmit(e) {
e.preventDefault();
setNote("Thank you — your enquiry has been received. Our team will contact you shortly.");
if (formRef.current) formRef.current.reset();
}
return (
);
}
/* ---------------- Footer ---------------- */
function Footer() {
const [subMsg, setSubMsg] = useState("Your email address");
function onSubscribe(e) {
e.preventDefault();
e.target.reset();
setSubMsg("Subscribed! Thank you.");
}
return (
AL HAMZA
MERIDIAN TRADING · FZCO
Dubai-based global commodity brokerage connecting markets across 20+ countries with transparency, integrity, and expertise.
Market Insights
Subscribe for weekly commodity market updates and trade intelligence.
Registered in IFZA, Dubai, UAE
© {new Date().getFullYear()} Al Hamza Meridian Trading FZCO. All rights reserved.
);
}
/* ---------------- Back to top ---------------- */
function BackToTop() {
const [show, setShow] = useState(false);
useEffect(() => {
function onScroll() { setShow(window.scrollY > 700); }
window.addEventListener("scroll", onScroll, { passive: true });
return () => window.removeEventListener("scroll", onScroll);
}, []);
return (
window.scrollTo({ top: 0, behavior: "smooth" })}>
);
}
/* ---------------- App ---------------- */
function App() {
return (
);
}
ReactDOM.createRoot(document.getElementById("root")).render( );