diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..9240ce6 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,136 @@ + +/* General & Typography */ +body { + font-family: 'Helvetica', 'Arial', sans-serif; + color: #212529; + background-color: #f8f9fa; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Georgia', 'Times New Roman', Times, serif; + font-weight: 700; +} + +.fw-medium { + font-weight: 500; +} + +/* Navbar */ +.navbar { + transition: background-color 0.3s ease-in-out; +} + +.navbar-brand { + font-family: 'Georgia', 'Times New Roman', Times, serif; + font-weight: bold; +} + +/* Hero Section */ +.hero { + padding: 6rem 0; + background-color: #f8f9fa; + background-image: linear-gradient(135deg, rgba(44, 110, 73, 0.05) 0%, rgba(255, 255, 255, 0) 100%); +} + +.hero h1 { + font-size: 3.5rem; +} + +.hero .lead { + font-size: 1.25rem; + color: #495057; +} + +/* Buttons */ +.btn-primary { + background-color: #2c6e49; + border-color: #2c6e49; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + transition: background-color 0.2s, border-color 0.2s; +} + +.btn-primary:hover, .btn-primary:focus { + background-color: #1e4932; + border-color: #1e4932; +} + +.btn-secondary { + background-color: #fe7f2d; + border-color: #fe7f2d; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + color: #fff; + transition: background-color 0.2s, border-color 0.2s; +} + +.btn-secondary:hover, .btn-secondary:focus { + background-color: #e46815; + border-color: #e46815; + color: #fff; +} + + +/* Sections */ +section { + padding: 5rem 0; +} + +.section-title { + font-size: 2.5rem; + margin-bottom: 3rem; + text-align: center; +} + +/* Service Section */ +.service-card { + border: none; + border-radius: 0.5rem; + padding: 2rem; + background-color: #ffffff; + box-shadow: 0 4px 15px rgba(0,0,0,0.05); + transition: transform 0.3s, box-shadow 0.3s; + height: 100%; +} + +.service-card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 25px rgba(0,0,0,0.1); +} + +.service-icon { + font-size: 3rem; + color: #2c6e49; + margin-bottom: 1.5rem; +} + +/* About Section */ +#about { + background-color: #ffffff; +} + +#about img { + border-radius: 0.5rem; +} + +/* Contact Section */ +#contact { + background-color: #f8f9fa; +} + +.form-control { + border-radius: 0.5rem; + padding: 0.75rem; +} + +.form-control:focus { + border-color: #2c6e49; + box-shadow: 0 0 0 0.25rem rgba(44, 110, 73, 0.25); +} + +/* Footer */ +.footer { + background-color: #212529; + color: #f8f9fa; + padding: 2rem 0; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..4b3a49e --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,23 @@ +document.addEventListener('DOMContentLoaded', function() { + // Smooth scrolling for anchor links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Navbar shrink on scroll + const navbar = document.querySelector('.navbar'); + if (navbar) { + window.addEventListener('scroll', () => { + if (window.scrollY > 50) { + navbar.classList.add('bg-white', 'shadow-sm'); + } else { + navbar.classList.remove('bg-white', 'shadow-sm'); + } + }); + } +}); diff --git a/contact.php b/contact.php new file mode 100644 index 0000000..03673d7 --- /dev/null +++ b/contact.php @@ -0,0 +1,53 @@ +New Contact Form Submission"; + $html_content .= "

Name: " . htmlspecialchars($name) . "

"; + $html_content .= "

Email: " . htmlspecialchars($email) . "

"; + $html_content .= "

Message:
" . nl2br(htmlspecialchars($message)) . "

"; + + $text_content = "New Contact Form Submission\n"; + $text_content .= "Name: " . $name . "\n"; + $text_content .= "Email: " . $email . "\n"; + $text_content .= "Message:\n" . $message . "\n"; + + $options = [ + 'reply_to' => $email, + 'from_name' => $name + ]; + + $result = MailService::sendMail($to, $subject, $html_content, $text_content, $options); + + if (!empty($result['success'])) { + header("Location: index.php?status=success#contact"); + exit; + } else { + error_log("MailService Error: " . ($result['error'] ?? 'Unknown error')); + header("Location: index.php?status=error&msg=Could+not+send+message#contact"); + exit; + } +} else { + header("Location: index.php"); + exit; +} diff --git a/index.php b/index.php index 7205f3d..654845f 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,152 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + + <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'AgriTrade Connect'); ?> + + + + + + + + + + + + + + + + -
-
-

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

-
-
- + + + + + +
+
+

Connecting Farmers to the Future of Trade

+

We build powerful online marketplaces for agricultural commodities and create winning strategies for agri-businesses to capture new leads.

+ Request a Consultation +
+
+ + +
+
+

Our Services

+
+
+
+ +

Marketplace Development

+

We build robust, scalable online marketplaces for farmers to sell their produce directly to buyers, ensuring fair prices and wide reach.

+
+
+
+
+ +

Lead Generation

+

Our digital marketing strategies for agri-businesses are designed to attract, engage, and convert high-quality leads.

+
+
+
+
+ +

Agri-Tech Consulting

+

Leverage our expertise to integrate modern technology into your agricultural business for improved efficiency and growth.

+
+
+
+
+
+ + +
+
+
+
+ Lush green field +
+
+

Our Mission

+

Our mission is to empower farmers and agricultural businesses through technology. We believe in creating transparent, efficient, and profitable connections that strengthen the entire agricultural value chain.

+

From custom software solutions to targeted digital marketing, we are dedicated to helping our clients thrive in a rapidly evolving industry. We are more than a service provider; we are your partner in growth.

+
+
+
+
+ + +
+
+

Get in Touch

+
+
+ + + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+
+
+ + + + + + + - + \ No newline at end of file