Spaces:
Running
Running
remove the logo at the top, and customize the (Home, services, process About Contact and get started layouts) the contacts are +254 718 733 968
Browse files- components/footer.js +3 -3
- components/navbar.js +15 -18
- script.js +14 -2
components/footer.js
CHANGED
|
@@ -70,9 +70,9 @@ class CustomFooter extends HTMLElement {
|
|
| 70 |
<span>contact@codecraftcomplex.com</span>
|
| 71 |
</li>
|
| 72 |
<li class="flex items-start">
|
| 73 |
-
|
| 74 |
-
<span>+
|
| 75 |
-
|
| 76 |
<li class="flex items-start">
|
| 77 |
<i data-feather="map-pin" class="w-5 h-5 mr-3 mt-1"></i>
|
| 78 |
<span>123 Tech Street, Silicon Valley, CA 94000</span>
|
|
|
|
| 70 |
<span>contact@codecraftcomplex.com</span>
|
| 71 |
</li>
|
| 72 |
<li class="flex items-start">
|
| 73 |
+
<i data-feather="phone" class="w-5 h-5 mr-3 mt-1"></i>
|
| 74 |
+
<span>+254 718 733 968</span>
|
| 75 |
+
</li>
|
| 76 |
<li class="flex items-start">
|
| 77 |
<i data-feather="map-pin" class="w-5 h-5 mr-3 mt-1"></i>
|
| 78 |
<span>123 Tech Street, Silicon Valley, CA 94000</span>
|
components/navbar.js
CHANGED
|
@@ -42,20 +42,17 @@ class CustomNavbar extends HTMLElement {
|
|
| 42 |
</style>
|
| 43 |
<nav class="navbar fixed w-full z-50 px-6 py-4 transition-colors duration-300">
|
| 44 |
<div class="max-w-7xl mx-auto flex justify-between items-center">
|
| 45 |
-
<a href="/" class="
|
| 46 |
-
<img src="https://huggingface.co/spaces/Ghostgim/codecraft-complex-devs/resolve/main/images/Screenshot%202025-11-02%20064654.png" alt="CodeCraft Complex Logo" class="w-10 h-10 mr-3 glow-effect">
|
| 47 |
-
<span class="text-xl font-bold text-white bg-clip-text text-transparent bg-gradient-to-r from-primary-100 to-secondary-500">CodeCraft Complex</span>
|
| 48 |
-
</a>
|
| 49 |
<div class="hidden md:flex items-center space-x-8">
|
| 50 |
-
<a href="/" class="nav-link text-
|
| 51 |
-
<a href="#services" class="nav-link text-
|
| 52 |
-
<a href="#process" class="nav-link text-
|
| 53 |
-
<a href="#about" class="nav-link text-
|
| 54 |
-
<a href="#contact" class="nav-link text-
|
| 55 |
-
<a href="#contact" class="bg-primary-500 hover:
|
| 56 |
Get Started
|
| 57 |
</a>
|
| 58 |
-
|
| 59 |
|
| 60 |
<button id="mobile-menu-button" class="md:hidden text-gray-600 focus:outline-none">
|
| 61 |
<i data-feather="menu"></i>
|
|
@@ -64,13 +61,13 @@ class CustomNavbar extends HTMLElement {
|
|
| 64 |
|
| 65 |
<div id="mobile-menu" class="mobile-menu md:hidden bg-white rounded-lg mt-2 shadow-lg">
|
| 66 |
<div class="px-4 py-2 space-y-4">
|
| 67 |
-
<a href="/" class="block px-4 py-
|
| 68 |
-
<a href="#services" class="block px-4 py-
|
| 69 |
-
<a href="#process" class="block px-4 py-
|
| 70 |
-
<a href="#about" class="block px-4 py-
|
| 71 |
-
<a href="#contact" class="block px-4 py-
|
| 72 |
-
<a href="#contact" class="block px-4 py-
|
| 73 |
-
|
| 74 |
</a>
|
| 75 |
</div>
|
| 76 |
</div>
|
|
|
|
| 42 |
</style>
|
| 43 |
<nav class="navbar fixed w-full z-50 px-6 py-4 transition-colors duration-300">
|
| 44 |
<div class="max-w-7xl mx-auto flex justify-between items-center">
|
| 45 |
+
<a href="/" class="text-xl font-bold text-white bg-clip-text text-transparent bg-gradient-to-r from-primary-100 to-secondary-500">CodeCraft Complex</a>
|
|
|
|
|
|
|
|
|
|
| 46 |
<div class="hidden md:flex items-center space-x-8">
|
| 47 |
+
<a href="/" class="nav-link text-white hover:text-primary-100 transition-colors px-3 py-2 rounded-md text-sm font-medium">Home</a>
|
| 48 |
+
<a href="#services" class="nav-link text-white hover:text-primary-100 transition-colors px-3 py-2 rounded-md text-sm font-medium">Services</a>
|
| 49 |
+
<a href="#process" class="nav-link text-white hover:text-primary-100 transition-colors px-3 py-2 rounded-md text-sm font-medium">Process</a>
|
| 50 |
+
<a href="#about" class="nav-link text-white hover:text-primary-100 transition-colors px-3 py-2 rounded-md text-sm font-medium">About</a>
|
| 51 |
+
<a href="#contact" class="nav-link text-white hover:text-primary-100 transition-colors px-3 py-2 rounded-md text-sm font-medium">Contact</a>
|
| 52 |
+
<a href="#contact" class="ml-4 bg-gradient-to-r from-primary-500 to-secondary-500 hover:from-primary-600 hover:to-secondary-600 text-white font-semibold py-2 px-6 rounded-lg transition-all duration-300 shadow-lg hover:shadow-xl">
|
| 53 |
Get Started
|
| 54 |
</a>
|
| 55 |
+
</div>
|
| 56 |
|
| 57 |
<button id="mobile-menu-button" class="md:hidden text-gray-600 focus:outline-none">
|
| 58 |
<i data-feather="menu"></i>
|
|
|
|
| 61 |
|
| 62 |
<div id="mobile-menu" class="mobile-menu md:hidden bg-white rounded-lg mt-2 shadow-lg">
|
| 63 |
<div class="px-4 py-2 space-y-4">
|
| 64 |
+
<a href="/" class="block px-4 py-3 text-white hover:bg-gray-800 rounded-lg transition-colors">Home</a>
|
| 65 |
+
<a href="#services" class="block px-4 py-3 text-white hover:bg-gray-800 rounded-lg transition-colors">Services</a>
|
| 66 |
+
<a href="#process" class="block px-4 py-3 text-white hover:bg-gray-800 rounded-lg transition-colors">Process</a>
|
| 67 |
+
<a href="#about" class="block px-4 py-3 text-white hover:bg-gray-800 rounded-lg transition-colors">About</a>
|
| 68 |
+
<a href="#contact" class="block px-4 py-3 text-white hover:bg-gray-800 rounded-lg transition-colors">Contact</a>
|
| 69 |
+
<a href="#contact" class="block px-4 py-3 bg-gradient-to-r from-primary-500 to-secondary-500 text-white font-semibold text-center rounded-lg hover:from-primary-600 hover:to-secondary-600 mt-2 transition-all">
|
| 70 |
+
Get Started
|
| 71 |
</a>
|
| 72 |
</div>
|
| 73 |
</div>
|
script.js
CHANGED
|
@@ -28,6 +28,18 @@ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
| 28 |
});
|
| 29 |
});
|
| 30 |
});
|
| 31 |
-
|
| 32 |
// Current year for footer
|
| 33 |
-
document.getElementById('current-year').textContent = new Date().getFullYear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
});
|
| 29 |
});
|
| 30 |
});
|
|
|
|
| 31 |
// Current year for footer
|
| 32 |
+
document.getElementById('current-year').textContent = new Date().getFullYear();
|
| 33 |
+
|
| 34 |
+
// Add active class to current nav link
|
| 35 |
+
document.querySelectorAll('custom-navbar').forEach(nav => {
|
| 36 |
+
const shadowRoot = nav.shadowRoot;
|
| 37 |
+
const links = shadowRoot.querySelectorAll('.nav-link');
|
| 38 |
+
|
| 39 |
+
links.forEach(link => {
|
| 40 |
+
link.addEventListener('click', function() {
|
| 41 |
+
links.forEach(l => l.classList.remove('active'));
|
| 42 |
+
this.classList.add('active');
|
| 43 |
+
});
|
| 44 |
+
});
|
| 45 |
+
});
|