Skip to content

Commit 225a107

Browse files
authored
[feat] FAQ 페이지 & FAQ 컴포넌트 구현
feat: FAQ 페이지 구현 & FAQ_Section 컴포넌트 구현
1 parent 55d1c2f commit 225a107

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

src/components/UI/FAQ_Section.tsx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import React from 'react'
2+
import dasomLogo from '../../assets/images/dasomLogo.svg'
3+
4+
5+
interface FAQItemProps {
6+
question: string
7+
answer: string
8+
alignment: string
9+
}
10+
11+
const FAQItem: React.FC<FAQItemProps> = ({ question, answer, alignment }) => {
12+
return (
13+
<div className={` p-3 rounded-[11px] bg-[#26262D] w-[266px] shadow-[0px_2px_3px_rgba(0,180,147,0.5)] ${alignment}`}>
14+
<h3 className='font-pretendardBold text-[#00B493] text-[12px]'>{question}</h3>
15+
<p className=" mt-2 text-[10px] leading-relaxed whitespace-pre-line">{answer}</p>
16+
</div>
17+
)
18+
}
19+
20+
const FAQSection: React.FC = () => {
21+
return (
22+
<section className="font-pretendardRegular text-[#FFFFFF] p-4 rounded-lg shadow-lg mx-auto mt-[60px] ">
23+
24+
{/* 제목 */}
25+
<div className='w-full flex items-start gap-2 mb-3'>
26+
<img src={dasomLogo} alt="Dasom Logo" className="w-6 h-6 mt-0.5" />
27+
<div>
28+
<h2 className="text-[16px] font-pretendardBold leading-tight">FAQ / 자주 묻는 질문</h2>
29+
<p className="text-[#A8A8A8] text-[10px] leading-tight">찾으시는 질문이 없다면 다솜 인스타그램 DM 문의를 이용해 주세요.</p>
30+
</div>
31+
</div>
32+
33+
{/* FAQ 리스트 */}
34+
<div className="space-y-5 flex flex-col items-center">
35+
<FAQItem
36+
question="Q. 팀 프로젝트는 어떻게 진행되나요?"
37+
answer={`동아리 내의 다른 멤버들과 팀 빌딩을 진행한 뒤,
38+
팀별로 각자 작업을 만들고, 추후 데모데이를 통해
39+
각 팀의 작업물을 발표하는 방식으로 진행됩니다.`}
40+
alignment="self-start"
41+
42+
/>
43+
44+
<FAQItem
45+
question="Q. 가입은 어떻게 하나요?"
46+
answer={`아래 네비게이션 바의 중에 비행기를 눌러 신청 폼을 통해
47+
가입 신청이 가능합니다.`}
48+
alignment="self-end"
49+
50+
/>
51+
52+
<FAQItem
53+
question="Q. 프로젝트 경험이 있어야 하나요?"
54+
answer={`프로젝트 경험이 없어도, 개발에 능숙하지 않아도,
55+
하고자 하는 의지가 있으신 분이라면 누구나 동아리 가입이
56+
가능해요!`}
57+
alignment="self-start"
58+
59+
/>
60+
61+
<FAQItem
62+
question="Q. 복학생도 가입이 가능한가요?"
63+
answer={`네, 컴퓨터공학과 학생이라면 누구나 가입이 가능해요.
64+
복학생 역시 가능합니다.`}
65+
alignment="self-end"
66+
67+
/>
68+
</div>
69+
</section>
70+
)
71+
}
72+
73+
export default FAQSection

src/pages/FAQ.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import MobileLayout from '../components/layout/MobileLayout'
3+
import FAQ_Section from '../components/UI/FAQ_Section'
4+
5+
const FAQ: React.FC = () => {
6+
return (
7+
<MobileLayout>
8+
<FAQ_Section />
9+
</MobileLayout>
10+
)
11+
}
12+
13+
export default FAQ

0 commit comments

Comments
 (0)