@sofidevo/astro-dynamic-header 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -211,7 +211,7 @@ const menuItems = [
211
211
  <button slot="slot-desktop" class="cta-button">
212
212
  Sign Up
213
213
  </button>
214
-
214
+
215
215
  <!-- Content for mobile panel -->
216
216
  <div slot="slot-panel" class="mobile-extras">
217
217
  <button class="mobile-cta">Download App</button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofidevo/astro-dynamic-header",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "A dynamic Astro header component that switches between floating and fullscreen styles",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/Header.astro CHANGED
@@ -90,8 +90,9 @@ const {
90
90
  <NavMenu menuItems={menuItems} />
91
91
  <slot name="slot-desktop" />
92
92
  <HamburgerButton />
93
-
94
- <MobileNav menuItems={menuItems} type={headerType} />
93
+ <MobileNav menuItems={menuItems} type={headerType}>
94
+ <slot name="slot-panel" slot="slot-panel" />
95
+ </MobileNav>
95
96
 
96
97
  </header>
97
98
  </div>
@@ -123,7 +123,7 @@ const pagePathname = Astro.url.pathname;
123
123
  width: 104vw;
124
124
  height: 100dvh;
125
125
  position: fixed;
126
- top: -16px;
126
+ /* top: -16px; */
127
127
  left: 0;
128
128
  background: #151515;
129
129
  z-index: 20;