Skip to content

Commit d2d4cc5

Browse files
committed
[FE-233] feat: 피드백메일 레이아웃 구성 완료
1 parent 910ddf8 commit d2d4cc5

1 file changed

Lines changed: 65 additions & 9 deletions

File tree

src/pages/Setting/FeedbackMail/FeedbackMail.tsx

Lines changed: 65 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,71 @@
1-
import React from 'react'
1+
import BackButton from '@components/BackButton'
2+
import Button from '@components/Button'
3+
import React, { useState } from 'react'
24

35
function FeedbackMail() {
6+
const [subject, setSubject] = useState('')
7+
const [body, setBody] = useState('')
8+
49
return (
5-
<div>
6-
<a
7-
href="mailto:hst92124@gmail.com&amp;subject=으아아아"
8-
className="cursor-pointer"
9-
>
10-
피드백 보내기
11-
</a>
12-
</div>
10+
<>
11+
<div className="px-6">
12+
<header className="pt-4">
13+
<BackButton />
14+
</header>
15+
16+
<section id="notice" className="mt-10">
17+
<div className="text-lg font-semibold">
18+
<p>여러분의 소리를 듣기 위해</p>
19+
<p>레코딧은 항상 열려있어요!</p>
20+
<p>
21+
<span className="text-primary-2">자유롭게 피드백</span>
22+
보내주세요!
23+
</p>
24+
</div>
25+
<div className="mt-4 text-xs leading-normal text-grey-7">
26+
<p>레코딧을 사용하며 겪은 불편함이 있으신가요?</p>
27+
<p>또는 텐져스에게 전달하고 싶은 내용이 있으신가요?</p>
28+
<p>남겨주시는 내용은 한글자도 빼놓지 않고 꼼꼼히 살펴볼게요.</p>
29+
</div>
30+
</section>
31+
<section id="title" className="mt-10">
32+
<p className="text-xs font-semibold text-primary-2">
33+
레코딧 피드백 제목
34+
</p>
35+
<div className="mt-4 flex items-center">
36+
<input
37+
className="w-full border-b border-solid border-grey-4 py-1.5 text-grey-9 outline-none placeholder:text-grey-4 focus:placeholder:text-transparent"
38+
placeholder="제목을 작성해주세요."
39+
onChange={(e) => setSubject(e.target.value)}
40+
value={subject}
41+
/>
42+
<span className="absolute right-6 text-xs text-grey-4">
43+
{subject.length}/20
44+
</span>
45+
</div>
46+
</section>
47+
<section id="body" className="mt-[57px]">
48+
<p className="text-xs font-semibold text-primary-2">
49+
레코딧 피드백 내용
50+
</p>
51+
<div className="relative flex items-end justify-end">
52+
<textarea
53+
className="mt-4 h-[130px] w-full resize-none rounded-lg bg-grey-2 p-4 leading-normal text-grey-9 outline-0 placeholder:text-grey-5 focus:placeholder:text-transparent"
54+
placeholder="피드백 내용을 자유롭게 작성해주세요."
55+
maxLength={200}
56+
onChange={(e) => setBody(e.target.value)}
57+
value={body}
58+
/>
59+
<span className="absolute bottom-2 right-4 text-xs font-normal leading-none text-grey-4">
60+
{body.length}/200
61+
</span>
62+
</div>
63+
</section>
64+
</div>
65+
<div className="absolute bottom-10 w-full cursor-pointer px-6">
66+
<Button property="solid">피드백 보내기</Button>
67+
</div>
68+
</>
1369
)
1470
}
1571

0 commit comments

Comments
 (0)