SurveyForm.tsx 5.68 KB
Newer Older
Lee SeoYeon's avatar
0708    
Lee SeoYeon committed
1
import React, { InputHTMLAttributes } from "react";
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
2

Lee SeoYeon's avatar
0708    
Lee SeoYeon committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export const SurveyForm = () => {
  return (
    <div className="flex flex-col place-items-center">
      <div className="flex flex-col container place-items-center mt-4">
        <form className="font-bold text-4xl text-center m-2">설문지 제목</form>
        <textarea
          className="font-bold text-1xl text-center m-2 resize-none"
          placeholder="설문조사에 대한 설명을 입력해주세요"
          rows={2}
          cols={60}
        ></textarea>
        <div className="flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-3">
          <div className="flex flexgi-row h-16 w-full place-content-between items-center">
            <form className="text-xl font-bold ml-6 w-1/2">
              Q1. 첫번째 질문
            </form>
          </div>
          <form className="border w-11/12 my-3">설문조사 설명</form>
          <input
            className="border w-11/12 h-36 my-3"
            type="text"
            placeholder="설문조사 답변"
          ></input>
Lee SeoYeon's avatar
Lee SeoYeon committed
26
        </div>
Lee SeoYeon's avatar
0708    
Lee SeoYeon committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
        <div className="flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-3">
          <div className="flex flexgi-row h-16 w-full place-content-between items-center">
            <form className="text-xl font-bold ml-6 w-1/2">
              Q2. 두번째 질문
            </form>
          </div>
          <form className="border w-11/12 my-4">설문조사 설명</form>
          <div className="flex flex-row items-center m-3">
            <div className="mb-4 mx-3">
              <input
                id="default-checkbox"
                type="checkbox"
                className="w-5 h-5 mt-3 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg font-medium">First checkbox</label>
            </div>
            <div className="mb-4 mx-3">
              <input
                id="default-checkbox"
                type="checkbox"
                className="w-5 h-5 mt-3 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg font-medium">
                Second checkbox
              </label>
            </div>
            <div className="mb-4 mx-3">
              <input
                id="default-checkbox"
                type="checkbox"
                value=""
                className="w-5 h-5 mt-3 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg font-medium">Third checkbox</label>
            </div>
            <div className="mb-4 mx-4">
              <input
                id="default-checkbox"
                type="checkbox"
                value=""
                className="w-5 h-5 mt-3 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg font-medium">
                Fourth checkbox
              </label>
            </div>
          </div>
        </div>
        <div className="flex flex-col container w-4/5 h-auto border-2 border-themeColor items-center m-3 py-3">
          <div className="flex flexgi-row h-16 w-full place-content-between items-center">
            <form className="text-xl font-bold ml-6 w-1/2">
              Q3. 세번째 질문
            </form>
          </div>
          <form className="border w-11/12 my-4">설문조사 설명</form>
          <div className="flex flex-row items-center m-3">
            <div className="flex items-center mb-4 mx-4">
              <input
                id="default-radio-1"
                type="radio"
                value=""
                name="default-radio"
                className="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg">First radio</label>
            </div>
            <div className="flex items-center mb-4 mx-4">
              <input
                id="default-radio-1"
                type="radio"
                value=""
                name="default-radio"
                className="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg">Second radio</label>
            </div>
            <div className="flex items-center mb-4 mx-4">
              <input
                checked
                id="default-radio-2"
                type="radio"
                value=""
                name="default-radio"
                className="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
              />
              <label className="ml-2 text-lg">Checked state</label>
            </div>
          </div>
Lee SeoYeon's avatar
Lee SeoYeon committed
115
        </div>
Lee SeoYeon's avatar
0708    
Lee SeoYeon committed
116
117
118
119
120
      </div>
      <div>
        <button className="rounded bg-themeColor my-5 py-2 px-5 font-bold text-white">
          제출하기
        </button>
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
121
122
      </div>
    </div>
Lee SeoYeon's avatar
0708    
Lee SeoYeon committed
123
124
  );
};