From c2ab75f97dc1dcacb480359c6fcc99d8edb53225 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Fri, 22 May 2026 12:52:49 +0000 Subject: [PATCH] Initial commit --- .gitignore | 5 + contact.php | 139 ++++++++++ index.html | 751 ++++++++++++++++++++++++++++++++++++++++++++++++++++ robots.txt | 4 + sitemap.xml | 12 + 5 files changed, 911 insertions(+) create mode 100644 .gitignore create mode 100644 contact.php create mode 100644 index.html create mode 100644 robots.txt create mode 100644 sitemap.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c90ad4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.log +.DS_Store +*.swp + +uploads/ diff --git a/contact.php b/contact.php new file mode 100644 index 0000000..98309b7 --- /dev/null +++ b/contact.php @@ -0,0 +1,139 @@ + false, 'error' => 'Method not allowed']); + exit; +} + +// ── CONFIG ──────────────────────────────────────────────────────────── +define('SENDGRID_API_KEY', 'SG.YOUR_KEY_HERE'); // <-- replace with your SendGrid API key +define('MAIL_FROM', 'noreply@parkerslingshotrentals.com'); +define('MAIL_FROM_NAME', 'Parker County Slingshot Rentals'); +define('ADMIN_EMAIL', 'info@parkerslingshotrentals.com'); // where booking alerts go +// ───────────────────────────────────────────────────────────────────── + +$input = json_decode(file_get_contents('php://input'), true); +if (!$input) { $input = $_POST; } + +$name = trim(strip_tags($input['name'] ?? '')); +$email = trim(strip_tags($input['email'] ?? '')); +$phone = trim(strip_tags($input['phone'] ?? '')); +$package = trim(strip_tags($input['package'] ?? '')); +$date = trim(strip_tags($input['date'] ?? '')); +$message = trim(strip_tags($input['message'] ?? '')); + +// Basic validation +if (!$name || !$email || !$package || !$date) { + http_response_code(400); + echo json_encode(['success' => false, 'error' => 'Name, email, package, and date are required.']); + exit; +} +if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { + http_response_code(400); + echo json_encode(['success' => false, 'error' => 'Invalid email address.']); + exit; +} + +$packages = [ + 'half-day' => 'Half Day (4 hrs) — $99', + 'full-day' => 'Full Day (8 hrs) — $169', + 'weekend' => 'Weekend (48 hrs) — $299', +]; +$packageLabel = $packages[$package] ?? ucfirst($package); +$dateFormatted = date('F j, Y', strtotime($date)); + +// ── SEND ADMIN ALERT ────────────────────────────────────────────────── +$adminHtml = ' +
+
+

New Booking Request!

+

Parker County Slingshot Rentals

+
+
+ + + + + + + + + + + +
Name' . htmlspecialchars($name) . '
Email' . htmlspecialchars($email) . '
Phone' . (htmlspecialchars($phone) ?: 'not provided') . '
Package' . htmlspecialchars($packageLabel) . '
Date' . htmlspecialchars($dateFormatted) . '
+ ' . ($message ? '

' . nl2br(htmlspecialchars($message)) . '

' : '') . ' +

Submitted ' . date('F j, Y \a\t g:i A') . ' CT

+
+
'; + +// ── SEND CUSTOMER CONFIRMATION ──────────────────────────────────────── +$confirmHtml = ' +
+
+

Parker County Slingshot Rentals

+
+
+

Booking Request Received!

+

Hey ' . htmlspecialchars($name) . ', we got your request and will confirm availability within a few hours.

+
+

Your Request Summary

+

Package: ' . htmlspecialchars($packageLabel) . '

+

Requested Date: ' . htmlspecialchars($dateFormatted) . '

+
+

We\'ll reach out to you at ' . htmlspecialchars($email) . '' . ($phone ? ' or ' . htmlspecialchars($phone) . '' : '') . ' to confirm your ride.

+

Questions? Call or text us at (817) 555-0199.

