This commit is contained in:
Flatlogic Bot 2025-09-11 09:26:00 +00:00
parent c9d9d030b3
commit f5c7be920b
3 changed files with 296 additions and 126 deletions

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

@ -0,0 +1,75 @@
:root {
--primary-color: #4A90E2;
--secondary-color: #50E3C2;
--background-color: #F8F9FA;
--surface-color: #FFFFFF;
--text-color: #212529;
--primary-gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}
body {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
}
.navbar-brand {
font-weight: bold;
}
.hero {
background: var(--primary-gradient);
color: white;
padding: 6rem 0;
}
.hero h1 {
font-weight: 700;
font-size: 3.5rem;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
}
.section {
padding: 5rem 0;
}
.card {
border: none;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgba(0,0,0,0.05);
transition: transform 0.2s ease-in-out;
}
.card:hover {
transform: translateY(-5px);
}
.navbar-sticky.scrolled {
background-color: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
padding-top: 0.5rem;
padding-bottom: 0.5rem;
transition: all 0.3s ease-in-out;
}
.store-badge {
display: inline-block;
height: 50px;
}
.avatar {
width: 96px;
height: 96px;
border-radius: 50%;
object-fit: cover;
}

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

@ -0,0 +1,41 @@
document.addEventListener('DOMContentLoaded', function () {
// Navbar shrink on scroll
const navbar = document.querySelector('.navbar-sticky');
if (navbar) {
window.addEventListener('scroll', () => {
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
}
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Basic form validation
const newsletterForm = document.querySelector('#newsletterForm');
if(newsletterForm) {
newsletterForm.addEventListener('submit', function(e) {
const emailInput = document.querySelector('#email');
if (!validateEmail(emailInput.value)) {
e.preventDefault();
alert('Please enter a valid email address.');
emailInput.focus();
}
});
}
function validateEmail(email) {
const re = /^(([^<>()[\\]\\.,;:\s@\"]+(\.[^<>()[\\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
});

306
index.php
View File

@ -1,131 +1,185 @@
<?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>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<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>TrailGo - Find Your Next Adventure</title>
<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.10.5/font/bootstrap-icons.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">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>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-transparent navbar-sticky fixed-top">
<div class="container">
<a class="navbar-brand" href="#">TrailGo</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="#how-it-works">How it Works</a></li>
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#reviews">Reviews</a></li>
<li class="nav-item ms-lg-3"><a class="btn btn-primary" href="#newsletter">Get App</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="hero text-center">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 text-lg-start">
<h1 class="display-3">Find Your Next Adventure.</h1>
<p class="lead my-4">The ultimate companion for every trailblazer. Discover routes, track progress, and connect with nature.</p>
<div>
<a href="#" class="store-badge"><img src="https://upload.wikimedia.org/wikipedia/commons/3/3c/Download_on_the_App_Store_Badge.svg" alt="Download on the App Store" style="height: 50px;"></a>
<a href="#" class="store-badge"><img src="https://upload.wikimedia.org/wikipedia/commons/7/78/Google_Play_Store_badge_EN.svg" alt="Get it on Google Play" style="height: 50px;"></a>
</div>
</div>
<div class="col-lg-6 mt-5 mt-lg-0">
<img src="https://picsum.photos/seed/trailgo-phone/450/800" class="img-fluid rounded-5 shadow-lg" alt="A smartphone displaying the TrailGo app's main map interface on a scenic mountain trail.">
</div>
</div>
</div>
</header>
<!-- How it Works Section -->
<section id="how-it-works" class="section">
<div class="container text-center">
<h2 class="mb-5">How It Works</h2>
<div class="row">
<div class="col-md-4 mb-4">
<div class="card p-4 h-100">
<i class="bi bi-map display-3 text-primary"></i>
<h4 class="my-3">1. Discover Routes</h4>
<p>Explore thousands of trails for hiking, biking, and running, submitted by a community of explorers.</p>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card p-4 h-100">
<i class="bi bi-phone display-3 text-primary"></i>
<h4 class="my-3">2. Start Your Journey</h4>
<p>Use our live GPS tracking to navigate your chosen path and record your adventure.</p>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card p-4 h-100">
<i class="bi bi-people display-3 text-primary"></i>
<h4 class="my-3">3. Share Your Experience</h4>
<p>Share photos, reviews, and tips with the TrailGo community and inspire others.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section id="features" class="section bg-light">
<div class="container">
<h2 class="text-center mb-5">App Features</h2>
<div class="row g-4">
<div class="col-md-6">
<div class="card p-4"><h5>Offline Maps</h5><p>Download maps for offline use and navigate even without a signal.</p></div>
</div>
<div class="col-md-6">
<div class="card p-4"><h5>Live Tracking</h5><p>Share your real-time location with friends and family for safety.</p></div>
</div>
<div class="col-md-6">
<div class="card p-4"><h5>Community Reviews</h5><p>Get up-to-date trail conditions and tips from fellow adventurers.</p></div>
</div>
<div class="col-md-6">
<div class="card p-4"><h5>Achievement Badges</h5><p>Stay motivated by unlocking badges for milestones and challenges.</p></div>
</div>
</div>
<div class="row mt-5 g-4 align-items-center">
<div class="col-lg-6">
<img src="https://picsum.photos/seed/trailgo-feature1/600/400" class="img-fluid rounded-4 shadow" alt="A hiker using the TrailGo app to navigate a forest path.">
</div>
<div class="col-lg-6">
<h3>Detailed Trail Info</h3>
<p>Get everything you need to know before you go, including difficulty, elevation, and photos.</p>
</div>
</div>
<div class="row mt-5 g-4 align-items-center flex-row-reverse">
<div class="col-lg-6">
<img src="https://picsum.photos/seed/trailgo-feature2/600/400" class="img-fluid rounded-4 shadow" alt="Close-up of the TrailGo app's achievement badges screen.">
</div>
<div class="col-lg-6">
<h3>Connect with Friends</h3>
<p>Follow friends, see their activities, and plan your next adventure together.</p>
</div>
</div>
</div>
</section>
<!-- Reviews Section -->
<section id="reviews" class="section">
<div class="container">
<h2 class="text-center mb-5">Loved by Explorers</h2>
<div class="row">
<div class="col-md-4 mb-4">
<div class="card text-center p-4 h-100">
<img src="https://picsum.photos/seed/trailgo-avatar1/96/96" class="avatar mx-auto mb-3" alt="Avatar of user Alex.">
<p class="fst-italic">"TrailGo has completely changed how I find new hiking trails. The community tips are a lifesaver!"</p>
<footer class="mt-auto">- Alex Johnson</footer>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card text-center p-4 h-100">
<img src="https://picsum.photos/seed/trailgo-avatar2/96/96" class="avatar mx-auto mb-3" alt="Avatar of user Maria.">
<p class="fst-italic">"The offline maps are a game-changer for my backcountry trips. I feel so much safer on the trail."</p>
<footer class="mt-auto">- Maria Garcia</footer>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card text-center p-4 h-100">
<img src="https://picsum.photos/seed/trailgo-avatar3/96/96" class="avatar mx-auto mb-3" alt="Avatar of user Sam.">
<p class="fst-italic">"I love the achievement badges! They keep me motivated to get out and explore more each weekend."</p>
<footer class="mt-auto">- Sam Chen</footer>
</div>
</div>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section id="newsletter" class="section bg-light">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-7 text-center">
<h2>Stay in the Loop</h2>
<p>Subscribe to our newsletter for the latest trail updates, app features, and exclusive offers.</p>
<form id="newsletterForm" class="row mt-4">
<div class="col-md-8">
<input type="email" id="email" class="form-control form-control-lg" placeholder="Enter your email" required>
</div>
<div class="col-md-4 mt-3 mt-md-0">
<button type="submit" class="btn btn-primary btn-lg w-100">Subscribe</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-4 bg-dark text-white">
<div class="container text-center">
<div class="mb-3">
<a href="#" class="text-white mx-2"><i class="bi bi-twitter"></i></a>
<a href="#" class="text-white mx-2"><i class="bi bi-instagram"></i></a>
<a href="#" class="text-white mx-2"><i class="bi bi-facebook"></i></a>
</div>
<p class="mb-0">&copy; <?php echo date("Y"); ?> TrailGo. All Rights Reserved.</p>
<p><a href="#" class="text-white">Privacy Policy</a> &middot; <a href="#" class="text-white">Terms of Service</a></p>
</div>
</footer>
<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>
</html>