From 2c4a1278cf9c8a2289cbf95355fb048e9af042e1 Mon Sep 17 00:00:00 2001 From: Mathew Kamkar <578302+matkam@users.noreply.github.com> Date: Wed, 30 Jul 2025 14:30:04 +0100 Subject: [PATCH] support emoji reactions --- app/custom/VideoConferenceClientImpl.tsx | 6 ++-- styles/globals.css | 42 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/app/custom/VideoConferenceClientImpl.tsx b/app/custom/VideoConferenceClientImpl.tsx index 4cadc5b..c00a371 100644 --- a/app/custom/VideoConferenceClientImpl.tsx +++ b/app/custom/VideoConferenceClientImpl.tsx @@ -39,9 +39,9 @@ export function VideoConferenceClientImpl(props: { dynacast: true, e2ee: e2eeEnabled ? { - keyProvider, - worker, - } + keyProvider, + worker, + } : undefined, }; }, [e2eeEnabled, props.codec, keyProvider, worker]); diff --git a/styles/globals.css b/styles/globals.css index d07f8bd..b013f44 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -111,4 +111,46 @@ h2 a { .lk-focus-layout-wrapper { align-items: stretch; +} + +/* Emoji Reaction Styles */ +.lk-emoji-reactions { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + display: flex; + flex-direction: column; + align-items: center; + gap: 0.5rem; + pointer-events: none; + z-index: 10; +} + +.lk-emoji-reaction { + font-size: 3rem; + animation: emojiReaction 3s ease-out forwards; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); +} + +@keyframes emojiReaction { + 0% { + opacity: 0; + transform: scale(0.5) translateY(20px); + } + + 20% { + opacity: 1; + transform: scale(1.2) translateY(0); + } + + 80% { + opacity: 1; + transform: scale(1) translateY(-10px); + } + + 100% { + opacity: 0; + transform: scale(0.8) translateY(-20px); + } } \ No newline at end of file