zonca commited on
Commit
fdcc364
·
verified ·
1 Parent(s): 44171bf

see overlap

Browse files
Files changed (3) hide show
  1. components/navbar.js +2 -1
  2. index.html +2 -3
  3. style.css +9 -3
components/navbar.js CHANGED
@@ -6,8 +6,9 @@ class CustomNavbar extends HTMLElement {
6
  nav {
7
  transition: background-color 0.3s ease;
8
  background-color: rgba(15, 23, 42, 0.95);
 
9
  }
10
- .scrolled {
11
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
12
  }
13
  a {
 
6
  nav {
7
  transition: background-color 0.3s ease;
8
  background-color: rgba(15, 23, 42, 0.95);
9
+ height: 80px;
10
  }
11
+ .scrolled {
12
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
13
  }
14
  a {
index.html CHANGED
@@ -29,10 +29,9 @@
29
  <i data-feather="menu"></i>
30
  </button>
31
  </nav>
32
-
33
  <!-- Hero Section -->
34
- <section class="hero-image h-screen flex items-center justify-center text-center px-4">
35
- <div class="max-w-4xl mx-auto">
36
  <h1 class="text-4xl md:text-6xl font-bold text-white mb-6">San Diego Real Estate Investments</h1>
37
  <p class="text-xl text-white mb-12">Building wealth through strategic property investments</p>
38
 
 
29
  <i data-feather="menu"></i>
30
  </button>
31
  </nav>
 
32
  <!-- Hero Section -->
33
+ <section class="hero-image flex items-center justify-center text-center px-4">
34
+ <div class="max-w-4xl mx-auto">
35
  <h1 class="text-4xl md:text-6xl font-bold text-white mb-6">San Diego Real Estate Investments</h1>
36
  <p class="text-xl text-white mb-12">Building wealth through strategic property investments</p>
37
 
style.css CHANGED
@@ -2,12 +2,18 @@
2
  /* Custom styles */
3
  body {
4
  overflow-x: hidden;
5
- padding-top: 80px; /* Add padding to account for fixed navbar */
 
 
 
 
 
6
  }
7
 
8
  @media (min-width: 768px) {
9
- body {
10
- padding-top: 0;
 
11
  }
12
  }
13
  /* Smooth scrolling */
 
2
  /* Custom styles */
3
  body {
4
  overflow-x: hidden;
5
+ }
6
+
7
+ /* Ensure hero section starts below navbar */
8
+ .hero-image {
9
+ margin-top: 80px;
10
+ height: calc(100vh - 80px);
11
  }
12
 
13
  @media (min-width: 768px) {
14
+ .hero-image {
15
+ margin-top: 0;
16
+ height: 100vh;
17
  }
18
  }
19
  /* Smooth scrolling */