From 360e92d655e6ff21c2835efcaf49d7aa61102c45 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Sun, 22 Feb 2026 09:54:10 +0000 Subject: [PATCH 1/3] chore: add minor effect for home search input --- app/pages/index.vue | 55 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index 4421dc7d5..671949c7c 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -75,19 +75,21 @@ defineOgImageComponent('Default', { / - +
+ +
From 35afceea8ae0b8d24bbe1fc28440fcf94917e9f0 Mon Sep 17 00:00:00 2001 From: Vordgi Date: Sun, 22 Feb 2026 10:37:03 +0000 Subject: [PATCH 2/3] chore: update home search effect --- app/pages/index.vue | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/app/pages/index.vue b/app/pages/index.vue index 671949c7c..847c50250 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -3,6 +3,7 @@ import { SHOWCASED_FRAMEWORKS } from '~/utils/frameworks' const { model: searchQuery, flushUpdateUrlQuery } = useGlobalSearch() const isSearchFocused = shallowRef(false) +const inputWrapperRef = useTemplateRef('inputWrapper') async function search() { flushUpdateUrlQuery() @@ -24,6 +25,16 @@ defineOgImageComponent('Default', { title: 'npmx', description: 'a fast, modern browser for the **npm registry**', }) + +function onMouseMove(event: MouseEvent) { + const inputWrapper = inputWrapperRef.value + if (!inputWrapper) return + const rect = inputWrapper.getBoundingClientRect() + const x = event.clientX - rect.left + const y = event.clientY - rect.top + inputWrapper.style.setProperty('--mouse-x', `${x}px`) + inputWrapper.style.setProperty('--mouse-y', `${y}px`) +}