feat(brand): 首页影像版式与名+号字标上线
- 首页按咨询机构影像版式重排,保留原站文案与“洞察→行业→能力”段序 - 导航/页脚/品牌页换用上下锁定字标,alt 维持法定主体名 - 修复 reduce 下 PageTransition 祖先 opacity 停留导致的白屏 - 4 浏览器 × 9 宽度多端复核,axe 0 violation - 视觉基线 106 张更新并只读复跑 125/125
This commit is contained in:
1 parent
f6e750c318
commit
acb6b67357
153 files changed
+1313
-178
No files matched your search
@@ -52,8 +52,8 @@ export function Footer() {
|
||||
src="/logo-white.svg"
|
||||
alt={config.name}
|
||||
width={120}
|
||||
height={45}
|
||||
className="w-auto h-10 md:h-12 transition-transform duration-normal ease-out group-hover:scale-[1.02]"
|
||||
height={56}
|
||||
className="w-auto h-12 md:h-14 transition-transform duration-normal ease-out group-hover:scale-[1.02]"
|
||||
loading="eager"
|
||||
priority
|
||||
/>
|
||||
|
||||
@@ -87,12 +87,15 @@ function HeaderContent() {
|
||||
>
|
||||
{/* Logo 明暗双版:浅色背景用 logo.svg(黑字),深色背景用 logo-white.svg(白字)。
|
||||
按 html[data-theme] 显隐(规则见 globals.css),修复黑字在深色背景被吞的 bug。 */}
|
||||
{/* 上下锁定:书法「睿新致遠」+ 构造字 NOVALON。2026-10-20 甲方改判:
|
||||
导航必须带英文,不再使用 name-alone 横排。声明比与资产 viewBox 一致
|
||||
(255.6 ÷ 119.82 = 2.133),否则图元会被压扁。 */}
|
||||
<Image
|
||||
src="/logo.svg"
|
||||
alt={config.name}
|
||||
width={106}
|
||||
height={40}
|
||||
className="logo-on-light relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-8 md:h-10"
|
||||
width={119}
|
||||
height={56}
|
||||
className="logo-on-light relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-11 md:h-14"
|
||||
loading="eager"
|
||||
priority
|
||||
suppressHydrationWarning
|
||||
@@ -100,9 +103,9 @@ function HeaderContent() {
|
||||
<Image
|
||||
src="/logo-white.svg"
|
||||
alt={config.name}
|
||||
width={106}
|
||||
height={40}
|
||||
className="logo-on-dark relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-8 md:h-10"
|
||||
width={119}
|
||||
height={56}
|
||||
className="logo-on-dark relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-11 md:h-14"
|
||||
loading="eager"
|
||||
suppressHydrationWarning
|
||||
/>
|
||||
|
||||
@@ -43,16 +43,28 @@ export function PageTransition({ children }: { children: React.ReactNode }) {
|
||||
}, []);
|
||||
|
||||
// SSR 和首次 hydration 阶段直接渲染子内容,避免 framer-motion DOM 差异导致 hydration mismatch
|
||||
if (!mounted || shouldReduceMotion) {
|
||||
if (!mounted) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
// 2026-10-20(多端复核):reduce 下**不能**在 mounted 之后切回裸 children。
|
||||
// 原先 `if (!mounted || shouldReduceMotion) return children` 会让已挂载的 motion.div
|
||||
// 在 reduce 状态落地的瞬间被 AnimatePresence 的 exit 链接管,而在 headless/移动仿真里
|
||||
// exit 链没有稳定落点,实测整页祖先停在 opacity 0.15–0.35(桌面 1440 甚至 0)。
|
||||
// 现在无论是否 reduce 都保留同一个 motion.div,只用零时长 + 可见变体把动画「一步到位」。
|
||||
const reducedVariants = {
|
||||
initial: { opacity: 1, y: 0, scale: 1 },
|
||||
animate: { opacity: 1, y: 0, scale: 1, transition: { duration: 0 } },
|
||||
exit: { opacity: 1, transition: { duration: 0 } },
|
||||
};
|
||||
const variants = shouldReduceMotion ? reducedVariants : pageVariants;
|
||||
|
||||
return (
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={pathname}
|
||||
variants={pageVariants}
|
||||
initial="initial"
|
||||
variants={variants}
|
||||
initial={shouldReduceMotion ? false : 'initial'}
|
||||
animate="animate"
|
||||
exit="exit"
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user