davidoneilai commited on
Commit
2ed6131
1 Parent(s): 89bf64d

alteracao frontend baseline

Browse files
Files changed (3) hide show
  1. .dockerignore +3 -0
  2. .gitignore +2 -0
  3. web/src/App.jsx +14 -36
.dockerignore CHANGED
@@ -39,3 +39,6 @@ yarn-error.log*
39
  next-env.d.ts
40
 
41
  .yarn
 
 
 
 
39
  next-env.d.ts
40
 
41
  .yarn
42
+
43
+ *venv
44
+ como_nao_errar.txt
.gitignore CHANGED
@@ -29,3 +29,5 @@ dist-ssr
29
  *.env
30
  *chroma_db
31
  databases
 
 
 
29
  *.env
30
  *chroma_db
31
  databases
32
+ como_nao_errar.txt
33
+ *venv
web/src/App.jsx CHANGED
@@ -16,41 +16,19 @@ function App() {
16
 
17
  const [menuState, setMenuState] = useState(true);
18
  const [isLoading, setIsLoading] = useState(false);
19
- const [questions, setQuestions] = useState([
20
- {
21
- question: "Qual a cor do céu?",
22
- options: ["Azul", "Verde", "Amarelo", "Vermelho"],
23
- answer: "Azul"
24
- },
25
- {
26
- question: "Qual a cor da grama?",
27
- options: ["Azul", "Verde", "Amarelo", "Vermelho"],
28
- answer: "Verde"
29
- },
30
- {
31
- question: "Qual a cor do sol?",
32
- options: ["Azul", "Verde", "Amarelo", "Vermelho"],
33
- answer: "Amarelo"
34
- },
35
- {
36
- question: "Qual a cor do sangue?",
37
- options: ["Azul", "Verde", "Amarelo", "Vermelho"],
38
- answer: "Vermelho"
39
- }
40
-
41
- ]);
42
 
43
  const subjects = [
44
- {label:"Fisiologia", value: "fisiologia" },
45
- {label:"Embriologia", value: "embriologia" },
46
- {label:"Citologia", value: "citologia" },
47
- {label:"Genética", value: "genetica" },
48
- {label:"Botânica", value: "botanica" },
49
- {label:"Zoologia", value: "zoologia" },
50
- {label:"Morfologia", value: "morfologia" },
51
- {label:"Ecologia", value: "ecologia" },
52
- {label:"Biofísica", value: "biofisica" },
53
- ]
54
 
55
  const handleSubmit = async (e) => {
56
  e.preventDefault();
@@ -144,9 +122,9 @@ function App() {
144
  <SelectValue placeholder="Conteúdo" />
145
  </SelectTrigger>
146
  <SelectContent onChange={e => console.log(e)}>
147
- subjects && subjects.map(({ label, value }) => (
148
- <SelectItem key={value} value={value}>{label}</SelectItem>
149
- ))
150
  </SelectContent>
151
  </Select>
152
  <button className="h-10 bg-purple-500 rounded px-2.5 py-1 mt-5 hover:brightness-110 transition-all flex items-center justify-center disabled:hover:brightness-75 disabled:brightness-75"
 
16
 
17
  const [menuState, setMenuState] = useState(true);
18
  const [isLoading, setIsLoading] = useState(false);
19
+ const [questions, setQuestions] = useState();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  const subjects = [
22
+ { label: "Fisiologia", value: "fisiologia" },
23
+ { label: "Embriologia", value: "embriologia" },
24
+ { label: "Citologia", value: "citologia" },
25
+ { label: "Genética", value: "genetica" },
26
+ { label: "Botânica", value: "botanica" },
27
+ { label: "Zoologia", value: "zoologia" },
28
+ { label: "Morfologia", value: "morfologia" },
29
+ { label: "Ecologia", value: "ecologia" },
30
+ { label: "Biofísica", value: "biofisica" },
31
+ ]
32
 
33
  const handleSubmit = async (e) => {
34
  e.preventDefault();
 
122
  <SelectValue placeholder="Conteúdo" />
123
  </SelectTrigger>
124
  <SelectContent onChange={e => console.log(e)}>
125
+ {subjects && subjects.map(({ label, value }) => (
126
+ <SelectItem key={value} value={value}>{label}</SelectItem>
127
+ ))}
128
  </SelectContent>
129
  </Select>
130
  <button className="h-10 bg-purple-500 rounded px-2.5 py-1 mt-5 hover:brightness-110 transition-all flex items-center justify-center disabled:hover:brightness-75 disabled:brightness-75"