diff --git a/src/App.tsx b/src/App.tsx index 87b7c66..87b52ce 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,6 +11,7 @@ import Settings from "./pages/Settings"; import ProfileManagement from "./pages/ProfileManagement"; import NotificationSettings from "./pages/NotificationSettings"; import SecurityPrivacySettings from "./pages/SecurityPrivacySettings"; +import HelpSupport from "./pages/HelpSupport"; import NotFound from "./pages/NotFound"; import Login from "./pages/Login"; import Register from "./pages/Register"; @@ -32,6 +33,7 @@ const App = () => ( } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/pages/HelpSupport.tsx b/src/pages/HelpSupport.tsx new file mode 100644 index 0000000..6fd8361 --- /dev/null +++ b/src/pages/HelpSupport.tsx @@ -0,0 +1,156 @@ + +import React, { useState } from 'react'; +import { ArrowLeft, HelpCircle, MessageCircle, Mail, ShieldQuestion, Info, ExternalLink } from 'lucide-react'; +import { useNavigate } from 'react-router-dom'; +import { Button } from '@/components/ui/button'; +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; +import { Card } from '@/components/ui/card'; +import { toast } from 'sonner'; + +const HelpSupport = () => { + const navigate = useNavigate(); + const [messageText, setMessageText] = useState(''); + + const faqItems = [ + { + question: '앱을 어떻게 사용하나요?', + answer: '앱은 간단합니다. 홈 화면에서 수입과 지출을 추가할 수 있으며, 거래 내역 화면에서 모든 거래를 확인할 수 있습니다. 분석 화면에서는 지출 패턴을 확인하세요.' + }, + { + question: '거래를 어떻게 추가하나요?', + answer: '홈 화면 하단의 "+" 버튼을 눌러 새 거래를 추가할 수 있습니다. 금액, 카테고리, 날짜를 입력하고 저장하세요.' + }, + { + question: '예산을 어떻게 설정하나요?', + answer: '홈 화면에서 예산 카드를 찾아 카테고리별 예산을 설정할 수 있습니다. 각 카테고리에 원하는 금액을 입력하여 월별 예산을 관리하세요.' + }, + { + question: '계정 정보를 어떻게 변경하나요?', + answer: '설정 > 프로필 관리 메뉴에서 이름, 이메일, 전화번호 등의 개인 정보를 변경할 수 있습니다.' + }, + { + question: '알림 설정은 어디서 변경하나요?', + answer: '설정 > 알림 설정 메뉴에서 원하는 알림 유형을 켜거나 끌 수 있습니다.' + }, + ]; + + const sendMessage = () => { + if (!messageText.trim()) { + toast.error('메시지를 입력해주세요.'); + return; + } + + toast.success('문의가 접수되었습니다. 빠른 시일 내에 답변 드리겠습니다.'); + setMessageText(''); + }; + + return ( +
+
+ {/* Header */} +
+
+ +

도움말 및 지원

+
+
+ + {/* Help Categories */} +
+ +
+ +
+

자주 묻는 질문

+
+ + +
+ +
+

이메일 문의

+
+ + +
+ +
+

실시간 채팅

+
+ + +
+ +
+

앱 정보

+
+
+ + {/* FAQ Section */} +
+

자주 묻는 질문

+ + {faqItems.map((item, index) => ( + + {item.question} + + {item.answer} + + + ))} + +
+ + {/* Contact Support */} +
+

문의하기

+
+