Junção da pagina de cadastro e de login

This commit is contained in:
2026-03-10 20:10:19 -03:00
parent 9aa9855498
commit 7e8dec9c26
4 changed files with 346 additions and 166 deletions

54
cadastro.html Normal file
View File

@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tcc parte2</title>
<link rel="stylesheet" href="stylecad.css">
<link rel="icon" href="imagens/icone.png">
</head>
<body>
<!--Barrinha que fica no topo-->
<div id="topo">
<h1 id="textotop">Focus Agenda</h1>
</div>
<!--cabo bar-->
<!--Login e outras coisas-->
<div id="log">
<h1 class="mens">Crie Sua Conta</h1>
<form method="POST" action="cadastro.html">
<div class="campo">
<label for="emailid">Email</label>
<input type="email" placeholder="Digite seu email" name="email" id="emailid" required>
</div>
<div class="campo">
<label for="nomeid">Nome</label>
<input type="name" placeholder="Nome de usuario" name="user" id="nomeid" required>
</div>
<div class="campo">
<label for="senhaid">Senha</label>
<input type="password" placeholder="Digite sua senha" name="senha" id="senhaid" required>
</div>
<div class="campo">
<label for="csenhaid">Confirmar Senha</label>
<input type="password" placeholder="Confirme sua senha" name="csenha" id="csenhaid" required>
</div>
<button type="submit" id="logbtn">Cadastrar</button>
</form>
<p class="mens"><a href="login.html" id="linklog">Já tem uma conta?</a></p>
</div>
<!--cabo log-->
</body>
</html>
</html>

View File

@@ -1,44 +1,44 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-br"> <html lang="pt-br">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="stylelog.css">
<link rel="icon" href="imagens/icone.png"> <link rel="icon" href="imagens/icone.png">
<title>Login</title> <title>Login</title>
</head> </head>
<body> <body>
<!--Barrinha que fica no topo--> <!--Barrinha que fica no topo-->
<div id="topo"> <div id="topo">
<h1 id="textotop">Focus Agenda</h1> <h1 id="textotop">Focus Agenda</h1>
</div> </div>
<!--cabo bar--> <!--cabo bar-->
<!--Login e outras coisas--> <!--Login e outras coisas-->
<div id="log"> <div id="log">
<h1 class="mens">Bem Vindo!</h1> <h1 class="mens">Bem Vindo!</h1>
<h3 class="mens">Faça seu login</h3> <h3 class="mens">Faça seu login</h3>
<form method="POST" action="login.html"> <form method="POST" action="login.html">
<div class="campo"> <div class="campo">
<label for="emailid">Email</label> <label for="emailid">Email</label>
<input type="email" placeholder="Digite seu email" name="email" id="emailid" required> <input type="email" placeholder="Digite seu email" name="email" id="emailid" required>
</div> </div>
<div class="campo"> <div class="campo">
<label for="senhaid">Senha</label> <label for="senhaid">Senha</label>
<input type="password" placeholder="Digite sua senha" name="senha" id="senhaid" required> <input type="password" placeholder="Digite sua senha" name="senha" id="senhaid" required>
</div> </div>
<button type="submit" id="logbtn">Logar</button> <button type="submit" id="logbtn">Logar</button>
</form> </form>
<p class="mens"><a href="cadastro.html" id="linkcada">Cadastrar-se</a></p> <p class="mens"><a href="cadastro.html" id="linkcada">Cadastrar-se</a></p>
</div> </div>
<!--cabo log--> <!--cabo log-->
</div>
</body> </body>
</html> </html>

125
stylecad.css Normal file
View File

