This commit is contained in:
Flatlogic Bot 2025-12-09 17:11:00 +00:00
parent 779c62c6e4
commit 86d85bd8aa
6 changed files with 337 additions and 143 deletions

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

@ -0,0 +1,153 @@
/*-- Google Fonts --*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Lato:wght@400;700&display=swap');
/*-- Variables --*/
:root {
--primary-color: #FF7F50; /* Coral */
--secondary-color: #4682B4; /* Steel Blue */
--background-color: #FAF9F6;
--surface-color: #FFFFFF;
--text-color: #333333;
--light-gray-color: #f8f9fa;
--border-radius: 8px;
--font-family-headings: 'Nunito', sans-serif;
--font-family-body: 'Lato', sans-serif;
}
/*-- General Styles --*/
body {
font-family: var(--font-family-body);
background-color: var(--background-color);
color: var(--text-color);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-headings);
font-weight: 700;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
border-radius: var(--border-radius);
padding: 12px 24px;
font-weight: 700;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #E56A40; /* Darker coral */
border-color: #E56A40;
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
border-radius: var(--border-radius);
padding: 12px 24px;
font-weight: 700;
color: var(--surface-color);
transition: background-color 0.3s ease;
}
.btn-secondary:hover {
background-color: #3A6A8A; /* Darker steel blue */
border-color: #3A6A8A;
color: var(--surface-color);
}
/*-- Header --*/
.navbar {
background-color: var(--surface-color);
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand {
font-family: var(--font-family-headings);
font-weight: 800;
color: var(--primary-color) !important;
}
/*-- Hero Section --*/
.hero-section {
padding: 100px 0;
background: linear-gradient(135deg, rgba(255, 127, 80, 0.1), rgba(255, 127, 80, 0));
text-align: center;
}
.hero-section h1 {
font-size: 3.5rem;
font-weight: 800;
}
.hero-section .lead {
font-size: 1.25rem;
max-width: 600px;
margin: 20px auto 40px;
}
/*-- Sections --*/
.section {
padding: 80px 0;
}
.section-title {
text-align: center;
margin-bottom: 50px;
font-size: 2.5rem;
font-weight: 800;
}
/*-- How it works --*/
.how-it-works-icon {
font-size: 3rem;
color: var(--primary-color);
}
/*-- Features --*/
.feature-card {
background-color: var(--surface-color);
border: none;
border-radius: var(--border-radius);
padding: 30px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.feature-card .icon {
font-size: 2.5rem;
color: var(--secondary-color);
margin-bottom: 20px;
}
/*-- Search Widget --*/
#search-widget {
background-color: var(--surface-color);
padding: 40px;
border-radius: var(--border-radius);
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
/*-- Footer --*/
.footer {
background-color: #343a40;
color: var(--surface-color);
padding: 40px 0;
}
.footer a {
color: #f8f9fa;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}

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

@ -0,0 +1,10 @@
document.addEventListener('DOMContentLoaded', function() {
const findCaregiverBtn = document.querySelector('a[href="#search-widget"]');
if (findCaregiverBtn) {
findCaregiverBtn.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector('#search-widget').scrollIntoView({ behavior: 'smooth' });
});
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

314
index.php
View File

@ -1,150 +1,178 @@
<?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');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<!doctype html>
<!DOCTYPE html>
<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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO and Meta Tags -->
<title><?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: 'Grandma\'s Getaway'); ?></title>
<meta name="description" content="<?php echo htmlspecialchars(getenv('PROJECT_DESCRIPTION') ?: 'Connecting parents with amazing grandparent-like caregivers for your children.'); ?>">
<meta name="keywords" content="child care, babysitting, grandparents, caregivers, vacation, family">
<meta name="author" content="Flatlogic">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="<?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: 'Grandma\'s Getaway'); ?>">
<meta property="og:description" content="<?php echo htmlspecialchars(getenv('PROJECT_DESCRIPTION') ?: 'Connecting parents with amazing grandparent-like caregivers for your children.'); ?>">
<meta property="og:image" content="<?php echo htmlspecialchars(getenv('PROJECT_IMAGE_URL') ?: ''); ?>">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="<?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: 'Grandma\'s Getaway'); ?>">
<meta property="twitter:description" content="<?php echo htmlspecialchars(getenv('PROJECT_DESCRIPTION') ?: 'Connecting parents with amazing grandparent-like caregivers for your children.'); ?>">
<meta property="twitter:image" content="<?php echo htmlspecialchars(getenv('PROJECT_IMAGE_URL') ?: ''); ?>">
<!-- Favicon -->
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>👵</text></svg>">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/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">
<!-- 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>
</div>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
<!-- Header -->
<header>
<nav class="navbar navbar-expand-lg navbar-light fixed-top">
<div class="container">
<a class="navbar-brand" href="#">👵 Grandma's Getaway</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 align-items-center">
<li class="nav-item">
<a class="nav-link" href="#how-it-works">How It Works</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#features">For Parents</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#features">For Caregivers</a>
</li>
<li class="nav-item ms-lg-3">
<a class="btn btn-outline-secondary btn-sm" href="#">Sign In</a>
</li>
<li class="nav-item ms-lg-2">
<a class="btn btn-primary btn-sm" href="#">Sign Up</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<section class="hero-section" style="margin-top: 70px;">
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1">
<h1>Vacation for you. A joy for them.</h1>
<p class="lead">Connect with experienced, loving grandparent-like figures for your children's care. Peace of mind for you, unforgettable moments for them.</p>
<a href="#search-widget" class="btn btn-primary btn-lg me-2">Find a Caregiver</a>
<a href="#" class="btn btn-secondary btn-lg">Become a Caregiver</a>
</div>
</div>
</div>
</section>
<section id="how-it-works" class="section">
<div class="container">
<h2 class="section-title">How It Works</h2>
<div class="row text-center">
<div class="col-md-4">
<div class="how-it-works-icon"><i class="bi bi-search"></i></div>
<h3>1. Search</h3>
<p>Browse profiles of trusted caregivers in your destination. Read reviews and find the perfect match for your family.</p>
</div>
<div class="col-md-4">
<div class="how-it-works-icon"><i class="bi bi-calendar-check"></i></div>
<h3>2. Book</h3>
<p>Select your dates and send a booking request. Communicate directly and securely with your chosen caregiver.</p>
</div>
<div class="col-md-4">
<div class="how-it-works-icon"><i class="bi bi-balloon-heart"></i></div>
<h3>3. Relax</h3>
<p>Enjoy your vacation knowing your children are in safe, caring hands, making happy memories.</p>
</div>
</div>
</div>
</section>
<section id="features" class="section bg-light">
<div class="container">
<h2 class="section-title">A Perfect Match for Everyone</h2>
<div class="row g-4">
<div class="col-md-6">
<div class="feature-card">
<div class="icon"><i class="bi bi-people"></i></div>
<h4>For Parents</h4>
<p>Find vetted, experienced, and insured caregivers who bring warmth and wisdom. Enjoy flexible booking and secure payments for a worry-free vacation.</p>
</div>
</div>
<div class="col-md-6">
<div class="feature-card">
<div class="icon"><i class="bi bi-person-heart"></i></div>
<h4>For Caregivers</h4>
<p>Share your love and experience with children. Earn extra income on your own schedule and create joyful connections with families.</p>
</div>
</div>
</div>
</div>
</section>
<section id="search-widget" class="section">
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<h2 class="section-title">Find Your Perfect Caregiver</h2>
<form>
<div class="row g-3">
<div class="col-md-6">
<input type="text" class="form-control form-control-lg" placeholder="Location (e.g., 'Paris, France')">
</div>
<div class="col-md-4">
<input type="text" class="form-control form-control-lg" placeholder="Dates (e.g., 'Dec 20 - Jan 3')">
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-primary btn-lg w-100">Search</button>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container text-center">
<p>&copy; <?php echo date("Y"); ?> <?php echo htmlspecialchars(getenv('PROJECT_NAME') ?: 'Grandma\'s Getaway'); ?>. All Rights Reserved.</p>
<p>
<a href="#">Privacy Policy</a> |
<a href="#">Terms of Service</a> |
<a href="#">Contact Us</a>
</p>
</div>
</footer>
<!-- Bootstrap JS -->
<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>
</html>

3
test.php Normal file
View File

@ -0,0 +1,3 @@
<?php
phpinfo();
?>