molosh17 commited on
Commit
3577aec
·
verified ·
1 Parent(s): becf67b

Create a homepage for a shipping and logistics company named Africa Logistics Corp. Egypt

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +117 -0
  3. components/navigation.js +90 -0
  4. index.html +167 -19
  5. script.js +122 -0
  6. style.css +75 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Nileflow Express Logistics
3
- emoji: 📈
4
- colorFrom: indigo
5
- colorTo: gray
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: NileFlow Express Logistics 🚢
3
+ colorFrom: purple
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer-link {
7
+ transition: color 0.3s ease;
8
+ }
9
+
10
+ .footer-link:hover {
11
+ color: #dc2626;
12
+ }
13
+ </style>
14
+ <footer class="bg-gray-800 text-white">
15
+ <div class="container mx-auto px-6 py-12">
16
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
17
+ <!-- Company Info -->
18
+ <div class="col-span-1">
19
+ <div class="flex items-center space-x-3 mb-4">
20
+ <div class="w-8 h-8 bg-primary rounded-full flex items-center justify-center">
21
+ <i data-feather="truck" class="text-white w-4 h-4"></i>
22
+ </div>
23
+ <span class="text-xl font-bold">NileFlow Express</span>
24
+ </div>
25
+ <p class="text-gray-400 mb-4">
26
+ Premium logistics solutions connecting Africa to global markets with speed and reliability.
27
+ </p>
28
+ <div class="flex space-x-4">
29
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
30
+ <i data-feather="facebook"></i>
31
+ </a>
32
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
33
+ <i data-feather="twitter"></i>
34
+ </a>
35
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
36
+ <i data-feather="linkedin"></i>
37
+ </a>
38
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
39
+ <i data-feather="instagram"></i>
40
+ </a>
41
+ </div>
42
+ </div>
43
+
44
+ <!-- Quick Links -->
45
+ <div>
46
+ <h3 class="text-lg font-semibold mb-4">Quick Links</h3>
47
+ <ul class="space-y-2">
48
+ <li><a href="/" class="footer-link text-gray-400">Home</a></li>
49
+ <li><a href="/services" class="footer-link text-gray-400">Services</a></li>
50
+ <li><a href="/tracking" class="footer-link text-gray-400">Tracking</a></li>
51
+ <li><a href="/about" class="footer-link text-gray-400">About Us</a></li>
52
+ <li><a href="/contact" class="footer-link text-gray-400">Contact</a></li>
53
+ </ul>
54
+ </div>
55
+
56
+ <!-- Services -->
57
+ <div>
58
+ <h3 class="text-lg font-semibold mb-4">Services</h3>
59
+ <ul class="space-y-2">
60
+ <li><a href="/air-freight" class="footer-link text-gray-400">Air Freight</a></li>
61
+ <li><a href="/sea-freight" class="footer-link text-gray-400">Sea Freight</a></li>
62
+ <li><a href="/land-transport" class="footer-link text-gray-400">Land Transport</a></li>
63
+ <li><a href="/warehousing" class="footer-link text-gray-400">Warehousing</a></li>
64
+ <li><a href="/customs-clearance" class="footer-link text-gray-400">Customs Clearance</a></li>
65
+ </ul>
66
+ </div>
67
+
68
+ <!-- Contact Info -->
69
+ <div>
70
+ <h3 class="text-lg font-semibold mb-4">Contact</h3>
71
+ <ul class="space-y-3 text-gray-400">
72
+ <li class="flex items-center space-x-2">
73
+ <i data-feather="map-pin" class="w-4 h-4"></i>
74
+ <span>Cairo, Egypt</span>
75
+ </li>
76
+ <li class="flex items-center space-x-2">
77
+ <i data-feather="phone" class="w-4 h-4"></i>
78
+ <span>+20 123 456 7890</span>
79
+ </li>
80
+ <li class="flex items-center space-x-2">
81
+ <i data-feather="mail" class="w-4 h-4"></i>
82
+ <span>info@nileflowexpress.com</span>
83
+ </li>
84
+ <li class="flex items-center space-x-2">
85
+ <i data-feather="clock" class="w-4 h-4"></i>
86
+ <span>24/7 Customer Support</span>
87
+ </li>
88
+ </ul>
89
+ </div>
90
+ </div>
91
+
92
+ <!-- Bottom Bar -->
93
+ <div class="border-t border-gray-700 pt-8 mt-8">
94
+ <div class="flex flex-col md:flex-row justify-between items-center">
95
+ <p class="text-gray-400 text-sm">
96
+ © 2024 NileFlow Express Logistics. All rights reserved.
97
+ </p>
98
+ <div class="flex space-x-6 mt-4 md:mt-0">
99
+ <a href="/privacy" class="footer-link text-gray-400 text-sm">Privacy Policy</a>
100
+ <a href="/terms" class="footer-link text-gray-400 text-sm">Terms of Service</a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </footer>
106
+ `;
107
+
108
+ // Initialize feather icons in shadow DOM
109
+ setTimeout(() => {
110
+ if (this.shadowRoot.querySelector('[data-feather]')) {
111
+ feather.replace();
112
+ }
113
+ }, 100);
114
+ }
115
+ }
116
+
117
+ customElements.define('custom-footer', CustomFooter);
components/navigation.js ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavigation extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .nav-link {
7
+ position: relative;
8
+ transition: color 0.3s ease;
9
+ }
10
+
11
+ .nav-link::after {
12
+ content: '';
13
+ position: absolute;
14
+ width: 0;
15
+ height: 2px;
16
+ bottom: -5px;
17
+ left: 0;
18
+ background-color: #dc2626;
19
+ transition: width 0.3s ease;
20
+ }
21
+
22
+ .nav-link:hover::after {
23
+ width: 100%;
24
+ }
25
+
26
+ .mobile-menu {
27
+ transition: all 0.3s ease-in-out;
28
+ }
29
+ </style>
30
+ <nav class="bg-white shadow-lg sticky top-0 z-50">
31
+ <div class="container mx-auto px-6">
32
+ <div class="flex justify-between items-center py-4">
33
+ <!-- Logo -->
34
+ <a href="/" class="flex items-center space-x-3">
35
+ <div class="w-10 h-10 bg-primary rounded-full flex items-center justify-center">
36
+ <i data-feather="truck" class="text-white"></i>
37
+ </div>
38
+ <span class="text-2xl font-bold text-gray-800">NileFlow Express</span>
39
+ </a>
40
+
41
+ <!-- Desktop Menu -->
42
+ <div class="hidden md:flex items-center space-x-8">
43
+ <a href="/" class="nav-link text-gray-700 hover:text-primary font-medium">Home</a>
44
+ <a href="/services" class="nav-link text-gray-700 hover:text-primary font-medium">Services</a>
45
+ <a href="/tracking" class="nav-link text-gray-700 hover:text-primary font-medium">Tracking</a>
46
+ <a href="/about" class="nav-link text-gray-700 hover:text-primary font-medium">About</a>
47
+ <a href="/contact" class="nav-link text-gray-700 hover:text-primary font-medium">Contact</a>
48
+ <a href="/quote" class="bg-primary hover:bg-blue-700 text-white px-6 py-2 rounded-lg font-medium transition duration-300">
49
+ Get Quote
50
+ </a>
51
+ </div>
52
+
53
+ <!-- Mobile Menu Button -->
54
+ <button class="md:hidden text-gray-700 focus:outline-none" onclick="this.getRootNode().host.toggleMobileMenu()">
55
+ <i data-feather="menu"></i>
56
+ </button>
57
+ </div>
58
+
59
+ <!-- Mobile Menu -->
60
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden py-4 border-t border-gray-200">
61
+ <a href="/" class="block py-2 text-gray-700 hover:text-primary font-medium">Home</a>
62
+ <a href="/services" class="block py-2 text-gray-700 hover:text-primary font-medium">Services</a>
63
+ <a href="/tracking" class="block py-2 text-gray-700 hover:text-primary font-medium">Tracking</a>
64
+ <a href="/about" class="block py-2 text-gray-700 hover:text-primary font-medium">About</a>
65
+ <a href="/contact" class="block py-2 text-gray-700 hover:text-primary font-medium">Contact</a>
66
+ <a href="/quote" class="block mt-4 bg-primary hover:bg-blue-700 text-white px-6 py-2 rounded-lg font-medium text-center transition duration-300">
67
+ Get Quote
68
+ </a>
69
+ </div>
70
+ </div>
71
+ </nav>
72
+ `;
73
+
74
+ // Initialize feather icons in shadow DOM
75
+ setTimeout(() => {
76
+ if (this.shadowRoot.querySelector('[data-feather]')) {
77
+ feather.replace();
78
+ }
79
+ }, 100);
80
+ }
81
+
82
+ toggleMobileMenu() {
83
+ const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
84
+ if (mobileMenu) {
85
+ mobileMenu.classList.toggle('hidden');
86
+ }
87
+ }
88
+ }
89
+
90
+ customElements.define('custom-navigation', CustomNavigation);
index.html CHANGED
@@ -1,19 +1,167 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>NileFlow Express Logistics - Premium Shipping Solutions</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script>
13
+ tailwind.config = {
14
+ theme: {
15
+ extend: {
16
+ colors: {
17
+ primary: '#1e40af',
18
+ secondary: '#dc2626'
19
+ }
20
+ }
21
+ }
22
+ }
23
+ </script>
24
+ </head>
25
+ <body class="bg-gray-50">
26
+ <!-- Navigation Component -->
27
+ <custom-navigation></custom-navigation>
28
+
29
+ <!-- Hero Section -->
30
+ <section class="relative bg-gradient-to-r from-primary to-blue-800 text-white py-20">
31
+ <div class="absolute inset-0 bg-black opacity-20"></div>
32
+ <div class="container mx-auto px-6 relative z-10">
33
+ <div class="max-w-3xl">
34
+ <h1 class="text-5xl md:text-6xl font-bold mb-6 leading-tight">
35
+ Connecting Africa to the World
36
+ </h1>
37
+ <p class="text-xl md:text-2xl mb-8 opacity-90">
38
+ Premium logistics solutions powered by NileFlow Express. Fast, reliable, and efficient shipping across continents.
39
+ </p>
40
+ <div class="flex flex-col sm:flex-row gap-4">
41
+ <a href="/tracking" class="bg-secondary hover:bg-red-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition duration-300 transform hover:scale-105 text-center">
42
+ Track Your Shipment
43
+ </a>
44
+ <a href="/services" class="border-2 border-white hover:bg-white hover:text-primary text-white px-8 py-4 rounded-lg font-semibold text-lg transition duration-300 text-center">
45
+ Our Services
46
+ </a>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <div class="absolute bottom-0 right-0 w-1/3 h-full overflow-hidden">
51
+ <img src="http://static.photos/technology/1200x630/42" alt="Logistics Technology" class="w-full h-full object-cover opacity-20">
52
+ </div>
53
+ </section>
54
+
55
+ <!-- Features Section -->
56
+ <section class="py-20 bg-white">
57
+ <div class="container mx-auto px-6">
58
+ <div class="text-center mb-16">
59
+ <h2 class="text-4xl font-bold text-gray-800 mb-4">Why Choose NileFlow Express?</h2>
60
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">We deliver excellence in every shipment with cutting-edge technology and decades of experience.</p>
61
+ </div>
62
+
63
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
64
+ <div class="bg-gray-50 p-8 rounded-xl shadow-lg hover:shadow-xl transition duration-300">
65
+ <div class="w-16 h-16 bg-primary rounded-full flex items-center justify-center mb-6">
66
+ <i data-feather="clock" class="text-white w-8 h-8"></i>
67
+ </div>
68
+ <h3 class="text-2xl font-bold text-gray-800 mb-4">Fast Delivery</h3>
69
+ <p class="text-gray-600">Express shipping solutions with real-time tracking and guaranteed delivery times.</p>
70
+ </div>
71
+
72
+ <div class="bg-gray-50 p-8 rounded-xl shadow-lg hover:shadow-xl transition duration-300">
73
+ <div class="w-16 h-16 bg-primary rounded-full flex items-center justify-center mb-6">
74
+ <i data-feather="shield" class="text-white w-8 h-8"></i>
75
+ </div>
76
+ <h3 class="text-2xl font-bold text-gray-800 mb-4">Secure Handling</h3>
77
+ <p class="text-gray-600">Advanced security measures and insurance options for complete peace of mind.</p>
78
+ </div>
79
+
80
+ <div class="bg-gray-50 p-8 rounded-xl shadow-lg hover:shadow-xl transition duration-300">
81
+ <div class="w-16 h-16 bg-primary rounded-full flex items-center justify-center mb-6">
82
+ <i data-feather="globe" class="text-white w-8 h-8"></i>
83
+ </div>
84
+ <h3 class="text-2xl font-bold text-gray-800 mb-4">Global Network</h3>
85
+ <p class="text-gray-600">Extensive network covering major African ports and international destinations worldwide.</p>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </section>
90
+
91
+ <!-- Services Preview -->
92
+ <section class="py-20 bg-gradient-to-br from-gray-100 to-gray-200">
93
+ <div class="container mx-auto px-6">
94
+ <div class="text-center mb-16">
95
+ <h2 class="text-4xl font-bold text-gray-800 mb-4">Our Premium Services</h2>
96
+ <p class="text-xl text-gray-600">Comprehensive logistics solutions tailored to your business needs.</p>
97
+ </div>
98
+
99
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
100
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden hover:transform hover:scale-105 transition duration-300">
101
+ <img src="http://static.photos/industry/640x360/1" alt="Air Freight" class="w-full h-48 object-cover">
102
+ <div class="p-6">
103
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Air Freight</h3>
104
+ <p class="text-gray-600 mb-4">Express air cargo services for time-sensitive shipments.</p>
105
+ <a href="/air-freight" class="text-primary font-semibold hover:text-blue-700 transition duration-300">Learn More →</a>
106
+ </div>
107
+ </div>
108
+
109
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden hover:transform hover:scale-105 transition duration-300">
110
+ <img src="http://static.photos/industry/640x360/2" alt="Sea Freight" class="w-full h-48 object-cover">
111
+ <div class="p-6">
112
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Sea Freight</h3>
113
+ <p class="text-gray-600 mb-4">Cost-effective container shipping for bulk cargo.</p>
114
+ <a href="/sea-freight" class="text-primary font-semibold hover:text-blue-700 transition duration-300">Learn More →</a>
115
+ </div>
116
+ </div>
117
+
118
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden hover:transform hover:scale-105 transition duration-300">
119
+ <img src="http://static.photos/industry/640x360/3" alt="Land Transport" class="w-full h-48 object-cover">
120
+ <div class="p-6">
121
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Land Transport</h3>
122
+ <p class="text-gray-600 mb-4">Reliable trucking and rail services across Africa.</p>
123
+ <a href="/land-transport" class="text-primary font-semibold hover:text-blue-700 transition duration-300">Learn More →</a>
124
+ </div>
125
+ </div>
126
+
127
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden hover:transform hover:scale-105 transition duration-300">
128
+ <img src="http://static.photos/technology/640x360/4" alt="Warehousing" class="w-full h-48 object-cover">
129
+ <div class="p-6">
130
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Warehousing</h3>
131
+ <p class="text-gray-600 mb-4">Secure storage solutions with inventory management.</p>
132
+ <a href="/warehousing" class="text-primary font-semibold hover:text-blue-700 transition duration-300">Learn More →</a>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </section>
138
+
139
+ <!-- CTA Section -->
140
+ <section class="py-20 bg-primary text-white">
141
+ <div class="container mx-auto px-6 text-center">
142
+ <h2 class="text-4xl font-bold mb-6">Ready to Ship with Confidence?</h2>
143
+ <p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of satisfied clients who trust NileFlow Express for their logistics needs.</p>
144
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
145
+ <a href="/quote" class="bg-secondary hover:bg-red-700 text-white px-8 py-4 rounded-lg font-semibold text-lg transition duration-300">
146
+ Get Free Quote
147
+ </a>
148
+ <a href="/contact" class="border-2 border-white hover:bg-white hover:text-primary text-white px-8 py-4 rounded-lg font-semibold text-lg transition duration-300">
149
+ Contact Us
150
+ </a>
151
+ </div>
152
+ </div>
153
+ </section>
154
+
155
+ <!-- Footer Component -->
156
+ <custom-footer></custom-footer>
157
+
158
+ <!-- Include Components -->
159
+ <script src="components/navigation.js"></script>
160
+ <script src="components/footer.js"></script>
161
+ <script src="script.js"></script>
162
+ <script>
163
+ feather.replace();
164
+ </script>
165
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
166
+ </body>
167
+ </html>
script.js ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main JavaScript for NileFlow Express Logistics
2
+
3
+ // Initialize when DOM is loaded
4
+ document.addEventListener('DOMContentLoaded', function() {
5
+ initializeAnimations();
6
+ initializeTrackingForm();
7
+ initializeServiceCards();
8
+ });
9
+
10
+ // Initialize scroll animations
11
+ function initializeAnimations() {
12
+ const observerOptions = {
13
+ threshold: 0.1,
14
+ rootMargin: '0px 0px -50px 0px'
15
+ };
16
+
17
+ const observer = new IntersectionObserver(function(entries) {
18
+ entries.forEach(entry => {
19
+ if (entry.isIntersecting) {
20
+ entry.target.classList.add('fade-in-up');
21
+ observer.unobserve(entry.target);
22
+ }
23
+ });
24
+ }, observerOptions);
25
+
26
+ // Observe all sections for animation
27
+ document.querySelectorAll('section').forEach(section => {
28
+ observer.observe(section);
29
+ });
30
+ }
31
+
32
+ // Initialize tracking form functionality
33
+ function initializeTrackingForm() {
34
+ const trackingForm = document.querySelector('#tracking-form');
35
+ if (trackingForm) {
36
+ trackingForm.addEventListener('submit', function(e) {
37
+ e.preventDefault();
38
+ const trackingNumber = this.querySelector('input[type="text"]').value;
39
+ if (trackingNumber.trim()) {
40
+ window.location.href = `/tracking?number=${encodeURIComponent(trackingNumber)}`;
41
+ }
42
+ });
43
+ }
44
+ }
45
+
46
+ // Initialize service cards interactions
47
+ function initializeServiceCards() {
48
+ const serviceCards = document.querySelectorAll('.service-card');
49
+ serviceCards.forEach(card => {
50
+ card.addEventListener('mouseenter', function() {
51
+ this.style.transform = 'translateY(-10px)';
52
+ this.style.boxShadow = '0 20px 40px rgba(0,0,0,0.1)';
53
+ });
54
+
55
+ card.addEventListener('mouseleave', function() {
56
+ this.style.transform = 'translateY(0)';
57
+ this.style.boxShadow = '0 10px 30px rgba(0,0,0,0.08)';
58
+ });
59
+ });
60
+ }
61
+
62
+ // API integration for tracking (placeholder)
63
+ async function fetchTrackingInfo(trackingNumber) {
64
+ try {
65
+ // This would be replaced with actual API endpoint
66
+ const response = await fetch(`/api/tracking/${trackingNumber}`);
67
+ const data = await response.json();
68
+ return data;
69
+ } catch (error) {
70
+ console.error('Error fetching tracking info:', error);
71
+ return null;
72
+ }
73
+ }
74
+
75
+ // Smooth scroll to section
76
+ function scrollToSection(sectionId) {
77
+ const element = document.getElementById(sectionId);
78
+ if (element) {
79
+ element.scrollIntoView({
80
+ behavior: 'smooth',
81
+ block: 'start'
82
+ });
83
+ }
84
+ }
85
+
86
+ // Mobile menu toggle (for navigation component)
87
+ function toggleMobileMenu() {
88
+ const mobileMenu = document.querySelector('#mobile-menu');
89
+ if (mobileMenu) {
90
+ mobileMenu.classList.toggle('hidden');
91
+ }
92
+ }
93
+
94
+ // Form validation for contact forms
95
+ function validateForm(form) {
96
+ const inputs = form.querySelectorAll('input[required], textarea[required]');
97
+ let isValid = true;
98
+
99
+ inputs.forEach(input => {
100
+ if (!input.value.trim()) {
101
+ input.classList.add('border-red-500');
102
+ isValid = false;
103
+ } else {
104
+ input.classList.remove('border-red-500');
105
+ }
106
+ });
107
+
108
+ return isValid;
109
+ }
110
+
111
+ // Debounce function for search inputs
112
+ function debounce(func, wait) {
113
+ let timeout;
114
+ return function executedFunction(...args) {
115
+ const later = () => {
116
+ clearTimeout(timeout);
117
+ func(...args);
118
+ };
119
+ clearTimeout(timeout);
120
+ timeout = setTimeout(later, wait);
121
+ };
122
+ }
style.css CHANGED
@@ -1,28 +1,84 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
1
+ /* Custom Styles for NileFlow Express Logistics */
2
+
3
+ /* Smooth scrolling */
4
+ html {
5
+ scroll-behavior: smooth;
6
+ }
7
+
8
+ /* Custom animations */
9
+ @keyframes fadeInUp {
10
+ from {
11
+ opacity: 0;
12
+ transform: translateY(30px);
13
+ }
14
+ to {
15
+ opacity: 1;
16
+ transform: translateY(0);
17
+ }
18
+ }
19
+
20
+ .fade-in-up {
21
+ animation: fadeInUp 0.6s ease-out;
22
+ }
23
+
24
+ /* Gradient text */
25
+ .gradient-text {
26
+ background: linear-gradient(135deg, #1e40af 0%, #dc2626 100%);
27
+ -webkit-background-clip: text;
28
+ -webkit-text-fill-color: transparent;
29
+ background-clip: text;
30
+ }
31
+
32
+ /* Custom button hover effects */
33
+ .btn-hover-effect {
34
+ position: relative;
35
+ overflow: hidden;
36
+ transition: all 0.3s ease;
37
+ }
38
+
39
+ .btn-hover-effect::before {
40
+ content: '';
41
+ position: absolute;
42
+ top: 0;
43
+ left: -100%;
44
+ width: 100%;
45
+ height: 100%;
46
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
47
+ transition: left 0.5s;
48
+ }
49
+
50
+ .btn-hover-effect:hover::before {
51
+ left: 100%;
52
+ }
53
+
54
+ /* Loading animation for tracking */
55
+ @keyframes pulse {
56
+ 0%, 100% {
57
+ opacity: 1;
58
+ }
59
+ 50% {
60
+ opacity: 0.5;
61
+ }
62
  }
63
 
64
+ .pulse {
65
+ animation: pulse 2s infinite;
 
66
  }
67
 
68
+ /* Custom scrollbar */
69
+ ::-webkit-scrollbar {
70
+ width: 8px;
 
 
71
  }
72
 
73
+ ::-webkit-scrollbar-track {
74
+ background: #f1f1f1;
 
 
 
 
75
  }
76
 
77
+ ::-webkit-scrollbar-thumb {
78
+ background: #1e40af;
79
+ border-radius: 4px;
80
  }
81
+
82
+ ::-webkit-scrollbar-thumb:hover {
83
+ background: #1e3a8a;
84
+ }