@@ -4,12 +4,10 @@ import { Icon } from "@iconify/react";
44import { motion , type Variants } from "framer-motion" ;
55import Image from "next/image" ;
66import { useState } from "react" ;
7- import { trackEvent } from "#/lib/analytics" ;
8- import { useChangelogStatus } from "#/queries/changelog/use-changelog-status" ;
9- import { InfoModal } from "./InfoModal" ;
107
118const FEEDBACK_URL = "https://x.com/enoughaashuu" ;
129const ICECREAM_URL = "https://buymeacoffee.com/aashuu" ;
10+ const WEBSITE_URL = "https://enough.aashuu.tech/" ;
1311
1412const containerVariants : Variants = {
1513 hidden : { opacity : 0 } ,
@@ -29,22 +27,7 @@ const itemVariants: Variants = {
2927} ;
3028
3129export function FABs ( ) {
32- const [ isOpen , setIsOpen ] = useState ( false ) ;
33- const [ defaultTab , setDefaultTab ] = useState < string | undefined > ( ) ;
34- const [ highlightLatest , setHighlightLatest ] = useState ( false ) ;
35- const { hasNew, markSeen } = useChangelogStatus ( ) ;
36-
37- function openInfo ( ) {
38- const wasNew = hasNew ;
39- setDefaultTab ( wasNew ? "changelog" : undefined ) ;
40- setHighlightLatest ( wasNew ) ;
41- if ( wasNew ) markSeen ( ) ;
42- setIsOpen ( true ) ;
43- trackEvent ( "open info" , {
44- tab : wasNew ? "changelog" : "about" ,
45- has_new : wasNew ,
46- } ) ;
47- }
30+ const [ websiteHovered , setWebsiteHovered ] = useState ( false ) ;
4831
4932 return (
5033 < motion . div
@@ -121,21 +104,27 @@ export function FABs() {
121104 < motion . div variants = { itemVariants } >
122105 < Tooltip delay = { 0 } >
123106 < Tooltip . Trigger >
124- < Button
125- aria-label = "Show info"
126- onPress = { openInfo }
127- isIconOnly
128- variant = "ghost"
129- className = "relative"
107+ < a
108+ href = { WEBSITE_URL }
109+ target = "_blank"
110+ rel = "noreferrer"
111+ data-umami-event = "click enough website"
112+ onMouseEnter = { ( ) => setWebsiteHovered ( true ) }
113+ onMouseLeave = { ( ) => setWebsiteHovered ( false ) }
130114 >
131- < Icon icon = "lucide:info" width = { 28 } height = { 28 } />
132- { hasNew && (
133- < span className = "absolute top-1 right-1 h-2 w-2 rounded-full bg-red-500" />
134- ) }
135- </ Button >
115+ < Button isIconOnly variant = "ghost" aria-label = "Open Enough Aashuu website" >
116+ < Image
117+ src = "/enough.webp"
118+ alt = "enough aashuu"
119+ width = { 28 }
120+ height = { 28 }
121+ className = "h-7 w-7 rounded-full"
122+ />
123+ </ Button >
124+ </ a >
136125 </ Tooltip . Trigger >
137126 < Tooltip . Content placement = "left" >
138- < p > About </ p >
127+ < p > { websiteHovered ? "Visit enough.aashuu.tech" : "Open website" } </ p >
139128 </ Tooltip . Content >
140129 </ Tooltip >
141130 </ motion . div >
@@ -162,12 +151,6 @@ export function FABs() {
162151 </ Tooltip >
163152 </ motion . div >
164153
165- < InfoModal
166- isOpen = { isOpen }
167- onClose = { ( ) => setIsOpen ( false ) }
168- defaultTab = { defaultTab }
169- highlightLatest = { highlightLatest }
170- />
171154 </ motion . div >
172155 ) ;
173156}
0 commit comments