|
1 | | -import React from 'react' |
| 1 | +import BackButton from '@components/BackButton' |
| 2 | +import Button from '@components/Button' |
| 3 | +import React, { useState } from 'react' |
2 | 4 |
|
3 | 5 | function FeedbackMail() { |
| 6 | + const [subject, setSubject] = useState('') |
| 7 | + const [body, setBody] = useState('') |
| 8 | + |
4 | 9 | return ( |
5 | | - <div> |
6 | | - <a |
7 | | - href="mailto:hst92124@gmail.com&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 | + </> |
13 | 69 | ) |
14 | 70 | } |
15 | 71 |
|
|
0 commit comments