@@ -0,0 +1,125 @@
* {
padding: 0;
margin: 0;
}
p,
h1,
h2,
h3 {
color: black;
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}
label{
display: block;
}
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
@media (max-width: 768px) {
body {
padding-left: 20px;
padding-right: 20px;
justify-content: center;
}
}
@media (max-width: 480px) {
#log {
width: 100% !important;
max-width: 320px;
}
}
#topo {
width: 100%;
height: 50px;
background-color: #111;
position: fixed;
top: 0;
left: 0;
background: linear-gradient(to right, #93032E 47%, #7A4951 73%, #114455 87%);
display: flex;
align-items: center;
justify-content: flex-start;
padding-left: 20px;
}
#textotop {
font-size: 38px;
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
#log {
width: 350px;
display: flex;
flex-direction: column;
gap: 15px;
color: white;
margin-top: 70px; /* Compensa a barra fixa do topo */
}
#campo {
display: flex;
flex-direction: column;
gap: 15px;
align-self: center;
}
#menslog{
font-size: 20px;
}
#emailid, #senhaid, #nomeid, #csenhaid {
height: 50px;
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: white;
}
form {
display: flex;
flex-direction: column;
gap: 15px;
width: 100%;
}
#logbtn {
align-self: center;
width: 50%;
padding: 12px;
font-size: 18px;
font-weight: bold;
background-color: #C0392B;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
#logbtn:hover {
background-color: #A03224;
}
.mens {
align-self: center;
}
#linklog{
color: black;
}

View File

@@ -1,124 +1,125 @@
* { * {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
p, p,
h1, h1,
h2, h2,
h3 { h3 {
color: black; color: black;
margin: 0; margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
} }
label{ label{
display: block; display: block;
} }
body { body {
height: 100vh; height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
body { body {
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
justify-content: center; justify-content: center;
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {
#log { #log {
width: 100% !important; width: 100% !important;
max-width: 320px; max-width: 320px;
} }
}
#topo { }
width: 100%; #topo {
height: 50px; width: 100%;
background-color: #111; height: 50px;
position: fixed; background-color: #111;
top: 0; position: fixed;
left: 0; top: 0;
background: linear-gradient(to right, #C0392B 47%, #7A4951 73%, #114455 87%); left: 0;
display: flex; background: linear-gradient(to right, #93032E 47%, #7A4951 73%, #114455 87%);
align-items: center; display: flex;
justify-content: flex-start; align-items: center;
} justify-content: flex-start;
}
#textotop {
padding-left: 20px; #textotop {
font-size: 38px; padding-left: 20px;
margin: 0; font-size: 38px;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; margin: 0;
} font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
#log {
width: 350px; #log {
display: flex; width: 350px;
flex-direction: column; display: flex;
gap: 15px; flex-direction: column;
color: white; gap: 15px;
margin-top: 70px; /* Compensa a barra fixa do topo */ color: white;
} margin-top: 70px; /* Compensa a barra fixa do topo */
#campo { }
display: flex; #campo {
flex-direction: column; display: flex;
gap: 15px; flex-direction: column;
align-self: center; gap: 15px;
} align-self: center;
#menslog{ }
font-size: 20px; #menslog{
} font-size: 20px;
}
#emailid, #senhaid {
height: 50px; #emailid, #senhaid {
width: 100%; height: 50px;
padding: 10px; width: 100%;
font-size: 16px; padding: 10px;
border: 1px solid #ccc; font-size: 16px;
border-radius: 4px; border: 1px solid #ccc;
box-sizing: border-box; border-radius: 4px;
} box-sizing: border-box;
}
label {
display: block; label {
margin-bottom: 5px; display: block;
font-weight: bold; margin-bottom: 5px;
color: white; font-weight: bold;
} color: white;
}
form {
display: flex; form {
flex-direction: column; display: flex;
gap: 15px; flex-direction: column;
width: 100%; gap: 15px;
} width: 100%;
}
#logbtn {
align-self: center; #logbtn {
width: 50%; align-self: center;
padding: 12px; width: 50%;
font-size: 18px; padding: 12px;
font-weight: bold; font-size: 18px;
background-color: #C0392B; font-weight: bold;
color: white; background-color: #C0392B;
border: none; color: white;
border-radius: 4px; border: none;
cursor: pointer; border-radius: 4px;
transition: background-color 0.3s; cursor: pointer;
} transition: background-color 0.3s;
}
#logbtn:hover {
background-color: #A03224; #logbtn:hover {
} background-color: #A03224;
.mens { }
align-self: center; .mens {
} align-self: center;
#linkcada{ }
color: #111; #linkcada{
color: #111;
} }