diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx
index f162edd..f1e765d 100644
--- a/frontend/src/b/Sheets.tsx
+++ b/frontend/src/b/Sheets.tsx
@@ -26,7 +26,7 @@ import { cx } from '../lib/utils'
import { useAuth } from './authContext'
import { ago, ARTICLE_CAT, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from './lib'
import { GoogleButton } from './googleLogin'
-import { useInstall } from './install'
+import { onPhone, useInstall } from './install'
import { InstallSheet } from './installBanner'
import { MixSheet } from './myGak'
import { ownPage, useRegion } from './regionContext'
@@ -905,9 +905,11 @@ function MeSheet({ onDone }: { onDone: () => void }) {
{me.provider === AuthProvider.GOOGLE ? '구글 계정으로 로그인했어요' : `${me.login_id}(으)로 로그인했어요`}
-
+ {onPhone() && (
+
+ )}
내 캐릭터
diff --git a/frontend/src/b/install.ts b/frontend/src/b/install.ts
index bd5d3f2..3e7191e 100644
--- a/frontend/src/b/install.ts
+++ b/frontend/src/b/install.ts
@@ -37,6 +37,9 @@ export function platform(): Platform {
return 'other'
}
+/** 휴대폰에서만 홈 화면 추가를 권한다 (PC 는 안 보임) */
+export const onPhone = () => ['ios', 'android', 'inapp'].includes(platform())
+
/** 설치창을 바로 띄울 수 있는지 (안드로이드 Chrome 등) */
export function useCanPrompt() {
return useSyncExternalStore(
diff --git a/frontend/src/b/installBanner.tsx b/frontend/src/b/installBanner.tsx
index eeea93e..afb5185 100644
--- a/frontend/src/b/installBanner.tsx
+++ b/frontend/src/b/installBanner.tsx
@@ -1,13 +1,13 @@
import { useEffect, useState } from 'react'
import { track } from '../lib/analytics'
-import { dismiss, dismissed, platform, useInstall } from './install'
+import { dismiss, dismissed, onPhone, platform, useInstall } from './install'
const SITE = 'https://weather.o2o.kr'
-/** 오늘 탭의 작은 설치 카드. 오늘의 각까지 본 뒤 자리에 놓고, 닫으면 2주 숨기고, 홈 화면에서 연 경우엔 안 보인다 */
+/** 오늘 탭의 작은 설치 카드. 오늘의 각까지 본 뒤 자리에 놓고, 휴대폰 브라우저에서만 보인다. 닫으면 2주 숨긴다 (홈 화면에서 연 경우·PC 는 안 보임) */
export function InstallBanner() {
const install = useInstall()
- const [hidden, setHidden] = useState(() => platform() === 'standalone' || dismissed())
+ const [hidden, setHidden] = useState(() => !onPhone() || dismissed())
useEffect(() => {
if (!hidden) track('install_banner_view', {})