From 23f4e86aa3599723622eb43866064af329fb21a9 Mon Sep 17 00:00:00 2001 From: Zylan Date: Sat, 26 Apr 2025 13:13:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B5=E9=9D=A2=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E4=B8=BA=E2=80=9C=E4=B8=83=E5=8D=A1=E7=93=A6=E6=8B=BC?= =?UTF-8?q?=E8=B1=86=E5=BA=95=E7=A8=BF=E7=94=9F=E6=88=90=E5=99=A8=E2=80=9D?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89=E6=B5=AE?= =?UTF-8?q?=E5=8A=A8=E5=8A=A8=E7=94=BB=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=A1=B5=E9=9D=A2=E8=A3=85=E9=A5=B0=E5=85=83=E7=B4=A0?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E5=8D=87=E8=A7=86=E8=A7=89=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=92=8C=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/layout.tsx | 2 +- src/app/page.tsx | 76 +++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 70 insertions(+), 8 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 112aebd..0c3078d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -13,7 +13,7 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { - title: "拼豆底稿生成器 | Perler Beads Generator", + title: "七卡瓦拼豆底稿生成器 | Perler Beads Generator", description: "上传图片,调整精细度,一键生成像素画图纸,简单实用的像素画生成工具", }; diff --git a/src/app/page.tsx b/src/app/page.tsx index 8125d76..076cb0c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -18,6 +18,18 @@ import { import beadPaletteData from './beadPaletteData.json'; +// 添加自定义动画样式 +const floatAnimation = ` + @keyframes float { + 0% { transform: translateY(0px); } + 50% { transform: translateY(-5px); } + 100% { transform: translateY(0px); } + } + .animate-float { + animation: float 3s ease-in-out infinite; + } +`; + // Helper function to get contrasting text color (simple version) - 保留原有实现,因为未在utils中导出 function getContrastColor(hex: string): string { const rgb = hexToRgb(hex); @@ -1062,6 +1074,9 @@ export default function Home() { return ( <> + {/* 添加自定义动画样式 */} +