36837-vm/index.php
2025-12-16 22:46:19 +00:00

76 lines
3.8 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PAGEHACK &mdash; AI Page Conversion</title>
<!-- Bootstrap 5 CDN -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Fonts -->
<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;600;700;800;900&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
<!-- Meta Tags -->
<meta name="description" content="<?php echo htmlspecialchars($_SERVER['PROJECT_DESCRIPTION'] ?? 'AI-powered page conversion tool'); ?>">
<!-- Note: og:image is handled by the platform -->
</head>
<body>
<div class="container my-5">
<header class="text-center mb-5">
<h1 class="logo display-4">Page Hack</h1>
<p class="lead text-muted">Seja Bem vindo ao Page Hack. Cole a URL do site abaixo que você deseja modelar.</p>
</header>
<div class="row justify-content-center">
<div class="col-md-8 col-lg-7">
<div class="card p-4 p-md-5">
<form id="pagehack-form" action="generate.php" method="POST">
<div class="mb-4">
<label for="page_url" class="form-label fs-5 fw-medium">Website URL</label>
<input type="url" class="form-control form-control-lg" id="page_url" name="page_url" placeholder="https://www.example.com" required>
</div>
<div class="mb-4">
<label for="language" class="form-label fs-5 fw-medium">Target Language</label>
<select class="form-select form-select-lg" id="language" name="language">
<option value="pt">Português</option>
<option value="es">Español</option>
<option value="en" selected>English</option>
<option value="fr">Français</option>
<option value="de">Deutsch</option>
<option value="it">Italiano</option>
</select>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-lg">Optimize This Page</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Toast Notification -->
<div class="position-fixed bottom-0 end-0 p-3 toast-container">
<div id="liveToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<svg class="bd-placeholder-img rounded me-2" width="20" height="20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" preserveAspectRatio="xMidYMid slice" focusable="false"><rect width="100%" height="100%" fill="#10B981"></rect></svg>
<strong class="me-auto">PAGEHACK</strong>
<small>Just now</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Request received! We've started processing your page.
</div>
</div>
</div>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>