From 1cb89e7ef871ee099ade0650e6b5513977d39040 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 5 Feb 2026 17:20:01 +0000 Subject: [PATCH] VALENTINE --- assets/css/custom.css | 406 ++++++++++-------------------------------- assets/js/main.js | 149 +++++++++------- index.php | 185 +++++-------------- 3 files changed, 226 insertions(+), 514 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 65a1626..d215fbd 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,346 +1,126 @@ :root { - --color-bg: #ffffff; - --color-text: #1a1a1a; - --color-primary: #2563EB; /* Vibrant Blue */ - --color-secondary: #000000; - --color-accent: #A3E635; /* Lime Green */ - --color-surface: #f8f9fa; - --font-heading: 'Space Grotesk', sans-serif; - --font-body: 'Inter', sans-serif; - --border-width: 2px; - --shadow-hard: 5px 5px 0px #000; - --shadow-hover: 8px 8px 0px #000; - --radius-pill: 50rem; - --radius-card: 1rem; + --primary-color: #e63946; + --bg-color: #ffffff; + --text-color: #2d3436; + --secondary-text: #636e72; + --border-color: #eee; + --font-family: 'Inter', system-ui, -apple-system, sans-serif; } body { - font-family: var(--font-body); - background-color: var(--color-bg); - color: var(--color-text); - overflow-x: hidden; + background-color: var(--bg-color); + color: var(--text-color); + font-family: var(--font-family); + margin: 0; + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + overflow-x: hidden; } -h1, h2, h3, h4, h5, h6, .navbar-brand { - font-family: var(--font-heading); - letter-spacing: -0.03em; +.container { + max-width: 500px; + width: 90%; + text-align: center; + padding: 2rem; + border: 1px solid var(--border-color); + border-radius: 12px; + background: #fff; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); + transition: all 0.3s ease; } -/* Utilities */ -.text-primary { color: var(--color-primary) !important; } -.bg-black { background-color: #000 !important; } -.text-white { color: #fff !important; } -.shadow-hard { box-shadow: var(--shadow-hard); } -.border-2-black { border: var(--border-width) solid #000; } -.py-section { padding-top: 5rem; padding-bottom: 5rem; } - -/* Navbar */ -.navbar { - background: rgba(255, 255, 255, 0.9); - backdrop-filter: blur(10px); - border-bottom: var(--border-width) solid transparent; - transition: all 0.3s; - padding-top: 1rem; - padding-bottom: 1rem; +h1 { + font-size: 1.75rem; + font-weight: 700; + margin-bottom: 1.5rem; + letter-spacing: -0.5px; } -.navbar.scrolled { - border-bottom-color: #000; - padding-top: 0.5rem; - padding-bottom: 0.5rem; +.image-preview-container { + width: 100%; + height: 250px; + background-color: #f8f9fa; + border: 2px dashed var(--border-color); + border-radius: 8px; + margin-bottom: 1.5rem; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + position: relative; + cursor: pointer; } -.brand-text { - font-size: 1.5rem; - font-weight: 800; +.image-preview-container img { + width: 100%; + height: 100%; + object-fit: cover; + display: none; } -.nav-link { - font-weight: 500; - color: var(--color-text); - margin-left: 1rem; - position: relative; +.image-preview-container .placeholder-text { + color: var(--secondary-text); + font-size: 0.9rem; } -.nav-link:hover, .nav-link.active { - color: var(--color-primary); +.button-group { + display: flex; + justify-content: center; + align-items: center; + gap: 1rem; + margin-top: 2rem; + position: relative; + min-height: 60px; } -/* Buttons */ .btn { - font-weight: 700; - font-family: var(--font-heading); - padding: 0.8rem 2rem; - border-radius: var(--radius-pill); - border: var(--border-width) solid #000; - transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); - box-shadow: var(--shadow-hard); + padding: 0.75rem 1.5rem; + font-size: 1rem; + font-weight: 600; + border-radius: 6px; + border: none; + cursor: pointer; + transition: transform 0.1s ease, font-size 0.2s ease; + white-space: nowrap; } -.btn:hover { - transform: translate(-2px, -2px); - box-shadow: var(--shadow-hover); +.btn-yes { + background-color: var(--primary-color); + color: white; + z-index: 10; } -.btn:active { - transform: translate(2px, 2px); - box-shadow: 0 0 0 #000; +.btn-no { + background-color: #f1f2f6; + color: var(--text-color); + position: relative; } -.btn-primary { - background-color: var(--color-primary); - border-color: #000; - color: #fff; +#success-message { + display: none; + animation: fadeIn 0.8s ease forwards; } -.btn-primary:hover { - background-color: #1d4ed8; - border-color: #000; - color: #fff; +@keyframes fadeIn { + from { opacity: 0; transform: translateY(10px); } + to { opacity: 1; transform: translateY(0); } } -.btn-outline-dark { - background-color: #fff; - color: #000; +.success-text { + font-size: 1.25rem; + line-height: 1.6; + color: var(--primary-color); + font-weight: 600; } -.btn-cta { - background-color: var(--color-accent); - color: #000; +.redirect-hint { + margin-top: 1rem; + font-size: 0.85rem; + color: var(--secondary-text); } -.btn-cta:hover { - background-color: #8cc629; - color: #000; -} - -/* Hero Section */ -.hero-section { - min-height: 100vh; - padding-top: 80px; -} - -.background-blob { - position: absolute; - border-radius: 50%; - filter: blur(80px); - opacity: 0.6; - z-index: 1; -} - -.blob-1 { - top: -10%; - right: -10%; - width: 600px; - height: 600px; - background: radial-gradient(circle, var(--color-accent), transparent); -} - -.blob-2 { - bottom: 10%; - left: -10%; - width: 500px; - height: 500px; - background: radial-gradient(circle, var(--color-primary), transparent); -} - -.highlight-text { - background: linear-gradient(120deg, transparent 0%, transparent 40%, var(--color-accent) 40%, var(--color-accent) 100%); - background-repeat: no-repeat; - background-size: 100% 40%; - background-position: 0 88%; - padding: 0 5px; -} - -.dot { color: var(--color-primary); } - -.badge-pill { - display: inline-block; - padding: 0.5rem 1rem; - border: 2px solid #000; - border-radius: 50px; - font-weight: 700; - background: #fff; - box-shadow: 4px 4px 0 #000; - font-family: var(--font-heading); - font-size: 0.9rem; -} - -/* Marquee */ -.marquee-container { - overflow: hidden; - white-space: nowrap; - border-top: 2px solid #000; - border-bottom: 2px solid #000; -} - -.rotate-divider { - transform: rotate(-2deg) scale(1.05); - z-index: 10; - position: relative; - margin-top: -50px; - margin-bottom: 30px; -} - -.marquee-content { - display: inline-block; - animation: marquee 20s linear infinite; - font-family: var(--font-heading); - font-weight: 700; - font-size: 1.5rem; - letter-spacing: 2px; -} - -@keyframes marquee { - 0% { transform: translateX(0); } - 100% { transform: translateX(-50%); } -} - -/* Portfolio Cards */ -.project-card { - border: 2px solid #000; - border-radius: var(--radius-card); - overflow: hidden; - background: #fff; - transition: transform 0.3s ease; - box-shadow: var(--shadow-hard); - height: 100%; - display: flex; - flex-direction: column; -} - -.project-card:hover { - transform: translateY(-10px); - box-shadow: 8px 8px 0 #000; -} - -.card-img-holder { - height: 250px; - display: flex; - align-items: center; - justify-content: center; - border-bottom: 2px solid #000; - position: relative; - font-size: 4rem; -} - -.placeholder-art { - transition: transform 0.3s ease; -} - -.project-card:hover .placeholder-art { - transform: scale(1.2) rotate(10deg); -} - -.bg-soft-blue { background-color: #e0f2fe; } -.bg-soft-green { background-color: #dcfce7; } -.bg-soft-purple { background-color: #f3e8ff; } -.bg-soft-yellow { background-color: #fef9c3; } - -.category-tag { - position: absolute; - top: 15px; - right: 15px; - background: #000; - color: #fff; - padding: 5px 12px; - border-radius: 20px; - font-size: 0.75rem; - font-weight: 700; -} - -.card-body { padding: 1.5rem; } - -.link-arrow { - text-decoration: none; - color: #000; - font-weight: 700; - display: inline-flex; - align-items: center; - margin-top: auto; -} - -.link-arrow i { transition: transform 0.2s; margin-left: 5px; } -.link-arrow:hover i { transform: translateX(5px); } - -/* About */ -.about-image-stack { - position: relative; - height: 400px; - width: 100%; -} - -.stack-card { - position: absolute; - width: 80%; - height: 100%; - border-radius: var(--radius-card); - border: 2px solid #000; - box-shadow: var(--shadow-hard); - left: 10%; - transform: rotate(-3deg); - background-size: cover; -} - -/* Forms */ -.form-control { - border: 2px solid #000; - border-radius: 0.5rem; - padding: 1rem; - font-weight: 500; - background: #f8f9fa; -} - -.form-control:focus { - box-shadow: 4px 4px 0 var(--color-primary); - border-color: #000; - background: #fff; -} - -/* Animations */ -.animate-up { - opacity: 0; - transform: translateY(30px); - animation: fadeUp 0.8s ease forwards; -} - -.delay-100 { animation-delay: 0.1s; } -.delay-200 { animation-delay: 0.2s; } - -@keyframes fadeUp { - to { - opacity: 1; - transform: translateY(0); - } -} - -/* Social */ -.social-links a { - transition: transform 0.2s; - display: inline-block; -} -.social-links a:hover { - transform: scale(1.2) rotate(10deg); - color: var(--color-accent) !important; -} - -/* Responsive */ -@media (max-width: 991px) { - .rotate-divider { - transform: rotate(0); - margin-top: 0; - margin-bottom: 2rem; - } - - .hero-section { - padding-top: 120px; - text-align: center; - min-height: auto; - padding-bottom: 100px; - } - - .display-1 { font-size: 3.5rem; } - - .blob-1 { width: 300px; height: 300px; right: -20%; } - .blob-2 { width: 300px; height: 300px; left: -20%; } -} +#image-input { + display: none; +} \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js index fdf2cfd..133ec46 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,73 +1,100 @@ document.addEventListener('DOMContentLoaded', () => { + const noBtn = document.getElementById('no-btn'); + const yesBtn = document.getElementById('yes-btn'); + const imageInput = document.getElementById('image-input'); + const imagePreview = document.getElementById('preview-img'); + const placeholderText = document.querySelector('.placeholder-text'); + const proposalBox = document.getElementById('proposal-box'); + const successBox = document.getElementById('success-message'); - // Smooth scrolling for navigation links - document.querySelectorAll('a[href^="#"]').forEach(anchor => { - anchor.addEventListener('click', function (e) { - e.preventDefault(); - const targetId = this.getAttribute('href'); - if (targetId === '#') return; - - const targetElement = document.querySelector(targetId); - if (targetElement) { - // Close mobile menu if open - const navbarToggler = document.querySelector('.navbar-toggler'); - const navbarCollapse = document.querySelector('.navbar-collapse'); - if (navbarCollapse.classList.contains('show')) { - navbarToggler.click(); - } + let yesScale = 1; - // Scroll with offset - const offset = 80; - const elementPosition = targetElement.getBoundingClientRect().top; - const offsetPosition = elementPosition + window.pageYOffset - offset; - - window.scrollTo({ - top: offsetPosition, - behavior: "smooth" - }); - } - }); + // Image Upload Logic + document.querySelector('.image-preview-container').addEventListener('click', () => { + imageInput.click(); }); - // Navbar scroll effect - const navbar = document.querySelector('.navbar'); - window.addEventListener('scroll', () => { - if (window.scrollY > 50) { - navbar.classList.add('scrolled', 'shadow-sm', 'bg-white'); - navbar.classList.remove('bg-transparent'); - } else { - navbar.classList.remove('scrolled', 'shadow-sm', 'bg-white'); - navbar.classList.add('bg-transparent'); + imageInput.addEventListener('change', function() { + const file = this.files[0]; + if (file) { + const reader = new FileReader(); + reader.onload = function(e) { + imagePreview.src = e.target.result; + imagePreview.style.display = 'block'; + placeholderText.style.display = 'none'; + } + reader.readAsDataURL(file); } }); - // Intersection Observer for fade-up animations - const observerOptions = { - threshold: 0.1, - rootMargin: "0px 0px -50px 0px" - }; + // "No" Button Dodging Logic + const dodgeThreshold = 100; // pixels - const observer = new IntersectionObserver((entries) => { - entries.forEach(entry => { - if (entry.isIntersecting) { - entry.target.classList.add('animate-up'); - entry.target.style.opacity = "1"; - observer.unobserve(entry.target); // Only animate once - } - }); - }, observerOptions); + document.addEventListener('mousemove', (e) => { + if (successBox.style.display === 'block') return; - // Select elements to animate (add a class 'reveal' to them in HTML if not already handled by CSS animation) - // For now, let's just make sure the hero animations run. - // If we want scroll animations, we'd add opacity: 0 to elements in CSS and reveal them here. - // Given the request, the CSS animation I added runs on load for Hero. - // Let's make the project cards animate in. - - const projectCards = document.querySelectorAll('.project-card'); - projectCards.forEach((card, index) => { - card.style.opacity = "0"; - card.style.animationDelay = `${index * 0.1}s`; - observer.observe(card); + const rect = noBtn.getBoundingClientRect(); + const btnCenterX = rect.left + rect.width / 2; + const btnCenterY = rect.top + rect.height / 2; + + const distance = Math.hypot(e.clientX - btnCenterX, e.clientY - btnCenterY); + + if (distance < dodgeThreshold) { + const angle = Math.atan2(e.clientY - btnCenterY, e.clientX - btnCenterX); + const moveDist = dodgeThreshold - distance + 20; + + let newX = rect.left - Math.cos(angle) * moveDist; + let newY = rect.top - Math.sin(angle) * moveDist; + + // Keep within viewport bounds + const padding = 20; + newX = Math.max(padding, Math.min(window.innerWidth - rect.width - padding, newX)); + newY = Math.max(padding, Math.min(window.innerHeight - rect.height - padding, newY)); + + noBtn.style.position = 'fixed'; + noBtn.style.left = `${newX}px`; + noBtn.style.top = `${newY}px`; + noBtn.style.margin = '0'; + } }); -}); \ No newline at end of file + // "No" Click Logic (if they somehow manage to click it) + noBtn.addEventListener('click', (e) => { + e.preventDefault(); + yesScale += 0.15; + yesBtn.style.transform = `scale(${yesScale})`; + yesBtn.style.fontSize = `${1 * yesScale}rem`; + }); + + // "Yes" Click Logic + yesBtn.addEventListener('click', () => { + proposalBox.style.display = 'none'; + successBox.style.display = 'block'; + + // Confetti effect + const duration = 15 * 1000; + const animationEnd = Date.now() + duration; + const defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 0 }; + + function randomInRange(min, max) { + return Math.random() * (max - min) + min; + } + + const interval = setInterval(function() { + const timeLeft = animationEnd - Date.now(); + + if (timeLeft <= 0) { + return clearInterval(interval); + } + + const particleCount = 50 * (timeLeft / duration); + confetti(Object.assign({}, defaults, { particleCount, origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 } })); + confetti(Object.assign({}, defaults, { particleCount, origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 } })); + }, 250); + + // Redirect after 15s + setTimeout(() => { + window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; + }, 15000); + }); +}); diff --git a/index.php b/index.php index 7205f3d..bb8bc88 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,55 @@ - - - New Style - - - - - - - - - - - - - - - - - - - + + + Gvantsa, would you be my valentine? + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

+ +
+
+

Gvantsa, would you be my valentine?

+ +
+ Click to upload our photo ❤️ + Valentine Image +
+ + +
+ + +
+
+ +
+

Congratulations, you are now Sam's Valentine! ❤️

+

He is so incredibly lucky to have someone in his life who would click yes.

+
Redirecting you to a special surprise in 15 seconds...
+
-
- + + + - + \ No newline at end of file