Compare commits
No commits in common. "ai-dev" and "master" have entirely different histories.
@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
require_once __DIR__ . '/../db/config.php';
|
|
||||||
|
|
||||||
$response = ['success' => false, 'message' => 'Invalid request'];
|
|
||||||
$pdoconn = db();
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
||||||
$data = json_decode(file_get_contents('php://input'), true);
|
|
||||||
|
|
||||||
if (empty($data['nome']) || empty($data['status'])) {
|
|
||||||
$response['message'] = 'Nome and status are required.';
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
$sql = "INSERT INTO equipamentos (nome, categoria, numero_serie, status) VALUES (:nome, :categoria, :numero_serie, :status)";
|
|
||||||
$stmt = $pdoconn->prepare($sql);
|
|
||||||
$stmt->execute([
|
|
||||||
':nome' => $data['nome'],
|
|
||||||
':categoria' => $data['categoria'] ?? null,
|
|
||||||
':numero_serie' => $data['numero_serie'] ?? null,
|
|
||||||
':status' => $data['status']
|
|
||||||
]);
|
|
||||||
$response = ['success' => true, 'message' => 'Equipamento adicionado com sucesso!'];
|
|
||||||
} catch (PDOException $e) {
|
|
||||||
$response['message'] = 'Database error: ' . $e->getMessage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
|
||||||
try {
|
|
||||||
$stmt = $pdoconn->query("SELECT id, nome, categoria, numero_serie, status FROM equipamentos ORDER BY created_at DESC");
|
|
||||||
$equipamentos = $stmt->fetchAll();
|
|
||||||
$response = ['success' => true, 'data' => $equipamentos];
|
|
||||||
} catch (PDOException $e) {
|
|
||||||
$response['message'] = 'Database error: ' . $e->getMessage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo json_encode($response);
|
|
||||||
?>
|
|
||||||
@ -1,65 +0,0 @@
|
|||||||
body {
|
|
||||||
background-color: #F1FAEE; /* Off-white */
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
color: #1D3557; /* Dark blue text for contrast */
|
|
||||||
}
|
|
||||||
|
|
||||||
.toast-container {
|
|
||||||
position: fixed;
|
|
||||||
top: 1rem;
|
|
||||||
right: 1rem;
|
|
||||||
z-index: 1055;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
|
||||||
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero {
|
|
||||||
background: linear-gradient(45deg, #E63946, #D62828); /* Vibrant Red Gradient */
|
|
||||||
color: white;
|
|
||||||
padding: 6rem 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero h1 {
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero p {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Button override */
|
|
||||||
.btn-primary {
|
|
||||||
background-color: #E63946;
|
|
||||||
border-color: #E63946;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary:hover {
|
|
||||||
background-color: #D62828;
|
|
||||||
border-color: #D62828;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Table header */
|
|
||||||
.table > thead {
|
|
||||||
background-color: #E63946;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table > thead th {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Modal Header */
|
|
||||||
.modal-header {
|
|
||||||
background-color: #E63946;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-header .btn-close {
|
|
||||||
filter: invert(1) grayscale(100%) brightness(200%);
|
|
||||||
}
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const addEquipmentForm = document.getElementById('addEquipmentForm');
|
|
||||||
const addEquipmentModal = new bootstrap.Modal(document.getElementById('addEquipmentModal'));
|
|
||||||
|
|
||||||
if (addEquipmentForm) {
|
|
||||||
addEquipmentForm.addEventListener('submit', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
const formData = new FormData(addEquipmentForm);
|
|
||||||
const data = Object.fromEntries(formData.entries());
|
|
||||||
|
|
||||||
fetch('/api/equipamento_handler.php', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
body: JSON.stringify(data),
|
|
||||||
})
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(result => {
|
|
||||||
showToast(result.message, result.success ? 'success' : 'danger');
|
|
||||||
if (result.success) {
|
|
||||||
addEquipmentModal.hide();
|
|
||||||
addEquipmentForm.reset();
|
|
||||||
loadEquipment();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
showToast('An error occurred.', 'danger');
|
|
||||||
console.error('Error:', error);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (document.getElementById('equipmentTableBody')) {
|
|
||||||
loadEquipment();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function loadEquipment() {
|
|
||||||
const tableBody = document.getElementById('equipmentTableBody');
|
|
||||||
if (!tableBody) return;
|
|
||||||
|
|
||||||
fetch('/api/equipamento_handler.php')
|
|
||||||
.then(response => response.json())
|
|
||||||
.then(result => {
|
|
||||||
if (result.success) {
|
|
||||||
tableBody.innerHTML = '';
|
|
||||||
if (result.data.length === 0) {
|
|
||||||
tableBody.innerHTML = '<tr><td colspan="5" class="text-center">Nenhum equipamento encontrado.</td></tr>';
|
|
||||||
}
|
|
||||||
result.data.forEach(eq => {
|
|
||||||
const row = `<tr>
|
|
||||||
<td>${eq.nome}</td>
|
|
||||||
<td>${eq.categoria}</td>
|
|
||||||
<td>${eq.numero_serie}</td>
|
|
||||||
<td><span class="badge bg-${getBadgeClass(eq.status)}">${eq.status}</span></td>
|
|
||||||
<td>
|
|
||||||
<button class="btn btn-sm btn-outline-secondary">Editar</button>
|
|
||||||
</td>
|
|
||||||
</tr>`;
|
|
||||||
tableBody.innerHTML += row;
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
showToast(result.message, 'danger');
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(error => {
|
|
||||||
showToast('Failed to load equipment.', 'danger');
|
|
||||||
console.error('Error:', error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getBadgeClass(status) {
|
|
||||||
switch (status) {
|
|
||||||
case 'Disponível':
|
|
||||||
return 'success';
|
|
||||||
case 'Em Manutenção':
|
|
||||||
return 'warning';
|
|
||||||
case 'Danificado':
|
|
||||||
return 'danger';
|
|
||||||
default:
|
|
||||||
return 'secondary';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showToast(message, type = 'success') {
|
|
||||||
const toastContainer = document.getElementById('toast-container');
|
|
||||||
if (!toastContainer) return;
|
|
||||||
|
|
||||||
const toastId = 'toast-' + Date.now();
|
|
||||||
const toastHTML = `
|
|
||||||
<div id="${toastId}" class="toast align-items-center text-white bg-${type} border-0" role="alert" aria-live="assertive" aria-atomic="true">
|
|
||||||
<div class="d-flex">
|
|
||||||
<div class="toast-body">
|
|
||||||
${message}
|
|
||||||
</div>
|
|
||||||
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
toastContainer.innerHTML += toastHTML;
|
|
||||||
const toastElement = document.getElementById(toastId);
|
|
||||||
const toast = new bootstrap.Toast(toastElement, { delay: 5000 });
|
|
||||||
toast.show();
|
|
||||||
toastElement.addEventListener('hidden.bs.toast', () => toastElement.remove());
|
|
||||||
}
|
|
||||||
@ -1,21 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
function db() {
|
// Generated by setup_mariadb_project.sh — edit as needed.
|
||||||
$host = '127.0.0.1';
|
define('DB_HOST', '127.0.0.1');
|
||||||
$db = 'app';
|
define('DB_NAME', 'app_30953');
|
||||||
$user = 'app';
|
define('DB_USER', 'app_30953');
|
||||||
$pass = 'password';
|
define('DB_PASS', 'e45f2778-db1f-450c-99c6-29efb4601472');
|
||||||
$charset = 'utf8mb4';
|
|
||||||
|
|
||||||
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
|
function db() {
|
||||||
$options = [
|
static $pdo;
|
||||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
if (!$pdo) {
|
||||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
$pdo = new PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME.';charset=utf8mb4', DB_USER, DB_PASS, [
|
||||||
PDO::ATTR_EMULATE_PREPARES => false,
|
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||||
];
|
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||||
try {
|
]);
|
||||||
return new PDO($dsn, $user, $pass, $options);
|
}
|
||||||
} catch (\PDOException $e) {
|
return $pdo;
|
||||||
throw new \PDOException($e->getMessage(), (int)$e->getCode());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
<?php
|
|
||||||
require_once __DIR__ . '/config.php';
|
|
||||||
|
|
||||||
try {
|
|
||||||
$pdo = db();
|
|
||||||
$sql = "CREATE TABLE IF NOT EXISTS equipamentos (
|
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
nome VARCHAR(255) NOT NULL,
|
|
||||||
categoria VARCHAR(100),
|
|
||||||
numero_serie VARCHAR(100) UNIQUE,
|
|
||||||
status VARCHAR(50) DEFAULT 'Disponível',
|
|
||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
||||||
);";
|
|
||||||
$pdo->exec($sql);
|
|
||||||
echo "Database migration successful!";
|
|
||||||
} catch (PDOException $e) {
|
|
||||||
die("Database migration failed: " . $e->getMessage());
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
119
equipamentos.php
119
equipamentos.php
@ -1,119 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="pt-br">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lox - Inventário de Equipamentos</title>
|
|
||||||
<meta name="description" content="Gerencie seu inventário de equipamentos de construção civil com Lox.">
|
|
||||||
<meta name="keywords" content="erp, saas, construção civil, locadora de equipamentos, inventário, gestão de frota, Built with Flatlogic Generator">
|
|
||||||
<meta property="og:title" content="Lox - Inventário">
|
|
||||||
<meta property="og:description" content="Gerencie seu inventário de equipamentos de construção civil com Lox.">
|
|
||||||
<meta property="og:image" content="">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
<meta name="twitter:image" content="">
|
|
||||||
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="/assets/css/custom.css?v=<?php echo time(); ?>">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-white sticky-top">
|
|
||||||
<div class="container">
|
|
||||||
<a class="navbar-brand fw-bold" href="/">Lox</a>
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
|
||||||
<ul class="navbar-nav ms-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/">Início</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" href="/equipamentos.php">Inventário</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<main class="container mt-5">
|
|
||||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
||||||
<h1 class="h2">Inventário de Equipamentos</h1>
|
|
||||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addEquipmentModal">
|
|
||||||
<i class="bi bi-plus-circle me-2"></i>Adicionar Equipamento
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-hover">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Nome</th>
|
|
||||||
<th>Categoria</th>
|
|
||||||
<th>Nº de Série</th>
|
|
||||||
<th>Status</th>
|
|
||||||
<th>Ações</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="equipmentTableBody">
|
|
||||||
<!-- Equipment rows will be loaded here by JS -->
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<!-- Add Equipment Modal -->
|
|
||||||
<div class="modal fade" id="addEquipmentModal" tabindex="-1" aria-labelledby="addEquipmentModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="addEquipmentModalLabel">Adicionar Novo Equipamento</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form id="addEquipmentForm">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="nome" class="form-label">Nome do Equipamento</label>
|
|
||||||
<input type="text" class="form-control" id="nome" name="nome" required>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="categoria" class="form-label">Categoria</label>
|
|
||||||
<input type="text" class="form-control" id="categoria" name="categoria">
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="numero_serie" class="form-label">Número de Série</label>
|
|
||||||
<input type="text" class="form-control" id="numero_serie" name="numero_serie">
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="status" class="form-label">Status</label>
|
|
||||||
<select class="form-select" id="status" name="status" required>
|
|
||||||
<option value="Disponível">Disponível</option>
|
|
||||||
<option value="Em Manutenção">Em Manutenção</option>
|
|
||||||
<option value="Danificado">Danificado</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancelar</button>
|
|
||||||
<button type="submit" class="btn btn-primary">Salvar Equipamento</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Toast Container -->
|
|
||||||
<div id="toast-container" class="toast-container"></div>
|
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
||||||
<script src="/assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
232
index.php
232
index.php
@ -1,90 +1,150 @@
|
|||||||
<!DOCTYPE html>
|
<?php
|
||||||
<html lang="pt-br">
|
declare(strict_types=1);
|
||||||
<head>
|
@ini_set('display_errors', '1');
|
||||||
<meta charset="UTF-8">
|
@error_reporting(E_ALL);
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
@date_default_timezone_set('UTC');
|
||||||
<title>Lox - ERP para Locadoras de Equipamentos</title>
|
|
||||||
<meta name="description" content="Lox é a solução SaaS completa para gerenciar sua locadora de equipamentos para construção civil. Built with Flatlogic Generator.">
|
|
||||||
<meta name="keywords" content="erp para locadoras, saas construção civil, gestão de aluguel de equipamentos, software para locadoras, controle de frota, Built with Flatlogic Generator">
|
|
||||||
<meta property="og:title" content="Lox - ERP para Locadoras de Equipamentos">
|
|
||||||
<meta property="og:description" content="Lox é a solução SaaS completa para gerenciar sua locadora de equipamentos para construção civil. Built with Flatlogic Generator.">
|
|
||||||
<meta property="og:image" content="">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
<meta name="twitter:image" content="">
|
|
||||||
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
$phpVersion = PHP_VERSION;
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
$now = date('Y-m-d H:i:s');
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
?>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
|
<!doctype html>
|
||||||
<link rel="stylesheet" href="/assets/css/custom.css?v=<?php echo time(); ?>">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>New Style</title>
|
||||||
|
<?php
|
||||||
|
// Read project preview data from environment
|
||||||
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||||
|
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||||
|
?>
|
||||||
|
<?php if ($projectDescription): ?>
|
||||||
|
<!-- Meta description -->
|
||||||
|
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||||
|
<!-- Open Graph meta tags -->
|
||||||
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
|
<!-- Twitter meta tags -->
|
||||||
|
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($projectImageUrl): ?>
|
||||||
|
<!-- Open Graph image -->
|
||||||
|
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||||
|
<!-- Twitter image -->
|
||||||
|
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--bg-color-start: #6a11cb;
|
||||||
|
--bg-color-end: #2575fc;
|
||||||
|
--text-color: #ffffff;
|
||||||
|
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||||
|
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||||
|
color: var(--text-color);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
body::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||||
|
animation: bg-pan 20s linear infinite;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
@keyframes bg-pan {
|
||||||
|
0% { background-position: 0% 0%; }
|
||||||
|
100% { background-position: 100% 100%; }
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
background: var(--card-bg-color);
|
||||||
|
border: 1px solid var(--card-border-color);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 2rem;
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
-webkit-backdrop-filter: blur(20px);
|
||||||
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.loader {
|
||||||
|
margin: 1.25rem auto 1.25rem;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||||
|
border-top-color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
from { transform: rotate(0deg); }
|
||||||
|
to { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
.hint {
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
.sr-only {
|
||||||
|
position: absolute;
|
||||||
|
width: 1px; height: 1px;
|
||||||
|
padding: 0; margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
white-space: nowrap; border: 0;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||||
|
}
|
||||||
|
footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 1rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main>
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-white sticky-top">
|
<div class="card">
|
||||||
<div class="container">
|
<h1>Analyzing your requirements and generating your website…</h1>
|
||||||
<a class="navbar-brand fw-bold" href="/">Lox</a>
|
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
<span class="sr-only">Loading…</span>
|
||||||
<span class="navbar-toggler-icon"></span>
|
</div>
|
||||||
</button>
|
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||||
<ul class="navbar-nav ms-auto">
|
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||||
<li class="nav-item">
|
</div>
|
||||||
<a class="nav-link active" href="/">Início</a>
|
</main>
|
||||||
</li>
|
<footer>
|
||||||
<li class="nav-item">
|
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||||
<a class="nav-link" href="/equipamentos.php">Inventário</a>
|
</footer>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<header class="hero">
|
|
||||||
<div class="container">
|
|
||||||
<h1>ERP Moderno para sua Locadora</h1>
|
|
||||||
<p class="lead">Controle seu inventário, gerencie contratos e otimize suas operações com Lox.</p>
|
|
||||||
<a href="/equipamentos.php" class="btn btn-light btn-lg fw-bold">Acessar o Painel</a>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="py-5">
|
|
||||||
<div class="container text-center">
|
|
||||||
<h2 class="mb-4">Funcionalidades Principais</h2>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4 mb-4">
|
|
||||||
<div class="card h-100 border-0 shadow-sm">
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">Gestão de Inventário</h5>
|
|
||||||
<p class="card-text">Adicione e gerencie todos os seus equipamentos em um só lugar.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4 mb-4">
|
|
||||||
<div class="card h-100 border-0 shadow-sm">
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">Controle de Contratos</h5>
|
|
||||||
<p class="card-text">Crie cotações e converta-as em contratos de locação com facilidade.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4 mb-4">
|
|
||||||
<div class="card h-100 border-0 shadow-sm">
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">Relatórios Inteligentes</h5>
|
|
||||||
<p class="card-text">Acompanhe a performance do seu negócio com relatórios detalhados.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<footer class="bg-light py-4 mt-auto">
|
|
||||||
<div class="container text-center">
|
|
||||||
<p class="mb-0 text-muted">© <?php echo date("Y"); ?> Lox. Todos os direitos reservados.</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user