Primeiro commit

This commit is contained in:
root
2025-06-06 08:46:00 +01:00
commit cf2ac9caca
35 changed files with 4954 additions and 0 deletions

550
src/index.css Executable file
View File

@@ -0,0 +1,550 @@
/* index.css */
/* Resetando margens e padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Fonte padrão para o projeto */
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f9;
color: #333;
line-height: 1.6;
font-size: 16px; /* Garantindo um tamanho de fonte confortável */
}
/* Definindo um fundo geral para o layout */
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}
/* Estilos básicos de links */
a {
text-decoration: none;
color: inherit; /* Cor do link será herdada do texto */
}
/* Estilos para os títulos */
h1, h2, h3 {
font-weight: bold;
color: #333;
}
/* Estilo básico de botões */
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
/* Tabelas */
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
/* Estilo de caixas de alerta */
.alert {
background-color: #f44336;
color: white;
padding: 10px;
margin-top: 20px;
border-radius: 5px;
}
/* Estilos para o Dashboard */
.dashboard-container {
background-color: #fff;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dashboard-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
/* Estilos para Settings */
.settings-container {
background-color: #ffffff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 0 auto;
}
.settings-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
}
.settings-item {
margin-bottom: 20px;
}
.settings-item label {
display: block;
font-size: 16px;
margin-bottom: 8px;
}
.settings-item input[type="range"] {
width: 100%;
margin: 5px 0;
}
.settings-item input[type="number"] {
width: 100px;
padding: 5px;
font-size: 16px;
margin-left: 10px;
border-radius: 5px;
border: 1px solid #ddd;
}
/* Estilo do container do slider */
.slider-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.slider-container span {
font-size: 16px;
color: #333;
}
/* Botão de salvar */
button.save-button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
width: 100%;
margin-top: 20px;
}
button.save-button:hover {
background-color: #45a049;
}
/* Responsividade para telas pequenas */
@media (max-width: 768px) {
.settings-container {
padding: 15px;
}
.settings-title {
font-size: 20px;
}
.settings-item input[type="number"] {
width: 70px;
}
button.save-button {
width: 100%;
}
}
/* Estilo para o Título */
.settings-title {
font-size: 32px; /* Tamanho maior para maior destaque */
font-weight: bold;
margin-bottom: 30px;
text-align: center; /* Centralizado */
color: #333;
text-transform: uppercase; /* Texto em maiúsculo para chamar atenção */
}
/* Ajustando os parâmetros do título no mobile */
@media (max-width: 768px) {
.settings-title {
font-size: 28px;
margin-bottom: 20px; /* Menor espaçamento em telas pequenas */
}
}
/* Navbar Estilo */
.navbar {
background-color: #333; /* Fundo escuro para contraste */
color: white;
padding: 15px 20px; /* Mais espaçamento para uma navegação mais confortável */
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.navbar-logo h2 {
font-size: 24px;
font-weight: bold;
color: #fff;
}
.navbar-links {
list-style: none;
display: flex;
gap: 20px;
}
.navbar-links li {
display: inline-block;
}
.navbar-links a {
color: white;
text-decoration: none;
font-size: 18px;
padding: 8px 15px;
border-radius: 5px;
}
.navbar-links a:hover {
background-color: #4CAF50;
color: white;
}
.navbar-links a.active {
background-color: #45a049;
color: white;
}
/* Ícone do menu hamburguer para telas pequenas */
.menu-icon {
display: none;
font-size: 30px;
color: white;
background: none;
border: none;
cursor: pointer;
}
/* Responsividade para telas pequenas */
@media (max-width: 768px) {
.navbar-links {
display: none; /* Inicialmente oculta os links */
width: 100%;
flex-direction: column;
align-items: flex-start;
margin-top: 20px;
}
.navbar-links.active {
display: flex; /* Exibe os links quando o menu estiver ativo */
}
.navbar-links li {
width: 100%;
text-align: left;
}
.navbar-links a {
padding: 10px 20px;
width: 100%;
}
/* Exibe o ícone do menu hamburguer */
.menu-icon {
display: block;
}
}
/* Estilos para a Página de Segurança */
.security-container {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 0 auto;
}
.security-title {
font-size: 32px;
font-weight: bold;
margin-bottom: 30px;
text-align: center;
color: #333;
}
.security-item {
margin-bottom: 20px;
}
.security-item label {
display: block;
font-size: 16px;
margin-bottom: 8px;
}
.security-item input[type="checkbox"] {
margin-right: 10px;
}
.security-item ul {
list-style: none;
padding-left: 0;
}
.security-item ul li {
margin-bottom: 10px;
font-size: 16px;
}
.security-item select {
margin-left: 10px;
padding: 5px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ddd;
}
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
/* Estilos para a Página de Segurança */
.security-container {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 0 auto;
}
.security-title {
font-size: 32px;
font-weight: bold;
margin-bottom: 30px;
text-align: center;
color: #333;
}
.security-item {
margin-bottom: 20px;
}
.security-item label {
display: block;
font-size: 16px;
margin-bottom: 8px;
}
.security-item input[type="checkbox"] {
margin-right: 10px;
}
.auth-methods label {
display: block;
margin-bottom: 10px;
}
.security-item select {
margin-left: 10px;
padding: 5px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ddd;
}
button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
.add-user button {
background-color: #2196F3; /* Cor azul para adicionar */
}
.add-user button:hover {
background-color: #1e88e5;
}
/* Estilos para a lista de usuários */
.security-item ul {
list-style: none;
padding-left: 0;
}
.security-item ul li {
margin-bottom: 10px;
font-size: 16px;
}
.security-item button {
background-color: #f44336; /* Cor vermelha para remover */
padding: 5px 10px;
font-size: 14px;
cursor: pointer;
border-radius: 5px;
margin-left: 10px;
}
.security-item button:hover {
background-color: #e53935;
}
/* Estilos para o Dashboard */
.dashboard-container {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 1200px;
margin: 20px auto;
}
.dashboard-title {
font-size: 32px;
font-weight: bold;
margin-bottom: 30px;
text-align: center;
color: #333;
}
.dashboard-summary {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 30px;
}
.card {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 30%;
text-align: center;
}
.card h3 {
font-size: 20px;
color: #333;
margin-bottom: 10px;
}
.card p {
font-size: 18px;
color: #555;
}
.alerts {
margin-bottom: 30px;
}
.alerts h2 {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.alert-item {
font-size: 16px;
background-color: #f44336;
color: white;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
}
.chargers-table {
margin-top: 30px;
}
.chargers-table h2 {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
@media (max-width: 768px) {
.dashboard-summary {
flex-direction: column;
gap: 10px;
}
.card {
width: 100%;
}
table {
font-size: 14px;
}
}