style(layouts): 调整头部组件样式和尺寸
增加头部组件高度,优化logo和导航链接的尺寸及间距 改进导航链接的悬停动画效果 统一底部组件高度与头部一致
This commit is contained in:
@@ -92,47 +92,50 @@ onBeforeUnmount(() => {
|
|||||||
<template>
|
<template>
|
||||||
<header
|
<header
|
||||||
ref="topHeaderRef"
|
ref="topHeaderRef"
|
||||||
class="site-header-top fixed left-0 right-0 top-0 z-50 mx-auto flex h-[70px] w-page-container max-w-[calc(100%-2rem)] items-center justify-between px-4 py-5"
|
class="site-header-top fixed left-0 right-0 top-0 z-50 mx-auto flex h-[100px] w-page-container max-w-[calc(100%-2rem)] items-center justify-between px-4 py-5"
|
||||||
>
|
>
|
||||||
<!-- 左侧:Logo 和 标题 -->
|
<!-- 左侧:Logo 和 标题 -->
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-4">
|
||||||
<div class="logo-icon flex h-8 w-8 items-center justify-center rounded-full bg-black text-white">
|
<div class="logo-icon flex h-10 w-10 items-center justify-center rounded-full bg-black text-white">
|
||||||
<!-- 简单的极简风格 SVG Logo -->
|
<!-- 简单的极简风格 SVG Logo -->
|
||||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="h-5 w-5">
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="h-6 w-6">
|
||||||
<circle cx="12" cy="12" r="10" />
|
<circle cx="12" cy="12" r="10" />
|
||||||
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" />
|
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" />
|
||||||
<path d="M2 12h20" />
|
<path d="M2 12h20" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col justify-center">
|
<div class="flex flex-col justify-center">
|
||||||
<span class="text-sm font-bold leading-none tracking-wider text-black">北极新一</span>
|
<span class="text-base font-bold leading-none tracking-wider text-black">北极新一</span>
|
||||||
<span class="mt-1 text-[10px] leading-none text-gray-500">ArcticNewOne</span>
|
<span class="mt-1 text-xs leading-none text-gray-500">ArcticNewOne</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 中间:导航链接 -->
|
<!-- 中间:导航链接 -->
|
||||||
<nav class="hidden md:flex items-center gap-8">
|
<nav class="hidden md:flex items-center gap-20 lg:gap-28">
|
||||||
<a
|
<a
|
||||||
v-for="item in navItems"
|
v-for="item in navItems"
|
||||||
:key="item.name"
|
:key="item.name"
|
||||||
:href="item.path"
|
:href="item.path"
|
||||||
class="group relative flex items-center text-sm font-medium text-black"
|
class="group flex items-center overflow-hidden font-semibold tracking-[-0.7px] text-black"
|
||||||
|
style="font-size: 1.125rem; justify-content: flex-start; position: relative;"
|
||||||
>
|
>
|
||||||
<span class="absolute -left-3 h-1.5 w-1.5 rounded-full bg-black opacity-0 transition-all duration-300 group-hover:opacity-100"></span>
|
<div class="flex items-center transition-transform duration-300 group-hover:translate-x-0 -translate-x-3">
|
||||||
<span class="transition-transform duration-300 group-hover:translate-x-2">{{ item.name }}</span>
|
<span class="mr-1.5 h-1.5 w-1.5 rounded-full bg-black"></span>
|
||||||
|
<span>{{ item.name }}</span>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- 右侧:菜单图标 (使用 div 绘制) -->
|
<!-- 右侧:菜单图标 (使用 div 绘制) -->
|
||||||
<div class="menu-icon group flex h-8 w-8 cursor-pointer flex-col items-end justify-center gap-[6px]">
|
<div class="menu-icon group flex h-12 w-12 cursor-pointer flex-col items-end justify-center gap-[8px]">
|
||||||
<div class="h-[2px] w-6 bg-black transition-all duration-300 group-hover:translate-y-[1px]"></div>
|
<div class="h-[2px] w-10 bg-black transition-all duration-300 group-hover:translate-y-[2.5px]"></div>
|
||||||
<div class="h-[2px] w-6 bg-black transition-all duration-300 group-hover:-translate-y-[1px]"></div>
|
<div class="h-[2px] w-10 bg-black transition-all duration-300 group-hover:-translate-y-[2.5px]"></div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<header
|
<header
|
||||||
ref="bottomHeaderRef"
|
ref="bottomHeaderRef"
|
||||||
class="fixed bottom-0 left-0 right-0 z-50 mx-auto h-[70px] w-page-container max-w-[calc(100%-2rem)] bg-blue-200 px-4 py-5"
|
class="fixed bottom-0 left-0 right-0 z-50 mx-auto h-[100px] w-page-container max-w-[calc(100%-2rem)] bg-blue-200 px-4 py-5"
|
||||||
style="visibility: hidden; opacity: 0;"
|
style="visibility: hidden; opacity: 0;"
|
||||||
>
|
>
|
||||||
<nav>Bottom Navigation</nav>
|
<nav>Bottom Navigation</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user