From 91837ff8e9aca150a42666872b91fc188ba7a97d Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:24:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=86=A0=EC=8A=A4=ED=8C=90=20=EC=B2=AB?= =?UTF-8?q?=20=EC=8B=A4=ED=96=89=20=EC=9D=B8=ED=8A=B8=EB=A1=9C(=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=20=EC=86=8C=EA=B0=9C=20=ED=9B=84=20=EC=8B=9C?= =?UTF-8?q?=EC=9E=91=ED=95=98=EA=B8=B0),=20=ED=86=A0=EC=8A=A4=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=EC=B0=BD=EC=97=90=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=ED=95=98=EB=A9=B4=20=ED=95=A0=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8A=94=20=EA=B2=83=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/BLayout.tsx | 2 ++ frontend/src/b/Sheets.tsx | 3 +- frontend/src/b/tossIntro.tsx | 57 ++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 frontend/src/b/tossIntro.tsx diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index a48b43d..aebc850 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -12,6 +12,7 @@ import { useRegion } from './regionContext' import { useSheet } from './sheetContext' import { SheetProvider } from './Sheets' import { SkyContext, useSky } from './skyContext' +import { TossIntro } from './tossIntro' import { PinIcon, TabIcon } from './svg' import { Avatar, Ic, Skel } from './ui' @@ -305,6 +306,7 @@ export function BLayout() { + diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index a08a081..44c8938 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -895,7 +895,8 @@ function TossLoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn return ( -

좋아요·댓글은 로그인한 뒤에 할 수 있어요.

+

날씨각 로그인

+

로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요

{error}

diff --git a/frontend/src/b/tossIntro.tsx b/frontend/src/b/tossIntro.tsx new file mode 100644 index 0000000..474b56c --- /dev/null +++ b/frontend/src/b/tossIntro.tsx @@ -0,0 +1,57 @@ +import { useState } from 'react' +import { IS_TOSS } from '../lib/platform' +import { Ic } from './ui' + +const KEY = 'nalssigak.b.tossIntroSeen' + +const POINTS = [ + ['sun', '세차·빨래·러닝 각 점수'], + ['sunset', '오늘 노을이 예쁜 시간'], + ['fireworks', '이번 주말 가까운 행사'], +] as const + +function seen() { + try { + return localStorage.getItem(KEY) === '1' + } catch { + return false + } +} + +/** 토스판을 처음 열면 서비스 소개를 먼저 보여 준다 (앱인토스 검수: 로그인 전에 서비스 설명) */ +export function TossIntro() { + const [open, setOpen] = useState(() => IS_TOSS && !seen()) + if (!open) return null + + const start = () => { + try { + localStorage.setItem(KEY, '1') + } catch (e) { + console.warn('[intro] 본 기록을 저장하지 못함', e) + } + setOpen(false) + } + + return ( +
+ +
+

+ 날씨각 +

+

오늘 날씨에 맞는 일을 점수로 알려 줘요

+
+
    + {POINTS.map(([icon, label]) => ( +
  • + + {label} +
  • + ))} +
+ +
+ ) +}