CreateSurveyFormPage.tsx 1.22 KB
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
import React, { useState } from "react";
2
import { Questions } from "./Questions";
Jiwon Yoon's avatar
Jiwon Yoon committed
3
import { QuestionProvider } from "./question.context";
4

Jiwon Yoon's avatar
Jiwon Yoon committed
5
export const CreateSurveyForm = () => {
Jiwon Yoon's avatar
Jiwon Yoon committed
6
  const [survey, setSurvey] = useState();
Jiwon Yoon's avatar
Jiwon Yoon committed
7
8
9
  const [error, setError] = useState("");
  const [disabled, setDisabled] = useState(false);
  const [success, setSuccess] = useState(false);
Jiwon Yoon's avatar
Jiwon Yoon committed
10
11

  return (
Jiwon Yoon's avatar
Jiwon Yoon committed
12
    <>
Jiwon Yoon's avatar
Jiwon Yoon committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
      <QuestionProvider>
        <div className="flex flex-col place-items-center">
          <div className="flex flex-col container place-items-center mt-4">
            <input
              type="text"
              className="font-bold text-4xl text-center m-2 border-b-2"
              placeholder="설문지 제목"
            ></input>
            <textarea
              className="font-bold text-1xl text-center m-2 resize-none"
              placeholder="설문조사에 대한 설명을 입력해주세요"
              rows={2}
              cols={60}
            ></textarea>
          </div>
28
          <Questions />
Jiwon Yoon's avatar
Jiwon Yoon committed
29
30
31
32
33
          <div>
            <button className="border bg-themeColor my-5 py-2 px-3 font-bold text-white">
              설문조사 생성
            </button>
          </div>
Jiwon Yoon's avatar
Jiwon Yoon committed
34
        </div>
Jiwon Yoon's avatar
Jiwon Yoon committed
35
      </QuestionProvider>
Jiwon Yoon's avatar
Jiwon Yoon committed
36
    </>
Jiwon Yoon's avatar
Jiwon Yoon committed
37
38
  );
};