Ghostgim commited on
Commit
7881a97
·
verified ·
1 Parent(s): 93ce3ba

okay adjust the header of the page to be more reliable, and we can use the logo as somehow as the background image of the home page

Browse files
Files changed (3) hide show
  1. components/navbar.js +9 -4
  2. index.html +9 -3
  3. style.css +12 -0
components/navbar.js CHANGED
@@ -7,10 +7,15 @@ class CustomNavbar extends HTMLElement {
7
  transition: all 0.3s ease;
8
  }
9
  .navbar-scrolled {
10
- background-color: white;
 
11
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
12
  }
13
- .nav-link {
 
 
 
 
14
  position: relative;
15
  }
16
  .nav-link::after {
@@ -35,8 +40,8 @@ class CustomNavbar extends HTMLElement {
35
  max-height: 500px;
36
  }
37
  </style>
38
- <nav class="navbar fixed w-full z-50 px-6 py-4">
39
- <div class="max-w-7xl mx-auto flex justify-between items-center">
40
  <a href="/" class="flex items-center">
41
  <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">
42
  <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>
 
7
  transition: all 0.3s ease;
8
  }
9
  .navbar-scrolled {
10
+ background-color: rgba(15, 23, 42, 0.95);
11
+ backdrop-filter: blur(10px);
12
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
13
  }
14
+ .navbar {
15
+ background-color: transparent;
16
+ backdrop-filter: none;
17
+ }
18
+ .nav-link {
19
  position: relative;
20
  }
21
  .nav-link::after {
 
40
  max-height: 500px;
41
  }
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="flex items-center">
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>
index.html CHANGED
@@ -39,10 +39,16 @@
39
 
40
  <main>
41
  <!-- Hero Section -->
42
- <section class="relative bg-gradient-to-r from-primary-500 to-secondary-500 text-white py-24 px-4 sm:px-6 lg:px-8">
43
- <div class="max-w-7xl mx-auto text-center">
 
 
 
 
 
 
44
  <h1 class="text-4xl md:text-6xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-primary-100 via-primary-500 to-secondary-500">Shaping The Digital Future</h1>
45
- <p class="text-xl md:text-2xl max-w-3xl mx-auto mb-8 text-white/90">Pioneering digital solutions powered by cutting-edge technology and visionary leadership.</p>
46
  <div class="flex flex-col sm:flex-row justify-center gap-4">
47
  <a href="#services" class="bg-white text-primary-700 hover:bg-gray-100 font-semibold py-3 px-8 rounded-lg transition duration-300">
48
  Explore Services
 
39
 
40
  <main>
41
  <!-- Hero Section -->
42
+ <section class="relative text-white py-24 px-4 sm:px-6 lg:px-8 overflow-hidden">
43
+ <div class="absolute inset-0 bg-gray-900 opacity-90"></div>
44
+ <div class="absolute inset-0">
45
+ <img src="https://huggingface.co/spaces/Ghostgim/codecraft-complex-devs/resolve/main/images/Screenshot%202025-11-02%20064654.png"
46
+ alt="CodeCraft Complex"
47
+ class="w-full h-full object-cover opacity-20 animate-pulse-slow">
48
+ </div>
49
+ <div class="relative max-w-7xl mx-auto text-center">
50
  <h1 class="text-4xl md:text-6xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-primary-100 via-primary-500 to-secondary-500">Shaping The Digital Future</h1>
51
+ <p class="text-xl md:text-2xl max-w-3xl mx-auto mb-8 text-white/90 relative z-10">Pioneering digital solutions powered by cutting-edge technology and visionary leadership.</p>
52
  <div class="flex flex-col sm:flex-row justify-center gap-4">
53
  <a href="#services" class="bg-white text-primary-700 hover:bg-gray-100 font-semibold py-3 px-8 rounded-lg transition duration-300">
54
  Explore Services
style.css CHANGED
@@ -43,6 +43,18 @@ body {
43
  to { opacity: 1; transform: translateY(0); }
44
  }
45
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  .animate-fade-in {
47
  animation: fadeIn 0.8s ease-out forwards;
48
  }
 
43
  to { opacity: 1; transform: translateY(0); }
44
  }
45
 
46
+ @keyframes pulse-slow {
47
+ 0%, 100% { opacity: 0.2; }
48
+ 50% { opacity: 0.3; }
49
+ }
50
+
51
+ .animate-pulse-slow {
52
+ animation: pulse-slow 6s infinite ease-in-out;
53
+ }
54
+ from { opacity: 0; transform: translateY(20px); }
55
+ to { opacity: 1; transform: translateY(0); }
56
+ }
57
+
58
  .animate-fade-in {
59
  animation: fadeIn 0.8s ease-out forwards;
60
  }