This commit is contained in:
Kar
2025-03-24 14:10:39 +05:30
commit 3a112d2fd1
48 changed files with 8983 additions and 0 deletions

14
public/form.html Normal file
View File

@@ -0,0 +1,14 @@
<!-- A hidden form for Netlify to parse and recognize -->
<form name="contact" netlify netlify-honeypot="bot-field" hidden>
<input type="text" name="name" />
<input type="email" name="email" />
<input type="tel" name="phone" />
<select name="subject">
<option value="Hardware Solutions">Hardware Solutions</option>
<option value="FOSS Support">FOSS Support</option>
<option value="Data Services">Data Services</option>
<option value="Custom Development">Custom Development</option>
<option value="Other">Other</option>
</select>
<textarea name="message"></textarea>
</form>

28
public/index.html Normal file
View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DWD Consultancy Services | Keeping Your Data Resilient</title>
<meta name="description" content="We provide ready-to-use hardware with preset software with full freedom and ownership. Paid support for FOSS, with customized development. Data archival, migration and recovery services.">
<meta http-equiv="refresh" content="0;url=/" />
</head>
<body>
<!-- A hidden form for Netlify to parse and recognize -->
<form name="contact" netlify netlify-honeypot="bot-field" hidden>
<input type="text" name="name" />
<input type="email" name="email" />
<input type="tel" name="phone" />
<select name="subject">
<option value="Hardware Solutions">Hardware Solutions</option>
<option value="FOSS Support">FOSS Support</option>
<option value="Data Services">Data Services</option>
<option value="Custom Development">Custom Development</option>
<option value="Other">Other</option>
</select>
<textarea name="message"></textarea>
</form>
<p>Redirecting to DWD Consultancy Services...</p>
</body>
</html>

45
public/path-fix.js Normal file
View File

@@ -0,0 +1,45 @@
/**
* Path fix script for static exports
* This script helps to fix absolute path references in the static HTML
* when served from a file system or simple static server
*/
(function() {
// Only run this script when the window has loaded
window.addEventListener('DOMContentLoaded', function() {
// Fix for stylesheet links
document.querySelectorAll('link[rel="stylesheet"]').forEach(function(link) {
if (link.href.startsWith('http')) return; // Skip absolute URLs
if (link.href.startsWith('/')) {
link.href = './' + link.href.slice(1);
}
});
// Fix for script tags
document.querySelectorAll('script[src]').forEach(function(script) {
if (script.src.startsWith('http')) return; // Skip absolute URLs
if (script.src.startsWith('/')) {
script.src = './' + script.src.slice(1);
}
});
// Fix for images
document.querySelectorAll('img[src]').forEach(function(img) {
if (img.src.startsWith('http')) return; // Skip absolute URLs
if (img.src.startsWith('/')) {
img.src = './' + img.src.slice(1);
}
});
// Initialize the mobile menu toggle
const toggleButton = document.querySelector('[aria-haspopup="dialog"]');
const sheet = document.querySelector('[data-state="closed"]');
if (toggleButton && sheet) {
toggleButton.addEventListener('click', function() {
const isOpen = sheet.getAttribute('data-state') === 'open';
sheet.setAttribute('data-state', isOpen ? 'closed' : 'open');
toggleButton.setAttribute('aria-expanded', !isOpen);
});
}
});
})();