From 58f488fb4810f73b7439143b84bfd2c5c66bdff3 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 1 Oct 2025 13:07:29 +0000 Subject: [PATCH] Top up --- assets/css/custom.css | 56 ++++ assets/js/main.js | 36 +++ contact.php | 36 +++ .../001_create_contact_submissions.sql | 7 + index.php | 287 +++++++++--------- privacy.php | 16 + 6 files changed, 292 insertions(+), 146 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 assets/js/main.js create mode 100644 contact.php create mode 100644 db/migrations/001_create_contact_submissions.sql create mode 100644 privacy.php diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..e8ed641 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,56 @@ + +body { + font-family: 'Helvetica Neue', Arial, sans-serif; + background-color: #F8F9FA; + color: #212529; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Georgia', 'Times New Roman', serif; +} + +.navbar { + background-color: rgba(255, 255, 255, 0.8); + backdrop-filter: blur(10px); +} + +.hero { + background: url('https://picsum.photos/seed/lionff-hero/1600/900') no-repeat center center; + background-size: cover; + color: white; + padding: 100px 0; + text-align: center; +} + +.hero h1 { + font-size: 4rem; + font-weight: bold; +} + +.btn-primary { + background-color: #FFD700; + border-color: #FFD700; + color: #212529; + padding: 15px 30px; + font-size: 1.2rem; + border-radius: 50px; + transition: all 0.3s ease; +} + +.btn-primary:hover { + background-color: #e6c300; + border-color: #e6c300; + transform: translateY(-2px); + box-shadow: 0 4px 8px rgba(0,0,0,0.1); +} + +section { + padding: 60px 0; +} + +.card { + border: none; + border-radius: 15px; + box-shadow: 0 10px 30px rgba(0,0,0,0.1); + overflow: hidden; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..a17b42d --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,36 @@ + +document.addEventListener('DOMContentLoaded', function () { + const contactForm = document.getElementById('contactForm'); + if (contactForm) { + contactForm.addEventListener('submit', function (event) { + event.preventDefault(); + event.stopPropagation(); + + if (contactForm.checkValidity() === false) { + contactForm.classList.add('was-validated'); + return; + } + + const formData = new FormData(contactForm); + const notification = document.getElementById('form-notification'); + + fetch('contact.php', { + method: 'POST', + body: formData + }) + .then(response => response.json()) + .then(data => { + if (data.success) { + notification.innerHTML = `
${data.message}
`; + contactForm.reset(); + contactForm.classList.remove('was-validated'); + } else { + notification.innerHTML = `
${data.message}
`; + } + }) + .catch(error => { + notification.innerHTML = `
An error occurred. Please try again.
`; + }); + }); + } +}); diff --git a/contact.php b/contact.php new file mode 100644 index 0000000..8e0d1b6 --- /dev/null +++ b/contact.php @@ -0,0 +1,36 @@ + + false, 'message' => 'Invalid input. Please check your fields and try again.']); + exit; + } + + require_once __DIR__ . '/db/config.php'; + + try { + $pdo = db(); + $sql = "INSERT INTO contact_submissions (name, email, message) VALUES (?, ?, ?)"; + $stmt = $pdo->prepare($sql); + $stmt->execute([$name, $email, $message]); + + // Optionally send an email notification + require_once __DIR__ . '/mail/MailService.php'; + $admin_email = getenv('ADMIN_EMAIL') ?: 'umre6456@gmail.com'; + MailService::sendContactMessage($name, $email, $message, $admin_email, "New Contact Form Submission"); + + echo json_encode(['success' => true, 'message' => 'Thank you for your message! We will get back to you shortly.']); + } catch (PDOException $e) { + // In a real app, you would log this error + echo json_encode(['success' => false, 'message' => 'There was an error processing your request. Please try again later.']); + } +} else { + header("HTTP/1.1 403 Forbidden"); + echo "You are not allowed to access this page."; +} diff --git a/db/migrations/001_create_contact_submissions.sql b/db/migrations/001_create_contact_submissions.sql new file mode 100644 index 0000000..0a0c46c --- /dev/null +++ b/db/migrations/001_create_contact_submissions.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS contact_submissions ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(255) NOT NULL, + email VARCHAR(255) NOT NULL, + message TEXT NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); \ No newline at end of file diff --git a/index.php b/index.php index 7205f3d..71e62ca 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,145 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Top up game lionff + + + + + + + + + + - -
-
-

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

-
-
- + + + + +
+
+

Lion FF

+

Simplify game top-ups with ease across all platforms.

+ Get Started +
+
+ +
+
+
+
+

About Us

+

Lion FF is your one-stop shop for topping up your favorite games. We provide a fast, secure, and easy way to purchase in-game currency and items for a wide variety of mobile and PC games.

+
+
+ About Lion FF +
+
+
+
+ +
+
+

Featured Games

+
+
+
+ Top up for popular mobile game +
+
Mobile Legends
+

Top up Diamonds for Mobile Legends: Bang Bang.

+
+
+
+
+
+ Top up for popular PC game +
+
Valorant
+

Top up Valorant Points for Riot Games' tactical shooter.

+
+
+
+
+
+
+ +
+
+

What Our Users Say

+
+
+

"The best and fastest top-up service I've ever used!"

+

- User A

+
+
+

"So easy to use and very reliable. Highly recommended."

+

- User B

+
+
+

"I love the wide range of games available for top-up."

+

- User C

+
+
+
+
+ +
+
+

Contact Us

+
+
+
+
+
+ + +
Please enter your name.
+
+
+ + +
Please enter a valid email address.
+
+
+ + +
Please enter your message.
+
+ +
+
+
+
+
+ + + + + - + \ No newline at end of file diff --git a/privacy.php b/privacy.php new file mode 100644 index 0000000..c3a4fbc --- /dev/null +++ b/privacy.php @@ -0,0 +1,16 @@ + + + + + + Privacy Policy - Lion FF + + + +
+

Privacy Policy

+

This is a placeholder for your privacy policy.

+ Go back to Home +
+ + \ No newline at end of file