From c194d0418cea6d01a88790962aba3225d15b0b57 Mon Sep 17 00:00:00 2001 From: Luis <114909465+luiskcc@users.noreply.github.com> Date: Thu, 30 Oct 2025 19:38:16 +0100 Subject: [PATCH 1/3] added consultation icon to redirect to Google Calendar to the bottom sidebar --- src/components/Sidebar.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index d3a67e5b..1c6e9650 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -8,9 +8,11 @@ import { UsersIcon } from '@/components/icons/UsersIcon' import { KeyIcon } from '@/components/icons/KeyIcon' import { GlobeIcon } from '@/components/icons/GlobeIcon' import { CalendarDaysIcon } from '@/components/icons/CalendarDaysIcon' +import { CircleHelpIcon } from '@/components/icons/CircleHelpIcon' import { usePermissions } from '@/hooks/usePermissions' import { useFriendsWithInsights } from '@/api/hooks/useFriends' import { usePaywall } from '@/hooks/usePaywall' +import { open } from '@tauri-apps/plugin-shell' export function Sidebar() { const location = useLocation() @@ -122,6 +124,22 @@ export function Sidebar() { )} +
+ + + open('https://calendar.app.google/UT16rbeEvS5Ye4bx9')} + > + + + + Book a Consultation + +
+
From 7e9b629903dc2c8cddb0625f78f357ffddb90155 Mon Sep 17 00:00:00 2001 From: Luis <114909465+luiskcc@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:45:31 +0100 Subject: [PATCH 2/3] Added Massage Icon animated component for Booking Consultations --- src/components/Sidebar.tsx | 4 +- src/components/icons/MessageCircleIcon.tsx | 74 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 src/components/icons/MessageCircleIcon.tsx diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 1c6e9650..1d2d34ba 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -8,7 +8,7 @@ import { UsersIcon } from '@/components/icons/UsersIcon' import { KeyIcon } from '@/components/icons/KeyIcon' import { GlobeIcon } from '@/components/icons/GlobeIcon' import { CalendarDaysIcon } from '@/components/icons/CalendarDaysIcon' -import { CircleHelpIcon } from '@/components/icons/CircleHelpIcon' +import { MessageCircleIcon } from '@/components/icons/MessageCircleIcon' import { usePermissions } from '@/hooks/usePermissions' import { useFriendsWithInsights } from '@/api/hooks/useFriends' import { usePaywall } from '@/hooks/usePaywall' @@ -133,7 +133,7 @@ export function Sidebar() { className="w-9 h-9 p-2 text-muted-foreground [&>svg]:text-muted-foreground" onClick={() => open('https://calendar.app.google/UT16rbeEvS5Ye4bx9')} > - + Book a Consultation diff --git a/src/components/icons/MessageCircleIcon.tsx b/src/components/icons/MessageCircleIcon.tsx new file mode 100644 index 00000000..ee073bb2 --- /dev/null +++ b/src/components/icons/MessageCircleIcon.tsx @@ -0,0 +1,74 @@ +import type { Transition, Variants } from 'motion/react' +import { motion } from 'motion/react' +import type { HTMLAttributes } from 'react' +import { forwardRef } from 'react' +import { cn } from '@/lib/utils/tailwind.util' +import type { AnimationHandle } from '@/hooks/useMouseOverAnimation' +import { useMouseOverAnimation } from '@/hooks/useMouseOverAnimation' + +export type MessageCircleIconHandle = AnimationHandle + +interface MessageCircleIconProps extends HTMLAttributes { + size?: number +} + +const defaultTransition: Transition = { + duration: 0.6, + opacity: { duration: 0.2 } +} + +const pathVariants: Variants = { + normal: { + pathLength: 1, + opacity: 1 + }, + animate: { + opacity: [0, 1], + pathLength: [0, 1] + } +} + +const MessageCircleIcon = forwardRef( + ({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => { + const { controls, handleMouseEnter, handleMouseLeave } = useMouseOverAnimation({ + ref, + onMouseEnter, + onMouseLeave + }) + + return ( +
+ + + +
+ ) + } +) + +MessageCircleIcon.displayName = 'MessageCircleIcon' + +export { MessageCircleIcon } From 5286934d1aeba0c70c115a8cbfdc67e1aea39eef Mon Sep 17 00:00:00 2001 From: Luis <114909465+luiskcc@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:48:08 +0100 Subject: [PATCH 3/3] refactored divs --- src/components/Sidebar.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 1d2d34ba..747340df 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -111,8 +111,8 @@ export function Sidebar() {
- {!hasProAccess && ( -
+
+ {!hasProAccess && ( -
- )} + )} -
Book a Consultation -
-