diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..d71148f --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,65 @@ + +body { + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + scroll-behavior: smooth; +} + +h1, h2, h3, h4, h5, h6, .navbar-brand { + font-family: Georgia, 'Times New Roman', Times, serif; +} + +.hero { + position: relative; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + color: white; + padding: 100px 0; +} + +.hero::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(10, 35, 66, 0.75); /* Dark blue overlay for readability */ + z-index: 1; +} + +.hero .container { + position: relative; + z-index: 2; +} + + +.navbar-dark .navbar-nav .nav-link { + color: rgba(255, 255, 255, .8); +} + +.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { + color: white; +} + +.section-bg { + background-color: #f8f9fa; +} + +section { + padding: 80px 0; +} + +.card { + border: none; + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 4px 20px rgba(0,0,0,.1); +} + +hr { + opacity: 0.5; +} diff --git a/assets/images/pexels/company-16361347.jpg b/assets/images/pexels/company-16361347.jpg new file mode 100644 index 0000000..4135cb7 Binary files /dev/null and b/assets/images/pexels/company-16361347.jpg differ diff --git a/assets/images/pexels/company-32399139.jpg b/assets/images/pexels/company-32399139.jpg new file mode 100644 index 0000000..0f02723 Binary files /dev/null and b/assets/images/pexels/company-32399139.jpg differ diff --git a/assets/images/pexels/company-35267135.jpg b/assets/images/pexels/company-35267135.jpg new file mode 100644 index 0000000..09e3a6b Binary files /dev/null and b/assets/images/pexels/company-35267135.jpg differ diff --git a/assets/images/pexels/company-35273758.jpg b/assets/images/pexels/company-35273758.jpg new file mode 100644 index 0000000..bfa7833 Binary files /dev/null and b/assets/images/pexels/company-35273758.jpg differ diff --git a/assets/images/pexels/company-3652097.jpg b/assets/images/pexels/company-3652097.jpg new file mode 100644 index 0000000..86f76c7 Binary files /dev/null and b/assets/images/pexels/company-3652097.jpg differ diff --git a/assets/images/pexels/company-7230326.jpg b/assets/images/pexels/company-7230326.jpg new file mode 100644 index 0000000..7df384a Binary files /dev/null and b/assets/images/pexels/company-7230326.jpg differ diff --git a/assets/images/pexels/hero-236722.jpg b/assets/images/pexels/hero-236722.jpg new file mode 100644 index 0000000..e969f8b Binary files /dev/null and b/assets/images/pexels/hero-236722.jpg differ diff --git a/assets/images/pexels/hero-9710823.jpg b/assets/images/pexels/hero-9710823.jpg new file mode 100644 index 0000000..e022ce5 Binary files /dev/null and b/assets/images/pexels/hero-9710823.jpg differ diff --git a/contact.php b/contact.php new file mode 100644 index 0000000..0c73cdc --- /dev/null +++ b/contact.php @@ -0,0 +1,129 @@ +Please fill out all fields correctly.'; + } else { + require_once 'mail/MailService.php'; + $to = getenv('MAIL_TO') ?: 'support@yourdomain.com'; // Fallback email + $subject = "New contact from $name"; + + $res = MailService::sendContactMessage($name, $email, $message_body, $to, $subject); + + if (!empty($res['success'])) { + $_SESSION['form_message'] = ''; + } else { + $_SESSION['form_message'] = ''; + } + } + header("Location: contact.php"); + exit; +} +?> + + + + + + Contact Us - Tarapur Power Solutions + + + + + + + + + +
+ +
+ +
+
+
+
+
+

Contact Us

+

We'd love to hear from you. Please fill out the form below to get in touch with our team.

+ + + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+
+
+ + + + + + diff --git a/includes/pexels.php b/includes/pexels.php new file mode 100644 index 0000000..0d70ae3 --- /dev/null +++ b/includes/pexels.php @@ -0,0 +1,42 @@ + 0 ? $k : 'Vc99rnmOhHhJAbgGQoKLZtsaIVfkeownoQNbTj78VemUjKh08ZYRbf18'; +} +function pexels_get($url) { + $ch = curl_init(); + curl_setopt_array($ch, [ + CURLOPT_URL => $url, + CURLOPT_RETURNTRANSFER => true, + CURLOPT_HTTPHEADER => [ 'Authorization: '. pexels_key() ], + CURLOPT_TIMEOUT => 15, + ]); + $resp = curl_exec($ch); + $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + if ($code >= 200 && $code < 300 && $resp) return json_decode($resp, true); + return null; +} +function download_to($srcUrl, $destPath) { + // Use a stream context to disable SSL verification for file_get_contents + $context = stream_context_create([ + "ssl" => [ + "verify_peer" => false, + "verify_peer_name" => false, + ], + ]); + + $data = file_get_contents($srcUrl, false, $context); + + if ($data === false) { + // Optionally, log an error here + error_log("Failed to download image from: " . $srcUrl); + return false; + } + + if (!is_dir(dirname($destPath))) { + mkdir(dirname($destPath), 0775, true); + } + + return file_put_contents($destPath, $data) !== false; +} diff --git a/index.php b/index.php index 7205f3d..509f62b 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,357 @@ 'modern oil refinery', + 'TPS Industries' => 'industrial machinery', + 'Bhavika Pharma' => 'pharmaceutical manufacturing' +]; + +foreach ($company_queries as $name => $q) { + $data = pexels_get('https://api.pexels.com/v1/search?query=' . urlencode($q) . '&per_page=1&page=1&orientation=landscape'); + if ($data && !empty($data['photos'])) { + $photo = $data['photos'][0]; + $src = $photo['src']['large'] ?? $photo['src']['original']; + $image_id = 'company-' . $photo['id']; + $local_path = 'assets/images/pexels/' . $image_id . '.jpg'; + + if (!file_exists(__DIR__ . '/' . $local_path)) { + download_to($src, __DIR__ . '/' . $local_path); + } + $company_images[$name] = $local_path; + } else { + // Fallback image + $company_images[$name] = 'https://picsum.photos/seed/'.urlencode($name).'/600/400'; + } +} ?> - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Tarapur Power Solutions - Powering Industries Since 2016 + + + + + + + + + -
-
-

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

-
-
- + + +
+ +
+ +
+ +
+
+

Powering Industries with Reliable Energy Solutions

+

Your trusted partner in oil and fuel trading since 2016. We deliver quality, compliance, and value across the energy sector.

+
The Official Website of Tarapur Power Solutions (Parent Company)
+
+
+ + +
+
+
+
+

About Tarapur Power Solutions

+
+
+

Founded in 2016 by Mr. Siddhesh Tare, Tarapur Power Solutions is a diversified trading and solutions enterprise with its core strength in oil and fuel trading. The company began its journey with Light Diesel Oil (LDO), catering to industrial and commercial energy requirements.

+

With a clear vision and strong market understanding, we have laid the foundation for steady growth in the energy sector, evolving into a broader business ecosystem with specialized subsidiaries.

+
+
+ Industrial site +
+
+
+ + +
+
+
+

Our Journey: A Timeline of Growth

+
+
+
+
+
    +
  • +

    2016: The Beginning

    +

    Tarapur Power Solutions is founded by Mr. Siddhesh Tare, beginning its journey with the trading of Light Diesel Oil (LDO) to meet industrial energy needs.

    +
  • +
  • +

    2017-2019: Expansion & Expertise

    +

    The company steadily expands its product knowledge, supply network, and client base, building a reputation for reliability and operational excellence.

    +
  • +
  • +

    2020: Diversification

    +

    The growth enables the establishment of three dedicated subsidiaries: TPS Petroleums LLP, TPS Industries, and Bhavika Pharma, each addressing specific market needs.

    +
  • +
  • +

    Present: A Diversified Group

    +

    Today, Tarapur Power Solutions stands as a trusted, multi-sector business group committed to delivering reliable energy and trading solutions.

    +
  • +
+
+
+
+
+ + +
+
+

Our Group Companies

+
+

Tarapur Power Solutions is the parent company of a diverse group of specialized subsidiaries.

+
+
+
+
+ TPS Petroleums LLP +
+
TPS Petroleums LLP
+

Focused on trading and supply of petroleum products including LDO, HSD, diesel, biofuels, and related energy solutions.

+
+
+
+
+
+ TPS Industries +
+
TPS Industries
+

Engaged in trading and allied industrial products, supporting diverse industrial requirements with quality and reliability.

+
+
+
+
+
+ Bhavika Pharma +
+
Bhavika Pharma
+

Operating in the pharmaceutical segment, this subsidiary reflects our group’s diversification into regulated and high-growth sectors.

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

Our Vision

+
+

To build a trusted, diversified business group delivering reliable energy and trading solutions while expanding responsibly into new sectors.

+
+
+
+
+ +

Our Mission

+
+

To provide consistent and dependable oil trading solutions, maintain transparency and quality in every transaction, and grow a multi-sector business driven by ethics and long-term value.

+
+
+
+
+
+ + +
+
+

Our Core Values

+
+
+
+
+
+ +

Safety First

+

We prioritize the health and safety of our employees, partners, and the communities we serve above all else. We are committed to a zero-incident workplace.

+
+
+
+
+ +

Unyielding Integrity

+

We conduct our business with unwavering honesty, transparency, and ethical principles. We build trust by saying what we mean and doing what we say.

+
+
+
+
+ +

Excellence in Execution

+

We are committed to delivering the highest quality in every project. Our pursuit of excellence drives us to continuously improve our processes and services.

+
+
+
+
+ +

Innovation for the Future

+

We champion a culture of curiosity and creativity, leveraging cutting-edge technology to solve complex energy challenges and pioneer future solutions.

+
+
+
+
+ +

Commitment to Sustainability

+

We are dedicated to responsible environmental stewardship, aiming to build a cleaner future by promoting efficient energy use and investing in renewables.

+
+
+
+
+ +

Customer-Centric Partnership

+

Our clients are at the heart of everything we do. We build lasting relationships by understanding their needs and providing exceptional value.

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