Revert to version 7f9d3dd
This commit is contained in:
parent
4d0da1475f
commit
94dbf78aec
@ -1,64 +0,0 @@
|
|||||||
body {
|
|
||||||
background-color: #F5F5DC;
|
|
||||||
color: #8B4513;
|
|
||||||
font-family: 'Helvetica Neue', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
font-family: 'Georgia', serif;
|
|
||||||
color: #8B4513;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
|
||||||
background-color: #D2B48C;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero {
|
|
||||||
background-image: url('https://picsum.photos/seed/autumn-hero/1600/900');
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
color: white;
|
|
||||||
padding: 100px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero h1 {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
padding: 60px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
background-color: #D2B48C;
|
|
||||||
padding: 20px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#recommendation-widget .btn {
|
|
||||||
border-color: #D2B48C;
|
|
||||||
color: #8B4513;
|
|
||||||
}
|
|
||||||
|
|
||||||
#recommendation-widget .btn:hover, #recommendation-widget .btn:focus {
|
|
||||||
background-color: #D2B48C;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#recommendation-display {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
border: 1px solid #D2B48C;
|
|
||||||
padding: 2rem;
|
|
||||||
min-height: 150px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
transition: all 0.3s ease-in-out;
|
|
||||||
}
|
|
||||||
@ -1,67 +0,0 @@
|
|||||||
// Add smooth scrolling to anchor links
|
|
||||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
||||||
anchor.addEventListener('click', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
|
||||||
behavior: 'smooth'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Recommendation Widget
|
|
||||||
const recommendations = {
|
|
||||||
book: [
|
|
||||||
{ title: "The Secret History", author: "Donna Tartt", description: "A dark, academic thriller perfect for a gloomy day." },
|
|
||||||
{ title: "Circe", author: "Madeline Miller", description: "A captivating story of Greek mythology and self-discovery." },
|
|
||||||
{ title: "Pride and Prejudice", author: "Jane Austen", description: "A timeless romance to warm your heart." },
|
|
||||||
],
|
|
||||||
movie: [
|
|
||||||
{ title: "When Harry Met Sally", director: "Rob Reiner", description: "The quintessential autumn rom-com with beautiful New York scenery." },
|
|
||||||
{ title: "Dead Poets Society", director: "Peter Weir", description: "An inspiring story about a passionate teacher at a New England boarding school." },
|
|
||||||
{ title: "Knives Out", director: "Rian Johnson", description: "A fun and modern whodunnit with a cozy sweater aesthetic." },
|
|
||||||
],
|
|
||||||
music: [
|
|
||||||
{ title: "folklore", artist: "Taylor Swift", description: "An album with a dreamy, cottagecore vibe." },
|
|
||||||
{ title: "Harvest Moon", artist: "Neil Young", description: "A classic album for a crisp autumn evening." },
|
|
||||||
{ title: "Bon Iver", artist: "Bon Iver", description: "Ethereal and folksy tunes for introspection." },
|
|
||||||
],
|
|
||||||
drink: [
|
|
||||||
{ title: "Spiced Pumpkin Latte", description: "A classic autumn drink to make you feel warm and cozy." },
|
|
||||||
{ title: "Hot Apple Cider", description: "A simple and comforting drink for a chilly day." },
|
|
||||||
{ title: "Chai Tea", description: "A fragrant and spicy tea that is perfect for a relaxing afternoon." },
|
|
||||||
],
|
|
||||||
food: [
|
|
||||||
{ title: "Butternut Squash Soup", description: "A creamy and hearty soup that is the essence of autumn." },
|
|
||||||
{ title: "Apple Crumble", description: "A warm and delicious dessert that is easy to make." },
|
|
||||||
{ title: "Grilled Cheese and Tomato Soup", description: "The ultimate comfort food combination." },
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
const recommendationWidget = document.getElementById('recommendation-widget');
|
|
||||||
const recommendationDisplay = document.getElementById('recommendation-display');
|
|
||||||
|
|
||||||
if (recommendationWidget && recommendationDisplay) {
|
|
||||||
recommendationWidget.addEventListener('click', function(e) {
|
|
||||||
if (e.target.tagName === 'BUTTON') {
|
|
||||||
const category = e.target.dataset.category;
|
|
||||||
const items = recommendations[category];
|
|
||||||
if (items) {
|
|
||||||
const randomIndex = Math.floor(Math.random() * items.length);
|
|
||||||
const item = items[randomIndex];
|
|
||||||
let html = `<h5>${item.title}</h5>`;
|
|
||||||
if (item.author) {
|
|
||||||
html += `<p class="mb-1"><em>by ${item.author}</em></p>`;
|
|
||||||
}
|
|
||||||
if (item.director) {
|
|
||||||
html += `<p class="mb-1"><em>dir. by ${item.director}</em></p>`;
|
|
||||||
}
|
|
||||||
if (item.artist) {
|
|
||||||
html += `<p class="mb-1"><em>by ${item.artist}</em></p>`;
|
|
||||||
}
|
|
||||||
html += `<p class="mb-0">${item.description}</p>`;
|
|
||||||
recommendationDisplay.innerHTML = html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 233 KiB |
215
index.php
215
index.php
@ -1,104 +1,131 @@
|
|||||||
<!DOCTYPE html>
|
<?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">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Autumn Feelings</title>
|
<title>New Style</title>
|
||||||
<meta name="description" content="Your cozy corner of the internet for autumn inspiration.">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<meta property="og:title" content="Autumn Feelings">
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<meta property="og:description" content="Your cozy corner of the internet for autumn inspiration.">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||||
<meta property="og:image" content="https://picsum.photos/seed/autumn-hero/1200/630">
|
<style>
|
||||||
<meta property="og:url" content="http://<?php echo $_SERVER['HTTP_HOST']; ?>">
|
:root {
|
||||||
<meta property="og:type" content="website">
|
--bg-color-start: #6a11cb;
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
--bg-color-end: #2575fc;
|
||||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
--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">
|
|
||||||
<div class="container">
|
|
||||||
<a class="navbar-brand" href="#">Autumn Feelings</a>
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
||||||
<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="#about">About</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="#portfolio">Recommendations</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="#testimonials">Testimonials</a></li>
|
|
||||||
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<header class="hero">
|
|
||||||
<div class="container">
|
|
||||||
<h1>Find your autumn comfort</h1>
|
|
||||||
<p class="lead">Embrace the season with cozy recommendations for books, movies, and more.</p>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section id="about" class="container">
|
|
||||||
<div class="row align-items-center">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<img src="https://picsum.photos/seed/autumn-about/800/600" class="img-fluid rounded" alt="A person wrapped in a warm blanket, reading a book.">
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>About Autumn Feelings</h2>
|
|
||||||
<p>This is a place to find warmth and comfort during the cool autumn months. We believe in the power of a good book, a warm drink, and a cozy blanket to lift your spirits.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="portfolio" class="bg-light">
|
|
||||||
<div class="container">
|
|
||||||
<h2 class="text-center mb-4">Need a little comfort?</h2>
|
|
||||||
<p class="text-center">Click a category below to get a recommendation.</p>
|
|
||||||
<div id="recommendation-widget" class="text-center mb-4">
|
|
||||||
<button class="btn btn-outline-secondary m-2" data-category="book">Book</button>
|
|
||||||
<button class="btn btn-outline-secondary m-2" data-category="movie">Movie</button>
|
|
||||||
<button class="btn btn-outline-secondary m-2" data-category="music">Music</button>
|
|
||||||
<button class="btn btn-outline-secondary m-2" data-category="drink">Drink</button>
|
|
||||||
<button class="btn btn-outline-secondary m-2" data-category="food">Food</button>
|
|
||||||
</div>
|
|
||||||
<div id="recommendation-display" class="card card-body">
|
|
||||||
<p class="text-center text-muted">Your recommendation will appear here.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="testimonials" class="container">
|
|
||||||
<h2 class="text-center mb-4">What people are saying</h2>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 offset-md-3">
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<h1>Analyzing your requirements and generating your website…</h1>
|
||||||
<blockquote class="blockquote mb-0">
|
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||||
<p>"This site is my go-to for finding a little bit of comfort when the weather gets gloomy. The recommendations are always spot on!"</p>
|
<span class="sr-only">Loading…</span>
|
||||||
<footer class="blockquote-footer">A Happy User</footer>
|
|
||||||
</blockquote>
|
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
</div>
|
<footer>
|
||||||
</section>
|
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||||
|
|
||||||
<section id="contact" class="bg-light">
|
|
||||||
<div class="container">
|
|
||||||
<h2 class="text-center mb-4">Get in Touch</h2>
|
|
||||||
<p class="text-center">Have a recommendation to share? We'd love to hear from you. Contact form coming soon!</p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<p>© <?php echo date("Y"); ?> Autumn Feelings. All Rights Reserved.</p>
|
|
||||||
<p><a href="privacy.php" class="text-dark">Privacy Policy</a> | <a href="sitemap.xml" class="text-dark">Sitemap</a></p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
17
privacy.php
17
privacy.php
@ -1,17 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Privacy Policy</title>
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container mt-5">
|
|
||||||
<h1>Privacy Policy</h1>
|
|
||||||
<p>This is a placeholder for your privacy policy.</p>
|
|
||||||
<a href="/">Back to Home</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
13
sitemap.xml
13
sitemap.xml
@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
||||||
<url>
|
|
||||||
<loc>/</loc>
|
|
||||||
<lastmod>2025-09-29T12:00:00+00:00</lastmod>
|
|
||||||
<priority>1.00</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/privacy</loc>
|
|
||||||
<lastmod>2025-09-29T12:00:00+00:00</lastmod>
|
|
||||||
<priority>0.80</priority>
|
|
||||||
</url>
|
|
||||||
</urlset>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user