import { useState, useEffect } from 'react' import { useLang } from '@/context/LangContext' import SnapshotBar from '@/pages/Home/sections/SnapshotBar' const STATS = { fa: [ { label: 'تولید فولاد خام', value: '۳۱.۲', unit: 'میلیون تن', delta: '+۴.۱٪' }, { label: 'صادرات فولاد', value: '۸.۷', unit: 'میلیون تن', delta: '+۱.۸٪' }, { label: 'واردات سنگآهن', value: '۱۲.۴', unit: 'میلیون تن', delta: '-۲.۳٪' }, { label: 'ظرفیت نصبشده', value: '۳۸', unit: 'میلیون تن', delta: '—' }, ], en: [ { label: 'Crude Steel Production', value: '31.2', unit: 'Million tons', delta: '+4.1%' }, { label: 'Steel Exports', value: '8.7', unit: 'Million tons', delta: '+1.8%' }, { label: 'Iron Ore Imports', value: '12.4', unit: 'Million tons', delta: '-2.3%' }, { label: 'Installed Capacity', value: '38', unit: 'Million tons', delta: '—' }, ], } const T = { fa: { overline: 'MARKET & STEEL CHAIN', heading: 'بازار و زنجیره فولاد', sub: 'سامانه جامع آمار و اطلاعات صنعت فولاد ایران — دادههای لحظهای تولید، صادرات، واردات و قیمتها', statsLabel: 'آمار کلیدی صنعت · ۱۴۰۳', gateAccess: 'دسترسی اعضا', gateHeading: 'دسترسی کامل به سامانه بازار و زنجیره فولاد', gateSub: 'اعضای اندیشکده به پایگاه داده جامع فولاد ایران شامل آمار لحظهای تولید، صادرات، واردات، قیمتهای داخلی و بینالمللی و ۵۰۰+ شاخص صنعتی دسترسی دارند.', features: [ 'دادههای لحظهای تولید کارخانههای بزرگ', 'آمار صادرات تفکیکشده بر اساس کشور مقصد', 'نمودارهای تعاملی و قابل دانلود', 'گزارشهای تحلیلی ماهانه اختصاصی', ], cta: 'درخواست عضویت سازمانی ←', ctaDone: '✓ درخواست شما ثبت شد. تیم ما ظرف ۴۸ ساعت با شما تماس میگیرد.', }, en: { overline: 'MARKET & STEEL CHAIN', heading: 'Market & Steel Chain', sub: 'Comprehensive statistics and data platform for Iran\'s steel industry — live production, export, import, and price data', statsLabel: 'KEY INDUSTRY STATS · 1403', gateAccess: 'MEMBERS ONLY', gateHeading: 'Full Access to Market & Steel Chain', gateSub: 'Institute members have access to Iran\'s comprehensive steel database including live production stats, export/import data, domestic and international prices, and 500+ industrial indicators.', features: [ 'Real-time production data from major plants', 'Export statistics broken down by destination country', 'Interactive downloadable charts', 'Exclusive monthly analytical reports', ], cta: 'Request Organizational Membership →', ctaDone: '✓ Your request has been received. Our team will contact you within 48 hours.', }, } const TX = { fa: { tableHeaders: ['عنوان', 'بیشترین', 'کمترین', 'آخرین', '۳۰ روز', '۶۰ روز', '۹۰ روز', '۱۸۰ روز', '۳۶۰ روز'], paywallCta: 'برای مشاهده کامل، عضویت سازمانی دریافت کنید ←', coverageTitle: 'پوشش قیمتی زنجیره فولاد', productLabel: 'محصول', indexLabel: 'شاخص', sourceLabel: 'منبع داده', membersOnly: 'MEMBERS ONLY', coverageDesc: 'دسترسی کامل به قیمتهای لحظهای، تاریخی و گزارشهای تحلیلی هفتگی برای تمام محصولات.', coverageFeatures: ['قیمتهای لحظهای و تاریخی', 'گزارشهای هفتگی اختصاصی', 'نمودارهای تعاملی دانلودی', 'پشتیبانی تحلیلی'], sectionsLabel: 'حوزههای پوشش', contentSections: ['صنعت فولاد', 'بازار سرمایه', 'فلزات و کامودیتی', 'ارزهای دیجیتال', 'بازار ارز و طلا', 'اقتصاد کلان'], dsTitle: 'دسترسی به گزارشهای Platts، Fastmarkets و منابع برتر جهانی', dsBody: 'بیشتر سازمانهای ایرانی به این منابع دسترسی ندارند — اشتراک جداگانهشان چندین هزار دلار در سال هزینه دارد. اعضای اندیشکده از گزارشهای روزانه و هفتگی Platts، Fastmarkets، Bainfo China و Dlpibica بهرهمند میشوند؛ دادههایی که مستقیماً قیمتگذاری، خرید و تصمیمات صادراتی را تغییر میدهند.', requestBtn: 'درخواست عضویت سازمانی ←', contactNote: 'تیم ما ظرف ۴۸ ساعت تماس میگیرد', }, en: { tableHeaders: ['Title', 'High', 'Low', 'Last', '30D', '60D', '90D', '180D', '360D'], paywallCta: 'Subscribe for full access →', coverageTitle: 'Steel Chain Price Coverage', productLabel: 'Products', indexLabel: 'Indicators', sourceLabel: 'Data Sources', membersOnly: 'MEMBERS ONLY', coverageDesc: 'Full access to real-time, historical prices and weekly analytical reports for all products.', coverageFeatures: ['Real-time & historical prices', 'Exclusive weekly reports', 'Interactive downloadable charts', 'Dedicated analytical support'], sectionsLabel: 'Coverage Areas', contentSections: ['Steel Industry', 'Capital Markets', 'Metals & Commodities', 'Digital Assets', 'FX & Gold', 'Macro Economy'], dsTitle: 'Access to Platts, Fastmarkets and Top Global Data Sources', dsBody: 'Most Iranian organizations lack direct access to these sources — individual subscriptions cost thousands of dollars per year. Institute members benefit from daily and weekly reports from Platts, Fastmarkets, Bainfo China, and Dlpibica; data that directly impacts pricing, procurement, and export decisions.', requestBtn: 'Request Organizational Membership →', contactNote: 'Our team will contact you within 48 hours', }, } const SLIDES = Array.from({ length: 13 }, (_, i) => `/${i + 1}.jpg`) /* ─── price table data ───────────────────────────────────── */ const PRICE_TABLE_ROWS = [ { title: 'سنگ نیکل - Carbonate, Mn ۱۳%min EXW China', high: 855.06, low: 898.57, last: 739.35, d30: 9.99, d60: 7.89, d90: 5.23, d180: -6.92, d360: 7.88 }, { title: 'فرو نیکل - S.A. ۳۶%min In Qinzhou Port', high: 892.53, low: 826.70, last: 751.05, d30: -6.31, d60: 8.48, d90: 2.43, d180: 5.13, d360: 3.89 }, { title: 'کاند نیکل - Carbonate, Mn ۱۳%min EXW China', high: 804.93, low: 801.05, last: 961.74, d30: -6.35, d60: 0.12, d90: 4.44, d180: 6.81, d360: 5.95 }, { title: 'سنگ نیکل - S.A. ۳۷%min In Qinzhou Port', high: 774.65, low: 759.59, last: 742.73, d30: -6.03, d60: -5.78, d90: 1.21, d180: 5.82, d360: 5.47 }, { title: 'سولفات نیکل - Gabonese ۴۴%min In Qinzhou Port', high: 873.00, low: 895.82, last: 720.87, d30: -9.57, d60: 5.91, d90: 8.58, d180: 9.15, d360: -2.43 }, { title: 'کاند نیکل - Carbonate, Mn ۱۳%min EXW China', high: 926.83, low: 825.50, last: 745.22, d30: -5.03, d60: -1.54, d90: -0.53, d180: -5.85, d360: 5.54 }, { title: 'فرو نیکل - min FOB S.A.%۳۸', high: 885.21, low: 753.25, last: 753.76, d30: 3.45, d60: 1.07, d90: 8.25, d180: -7.04, d360: -1.44 }, { title: 'فرو نیکل - Carbonate, Mn ۱۳%min EXW China', high: 786.10, low: 739.25, last: 939.99, d30: 8.78, d60: -0.53, d90: 8.58, d180: -9.65, d360: 2.88 }, ] function PctCell({ v }: { v: number }) { const pos = v > 0 const zero = v === 0 return (
| {h} | ))}|||
|---|---|---|---|
| {row.title} | {row.high.toFixed(2)} | {row.low.toFixed(2)} | {row.last.toFixed(2)} |
{tx.coverageDesc}
{tx.dsBody}
{t.sub}
{t.gateSub}