Correção de bugs
This commit is contained in:
113
cadastro.css
113
cadastro.css
@@ -1,92 +1,78 @@
|
|||||||
* {
|
* {
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
p,
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
h3 {
|
|
||||||
color: black;
|
|
||||||
font-family: 'Poppins', sans-serif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
height: 100vh;
|
min-height: 100vh;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 80px 20px 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
body {
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
#log {
|
|
||||||
width: 100% !important;
|
|
||||||
max-width: 320px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#topo {
|
#topo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background: linear-gradient(to right, #C0392B 47%, #7A4951 73%, #114455 87%);
|
background: linear-gradient(to right, #c0392b 47%, #7a4951 73%, #114455 87%);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
#textotop {
|
#textotop {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
font-size: 38px;
|
font-size: clamp(22px, 5vw, 38px);
|
||||||
margin: 0;
|
color: #fff;
|
||||||
font-family: 'Poppins', sans-serif;
|
font-weight: 500;
|
||||||
font-weight: normal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#log {
|
#log {
|
||||||
width: 350px;
|
width: 100%;
|
||||||
|
max-width: 360px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 16px;
|
||||||
color: white;
|
|
||||||
margin-top: 70px; /* Compensa a barra fixa do topo */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mens {
|
||||||
|
text-align: center;
|
||||||
|
color: #1f2937;
|
||||||
|
}
|
||||||
|
|
||||||
.campo {
|
.campo {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
}
|
|
||||||
|
|
||||||
#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 {
|
label {
|
||||||
display: block;
|
font-weight: 700;
|
||||||
margin-bottom: 5px;
|
color: #1f2937;
|
||||||
font-weight: bold;
|
}
|
||||||
color: white;
|
|
||||||
|
#emailid,
|
||||||
|
#senhaid,
|
||||||
|
#nomeid,
|
||||||
|
#csenhaid {
|
||||||
|
height: 46px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #c7c7c7;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 20px;
|
gap: 16px;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#logbtn {
|
#logbtn {
|
||||||
@@ -95,22 +81,23 @@
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-color: #C0392B;
|
background-color: #c0392b;
|
||||||
color: white;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logbtn:hover {
|
#logbtn:hover {
|
||||||
background-color: #A03224;
|
background-color: #a03224;
|
||||||
}
|
}
|
||||||
.mens {
|
|
||||||
align-self: center;
|
|
||||||
}
|
|
||||||
a{
|
|
||||||
color: black;
|
|
||||||
text-decoration: none;
|
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #111;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="pt-br">
|
<html lang="pt-br">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
@@ -9,46 +9,54 @@
|
|||||||
<link rel="icon" href="imagens/icone.png">
|
<link rel="icon" href="imagens/icone.png">
|
||||||
</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-->
|
|
||||||
|
|
||||||
<!--Login e outras coisas-->
|
<!-- Cadastro -->
|
||||||
<div id="log">
|
<div id="log">
|
||||||
<h1 class="mens">Crie Sua Conta</h1>
|
<h1 class="mens">Crie Sua Conta</h1>
|
||||||
|
|
||||||
|
<form id="cadastroForm" method="GET" action="login.html">
|
||||||
|
|
||||||
<form method="POST" action="cadastro.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" autocomplete="email" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="campo">
|
<div class="campo">
|
||||||
<label for="nomeid">Nome</label>
|
<label for="nomeid">Nome</label>
|
||||||
<input type="name" placeholder="Nome de usuario" name="user" id="nomeid" required>
|
<input type="text" placeholder="Nome de usuario" name="user" id="nomeid" autocomplete="name" 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" autocomplete="new-password" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="campo">
|
<div class="campo">
|
||||||
<label for="csenhaid">Confirmar Senha</label>
|
<label for="csenhaid">Confirmar Senha</label>
|
||||||
<input type="password" placeholder="Confirme sua senha" name="csenha" id="csenhaid" required>
|
<input type="password" placeholder="Confirme sua senha" name="csenha" id="csenhaid" autocomplete="new-password" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" id="logbtn">Cadastrar</button>
|
<button type="submit" id="logbtn">Cadastrar</button>
|
||||||
</form>
|
</form>
|
||||||
<p class="mens"><a href="login.html" id="linklog">Já tem uma conta?</a></p>
|
|
||||||
</div>
|
|
||||||
<!--cabo log-->
|
|
||||||
|
|
||||||
|
<p class="mens"><a href="login.html" id="linklog">Ja tem uma conta?</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const cadastroForm = document.getElementById("cadastroForm");
|
||||||
|
const senhaInput = document.getElementById("senhaid");
|
||||||
|
const confirmarSenhaInput = document.getElementById("csenhaid");
|
||||||
|
|
||||||
|
cadastroForm.addEventListener("submit", (event) => {
|
||||||
|
if (senhaInput.value !== confirmarSenhaInput.value) {
|
||||||
|
event.preventDefault();
|
||||||
|
alert("As senhas nao conferem.");
|
||||||
|
confirmarSenhaInput.focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</html>
|
|
||||||
465
calendario.css
465
calendario.css
@@ -1,4 +1,4 @@
|
|||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -6,43 +6,44 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Poppins', sans-serif;
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== HEADER ===== */
|
/* HEADER */
|
||||||
#header {
|
#header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background: linear-gradient(to right, #C0392B, #114455);
|
background: linear-gradient(to right, #c0392b, #114455);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
#title {
|
#title {
|
||||||
color: white;
|
color: #fff;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== BARRA ESQUERDA ===== */
|
/* BARRA ESQUERDA */
|
||||||
#barraesquerda {
|
#barraesquerda {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
height: calc(100vh - 50px);
|
height: calc(100vh - 50px);
|
||||||
background: #C0392B;
|
background: #c0392b;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
color: white;
|
color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: 'Inter', sans-serif;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== MINI CALENDÁRIO ===== */
|
|
||||||
#calendario {
|
#calendario {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
@@ -61,54 +62,20 @@
|
|||||||
|
|
||||||
#calendarseta {
|
#calendarseta {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 15px; /* espaço entre as setas */
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#calendarseta button {
|
#calendarseta button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: white;
|
color: #fff;
|
||||||
font-size: 26px; /* tamanho maior */
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 5px 10px; /* aumenta área de clique */
|
|
||||||
transition: transform 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
#calendarseta button:hover {
|
|
||||||
transform: scale(1.2); /* efeito ao passar o mouse */
|
|
||||||
}
|
|
||||||
.setas-grande {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titulo-mes {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dia-semana {
|
|
||||||
background: #f0f0f0;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 10px 0;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
.antGrande,
|
|
||||||
.proxGrande {
|
|
||||||
background: transparent;
|
|
||||||
border: none;
|
|
||||||
color: #1f3b57;
|
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
transition: transform 0.2s ease;
|
transition: transform 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.antGrande:hover,
|
#calendarseta button:hover {
|
||||||
.proxGrande:hover {
|
|
||||||
transform: scale(1.2);
|
transform: scale(1.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,7 +86,7 @@
|
|||||||
|
|
||||||
.calendariodia th {
|
.calendariodia th {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
opacity: 0.7;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendariodia td {
|
.calendariodia td {
|
||||||
@@ -130,12 +97,11 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* bolinha */
|
|
||||||
.calendariodia td::after {
|
.calendariodia td::after {
|
||||||
content: "";
|
content: "";
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: white;
|
background: #fff;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -2px;
|
bottom: -2px;
|
||||||
@@ -143,22 +109,17 @@
|
|||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.outromes {
|
|
||||||
opacity: 0.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.calendariodia td.today {
|
.calendariodia td.today {
|
||||||
background: #114455;
|
background: #114455;
|
||||||
border-radius: 30%;
|
color: #fff;
|
||||||
height: 0px;
|
font-weight: 600;
|
||||||
width: 5px;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.outromes {
|
||||||
|
opacity: 0.45;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* AGENDA */
|
||||||
|
|
||||||
/* ===== AGENDA ===== */
|
|
||||||
.agenda-header {
|
.agenda-header {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
||||||
@@ -167,23 +128,81 @@
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.agenda-empty {
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
.evento {
|
.evento {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
border-left: 3px solid white;
|
border-left: 3px solid #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.evento.azul {
|
.evento.azul,
|
||||||
|
.calendar-event.azul {
|
||||||
border-color: #00c2ff;
|
border-color: #00c2ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.evento.rosa {
|
.evento.verde,
|
||||||
border-color: #ff4fa3;
|
.calendar-event.verde {
|
||||||
|
border-color: #2ecc71;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.vermelho,
|
||||||
|
.calendar-event.vermelho {
|
||||||
|
border-color: #e74c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.roxo,
|
||||||
|
.calendar-event.roxo {
|
||||||
|
border-color: #9b59b6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.laranja,
|
||||||
|
.calendar-event.laranja {
|
||||||
|
border-color: #e67e22;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.amarelo,
|
||||||
|
.calendar-event.amarelo {
|
||||||
|
border-color: #f1c40f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.rosa,
|
||||||
|
.calendar-event.rosa {
|
||||||
|
border-color: #ff6b81;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.ciano,
|
||||||
|
.calendar-event.ciano {
|
||||||
|
border-color: #1abc9c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.marinho,
|
||||||
|
.calendar-event.marinho {
|
||||||
|
border-color: #2c3e50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.lilas,
|
||||||
|
.calendar-event.lilas {
|
||||||
|
border-color: #a29bfe;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.salmao,
|
||||||
|
.calendar-event.salmao {
|
||||||
|
border-color: #fa8072;
|
||||||
|
}
|
||||||
|
|
||||||
|
.evento.menta,
|
||||||
|
.calendar-event.menta {
|
||||||
|
border-color: #55efc4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hora {
|
.hora {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
opacity: 0.7;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titulo {
|
.titulo {
|
||||||
@@ -195,7 +214,7 @@
|
|||||||
color: #ffdede;
|
color: #ffdede;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== FERIADOS ===== */
|
/* FERIADOS */
|
||||||
.feriados-header {
|
.feriados-header {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -213,9 +232,11 @@
|
|||||||
height: 6px;
|
height: 6px;
|
||||||
background: #d4ff6a;
|
background: #d4ff6a;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
margin-top: 6px;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== MAIN ===== */
|
/* MAIN */
|
||||||
.main {
|
.main {
|
||||||
margin-left: 320px;
|
margin-left: 320px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
@@ -225,17 +246,16 @@
|
|||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== TOPBAR ===== */
|
/* TOPBAR */
|
||||||
.topbar {
|
.topbar {
|
||||||
height: 70px;
|
min-height: 70px;
|
||||||
background: #eaeaea;
|
background: #eaeaea;
|
||||||
border-bottom: 3px solid #c0392b;
|
border-bottom: 3px solid #c0392b;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
padding: 0 25px;
|
padding: 0 25px;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar h1 {
|
.topbar h1 {
|
||||||
@@ -243,18 +263,12 @@
|
|||||||
color: #1f3b57;
|
color: #1f3b57;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* USER AREA */
|
|
||||||
.user-area {
|
.user-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icone {
|
|
||||||
font-size: 20px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.perfil {
|
.perfil {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -283,68 +297,6 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== SUBHEADER ===== */
|
|
||||||
.subheader {
|
|
||||||
background: #eaeaea;
|
|
||||||
border-bottom: 3px solid #c0392b;
|
|
||||||
padding: 10px 20px;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.subheader h2 {
|
|
||||||
color: #1f3b57;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* BOTÕES */
|
|
||||||
.view-buttons button {
|
|
||||||
border: none;
|
|
||||||
padding: 5px 10px;
|
|
||||||
border-radius: 6px;
|
|
||||||
cursor: pointer;
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-buttons .active {
|
|
||||||
background: #c0392b;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ===== MÊS ===== */
|
|
||||||
.month-title {
|
|
||||||
padding: 10px 20px;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ===== CALENDÁRIO GRANDE ===== */
|
|
||||||
.calendar-area {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(7, 1fr);
|
|
||||||
|
|
||||||
/* PRIMEIRA LINHA MENOR */
|
|
||||||
grid-template-rows: 40px repeat(6, 120px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* DIAS DA SEMANA */
|
|
||||||
.dia-semana {
|
|
||||||
background: #f0f0f0;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 13px;
|
|
||||||
padding: 10px 0;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dia-box {
|
|
||||||
background: #fff;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dia-box:hover {
|
|
||||||
background: #eaeaff;
|
|
||||||
}
|
|
||||||
.icone-img {
|
.icone-img {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
@@ -356,30 +308,39 @@
|
|||||||
.icone-img:hover {
|
.icone-img:hover {
|
||||||
transform: scale(1.15);
|
transform: scale(1.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* HEADER CALENDARIO */
|
||||||
.calendar-header {
|
.calendar-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ESQUERDA (MÊS + SETAS) */
|
|
||||||
.mes-nav {
|
.mes-nav {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
justify-content: center;
|
||||||
|
width: min(360px, 100%);
|
||||||
|
padding: 0 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titulo-mes {
|
.titulo-mes {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #1f3b57;
|
color: #1f3b57;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.seta {
|
.seta {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
@@ -387,7 +348,14 @@
|
|||||||
color: #c0392b;
|
color: #c0392b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DIREITA (DIA / SEMANA / MÊS) */
|
.antGrande {
|
||||||
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.proxGrande {
|
||||||
|
right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.view-switch {
|
.view-switch {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -403,8 +371,217 @@
|
|||||||
color: #1f3b57;
|
color: #1f3b57;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BOTÃO ATIVO (MÊS) */
|
|
||||||
.view-switch .active {
|
.view-switch .active {
|
||||||
background: #c0392b;
|
background: #c0392b;
|
||||||
color: white;
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CALENDARIO GRANDE */
|
||||||
|
.calendar-area {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.month-view {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(7, 1fr);
|
||||||
|
grid-template-rows: 40px repeat(6, 120px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dia-semana {
|
||||||
|
background: #f0f0f0;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 10px 0;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dia-box {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
padding: 8px;
|
||||||
|
color: #1f2937;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dia-box:hover {
|
||||||
|
background: #eaeaff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dia-box.today {
|
||||||
|
background: #fff5f2;
|
||||||
|
border-color: #c0392b;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #c0392b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.outro-mes {
|
||||||
|
opacity: 0.45;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.week-view {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(7, minmax(150px, 1fr));
|
||||||
|
gap: 0;
|
||||||
|
overflow-x: auto;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-col {
|
||||||
|
min-height: 420px;
|
||||||
|
min-width: 150px;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
background: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-col.today {
|
||||||
|
background: #fffaf8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-col-head {
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1f3b57;
|
||||||
|
text-align: center;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
background: #f6f6f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-col-date {
|
||||||
|
display: block;
|
||||||
|
margin-top: 4px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #6b7280;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-events {
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-empty,
|
||||||
|
.day-empty {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #6b7280;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.day-view {
|
||||||
|
display: block;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-panel {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-panel-header {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1f3b57;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.day-events {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-event {
|
||||||
|
border-left: 3px solid #c0392b;
|
||||||
|
background: #fafafa;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-event-hora {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-event-titulo {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #1f2937;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* RESPONSIVO */
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
body {
|
||||||
|
padding-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#barraesquerda {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
max-height: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.month-view {
|
||||||
|
grid-template-rows: 40px repeat(6, 90px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
#title {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar {
|
||||||
|
padding: 12px 16px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar h1 {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mes-nav {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-switch {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: flex-start;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.month-view {
|
||||||
|
grid-template-rows: 36px repeat(6, 72px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dia-box {
|
||||||
|
padding: 6px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.week-col {
|
||||||
|
min-height: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-area.day-view {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
566
calendario.html
566
calendario.html
@@ -1,19 +1,15 @@
|
|||||||
<!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">
|
||||||
<title>Focus Agenda</title>
|
<title>Focus Agenda</title>
|
||||||
|
<link rel="icon" href="imagens/icone.png">
|
||||||
<link rel="stylesheet" href="calendario.css">
|
<link rel="stylesheet" href="calendario.css">
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<!-- HEADER -->
|
<!-- HEADER -->
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<h1 id="title">Focus Agenda</h1>
|
<h1 id="title">Focus Agenda</h1>
|
||||||
@@ -21,15 +17,13 @@
|
|||||||
|
|
||||||
<!-- BARRA ESQUERDA -->
|
<!-- BARRA ESQUERDA -->
|
||||||
<div id="barraesquerda">
|
<div id="barraesquerda">
|
||||||
|
<!-- MINI CALENDARIO -->
|
||||||
<!-- MINI CALENDÁRIO -->
|
|
||||||
<div id="calendario">
|
<div id="calendario">
|
||||||
<div class="calendariotop">
|
<div class="calendariotop">
|
||||||
<div id="mes"></div>
|
<div id="mes"></div>
|
||||||
|
|
||||||
<div id="calendarseta">
|
<div id="calendarseta">
|
||||||
<button class="ant">‹</button>
|
<button class="ant" aria-label="Mes anterior">‹</button>
|
||||||
<button class="prox">›</button>
|
<button class="prox" aria-label="Proximo mes">›</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -54,18 +48,15 @@
|
|||||||
|
|
||||||
<!-- FERIADOS -->
|
<!-- FERIADOS -->
|
||||||
<div id="feriados"></div>
|
<div id="feriados"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- CONTEÚDO PRINCIPAL -->
|
<!-- CONTEUDO PRINCIPAL -->
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
|
||||||
<!-- TOPBAR (igual ao print) -->
|
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<h1>Calendario</h1>
|
<h1>Calendario</h1>
|
||||||
|
|
||||||
<div class="user-area">
|
<div class="user-area">
|
||||||
<img src="imagens/sino.png" class="icone-img" alt="Notificações">
|
<img src="imagens/sino.png" class="icone-img" alt="Notificacoes">
|
||||||
|
|
||||||
<div class="perfil">
|
<div class="perfil">
|
||||||
<div class="avatar"></div>
|
<div class="avatar"></div>
|
||||||
@@ -75,272 +66,461 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<img src="imagens/engrenagem.png" class="icone-img" alt="Configurações">
|
<img src="imagens/engrenagem.png" class="icone-img" alt="Configuracoes">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- MÊS -->
|
|
||||||
<div class="calendar-header">
|
<div class="calendar-header">
|
||||||
|
|
||||||
<!-- ESQUERDA (SETAS + MÊS) -->
|
|
||||||
<div class="mes-nav">
|
<div class="mes-nav">
|
||||||
<button class="seta antGrande">‹</button>
|
<button class="seta antGrande" aria-label="Anterior">‹</button>
|
||||||
<span class="titulo-mes">Janeiro, 2025</span>
|
<span class="titulo-mes">Janeiro, 2025</span>
|
||||||
<button class="seta proxGrande">›</button>
|
<button class="seta proxGrande" aria-label="Proximo">›</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- DIREITA (DIA / SEMANA / MÊS) -->
|
|
||||||
<div class="view-switch">
|
<div class="view-switch">
|
||||||
<button>Dia</button>
|
<button type="button" data-view="dia">Dia</button>
|
||||||
<button>Semana</button>
|
<button type="button" data-view="semana">Semana</button>
|
||||||
<button class="active">Mês</button>
|
<button type="button" data-view="mes" class="active">Mes</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
<!-- CALENDARIO GRANDE -->
|
||||||
|
<div class="calendar-area month-view" id="calendarArea"></div>
|
||||||
<!-- CALENDÁRIO GRANDE -->
|
|
||||||
<div class="calendar-area" id="calendarArea"></div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* ===== VARIÁVEIS ===== */
|
|
||||||
let dataMini = new Date();
|
let dataMini = new Date();
|
||||||
let dataGrande = new Date();
|
let dataGrande = new Date();
|
||||||
|
let modoAtual = "mes";
|
||||||
|
|
||||||
/* ===== MESES ===== */
|
|
||||||
const meses = [
|
const meses = [
|
||||||
"Janeiro", "Fevereiro", "Março", "Abril",
|
"Janeiro", "Fevereiro", "Marco", "Abril",
|
||||||
"Maio", "Junho", "Julho", "Agosto",
|
"Maio", "Junho", "Julho", "Agosto",
|
||||||
"Setembro", "Outubro", "Novembro", "Dezembro"
|
"Setembro", "Outubro", "Novembro", "Dezembro"
|
||||||
];
|
];
|
||||||
|
|
||||||
/* ===== MINI CALENDÁRIO ===== */
|
const nomesDiaLongo = [
|
||||||
function renderCalendario() {
|
"Domingo", "Segunda", "Terca", "Quarta", "Quinta", "Sexta", "Sabado"
|
||||||
|
];
|
||||||
|
|
||||||
|
const nomesDiaCurto = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
||||||
|
|
||||||
|
function normalizarData(data) {
|
||||||
|
return new Date(data.getFullYear(), data.getMonth(), data.getDate());
|
||||||
|
}
|
||||||
|
|
||||||
|
function adicionarDias(data, quantidade) {
|
||||||
|
const novaData = new Date(data);
|
||||||
|
novaData.setDate(novaData.getDate() + quantidade);
|
||||||
|
return novaData;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatarISO(data) {
|
||||||
|
const ano = data.getFullYear();
|
||||||
|
const mes = String(data.getMonth() + 1).padStart(2, "0");
|
||||||
|
const dia = String(data.getDate()).padStart(2, "0");
|
||||||
|
return `${ano}-${mes}-${dia}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatarDataCurta(data) {
|
||||||
|
const dia = String(data.getDate()).padStart(2, "0");
|
||||||
|
const mes = String(data.getMonth() + 1).padStart(2, "0");
|
||||||
|
return `${dia}/${mes}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function obterInicioSemana(data) {
|
||||||
|
const inicio = normalizarData(data);
|
||||||
|
inicio.setDate(inicio.getDate() - inicio.getDay());
|
||||||
|
return inicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extrairMinutos(horaIntervalo) {
|
||||||
|
const inicio = horaIntervalo.split("-")[0].trim();
|
||||||
|
const [hora, minuto] = inicio.split(":").map(Number);
|
||||||
|
return hora * 60 + minuto;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hojeBase = normalizarData(new Date());
|
||||||
|
|
||||||
|
const agendaData = [
|
||||||
|
{ data: formatarISO(hojeBase), hora: "08:15 - 09:15", titulo: "Planejamento do dia", cor: "vermelho" },
|
||||||
|
{ data: formatarISO(hojeBase), hora: "10:00 - 11:00", titulo: "Reuniao rapida", cor: "rosa" },
|
||||||
|
{ data: formatarISO(adicionarDias(hojeBase, 1)), hora: "14:00 - 15:00", titulo: "Revisar tarefas", cor: "azul" },
|
||||||
|
{ data: formatarISO(adicionarDias(hojeBase, 3)), hora: "16:00 - 17:00", titulo: "Entrega parcial", cor: "verde" }
|
||||||
|
];
|
||||||
|
|
||||||
|
const feriadosData = [
|
||||||
|
{ texto: "01 - Ano Novo" }
|
||||||
|
];
|
||||||
|
|
||||||
|
function obterEventosDaData(data) {
|
||||||
|
const chave = formatarISO(normalizarData(data));
|
||||||
|
return agendaData
|
||||||
|
.filter((evento) => evento.data === chave)
|
||||||
|
.sort((a, b) => extrairMinutos(a.hora) - extrairMinutos(b.hora));
|
||||||
|
}
|
||||||
|
|
||||||
|
function atualizarTituloGrande() {
|
||||||
|
const titulo = document.querySelector(".titulo-mes");
|
||||||
|
|
||||||
|
if (modoAtual === "mes") {
|
||||||
|
titulo.textContent = `${meses[dataGrande.getMonth()]}, ${dataGrande.getFullYear()}`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (modoAtual === "semana") {
|
||||||
|
const inicio = obterInicioSemana(dataGrande);
|
||||||
|
const fim = adicionarDias(inicio, 6);
|
||||||
|
titulo.textContent = `Semana ${formatarDataCurta(inicio)} - ${formatarDataCurta(fim)}/${fim.getFullYear()}`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
titulo.textContent = `${nomesDiaLongo[dataGrande.getDay()]}, ${formatarDataCurta(dataGrande)}/${dataGrande.getFullYear()}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function configurarArea(classeModo) {
|
||||||
|
const area = document.getElementById("calendarArea");
|
||||||
|
area.className = `calendar-area ${classeModo}`;
|
||||||
|
area.replaceChildren();
|
||||||
|
return area;
|
||||||
|
}
|
||||||
|
|
||||||
|
function criarCardEvento(evento) {
|
||||||
|
const card = document.createElement("div");
|
||||||
|
card.className = `calendar-event ${evento.cor}`;
|
||||||
|
|
||||||
|
const hora = document.createElement("div");
|
||||||
|
hora.className = "calendar-event-hora";
|
||||||
|
hora.textContent = evento.hora;
|
||||||
|
|
||||||
|
const titulo = document.createElement("div");
|
||||||
|
titulo.className = "calendar-event-titulo";
|
||||||
|
titulo.textContent = evento.titulo;
|
||||||
|
|
||||||
|
card.appendChild(hora);
|
||||||
|
card.appendChild(titulo);
|
||||||
|
return card;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* MINI CALENDARIO */
|
||||||
|
function renderCalendarioMini() {
|
||||||
const mesEl = document.getElementById("mes");
|
const mesEl = document.getElementById("mes");
|
||||||
const diasEl = document.getElementById("dias");
|
const diasEl = document.getElementById("dias");
|
||||||
|
|
||||||
let ano = dataMini.getFullYear();
|
const ano = dataMini.getFullYear();
|
||||||
let mes = dataMini.getMonth();
|
const mes = dataMini.getMonth();
|
||||||
|
|
||||||
mesEl.textContent = `${meses[mes]} ${ano}`;
|
mesEl.textContent = `${meses[mes]} ${ano}`;
|
||||||
|
diasEl.replaceChildren();
|
||||||
|
|
||||||
let primeiroDia = new Date(ano, mes, 1).getDay();
|
const primeiroDia = new Date(ano, mes, 1).getDay();
|
||||||
let ultimoDia = new Date(ano, mes + 1, 0).getDate();
|
const ultimoDia = new Date(ano, mes + 1, 0).getDate();
|
||||||
let ultimoDiaMesAnterior = new Date(ano, mes, 0).getDate();
|
const ultimoDiaMesAnterior = new Date(ano, mes, 0).getDate();
|
||||||
|
|
||||||
diasEl.innerHTML = "";
|
|
||||||
|
|
||||||
let diaAtualNum = 1;
|
let diaAtualNum = 1;
|
||||||
let diaSeguinte = 1;
|
let diaSeguinte = 1;
|
||||||
|
|
||||||
let totalCelulas = primeiroDia + ultimoDia;
|
const totalCelulas = primeiroDia + ultimoDia;
|
||||||
let totalLinhas = Math.ceil(totalCelulas / 7);
|
let totalLinhas = Math.ceil(totalCelulas / 7);
|
||||||
if (totalLinhas < 4) totalLinhas = 4;
|
if (totalLinhas < 4) totalLinhas = 4;
|
||||||
|
|
||||||
for (let semana = 0; semana < totalLinhas; semana++) {
|
for (let semana = 0; semana < totalLinhas; semana++) {
|
||||||
let linha = document.createElement("tr");
|
const linha = document.createElement("tr");
|
||||||
|
|
||||||
for (let diaSemana = 0; diaSemana < 7; diaSemana++) {
|
for (let diaSemana = 0; diaSemana < 7; diaSemana++) {
|
||||||
let pos = semana * 7 + diaSemana;
|
const pos = semana * 7 + diaSemana;
|
||||||
|
const celula = document.createElement("td");
|
||||||
|
|
||||||
if (pos < primeiroDia) {
|
if (pos < primeiroDia) {
|
||||||
let dia = ultimoDiaMesAnterior - (primeiroDia - pos - 1);
|
const dia = ultimoDiaMesAnterior - (primeiroDia - pos - 1);
|
||||||
linha.innerHTML += `<td class="outromes">${dia}</td>`;
|
celula.className = "outromes";
|
||||||
}
|
celula.textContent = String(dia);
|
||||||
else if (diaAtualNum <= ultimoDia) {
|
} else if (diaAtualNum <= ultimoDia) {
|
||||||
let hoje = new Date();
|
const hoje = new Date();
|
||||||
|
const isHoje =
|
||||||
let classeHoje =
|
|
||||||
diaAtualNum === hoje.getDate() &&
|
diaAtualNum === hoje.getDate() &&
|
||||||
mes === hoje.getMonth() &&
|
mes === hoje.getMonth() &&
|
||||||
ano === hoje.getFullYear()
|
ano === hoje.getFullYear();
|
||||||
? "today"
|
|
||||||
: "";
|
|
||||||
|
|
||||||
linha.innerHTML += `<td class="${classeHoje}">${diaAtualNum}</td>`;
|
if (isHoje) {
|
||||||
diaAtualNum++;
|
celula.className = "today";
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
linha.innerHTML += `<td class="outromes">${diaSeguinte}</td>`;
|
celula.textContent = String(diaAtualNum);
|
||||||
|
diaAtualNum++;
|
||||||
|
} else {
|
||||||
|
celula.className = "outromes";
|
||||||
|
celula.textContent = String(diaSeguinte);
|
||||||
diaSeguinte++;
|
diaSeguinte++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
linha.appendChild(celula);
|
||||||
}
|
}
|
||||||
|
|
||||||
diasEl.appendChild(linha);
|
diasEl.appendChild(linha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== CALENDÁRIO GRANDE ===== */
|
/* CALENDARIO GRANDE - MES */
|
||||||
function renderCalendarioGrande() {
|
function renderCalendarioMes() {
|
||||||
const area = document.getElementById("calendarArea");
|
const area = configurarArea("month-view");
|
||||||
const titulo = document.querySelector(".titulo-mes");
|
atualizarTituloGrande();
|
||||||
|
|
||||||
let ano = dataGrande.getFullYear();
|
nomesDiaCurto.forEach((dia) => {
|
||||||
let mes = dataGrande.getMonth();
|
const el = document.createElement("div");
|
||||||
|
el.className = "dia-semana";
|
||||||
/* ATUALIZA TÍTULO */
|
el.textContent = dia;
|
||||||
titulo.textContent = `${meses[mes]}, ${ano}`;
|
area.appendChild(el);
|
||||||
|
|
||||||
area.innerHTML = "";
|
|
||||||
|
|
||||||
/* DIAS DA SEMANA */
|
|
||||||
const diasSemana = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
||||||
|
|
||||||
diasSemana.forEach(dia => {
|
|
||||||
area.innerHTML += `<div class="dia-semana">${dia}</div>`;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let primeiroDia = new Date(ano, mes, 1).getDay();
|
const ano = dataGrande.getFullYear();
|
||||||
let ultimoDia = new Date(ano, mes + 1, 0).getDate();
|
const mes = dataGrande.getMonth();
|
||||||
let ultimoMesAnterior = new Date(ano, mes, 0).getDate();
|
const primeiroDia = new Date(ano, mes, 1).getDay();
|
||||||
|
const ultimoDia = new Date(ano, mes + 1, 0).getDate();
|
||||||
|
const ultimoMesAnterior = new Date(ano, mes, 0).getDate();
|
||||||
|
|
||||||
let total = primeiroDia + ultimoDia;
|
const totalCelulasMes = 42;
|
||||||
let linhas = Math.ceil(total / 7);
|
let proximoDia = 1;
|
||||||
|
|
||||||
let diaAtualNum = 1;
|
for (let i = 0; i < totalCelulasMes; i++) {
|
||||||
let proxMes = 1;
|
const box = document.createElement("div");
|
||||||
|
box.className = "dia-box";
|
||||||
for (let i = 0; i < linhas * 7; i++) {
|
|
||||||
let classe = "dia-box";
|
|
||||||
let numero = "";
|
|
||||||
|
|
||||||
if (i < primeiroDia) {
|
if (i < primeiroDia) {
|
||||||
numero = ultimoMesAnterior - (primeiroDia - i - 1);
|
box.classList.add("outro-mes");
|
||||||
classe += " outro-mes";
|
box.textContent = String(ultimoMesAnterior - (primeiroDia - i - 1));
|
||||||
}
|
} else if (i < primeiroDia + ultimoDia) {
|
||||||
else if (diaAtualNum <= ultimoDia) {
|
const diaAtual = i - primeiroDia + 1;
|
||||||
numero = diaAtualNum;
|
box.textContent = String(diaAtual);
|
||||||
|
|
||||||
let hoje = new Date();
|
const hoje = new Date();
|
||||||
if (
|
const isHoje =
|
||||||
diaAtualNum === hoje.getDate() &&
|
diaAtual === hoje.getDate() &&
|
||||||
mes === hoje.getMonth() &&
|
mes === hoje.getMonth() &&
|
||||||
ano === hoje.getFullYear()
|
ano === hoje.getFullYear();
|
||||||
|
|
||||||
|
if (isHoje) {
|
||||||
|
box.classList.add("today");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
box.classList.add("outro-mes");
|
||||||
|
box.textContent = String(proximoDia++);
|
||||||
|
}
|
||||||
|
|
||||||
|
area.appendChild(box);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CALENDARIO GRANDE - SEMANA */
|
||||||
|
function renderCalendarioSemana() {
|
||||||
|
const area = configurarArea("week-view");
|
||||||
|
atualizarTituloGrande();
|
||||||
|
|
||||||
|
const inicioSemana = obterInicioSemana(dataGrande);
|
||||||
|
|
||||||
|
for (let i = 0; i < 7; i++) {
|
||||||
|
const dataColuna = adicionarDias(inicioSemana, i);
|
||||||
|
const eventos = obterEventosDaData(dataColuna);
|
||||||
|
|
||||||
|
const coluna = document.createElement("div");
|
||||||
|
coluna.className = "week-col";
|
||||||
|
|
||||||
|
const cabecalho = document.createElement("div");
|
||||||
|
cabecalho.className = "week-col-head";
|
||||||
|
cabecalho.textContent = nomesDiaCurto[dataColuna.getDay()];
|
||||||
|
|
||||||
|
const numero = document.createElement("span");
|
||||||
|
numero.className = "week-col-date";
|
||||||
|
numero.textContent = `${formatarDataCurta(dataColuna)}/${dataColuna.getFullYear()}`;
|
||||||
|
cabecalho.appendChild(numero);
|
||||||
|
|
||||||
|
if (
|
||||||
|
dataColuna.getDate() === new Date().getDate() &&
|
||||||
|
dataColuna.getMonth() === new Date().getMonth() &&
|
||||||
|
dataColuna.getFullYear() === new Date().getFullYear()
|
||||||
) {
|
) {
|
||||||
classe += " today";
|
coluna.classList.add("today");
|
||||||
}
|
}
|
||||||
|
|
||||||
diaAtualNum++;
|
const lista = document.createElement("div");
|
||||||
}
|
lista.className = "week-events";
|
||||||
else {
|
|
||||||
numero = proxMes++;
|
if (eventos.length === 0) {
|
||||||
classe += " outro-mes";
|
const vazio = document.createElement("div");
|
||||||
|
vazio.className = "week-empty";
|
||||||
|
vazio.textContent = "Sem eventos";
|
||||||
|
lista.appendChild(vazio);
|
||||||
|
} else {
|
||||||
|
eventos.forEach((evento) => {
|
||||||
|
lista.appendChild(criarCardEvento(evento));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
area.innerHTML += `<div class="${classe}">${numero}</div>`;
|
coluna.appendChild(cabecalho);
|
||||||
|
coluna.appendChild(lista);
|
||||||
|
area.appendChild(coluna);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== ATUALIZAÇÕES ===== */
|
/* CALENDARIO GRANDE - DIA */
|
||||||
function atualizarMini() {
|
function renderCalendarioDia() {
|
||||||
renderCalendario();
|
const area = configurarArea("day-view");
|
||||||
|
atualizarTituloGrande();
|
||||||
|
|
||||||
|
const eventos = obterEventosDaData(dataGrande);
|
||||||
|
|
||||||
|
const painel = document.createElement("div");
|
||||||
|
painel.className = "day-panel";
|
||||||
|
|
||||||
|
const cabecalho = document.createElement("div");
|
||||||
|
cabecalho.className = "day-panel-header";
|
||||||
|
cabecalho.textContent = `Agenda de ${formatarDataCurta(dataGrande)}/${dataGrande.getFullYear()}`;
|
||||||
|
|
||||||
|
const lista = document.createElement("div");
|
||||||
|
lista.className = "day-events";
|
||||||
|
|
||||||
|
if (eventos.length === 0) {
|
||||||
|
const vazio = document.createElement("div");
|
||||||
|
vazio.className = "day-empty";
|
||||||
|
vazio.textContent = "Nenhum evento para este dia.";
|
||||||
|
lista.appendChild(vazio);
|
||||||
|
} else {
|
||||||
|
eventos.forEach((evento) => {
|
||||||
|
lista.appendChild(criarCardEvento(evento));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
painel.appendChild(cabecalho);
|
||||||
|
painel.appendChild(lista);
|
||||||
|
area.appendChild(painel);
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderCalendarioGrande() {
|
||||||
|
if (modoAtual === "dia") {
|
||||||
|
renderCalendarioDia();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (modoAtual === "semana") {
|
||||||
|
renderCalendarioSemana();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
renderCalendarioMes();
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderAgenda() {
|
||||||
|
const container = document.getElementById("agenda");
|
||||||
|
container.replaceChildren();
|
||||||
|
|
||||||
|
const header = document.createElement("div");
|
||||||
|
header.className = "agenda-header";
|
||||||
|
|
||||||
|
const strong = document.createElement("strong");
|
||||||
|
strong.textContent = "HOJE ";
|
||||||
|
header.appendChild(strong);
|
||||||
|
|
||||||
|
const hoje = new Date();
|
||||||
|
header.appendChild(document.createTextNode(new Intl.DateTimeFormat("pt-BR").format(hoje)));
|
||||||
|
container.appendChild(header);
|
||||||
|
|
||||||
|
const eventosHoje = obterEventosDaData(hoje);
|
||||||
|
|
||||||
|
if (eventosHoje.length === 0) {
|
||||||
|
const vazio = document.createElement("div");
|
||||||
|
vazio.className = "agenda-empty";
|
||||||
|
vazio.textContent = "Sem eventos para hoje.";
|
||||||
|
container.appendChild(vazio);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
eventosHoje.forEach((ev) => {
|
||||||
|
const evento = document.createElement("div");
|
||||||
|
evento.className = `evento ${ev.cor}`;
|
||||||
|
|
||||||
|
const hora = document.createElement("div");
|
||||||
|
hora.className = "hora";
|
||||||
|
hora.textContent = ev.hora;
|
||||||
|
|
||||||
|
const titulo = document.createElement("div");
|
||||||
|
titulo.className = "titulo";
|
||||||
|
titulo.textContent = ev.titulo;
|
||||||
|
|
||||||
|
evento.appendChild(hora);
|
||||||
|
evento.appendChild(titulo);
|
||||||
|
container.appendChild(evento);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderFeriados() {
|
||||||
|
const container = document.getElementById("feriados");
|
||||||
|
container.replaceChildren();
|
||||||
|
|
||||||
|
const header = document.createElement("div");
|
||||||
|
header.className = "feriados-header";
|
||||||
|
header.textContent = "FERIADOS";
|
||||||
|
container.appendChild(header);
|
||||||
|
|
||||||
|
feriadosData.forEach((f) => {
|
||||||
|
const item = document.createElement("div");
|
||||||
|
item.className = "feriado";
|
||||||
|
|
||||||
|
const dot = document.createElement("span");
|
||||||
|
dot.className = "dot";
|
||||||
|
|
||||||
|
const texto = document.createElement("span");
|
||||||
|
texto.textContent = f.texto;
|
||||||
|
|
||||||
|
item.appendChild(dot);
|
||||||
|
item.appendChild(texto);
|
||||||
|
container.appendChild(item);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function moverPeriodo(direcao) {
|
||||||
|
if (modoAtual === "dia") {
|
||||||
|
dataGrande.setDate(dataGrande.getDate() + direcao);
|
||||||
|
} else if (modoAtual === "semana") {
|
||||||
|
dataGrande.setDate(dataGrande.getDate() + (direcao * 7));
|
||||||
|
} else {
|
||||||
|
dataGrande.setMonth(dataGrande.getMonth() + direcao);
|
||||||
}
|
}
|
||||||
|
|
||||||
function atualizarGrande() {
|
|
||||||
renderCalendarioGrande();
|
renderCalendarioGrande();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== SETAS MINI ===== */
|
function ativarBotaoModo(modo) {
|
||||||
|
const botoes = document.querySelectorAll(".view-switch button");
|
||||||
|
botoes.forEach((botao) => {
|
||||||
|
botao.classList.toggle("active", botao.dataset.view === modo);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
document.querySelector(".prox").onclick = () => {
|
document.querySelector(".prox").onclick = () => {
|
||||||
dataMini.setMonth(dataMini.getMonth() + 1);
|
dataMini.setMonth(dataMini.getMonth() + 1);
|
||||||
atualizarMini();
|
renderCalendarioMini();
|
||||||
};
|
};
|
||||||
|
|
||||||
document.querySelector(".ant").onclick = () => {
|
document.querySelector(".ant").onclick = () => {
|
||||||
dataMini.setMonth(dataMini.getMonth() - 1);
|
dataMini.setMonth(dataMini.getMonth() - 1);
|
||||||
atualizarMini();
|
renderCalendarioMini();
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ===== SETAS GRANDE ===== */
|
document.querySelector(".antGrande").onclick = () => moverPeriodo(-1);
|
||||||
document.querySelector(".antGrande").onclick = () => {
|
document.querySelector(".proxGrande").onclick = () => moverPeriodo(1);
|
||||||
dataGrande.setMonth(dataGrande.getMonth() - 1);
|
|
||||||
atualizarGrande();
|
|
||||||
};
|
|
||||||
|
|
||||||
document.querySelector(".proxGrande").onclick = () => {
|
document.querySelectorAll(".view-switch button").forEach((btn) => {
|
||||||
dataGrande.setMonth(dataGrande.getMonth() + 1);
|
|
||||||
atualizarGrande();
|
|
||||||
};
|
|
||||||
|
|
||||||
/* ===== BOTÕES DIA / SEMANA / MÊS ===== */
|
|
||||||
const botoesView = document.querySelectorAll(".view-switch button");
|
|
||||||
|
|
||||||
botoesView.forEach(btn => {
|
|
||||||
btn.addEventListener("click", () => {
|
btn.addEventListener("click", () => {
|
||||||
botoesView.forEach(b => b.classList.remove("active"));
|
modoAtual = btn.dataset.view;
|
||||||
btn.classList.add("active");
|
ativarBotaoModo(modoAtual);
|
||||||
|
renderCalendarioGrande();
|
||||||
const tipo = btn.textContent;
|
|
||||||
|
|
||||||
if (tipo === "Dia") {
|
|
||||||
alert("Modo DIA (você pode implementar depois)");
|
|
||||||
}
|
|
||||||
else if (tipo === "Semana") {
|
|
||||||
alert("Modo SEMANA (você pode implementar depois)");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
atualizarGrande(); // Mês já funciona
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* ===== AGENDA ===== */
|
renderCalendarioMini();
|
||||||
function renderAgenda() {
|
renderCalendarioGrande();
|
||||||
const container = document.getElementById("agenda");
|
|
||||||
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="agenda-header">
|
|
||||||
<strong>HOJE</strong> ${new Date().toLocaleDateString()}
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
agendaData.forEach(ev => {
|
|
||||||
container.innerHTML += `
|
|
||||||
<div class="evento ${ev.cor}">
|
|
||||||
<div class="hora">${ev.hora}</div>
|
|
||||||
<div class="titulo">${ev.titulo}</div>
|
|
||||||
${ev.link ? `<div class="link">${ev.link}</div>` : ""}
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ===== FERIADOS ===== */
|
|
||||||
function renderFeriados() {
|
|
||||||
const container = document.getElementById("feriados");
|
|
||||||
|
|
||||||
container.innerHTML = `
|
|
||||||
<div class="feriados-header">FERIADOS 🎉</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
feriadosData.forEach(f => {
|
|
||||||
container.innerHTML += `
|
|
||||||
<div class="feriado">
|
|
||||||
<span class="dot"></span>
|
|
||||||
<span>${f.texto}</span>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ===== DADOS ===== */
|
|
||||||
let agendaData = [
|
|
||||||
{ hora: "08:15 – 09:15", titulo: "Eu gosto", cor: "azul" },
|
|
||||||
{ hora: "10:00 – 11:00", titulo: "Evento 2", cor: "rosa" }
|
|
||||||
];
|
|
||||||
|
|
||||||
let feriadosData = [
|
|
||||||
{ texto: "01 – Ano Novo" }
|
|
||||||
];
|
|
||||||
|
|
||||||
/* ===== INICIAR ===== */
|
|
||||||
atualizarMini();
|
|
||||||
atualizarGrande();
|
|
||||||
renderAgenda();
|
renderAgenda();
|
||||||
renderFeriados();
|
renderFeriados();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
118
login.css
118
login.css
@@ -1,103 +1,75 @@
|
|||||||
* {
|
* {
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
p,
|
body {
|
||||||
h1,
|
min-height: 100vh;
|
||||||
h2,
|
|
||||||
h3 {
|
|
||||||
color: black;
|
|
||||||
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{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
height: 100vh;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
body {
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
padding: 80px 20px 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
#log {
|
|
||||||
width: 100% !important;
|
|
||||||
max-width: 320px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
#topo {
|
#topo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
background-color: #111;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
background: linear-gradient(to right, #C0392B 47%, #7A4951 73%, #114455 87%);
|
background: linear-gradient(to right, #c0392b 47%, #7a4951 73%, #114455 87%);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
#textotop {
|
#textotop {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
font-size: 38px;
|
font-size: clamp(22px, 5vw, 38px);
|
||||||
margin: 0;
|
color: #fff;
|
||||||
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#log {
|
#log {
|
||||||
width: 350px;
|
width: 100%;
|
||||||
|
max-width: 360px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 16px;
|
||||||
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 {
|
.mens {
|
||||||
height: 50px;
|
text-align: center;
|
||||||
width: 100%;
|
color: #1f2937;
|
||||||
padding: 10px;
|
}
|
||||||
font-size: 16px;
|
|
||||||
border: 1px solid #ccc;
|
.campo {
|
||||||
border-radius: 4px;
|
display: flex;
|
||||||
box-sizing: border-box;
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
font-weight: 700;
|
||||||
margin-bottom: 5px;
|
color: #1f2937;
|
||||||
font-weight: bold;
|
}
|
||||||
color: white;
|
|
||||||
|
#emailid,
|
||||||
|
#senhaid {
|
||||||
|
height: 46px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #c7c7c7;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 16px;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#logbtn {
|
#logbtn {
|
||||||
@@ -106,21 +78,23 @@
|
|||||||
padding: 12px;
|
padding: 12px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-color: #C0392B;
|
background-color: #c0392b;
|
||||||
color: white;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logbtn:hover {
|
#logbtn:hover {
|
||||||
background-color: #A03224;
|
background-color: #a03224;
|
||||||
}
|
|
||||||
.mens {
|
|
||||||
align-self: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#linkcada {
|
#linkcada {
|
||||||
color: #111;
|
color: #111;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#linkcada:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|||||||
24
login.html
24
login.html
@@ -1,44 +1,38 @@
|
|||||||
<!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="icon" href="imagens/icone.png">
|
<link rel="icon" href="imagens/icone.png">
|
||||||
<link rel="stylesheet" href="login.css">
|
<link rel="stylesheet" href="login.css">
|
||||||
|
|
||||||
<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-->
|
|
||||||
|
|
||||||
<!--Login e outras coisas-->
|
<!-- Login -->
|
||||||
<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="GET" action="calendario.html">
|
||||||
|
|
||||||
<form method="POST" action="calendario.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" autocomplete="email" 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" autocomplete="current-password" 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-->
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user