This commit is contained in:
Flatlogic Bot 2025-10-29 10:04:19 +00:00
parent 2a30fbdcdb
commit 6569b2ca89
3 changed files with 206 additions and 145 deletions

59
assets/css/custom.css Normal file
View File

@ -0,0 +1,59 @@
/* Custom Styles */
body {
font-family: 'Poppins', sans-serif;
background-color: #F8F9FA;
}
.hero-section {
background: url('https://images.pexels.com/photos/4239031/pexels-photo-4239031.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
background-size: cover;
position: relative;
color: white;
padding: 100px 0;
text-align: center;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8));
}
.hero-section .container {
position: relative;
z-index: 2;
}
.search-card {
background-color: #FFFFFF;
padding: 2rem;
border-radius: 0.75rem;
box-shadow: 0 8px 30px rgba(0,0,0,0.1);
margin-top: 2rem;
}
.btn-primary {
background-color: #007BFF;
border-color: #007BFF;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 600;
}
.btn-primary:hover {
background-color: #0056b3;
border-color: #0056b3;
}
.how-it-works {
padding: 80px 0;
}
.step-icon {
font-size: 3rem;
color: #007BFF;
}

1
assets/js/main.js Normal file
View File

@ -0,0 +1 @@
// Main javascript file

291
index.php
View File

@ -1,150 +1,151 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<html lang="it">
<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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MeToo - Servizi a Domicilio</title>
<meta name="description" content="Piattaforma di prenotazioni di servizi a domicilio come pulizie, assistenza, riparazioni e altro. Built with Flatlogic Generator.">
<meta name="keywords" content="servizi a domicilio, prenotazione online, pulizie domestiche, assistenza alla persona, riparazioni, spesa a domicilio, professionisti locali, marketplace servizi, Built with Flatlogic Generator">
<!-- Social Media Meta Tags -->
<meta property="og:title" content="MeToo - Servizi a Domicilio">
<meta property="og:description" content="Trova e prenota i migliori professionisti per servizi a domicilio. Semplice, rapido e affidabile.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? '', ENT_QUOTES, 'UTF-8'); ?>">
<meta property="og:url" content="<?php echo htmlspecialchars((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'], ENT_QUOTES, 'UTF-8'); ?>">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? '', ENT_QUOTES, 'UTF-8'); ?>">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<!-- Google Fonts (Poppins) -->
<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=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
</div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will update automatically as the plan is implemented.</p>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
<!-- Header -->
<header class="p-3 bg-white shadow-sm sticky-top">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-dark text-decoration-none h4 fw-bold">
MeToo
</a>
<ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0 ms-lg-4">
<li><a href="#" class="nav-link px-2 text-dark">Servizi</a></li>
<li><a href="#" class="nav-link px-2 text-dark">Diventa un Fornitore</a></li>
</ul>
<div class="text-end">
<button type="button" class="btn btn-outline-primary me-2">Login</button>
<button type="button" class="btn btn-primary">Registrati</button>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="hero-section">
<div class="container">
<h1 class="display-4 fw-bold">Servizi a domicilio, semplici e affidabili.</h1>
<p class="lead col-lg-8 mx-auto">Trova i migliori professionisti nella tua zona per pulizie, riparazioni, assistenza e molto altro. Inizia ora.</p>
<div class="col-lg-8 mx-auto">
<div class="search-card text-dark">
<form id="service-search-form">
<div class="row g-3 align-items-center">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-text bg-transparent border-0"><i class="bi bi-briefcase"></i></span>
<input type="text" class="form-control border-0" placeholder="Che servizio cerchi? (es. pulizie)">
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-text bg-transparent border-0"><i class="bi bi-geo-alt"></i></span>
<input type="text" class="form-control border-0" placeholder="Dove? (es. Milano)">
</div>
</div>
<div class="col-lg-2">
<button type="submit" class="btn btn-primary w-100">Cerca</button>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="how-it-works text-center">
<div class="container">
<h2 class="pb-2 border-bottom">Come funziona</h2>
<div class="row mt-5">
<div class="col-md-4">
<div class="step-icon mb-3"><i class="bi bi-search"></i></div>
<h3>1. Cerca</h3>
<p>Descrivi il servizio di cui hai bisogno e indica la tua zona.</p>
</div>
<div class="col-md-4">
<div class="step-icon mb-3"><i class="bi bi-calendar-check"></i></div>
<h3>2. Prenota</h3>
<p>Scegli il fornitore che preferisci, visualizza il preventivo e prenota.</p>
</div>
<div class="col-md-4">
<div class="step-icon mb-3"><i class="bi bi-emoji-smile"></i></div>
<h3>3. Rilassati</h3>
<p>Un professionista qualificato si prenderà cura di tutto.</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<p class="col-md-4 mb-0 text-muted">&copy; <?php echo date("Y"); ?> MeToo, Inc</p>
<a href="/" class="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-dark text-decoration-none h4 fw-bold">
MeToo
</a>
<ul class="nav col-md-4 justify-content-end">
<li class="nav-item"><a href="#" class="nav-link px-2 text-muted">Privacy</a></li>
<li class="nav-item"><a href="#" class="nav-link px-2 text-muted">Termini</a></li>
<li class="nav-item"><a href="#" class="nav-link px-2 text-muted">Contatti</a></li>
</ul>
</footer>
</div>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
<!-- Toast container for notifications -->
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="search-toast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="me-auto">Notifica</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Funzionalità di ricerca in costruzione. Presto potrai trovare i migliori fornitori!
</div>
</div>
</div>
<!-- Bootstrap 5 JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
<script>
document.getElementById('service-search-form').addEventListener('submit', function(e) {
e.preventDefault();
const toastEl = document.getElementById('search-toast');
const toast = new bootstrap.Toast(toastEl);
toast.show();
});
</script>
</body>
</html>
</html>