+

Ride on,
The Parker County Slingshot Team

+
+
+

© ' . date('Y') . ' Parker County Slingshot Rentals — Weatherford, TX

+
+
'; + +function sendgridSend(string $toEmail, string $toName, string $subject, string $html): bool { + $payload = json_encode([ + 'personalizations' => [['to' => [['email' => $toEmail, 'name' => $toName]]]], + 'from' => ['email' => MAIL_FROM, 'name' => MAIL_FROM_NAME], + 'subject' => $subject, + 'content' => [['type' => 'text/html', 'value' => $html]], + ]); + + $ch = curl_init('https://api.sendgrid.com/v3/mail/send'); + curl_setopt_array($ch, [ + CURLOPT_RETURNTRANSFER => true, + CURLOPT_POST => true, + CURLOPT_POSTFIELDS => $payload, + CURLOPT_HTTPHEADER => [ + 'Authorization: Bearer ' . SENDGRID_API_KEY, + 'Content-Type: application/json', + ], + CURLOPT_TIMEOUT => 20, + CURLOPT_SSL_VERIFYPEER => false, + ]); + $response = curl_exec($ch); + $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + return $code === 202; +} + +$apiKey = SENDGRID_API_KEY; +if ($apiKey && strpos($apiKey, 'YOUR_KEY') === false) { + sendgridSend(ADMIN_EMAIL, 'Parker Slingshot Admin', + "New Booking Request: {$name} — {$packageLabel} on {$dateFormatted}", $adminHtml); + sendgridSend($email, $name, + "Booking Request Confirmed — Parker County Slingshot", $confirmHtml); +} else { + error_log('[Parker Slingshot] SENDGRID_API_KEY not configured'); +} + +echo json_encode(['success' => true, 'message' => 'Booking request received! We\'ll be in touch shortly.']); diff --git a/index.html b/index.html new file mode 100644 index 0000000..100224c --- /dev/null +++ b/index.html @@ -0,0 +1,751 @@ + + + + + + Parker County Slingshot Rentals | Polaris Slingshot | Weatherford, TX + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +

Built for the Thrill-Seeker

+

Everything you need for an unforgettable open-road experience — no hassle, just pure adrenaline.

+
+
+
🏎️
+

Polaris Slingshot SL

+

Our fleet features the latest Polaris Slingshot models — powerful, fast, and impossible to ignore on Texas roads.

+
+
+
🛡️
+

Full Coverage Insurance

+

Every rental includes comprehensive coverage. Drive with confidence knowing you're fully protected.

+
+
+
🗺️
+

Scenic Route Guides

+

We hand you a curated Texas route map — the best backroads, vistas, and stops around Parker County.

+
+
+
⛑️
+

Safety First

+

DOT-approved helmets included with every rental. Safety orientation for all drivers before you hit the road.

+
+
+
📞
+

Roadside Assistance

+

24/7 roadside support so you're never stranded. We've got your back from pickup to return.

+
+
+
+

Easy Booking

+

Simple online reservation, flexible pickup times, and transparent pricing. No hidden fees — ever.

+
+
+
+
+ + +
+
+ +

Pick Your Adventure

+

Transparent pricing. No surprise fees. Just you, the open road, and a machine that turns heads.

+
+
+

Half Day

+

$99

+

4 hours of freedom

+
    +
  • Polaris Slingshot SL
  • +
  • DOT helmets included
  • +
  • Safety orientation
  • +
  • Route map & guide
  • +
  • Full insurance coverage
  • +
  • Roadside assistance
  • +
+ Book Half Day +
+ +
+

Weekend

+

$299

+

48-hour getaway

+
    +
  • Polaris Slingshot SL
  • +
  • DOT helmets included
  • +
  • Safety orientation
  • +
  • Route map & guide
  • +
  • Full insurance coverage
  • +
  • 24/7 roadside assistance
  • +
+ Book Weekend +
+
+

Must be 25+ with valid driver's license. Security deposit required. Prices include tax.

