albrecht-soil-analysis.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?php
  2. /**
  3. * albrecht-soil-analysis.php
  4. *
  5. * Public marketing/landing page for Albrecht Soil Analysis service.
  6. * No authentication required.
  7. */
  8. if (session_status() === PHP_SESSION_NONE) {
  9. session_start();
  10. }
  11. $pageTitle = 'Albrecht Soil Analysis';
  12. $pageIntro = 'Crop Monitor uses the Albrecht Method to balance your soil for maximum production.';
  13. $pageDesc = 'Comprehensive soil analysis reports for Australian conditions.';
  14. $siteName = 'Crop Monitor';
  15. $h = fn($v) => htmlspecialchars((string) $v, ENT_QUOTES, 'UTF-8');
  16. // Handle newsletter subscription (stub — configure MailChimp API separately)
  17. $newsletterSuccess = false;
  18. $newsletterError = '';
  19. if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newsletter-submit'])) {
  20. $nEmail = filter_var(trim($_POST['email'] ?? ''), FILTER_VALIDATE_EMAIL);
  21. $nName = trim($_POST['name'] ?? '');
  22. if ($nEmail && $nName) {
  23. // TODO: integrate MailChimp API or SMTP
  24. $newsletterSuccess = true;
  25. } else {
  26. $newsletterError = 'Please provide a valid name and email address.';
  27. }
  28. }
  29. // Handle contact form (stub — configure SMTP separately)
  30. $contactSuccess = false;
  31. $contactError = '';
  32. if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['enquiry-submit'])) {
  33. $cEmail = filter_var(trim($_POST['email'] ?? ''), FILTER_VALIDATE_EMAIL);
  34. $cName = trim($_POST['name'] ?? '');
  35. $cText = trim($_POST['text'] ?? '');
  36. if ($cEmail && $cName && $cText) {
  37. // TODO: send via PHPMailer/SMTP to enquiries@cropmonitor.info
  38. $contactSuccess = true;
  39. } else {
  40. $contactError = 'Please fill in all fields with a valid email address.';
  41. }
  42. }
  43. ?>
  44. <!doctype html>
  45. <html lang="en">
  46. <head>
  47. <meta charset="UTF-8">
  48. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  49. <meta name="keywords" content="<?= $h($pageIntro) ?>">
  50. <meta name="description" content="<?= $h($pageDesc) ?>">
  51. <title><?= $h($pageTitle) ?> | <?= $h($siteName) ?></title>
  52. <link rel="icon" href="/client-assets/images/favicon.ico?v=2" type="image/x-icon">
  53. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
  54. <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.css" crossorigin="anonymous" rel="stylesheet">
  55. <link rel="stylesheet" href="/client-assets/css/greyscale.css">
  56. <style>
  57. .carousel-item {
  58. height: 65vh;
  59. min-height: 250px;
  60. background: no-repeat center center scroll;
  61. background-size: cover;
  62. }
  63. .nav-link { text-align: center; font-weight: bold; }
  64. .slideOne { background-image: linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.25)), url('/client-assets/FredTemplate/images/g6.jpg'); background-size: cover; }
  65. .slideTwo { background-image: linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.25)), url('/client-assets/FredTemplate/images/g7.jpg'); background-size: cover; }
  66. .slideThree { background-image: linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.25)), url('/client-assets/FredTemplate/images/g3.jpg'); background-size: cover; }
  67. </style>
  68. </head>
  69. <body>
  70. <!-- Navigation -->
  71. <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
  72. <div class="container">
  73. <a class="navbar-brand js-scroll-trigger" href="#">
  74. <img src="/client-assets/images/favicon.ico" width="30" height="30" class="d-inline-block align-top" alt="">
  75. Crop Monitor
  76. </a>
  77. <button class="navbar-toggler" type="button"
  78. data-bs-toggle="collapse" data-bs-target="#navbarResponsive"
  79. aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  80. <span class="navbar-toggler-icon"></span>
  81. </button>
  82. <div class="collapse navbar-collapse" id="navbarResponsive">
  83. <form class="d-none d-md-block mx-auto">
  84. <button class="btn btn-sm btn-outline-success" type="button">
  85. Try <?= $h($pageTitle) ?> Free
  86. </button>
  87. </form>
  88. <ul class="navbar-nav ms-auto">
  89. <li class="nav-item"><a class="nav-link" href="#about">About</a></li>
  90. <li class="nav-item"><a class="nav-link" href="#blog">Blog</a></li>
  91. <li class="nav-item"><a class="nav-link" href="#contact">Contact Us</a></li>
  92. <li class="nav-item"><a class="nav-link" href="/login/login.php">Login</a></li>
  93. <li class="nav-item"><a class="nav-link text-dark" href="#"><i class="fab fa-facebook-f"></i></a></li>
  94. <li class="nav-item"><a class="nav-link text-dark" href="#"><i class="fab fa-twitter"></i></a></li>
  95. <li class="nav-item"><a class="nav-link text-dark" href="#"><i class="fab fa-instagram"></i></a></li>
  96. </ul>
  97. </div>
  98. </div>
  99. </nav>
  100. <!-- Hero Carousel -->
  101. <header>
  102. <div id="carouselLandingPage" class="carousel slide" data-bs-ride="carousel">
  103. <div class="carousel-indicators">
  104. <button type="button" data-bs-target="#carouselLandingPage" data-bs-slide-to="0" class="active" aria-current="true"></button>
  105. <button type="button" data-bs-target="#carouselLandingPage" data-bs-slide-to="1"></button>
  106. <button type="button" data-bs-target="#carouselLandingPage" data-bs-slide-to="2"></button>
  107. </div>
  108. <div class="carousel-inner">
  109. <div class="carousel-item active slideOne">
  110. <div class="carousel-caption text-start">
  111. <div class="row">
  112. <div class="col-md-9">
  113. <h2 class="fw-bold"><?= $h($pageTitle) ?></h2>
  114. <p class="lead col-12 col-md-6"><?= $h($pageIntro) ?></p>
  115. <p class="col-12 col-md-6 fst-italic d-none d-md-block"><?= $h($pageDesc) ?></p>
  116. <a href="#signup" class="btn btn-outline-success">Get a Free Soil Report now!</a>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="carousel-item slideTwo">
  122. <div class="carousel-caption text-start">
  123. <div class="row">
  124. <div class="col-md-8">
  125. <h2 class="fw-bold">Balanced Soil, Better Yields</h2>
  126. <p class="lead col-12 col-md-6">Correct cation balance improves soil chemistry and physical structure.</p>
  127. <a href="#signup" class="btn btn-outline-success">Get a Free Soil Report now!</a>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="carousel-item slideThree">
  133. <div class="carousel-caption text-start">
  134. <div class="row">
  135. <div class="col-md-8">
  136. <h2 class="fw-bold">Feed the Soil, Feed the Plant</h2>
  137. <p class="lead col-12 col-md-6">Real-time monitoring for Australian conditions.</p>
  138. <a href="#signup" class="btn btn-outline-success">Get a Free Soil Report now!</a>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <button class="carousel-control-prev" type="button" data-bs-target="#carouselLandingPage" data-bs-slide="prev">
  145. <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  146. <span class="visually-hidden">Previous</span>
  147. </button>
  148. <button class="carousel-control-next" type="button" data-bs-target="#carouselLandingPage" data-bs-slide="next">
  149. <span class="carousel-control-next-icon" aria-hidden="true"></span>
  150. <span class="visually-hidden">Next</span>
  151. </button>
  152. </div>
  153. </header>
  154. <!-- About Section -->
  155. <section id="about" class="py-5">
  156. <div class="container">
  157. <h2 class="text-success">Albrecht Soil Analysis</h2>
  158. <hr>
  159. <blockquote class="blockquote text-center">
  160. <p class="mb-0">The soil is the '<i>creative material</i>' of most of the basic needs of life. Creation starts with a handful of dust.</p>
  161. <footer class="blockquote-footer">Dr. William A. Albrecht. <cite>University of Missouri</cite></footer>
  162. </blockquote>
  163. <hr>
  164. <div class="row row-cols-1 row-cols-md-3 g-4">
  165. <div class="col">
  166. <div class="card border-success text-center h-100">
  167. <div class="card-body">
  168. <h2 class="card-title">Physical</h2>
  169. <i class="fas fa-atom fa-3x mb-2"></i>
  170. <p class="card-text">When you correct cation balance, you have addressed soil chemistry, which improves the physical structure of the soil.</p>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="col">
  175. <div class="card border-success text-center h-100">
  176. <div class="card-body">
  177. <h2 class="card-title">Chemical</h2>
  178. <i class="fas fa-flask fa-3x mb-2"></i>
  179. <p class="card-text">The correction of cation balance and the provision of minimum levels of micronutrients takes care of the chemical part of soil productivity and health.</p>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="col">
  184. <div class="card border-success text-center h-100">
  185. <div class="card-body">
  186. <h2 class="card-title">Biological</h2>
  187. <i class="fas fa-bug fa-3x mb-2"></i>
  188. <p class="card-text">The essential understanding involves a recognition that the purpose of cation balancing is to stimulate soil biology, and much of the beneficial response relates to firing up this workforce.</p>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. <hr>
  194. </div>
  195. </section>
  196. <!-- Services Section -->
  197. <section id="services" class="projects-section bg-light pt-2">
  198. <div class="container py-4">
  199. <h3 class="text-center mb-4">Our Services</h3>
  200. <div class="row row-cols-1 row-cols-md-3 g-4">
  201. <div class="col">
  202. <div class="card h-100 border-success">
  203. <div class="card-body">
  204. <h5 class="card-title">Soil Analysis</h5>
  205. <p class="card-text">Comprehensive Albrecht Method soil testing with detailed nutrient balance reports.</p>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="col">
  210. <div class="card h-100 border-success">
  211. <div class="card-body">
  212. <h5 class="card-title">Plant Tissue Analysis</h5>
  213. <p class="card-text">Identify nutrient deficiencies in your crops with laboratory-accurate tissue testing.</p>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="col">
  218. <div class="card h-100 border-success">
  219. <div class="card-body">
  220. <h5 class="card-title">Water Quality Analysis</h5>
  221. <p class="card-text">Test irrigation and drinking water for optimal farm management.</p>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </section>
  228. <section class="bg-dark text-light py-5" id="blog">
  229. <div class="container">
  230. <p class="lead">Dr. Albrecht saw a direct link between soil quality and food quality, drawing a direct connection between poor quality forage crops and ill health in livestock.</p>
  231. </div>
  232. </section>
  233. <section class="py-5" id="contact-info">
  234. <div class="container">
  235. <p class="lead">Feed the soil to feed the plant is a vital concept of the Albrecht Model of soil building.</p>
  236. </div>
  237. </section>
  238. <!-- Newsletter Signup Section -->
  239. <section id="signup" class="signup-section">
  240. <div class="container">
  241. <div class="row">
  242. <div class="col-md-10 col-lg-8 mx-auto text-center">
  243. <i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
  244. <h2 class="text-white mb-5">Subscribe to receive updates!</h2>
  245. <?php if ($newsletterSuccess): ?>
  246. <h2 class="text-white mb-5">Thank you for subscribing!</h2>
  247. <?php elseif ($newsletterError): ?>
  248. <div class="alert alert-warning"><?= $h($newsletterError) ?></div>
  249. <?php endif; ?>
  250. <form action="#signup" method="post" class="d-flex flex-wrap gap-2 justify-content-center">
  251. <input type="hidden" name="nospam" value="">
  252. <input class="form-control flex-fill" type="email" name="email" placeholder="Email Address"
  253. value="<?= $h($_POST['email'] ?? '') ?>">
  254. <input class="form-control flex-fill" type="text" name="name" placeholder="Full Name"
  255. value="<?= $h($_POST['name'] ?? '') ?>">
  256. <button type="submit" name="newsletter-submit" class="btn btn-success">Subscribe</button>
  257. </form>
  258. </div>
  259. </div>
  260. </div>
  261. </section>
  262. <!-- Contact Section -->
  263. <section id="contact" class="contact-section bg-black">
  264. <div class="container py-5">
  265. <div class="row mb-4">
  266. <div class="col-md-4 mb-3 mb-md-0">
  267. <div class="card py-4 h-100">
  268. <div class="card-body text-center">
  269. <i class="fas fa-map-marked-alt text-primary mb-2"></i>
  270. <h4 class="text-uppercase m-0">Address</h4>
  271. <hr class="my-4">
  272. <div class="small text-muted">34 Coplestone Street,<br>Scottsdale, Tasmania 7260</div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="col-md-4 mb-3 mb-md-0">
  277. <div class="card py-4 h-100">
  278. <div class="card-body text-center">
  279. <i class="fas fa-envelope text-primary mb-2"></i>
  280. <h4 class="text-uppercase m-0">Email</h4>
  281. <hr class="my-4">
  282. <div class="small text-muted">
  283. <a href="mailto:enquiry@cropmonitor.info">enquiry@cropmonitor.info</a>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. <div class="col-md-4 mb-3 mb-md-0">
  289. <div class="card py-4 h-100">
  290. <div class="card-body text-center">
  291. <i class="fas fa-mobile-alt text-primary mb-2"></i>
  292. <h4 class="text-uppercase m-0">Phone</h4>
  293. <hr class="my-4">
  294. <div class="small text-muted">0417 728 061</div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. <div class="row">
  300. <div class="col">
  301. <div class="card py-4 h-100">
  302. <div class="card-body text-center">
  303. <i class="fas fa-paper-plane text-primary mb-2"></i>
  304. <h4 class="text-uppercase m-0">Contact Us</h4>
  305. <hr class="my-4">
  306. <?php if ($contactSuccess): ?>
  307. <div class="alert alert-success">Thank you for contacting us, we will be in touch soon.</div>
  308. <?php elseif ($contactError): ?>
  309. <div class="alert alert-warning"><?= $h($contactError) ?></div>
  310. <?php endif; ?>
  311. <form action="#contact" method="post" class="d-flex flex-wrap gap-2 justify-content-center">
  312. <input type="hidden" name="nospam" value="">
  313. <input class="form-control form-control-sm flex-fill" type="email" name="email"
  314. placeholder="Email Address" value="<?= $h($_POST['email'] ?? '') ?>">
  315. <input class="form-control form-control-sm flex-fill" type="text" name="name"
  316. placeholder="Full Name" value="<?= $h($_POST['name'] ?? '') ?>">
  317. <textarea class="form-control form-control-sm flex-fill" name="text" rows="1"
  318. placeholder="Your enquiry is about..."><?= $h($_POST['text'] ?? '') ?></textarea>
  319. <button type="submit" name="enquiry-submit" class="btn btn-sm btn-success">Submit</button>
  320. </form>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. </section>
  327. <!-- Footer -->
  328. <footer class="footer bg-dark py-2 text-center text-white-50">
  329. <div class="container">
  330. &copy; <?= date('Y') ?> Crop Monitor. All Rights Reserved.
  331. </div>
  332. </footer>
  333. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
  334. </body>
  335. </html>