-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alterando style tela cadastro de eletivas
- Loading branch information
Showing
366 changed files
with
110,332 additions
and
89 deletions.
There are no files selected for viewing
19,230 changes: 19,230 additions & 0 deletions
19,230
.history/frontend/package-lock_20231121110658.json
Large diffs are not rendered by default.
Oops, something went wrong.
19,231 changes: 19,231 additions & 0 deletions
19,231
.history/frontend/package-lock_20231121111022.json
Large diffs are not rendered by default.
Oops, something went wrong.
19,231 changes: 19,231 additions & 0 deletions
19,231
.history/frontend/package-lock_20231121111031.json
Large diffs are not rendered by default.
Oops, something went wrong.
19,231 changes: 19,231 additions & 0 deletions
19,231
.history/frontend/package-lock_20231121111108.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
.history/frontend/src/components/Button/index_20231121082406.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react"; | ||
import * as C from "./styles"; | ||
|
||
const Button = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default Button; |
22 changes: 22 additions & 0 deletions
22
.history/frontend/src/components/Button/index_20231121121915.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
import * as C from "./styles"; | ||
|
||
const Button = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default Button; | ||
|
||
const ButtonEnviar = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default ButtonEnviar; |
22 changes: 22 additions & 0 deletions
22
.history/frontend/src/components/Button/index_20231121121928.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
import * as C from "./styles"; | ||
|
||
const Button = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default Button; | ||
|
||
const ButtonEnviar = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export ButtonEnviar; |
20 changes: 20 additions & 0 deletions
20
.history/frontend/src/components/Button/index_20231121121951.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import * as C from "./styles"; | ||
|
||
const Button = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default Button; | ||
|
||
const ButtonEnviar = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; |
20 changes: 20 additions & 0 deletions
20
.history/frontend/src/components/Button/index_20231121122227.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import * as C from "./styles"; | ||
|
||
const Button = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; | ||
|
||
export default Button; | ||
|
||
const ButtonCadastrar = ({ Text, onClick, Type = "button" }) => { | ||
return ( | ||
<C.Button type={Type} onClick={onClick}> | ||
{Text} | ||
</C.Button> | ||
); | ||
}; |
73 changes: 73 additions & 0 deletions
73
.history/frontend/src/pages/CreateEletivas/index_20231121085851.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React, { useState } from "react"; | ||
import Input from "../../components/Input"; | ||
import Button from "../../components/Button"; | ||
import * as C from "./styles"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import useAuth from "../../hooks/useAuth"; | ||
|
||
|
||
const Signup = () => { | ||
const [email, setEmail] = useState(""); | ||
const [emailConf, setEmailConf] = useState(""); | ||
const [senha, setSenha] = useState(""); | ||
const [error, setError] = useState(""); | ||
const navigate = useNavigate(); | ||
|
||
const { signup } = useAuth(); | ||
|
||
const handleSignup = () => { | ||
if (!email | !emailConf | !senha) { | ||
setError("Preencha todos os campos"); | ||
return; | ||
} else if (email !== emailConf) { | ||
setError("Os e-mails não são iguais"); | ||
return; | ||
} | ||
|
||
const res = signup(email, senha); | ||
|
||
if (res) { | ||
setError(res); | ||
return; | ||
} | ||
|
||
alert("Usuário cadatrado com sucesso!"); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<C.Container> | ||
<C.Label>SISTEMA DE LOGIN</C.Label> | ||
<C.Content> | ||
<Input | ||
type="email" | ||
placeholder="Digite seu E-mail" | ||
value={email} | ||
onChange={(e) => [setEmail(e.target.value), setError("")]} | ||
/> | ||
<Input | ||
type="email" | ||
placeholder="Confirme seu E-mail" | ||
value={emailConf} | ||
onChange={(e) => [setEmailConf(e.target.value), setError("")]} | ||
/> | ||
<Input | ||
type="password" | ||
placeholder="Digite sua Senha" | ||
value={senha} | ||
onChange={(e) => [setSenha(e.target.value), setError("")]} | ||
/> | ||
<C.labelError>{error}</C.labelError> | ||
<Button Text="Inscrever-se" onClick={handleSignup} /> | ||
<C.LabelSignin> | ||
Já tem uma conta? | ||
<C.Strong> | ||
<Link to="/"> Entre</Link> | ||
</C.Strong> | ||
</C.LabelSignin> | ||
</C.Content> | ||
</C.Container> | ||
); | ||
}; | ||
|
||
export default Signup; |
49 changes: 49 additions & 0 deletions
49
.history/frontend/src/pages/CreateEletivas/index_20231121090305.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React, { useState } from "react"; | ||
import Input from "../../components/Input"; | ||
import Button from "../../components/Button"; | ||
import * as C from "./styles"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import useAuth from "../../hooks/useAuth"; | ||
|
||
|
||
const Signup = () => { | ||
const [email, setEmail] = useState(""); | ||
const [emailConf, setEmailConf] = useState(""); | ||
const [senha, setSenha] = useState(""); | ||
const [error, setError] = useState(""); | ||
const navigate = useNavigate(); | ||
|
||
const { signup } = useAuth(); | ||
|
||
const handleSignup = () => { | ||
if (!email | !emailConf | !senha) { | ||
setError("Preencha todos os campos"); | ||
return; | ||
} else if (email !== emailConf) { | ||
setError("Os e-mails não são iguais"); | ||
return; | ||
} | ||
|
||
const res = signup(email, senha); | ||
|
||
if (res) { | ||
setError(res); | ||
return; | ||
} | ||
|
||
alert("Usuário cadatrado com sucesso!"); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<form> | ||
<label> | ||
Nome: | ||
<input type="text" name="name" /> | ||
</label> | ||
<input type="submit" value="Enviar" /> | ||
</form> | ||
); | ||
}; | ||
|
||
export default Signup; |
49 changes: 49 additions & 0 deletions
49
.history/frontend/src/pages/CreateEletivas/index_20231121090404.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React, { useState } from "react"; | ||
import Input from "../../components/Input"; | ||
import Button from "../../components/Button"; | ||
import * as C from "./styles"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import useAuth from "../../hooks/useAuth"; | ||
|
||
|
||
const Signup = () => { | ||
const [email, setEmail] = useState(""); | ||
const [emailConf, setEmailConf] = useState(""); | ||
const [senha, setSenha] = useState(""); | ||
const [error, setError] = useState(""); | ||
const navigate = useNavigate(); | ||
|
||
const { signup } = useAuth(); | ||
|
||
const handleSignup = () => { | ||
if (!email | !emailConf | !senha) { | ||
setError("Preencha todos os campos"); | ||
return; | ||
} else if (email !== emailConf) { | ||
setError("Os e-mails não são iguais"); | ||
return; | ||
} | ||
|
||
const res = signup(email, senha); | ||
|
||
if (res) { | ||
setError(res); | ||
return; | ||
} | ||
|
||
alert("Usuário cadatrado com sucesso!"); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<form> | ||
<label> | ||
Nome: | ||
<input type="text" name="name" /> | ||
</label> | ||
<input type="submit" value="Enviar" /> | ||
</form> | ||
); | ||
}; | ||
|
||
export default Signup; |
49 changes: 49 additions & 0 deletions
49
.history/frontend/src/pages/CreateEletivas/index_20231121090829.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React, { useState } from "react"; | ||
import Input from "../../components/Input"; | ||
import Button from "../../components/Button"; | ||
import * as C from "./styles"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import useAuth from "../../hooks/useAuth"; | ||
|
||
|
||
const Signup = () => { | ||
const [email, setEmail] = useState(""); | ||
const [emailConf, setEmailConf] = useState(""); | ||
const [senha, setSenha] = useState(""); | ||
const [error, setError] = useState(""); | ||
const navigate = useNavigate(); | ||
|
||
const { signup } = useAuth(); | ||
|
||
const handleSignup = () => { | ||
if (!email | !emailConf | !senha) { | ||
setError("Preencha todos os campos"); | ||
return; | ||
} else if (email !== emailConf) { | ||
setError("Os e-mails não são iguais"); | ||
return; | ||
} | ||
|
||
const res = signup(email, senha); | ||
|
||
if (res) { | ||
setError(res); | ||
return; | ||
} | ||
|
||
alert("Usuário cadatrado com sucesso!"); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<form> | ||
<label> | ||
Nome: | ||
<input type="text" name="Nome da eletiva" /> | ||
</label> | ||
<input type="submit" value="Enviar" /> | ||
</form> | ||
); | ||
}; | ||
|
||
export default Signup; |
52 changes: 52 additions & 0 deletions
52
.history/frontend/src/pages/CreateEletivas/index_20231121091013.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React, { useState } from "react"; | ||
import Input from "../../components/Input"; | ||
import Button from "../../components/Button"; | ||
import * as C from "./styles"; | ||
import { Link, useNavigate } from "react-router-dom"; | ||
import useAuth from "../../hooks/useAuth"; | ||
|
||
|
||
const Signup = () => { | ||
const [email, setEmail] = useState(""); | ||
const [emailConf, setEmailConf] = useState(""); | ||
const [senha, setSenha] = useState(""); | ||
const [error, setError] = useState(""); | ||
const navigate = useNavigate(); | ||
|
||
const { signup } = useAuth(); | ||
|
||
const handleSignup = () => { | ||
if (!email | !emailConf | !senha) { | ||
setError("Preencha todos os campos"); | ||
return; | ||
} else if (email !== emailConf) { | ||
setError("Os e-mails não são iguais"); | ||
return; | ||
} | ||
|
||
const res = signup(email, senha); | ||
|
||
if (res) { | ||
setError(res); | ||
return; | ||
} | ||
|
||
alert("Usuário cadatrado com sucesso!"); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<form> | ||
<label> | ||
Nome: | ||
<input type="text" name="Nome da eletiva" /> | ||
<input type="text" name="Descrição" /> | ||
<input type="text" name="Professor" /> | ||
<input type="text" name="Horário" /> | ||
</label> | ||
<input type="submit" value="Enviar" /> | ||
</form> | ||
); | ||
}; | ||
|
||
export default Signup; |
Oops, something went wrong.