+
+
+ + +
+
+ +

Ready in 4 Simple Steps

+

From booking to keys in hand — we make it effortless so you can focus on the fun.

+
+
+
1
+

Choose Your Package

+

Half day, full day, or weekend — pick the adventure that fits your schedule and budget.

+
+
+
2
+

Book & Confirm

+

Fill out our simple booking form or give us a call. We'll confirm your reservation within 24 hours.

+
+
+
3
+

Show Up & Roll Out

+

Arrive at pickup, complete your safety briefing, grab your helmets and route map, and hit the road.

+
+
+
4
+

Return & Relive

+

Return the Slingshot at the agreed time. Tell everyone about the best day you've had in Texas.

+
+
+
+
+ + +
+
+ +

Texas Roads Worth Driving

+

We know the best roads. Every rental comes with a recommended route guide — here's a taste.

+
+
+

The Parker County Loop

+

~45 miles • 1.5 hrs

+

Roll through Weatherford's historic downtown, Millsap, and back through the rolling Texas plains. The perfect intro ride.

+
+
+

Possum Kingdom Run

+

~80 miles • 2.5 hrs

+

Head northwest toward Mineral Wells and Possum Kingdom Lake. Hill Country scenery, lake views, and open highway.

+
+
+

Granbury & Glen Rose

+

~70 miles • 2 hrs

+

Cruise south to the charming Granbury square and dinosaur country in Glen Rose. Great for couples and history lovers.

+
+
+

DFW Sunset Cruise

+

~60 miles • 2 hrs

+

Head east toward the Fort Worth skyline at golden hour, loop through Azle and back. City lights in an open cockpit.

+
+
+
+
+ + +
+
+ +

Questions & Answers

+

Everything you need to know before you book.

+
+
+ Do I need a motorcycle license to rent a Polaris Slingshot in Texas? +

In Texas, a standard Class C driver's license is all you need. No motorcycle endorsement required. You must be 25 or older with a clean driving record to rent.

+
+
+ What's included in every rental? +

Every rental includes the Polaris Slingshot, DOT-approved helmets for driver and passenger, a safety orientation, a suggested scenic route map, roadside assistance, and comprehensive insurance coverage.

+
+
+ How many people can ride in a Polaris Slingshot? +

The Polaris Slingshot is a two-seater — one driver and one passenger. Both experience the open-air thrill side by side in sports-car-style seats.

+
+
+ Is there a security deposit? +

Yes, a refundable security deposit is required at the time of pickup. The deposit is returned in full upon safe return of the vehicle with no damage.

+
+
+ Can I drive outside of Parker County? +

Yes — you can drive throughout the DFW area including Weatherford, Mineral Wells, Granbury, Azle, and Fort Worth. We'll note any restrictions in your rental agreement.

+
+
+ What if it rains? +

The Polaris Slingshot can be driven in light rain, but we recommend rescheduling in severe weather for your safety and comfort. We offer flexible rescheduling with 24-hour notice.

+
+
+ How do I cancel or reschedule? +

Cancel or reschedule free of charge up to 24 hours before your rental start time. Cancellations within 24 hours are subject to a 50% fee.

+
+
+
+
+ + +
+
+
+
+ +

Ready to Ride?

+

Send us your preferred date and package and we'll confirm availability within a few hours. Can't wait? Give us a call.

+
+ 📍 + Weatherford, TX 76086
(Exact pickup address provided at booking)
+
+
+ 📞 + (817) 555-0199 +
+ +
+ 🕐 + Mon–Fri: 9am–6pm • Sat–Sun: 8am–8pm +
+
+
+
+
+ + +
+ + + + + +
+
+
+
+
+
+ + + + + + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..e4f0436 --- /dev/null +++ b/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://parkerslingshotrentals.com/sitemap.xml diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..c86c01b --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,12 @@ + + + + https://parkerslingshotrentals.com/ + 2026-05-19 + weekly + 1.0 + +