import { Link, Outlet, useLocation } from 'react-router-dom'
import {
brand,
contact,
haoke,
hero,
images,
partner,
poetry,
qingxiang,
subsidy,
system,
tech,
techDetail,
} from '../content/site'
import './MobileViews.css'
export function MobileViews() {
const location = useLocation()
const path = location.pathname
switch (path) {
case '/':
return
case '/brand':
return
case '/poetry':
return
case '/qingxiang':
return
case '/haoke':
return
case '/system':
return
case '/tech':
return
case '/subsidy':
return
case '/partner':
return
case '/tech-detail':
return
case '/contact':
return
default:
return
}
}
/* 1. Mobile Home View */
function MobileHomeView() {
return (
{hero.subBrand} · 移动全景
{hero.brand}
{hero.title}
{hero.subtitle}
{hero.primaryCta.label}
{hero.secondaryCta.label}
)
}
/* 2. Mobile Brand View */
function MobileBrandView() {
return (
{brand.eyebrow}
{brand.title}
{brand.lead}
{brand.cards.map((card, idx) => (
0{idx + 1}
{card.title}
{card.text}
))}
故里文明印记
{brand.timeline.map((item) => (
{item}
))}
{brand.closing}
深度阅读
{brand.deepReads.map((dp) => (
{dp.label} ›
{dp.blurb}
))}
)
}
/* 3. Mobile Poetry View */
function MobilePoetryView() {
return (
{poetry.eyebrow}
{poetry.title}
{poetry.lead}
“{poetry.mainPoem.quote}”
—— {poetry.mainPoem.source}
{poetry.poems.map((p) => (
“{p.quote}”
—— {p.source}
))}
{poetry.closing}
诗酒专题
{poetry.deepReads.map((dp) => (
{dp.label} ›
{dp.blurb}
))}
)
}
/* 4. Mobile Qingxiang View */
function MobileQingxiangView() {
return (
{qingxiang.eyebrow}
{qingxiang.title}
{qingxiang.lead}
{qingxiang.styleWords.map((word) => (
{word}
))}
{qingxiang.positions.map((pos) => (
))}
品鉴仪式 · 抿咂呵
{qingxiang.tasting.map((t) => (
{t.title}:
{t.text}
))}
{qingxiang.mission}
清香宝典专题
{qingxiang.deepReads.map((dp) => (
{dp.label} ›
{dp.blurb}
))}
)
}
/* 5. Mobile Haoke View */
function MobileHaokeView() {
return (
{haoke.eyebrow}
{haoke.title}
{haoke.lead}
{haoke.points.map((pt) => (
))}
{haoke.closing}
)
}
/* 6. Mobile System View */
function MobileSystemView() {
return (
{system.eyebrow}
{system.title}
{system.lead}
{system.ends.map((end) => (
{end.title}
{end.role}
核心能力:{end.caps}
))}
{system.closing}
)
}
/* 7. Mobile Tech View */
function MobileTechView() {
return (
{tech.eyebrow}
{tech.title}
{tech.lead}
{tech.points.map((pt) => (
))}
{tech.claim}
{tech.cta.label}
)
}
/* 8. Mobile Subsidy View */
function MobileSubsidyView() {
return (
{subsidy.eyebrow}
{subsidy.title}
{subsidy.subtitle}
{subsidy.lead}
专项补贴规模
{subsidy.number}
{subsidy.numberNote}
{subsidy.points.map((pt) => (
))}
{subsidy.closing}
)
}
/* 9. Mobile Partner View */
function MobilePartnerView() {
return (
{partner.eyebrow}
{partner.title}
{partner.lead}
{partner.points.map((pt) => (
))}
{partner.primaryCta.label}
{partner.secondaryCta.label}
)
}
/* 10. Mobile Tech Detail View */
function MobileTechDetailView() {
return (
{techDetail.eyebrow}
{techDetail.title}
{techDetail.lead}
{techDetail.ports.map((port) => (
))}
{techDetail.closing}
)
}
/* 11. Mobile Contact View */
function MobileContactView() {
return (
{contact.eyebrow}
{contact.title}
{contact.lead}
)
}