File tree Expand file tree Collapse file tree 5 files changed +73
-0
lines changed
shared/components/tooltip Expand file tree Collapse file tree 5 files changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222import NoUnreadArticles from '@pages/myBookmark/components/noUnreadArticles/NoUnreadArticles' ;
2323import FetchCard from '@pages/myBookmark/components/fetchCard/FetchCard' ;
2424import { useInfiniteScroll } from '@shared/hooks/useInfiniteScroll' ;
25+ import Tooltip from '@shared/components/tooltip/Tooltip' ;
2526
2627const MyBookmark = ( ) => {
2728 const [ activeBadge , setActiveBadge ] = useState < 'all' | 'notRead' > ( 'all' ) ;
@@ -175,6 +176,7 @@ const MyBookmark = () => {
175176 isActive = { activeBadge === 'notRead' }
176177 />
177178 </ div >
179+ < Tooltip />
178180
179181 { articlesToDisplay . length > 0 ? (
180182 < div
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { useQueryClient } from '@tanstack/react-query';
1818import NoRemindArticles from './components/noRemindArticles/NoRemindArticles' ;
1919import FetchCard from './components/fetchCard/FetchCard' ;
2020import { useInfiniteScroll } from '@shared/hooks/useInfiniteScroll' ;
21+ import Tooltip from '@shared/components/tooltip/Tooltip' ;
2122
2223const Remind = ( ) => {
2324 const [ isEditOpen , setIsEditOpen ] = useState ( false ) ;
@@ -129,6 +130,7 @@ const Remind = () => {
129130 isActive = { activeBadge === 'read' }
130131 />
131132 </ div >
133+ < Tooltip />
132134
133135 { articlesToDisplay . length > 0 ? (
134136 < div
Original file line number Diff line number Diff line change 1+ import CardImg from '@assets/card_img.svg' ;
2+ export default function InfoCard ( ) {
3+ return (
4+ < div className = "common-shadow bg-white-bg w-[24.6rem] rounded-[12px] px-[1.6rem] py-[2.4rem]" >
5+ < p className = "sub2-sb text-font-black-1 mb-[1.6rem] text-center" >
6+ 치삐가 고치고 있어요 < span aria-hidden > 🚧</ span >
7+ </ p >
8+
9+ < div className = "mb-[1.6rem] flex justify-center" >
10+ < img src = { CardImg } alt = "메타 정보가 없을 때 표시되는 안내 이미지" />
11+ </ div >
12+
13+ < p className = "caption2-m text-font-gray-3" >
14+ 현재 제목과 이미지 자동 불러오기 기능은 개선 중이에요. 저장한 콘텐츠를
15+ 쉽게 구분하려면, 메모에 직접 제목이나 키워드를 기록해 두면 더 편리해요.
16+ < span aria-hidden > 📝</ span >
17+ </ p >
18+ </ div >
19+ ) ;
20+ }
Original file line number Diff line number Diff line change 1+ import { Icon } from '@pinback/design-system/icons' ;
2+ import InfoCard from './InfoCard' ;
3+
4+ export default function Tooltip ( ) {
5+ return (
6+ < div className = "mt-[0.8rem] flex items-center" >
7+ < p className = "body3-r text-font-gray-3" >
8+ 일부 콘텐츠는 제목·이미지가 불러와지지 않을 수 있어요.
9+ </ p >
10+
11+ < div className = "relative inline-flex items-center" >
12+ < button
13+ type = "button"
14+ aria-describedby = "info-card"
15+ className = "peer rounded p-[0.4rem]"
16+ >
17+ < Icon name = "ic_info" size = { 16 } />
18+ </ button >
19+
20+ < div
21+ id = "info-card"
22+ className = "pointer-events-none absolute left-0 top-[calc(100%+8px)] z-[100] opacity-0 transition-opacity duration-150 peer-hover:opacity-100 peer-focus-visible:opacity-100"
23+ >
24+ < InfoCard />
25+ </ div >
26+ </ div >
27+ </ div >
28+ ) ;
29+ }
You can’t perform that action at this time.
0 commit comments