From 08378b41e8e6d42afcdddbdbbd7f360b03232708 Mon Sep 17 00:00:00 2001
From: Dada878
Date: Thu, 28 Nov 2024 00:15:19 +0800
Subject: [PATCH] feat: add animations
---
.../(submission)/_components/early-bird.tsx | 48 +++++++++++++++++--
1 file changed, 44 insertions(+), 4 deletions(-)
diff --git a/app/cfp/(submission)/_components/early-bird.tsx b/app/cfp/(submission)/_components/early-bird.tsx
index 745519ae..12e8207a 100644
--- a/app/cfp/(submission)/_components/early-bird.tsx
+++ b/app/cfp/(submission)/_components/early-bird.tsx
@@ -26,6 +26,28 @@ function Dialog({
isOpen: boolean;
setIsOpen: (isOpen: boolean) => void;
}) {
+ const emojiHandMotion = {
+ rest: { rotate: 0, y: 0, x: 0 },
+ hover: {
+ rotate: -15,
+ y: -2,
+ x: 3,
+ },
+ };
+ const emojiMouseMotion = {
+ rest: {
+ x: 0,
+ y: 0,
+ },
+ hover: {
+ x: [0, -1, -1, 0],
+ y: [-1, 1, 0, 0],
+ transition: {
+ repeat: Infinity,
+ duration: 0.2,
+ },
+ },
+ };
return (
{isOpen && (
@@ -80,12 +102,30 @@ function Dialog({
SITCON 年會更精彩!
-
+ 好欸 (
+
+ ੭
+
+ ˙
+ ᗜ
+ ˙)
+
+ ੭
+
+
)}