切换按钮
用于切换卡片的导航按钮,hover 时上浮
<div className="flex items-center gap-4">
<button className="
w-12 h-12
flex items-center justify-center
bg-white
rounded-full
shadow-lg
hover:shadow-xl hover:-translate-y-0.5
active:scale-90 active:shadow-md
transition-all duration-200 ease-out
">
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 19l-7-7 7-7" />
</svg>
</button>
<button className="
w-12 h-12
flex items-center justify-center
bg-white
rounded-full
shadow-lg
hover:shadow-xl hover:-translate-y-0.5
active:scale-90 active:shadow-md
transition-all duration-200 ease-out
">
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
</svg>
</button>
</div>