Skip to content

Commit

Permalink
Alterando style tela cadastro de eletivas
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-luca committed Nov 22, 2023
1 parent e125b7f commit fdb2f1d
Show file tree
Hide file tree
Showing 366 changed files with 110,332 additions and 89 deletions.
19,230 changes: 19,230 additions & 0 deletions .history/frontend/package-lock_20231121110658.json

Large diffs are not rendered by default.

19,231 changes: 19,231 additions & 0 deletions .history/frontend/package-lock_20231121111022.json

Large diffs are not rendered by default.

19,231 changes: 19,231 additions & 0 deletions .history/frontend/package-lock_20231121111031.json

Large diffs are not rendered by default.

19,231 changes: 19,231 additions & 0 deletions .history/frontend/package-lock_20231121111108.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions .history/frontend/src/components/Button/index_20231121082406.js
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 .history/frontend/src/components/Button/index_20231121121915.js
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 .history/frontend/src/components/Button/index_20231121121928.js
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 .history/frontend/src/components/Button/index_20231121121951.js
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 .history/frontend/src/components/Button/index_20231121122227.js
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 .history/frontend/src/pages/CreateEletivas/index_20231121085851.js
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="/">&nbsp;Entre</Link>
</C.Strong>
</C.LabelSignin>
</C.Content>
</C.Container>
);
};

export default Signup;
49 changes: 49 additions & 0 deletions .history/frontend/src/pages/CreateEletivas/index_20231121090305.js
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 .history/frontend/src/pages/CreateEletivas/index_20231121090404.js
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 .history/frontend/src/pages/CreateEletivas/index_20231121090829.js
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 .history/frontend/src/pages/CreateEletivas/index_20231121091013.js
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;
Loading

0 comments on commit fdb2f1d

Please sign in to comment.