@@ -13,7 +13,8 @@ interface BeforeInstallPromptEvent extends Event {
1313}
1414
1515const PWAInstallButton = ( ) => {
16- const [ deferredPrompt , setDeferredPrompt ] = useState < BeforeInstallPromptEvent | null > ( null ) ;
16+ const [ deferredPrompt , setDeferredPrompt ] =
17+ useState < BeforeInstallPromptEvent | null > ( null ) ;
1718 const [ canInstall , setCanInstall ] = useState ( false ) ;
1819 const [ isMobile , setIsMobile ] = useState ( false ) ;
1920
@@ -53,14 +54,19 @@ const PWAInstallButton = () => {
5354
5455 return (
5556 < >
56- < div className = "md:hidden flex items-center justify-between rounded-full dark:bg -[#2b2343 ] bg-transparent px-4 py-2 shadow-md text-white w-fit border border-[#3A3745] transition hover:bg-black hover: dark:bg-[#2b2b30]" >
57+ < div className = "flex w-fit items-center justify-between rounded-full border border -[#3A3745 ] bg-[#e8e9ff] px-4 py-2 text-gray-700 shadow-md transition hover:bg-slate-50 dark:bg- black dark:text-white dark:hover: bg-[#2b2b30] md:hidden " >
5758 < div className = "flex items-center gap-3" >
58- < Image src = "/papers_logo.png" alt = "Papers App" width = { 32 } height = { 32 } />
59- < span className = "font-semibold text-lg text-white" > Papers App</ span >
59+ < Image
60+ src = "/papers_logo.png"
61+ alt = "Papers App"
62+ width = { 32 }
63+ height = { 32 }
64+ />
65+ < span className = "text-lg font-semibold" > Papers App</ span >
6066 </ div >
6167 < button
6268 onClick = { handleInstall }
63- className = "ml-6 flex items-center gap-2 rounded-full border border-[#3A3745] dark: bg-[#1e1e24] bg-transparent px-4 py-1 text-sm font-semibold text-white transition hover:bg-black hover: dark:bg-[#2b2b30 ]"
69+ className = "ml-6 flex items-center gap-2 rounded-full border border-[#3A3745] bg-[#e8e9ff] px-4 py-1 text-sm font-semibold text-gray-700 transition hover:bg-slate-50 dark:bg- black dark:text-white dark:hover: bg-[#1A1823 ]"
6470 >
6571 < Download className = "h-4 w-4" />
6672 Install
@@ -69,15 +75,10 @@ const PWAInstallButton = () => {
6975
7076 < div
7177 onClick = { handleInstall }
72- className = "hidden md:flex items-center gap-3 rounded-full px-5 py-2 text-white cursor-pointer dark: bg-[#130e1f] bg-transparent border border-[#3A3745] transition hover:bg-black hover: dark:bg-[#1A1823]"
78+ className = "hidden cursor-pointer items-center gap-3 rounded-full border border-[#3A3745] bg-[#e8e9ff] px-5 py-2 text-gray-700 transition hover:bg-slate-50 dark:bg- black dark:text-white dark:hover: bg-[#1A1823] md:flex "
7379 >
74- < Image
75- src = "/papers_logo.png"
76- alt = "Papers App"
77- width = { 28 }
78- height = { 28 }
79- />
80- < span className = "font-semibold text-sm text-white" > Papers App</ span >
80+ < Image src = "/papers_logo.png" alt = "Papers App" width = { 28 } height = { 28 } />
81+ < span className = "text-sm font-semibold" > Papers App</ span >
8182 </ div >
8283 </ >
8384 ) ;
0 commit comments