Remove section number badge boxes from home page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bdf768ff40
commit
97da68f50c
|
|
@ -6,56 +6,16 @@ import FactoryNewsletterLayout from './sections/FactoryNewsletterLayout'
|
||||||
import RiskSection from './sections/RiskSection'
|
import RiskSection from './sections/RiskSection'
|
||||||
import { useLang } from '@/context/LangContext'
|
import { useLang } from '@/context/LangContext'
|
||||||
|
|
||||||
/* ─── Section chapter marker ─────────────────────────────
|
|
||||||
A thin full-bleed dark bar that stamps the start of every
|
|
||||||
major section — creates instant, unmistakable boundaries.
|
|
||||||
──────────────────────────────────────────────────────── */
|
|
||||||
function SectionLabel({ n, bg = 'paper' }: { n: string; bg?: 'paper' | 'paper-2' }) {
|
|
||||||
return (
|
|
||||||
<div style={{ background: `var(--${bg})`, paddingTop: 44 }}>
|
|
||||||
<div className="max-w-7xl mx-auto px-12 max-md:px-5">
|
|
||||||
<div style={{ display: 'flex', alignItems: 'center', gap: 14 }}>
|
|
||||||
<div style={{
|
|
||||||
fontSize: 11,
|
|
||||||
fontWeight: 800,
|
|
||||||
color: 'var(--red)',
|
|
||||||
letterSpacing: '2px',
|
|
||||||
fontFamily: 'ui-monospace, monospace',
|
|
||||||
direction: 'ltr',
|
|
||||||
border: '1.5px solid var(--red)',
|
|
||||||
padding: '3px 9px',
|
|
||||||
flexShrink: 0,
|
|
||||||
lineHeight: 1.5,
|
|
||||||
}}>
|
|
||||||
{n}
|
|
||||||
</div>
|
|
||||||
<div style={{ flex: 1, height: 1, background: 'var(--rule-thin)' }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ─── Home page ──────────────────────────────────────── */
|
/* ─── Home page ──────────────────────────────────────── */
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const { lang } = useLang()
|
const { lang } = useLang()
|
||||||
return (
|
return (
|
||||||
<div dir={lang === 'fa' ? 'rtl' : 'ltr'}>
|
<div dir={lang === 'fa' ? 'rtl' : 'ltr'}>
|
||||||
{/* ── 00 · Hero ─────────────────────────────────── */}
|
|
||||||
<HeroSection />
|
<HeroSection />
|
||||||
<InternalNewsSection />
|
<InternalNewsSection />
|
||||||
<RadarTechSection />
|
<RadarTechSection />
|
||||||
|
|
||||||
{/* ── 01 · اسکنر جهانی + رویدادها ─────────────── */}
|
|
||||||
<SectionLabel n="۰۱" bg="paper" />
|
|
||||||
<MapEventsSection />
|
<MapEventsSection />
|
||||||
|
|
||||||
{/* ── 02 · ماهنامه + خبرنامه ──────────────────────── */}
|
|
||||||
<SectionLabel n="۰۲" bg="paper-2" />
|
|
||||||
<FactoryNewsletterLayout />
|
<FactoryNewsletterLayout />
|
||||||
|
|
||||||
{/* ── 04 · نقشه ریسک ────────────────────────────── */}
|
|
||||||
<SectionLabel n="۰۵" bg="paper" />
|
|
||||||
<RiskSection />
|
<RiskSection />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue