diff --git a/src/app/globals.css b/src/app/globals.css
index 23d1cca..18ce8e5 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -23,7 +23,7 @@
--border: oklch(0.2 0 0 / 10%);
/* Default light theme colors */
--background-funding: rgb(0, 109, 102);
- --navbar-bg: rgba(255, 255, 255, 0.95);
+ --navbar-bg: rgba(255, 255, 255, 0.15);
--navbar-border: #E1E5EB;
--link-color: #1E293B;
--secondary-link-color: #4B5563;
@@ -67,6 +67,9 @@
[data-theme='light'] {
--funding-text: #ebebed;
+ a:hover {
+ color:var(--accent-2); /* Remove hover color for light theme */
+ }
}
[data-theme='dark'] {
@@ -90,7 +93,7 @@
/* Dark theme custom colors */
--background-funding: rgb(32, 33, 38);
- --navbar-bg: rgba(22, 22, 24, 0.95);
+ --navbar-bg: rgba(22, 22, 24, 0.15);
--navbar-border:var(--border);
--link-color: #e2e8f0;
--secondary-link-color: #c4c6ca;
@@ -146,8 +149,9 @@ a {
transition: color 0.3s ease;
}
+ /* Use accent-1 color for all hover links */
a:hover {
- color: var(--accent-1); /* Use accent-1 color for all hover links */
+ color: var(--accent-3);
}
/* Paragraph Styling */
diff --git a/src/app/page.mdx b/src/app/page.mdx
index ba77624..2b9ba95 100644
--- a/src/app/page.mdx
+++ b/src/app/page.mdx
@@ -31,15 +31,15 @@ export default function Landing() {
{/* Hero Content */}
{/* Small badge */}
-
-
-
- New: WeatherGenerator Project
-
-
+
+
+
+ New: WeatherGenerator Project
+
+
{/* Main headline */}
-
+
Forecasting Earth’s Future with AI
@@ -49,22 +49,21 @@ export default function Landing() {
we help predict the future of Earth’s surface.
- {/* CTA */}
diff --git a/src/components/Menu.tsx b/src/components/Menu.tsx
index 3940dce..5dc6beb 100644
--- a/src/components/Menu.tsx
+++ b/src/components/Menu.tsx
@@ -1,6 +1,6 @@
'use client'
-import { useState } from 'react'
+import { useState, useEffect } from 'react'
import LogoProject from './Logo'
import ThemeToggle from '@/components/ThemeToggle'
import Socials from '@/components/Socials'
@@ -11,55 +11,92 @@ import { socialLinks } from '@/utils/socials'
export default function Menu() {
const [isOpen, setIsOpen] = useState(false)
+
+ // Enhanced scroll lock effect
+ useEffect(() => {
+ if (isOpen) {
+ // Save current scroll position
+ const scrollY = window.scrollY
+ // Add styles to prevent background scroll while maintaining position
+ document.body.style.position = 'fixed'
+ document.body.style.top = `-${scrollY}px`
+ document.body.style.width = '100%'
+ } else {
+ // Restore scroll position when menu closes
+ const scrollY = document.body.style.top
+ document.body.style.position = ''
+ document.body.style.top = ''
+ document.body.style.width = ''
+ window.scrollTo(0, parseInt(scrollY || '0') * -1)
+ }
+
+ return () => {
+ // Cleanup styles on unmount
+ document.body.style.position = ''
+ document.body.style.top = ''
+ document.body.style.width = ''
+ }
+ }, [isOpen])
+
const handleLinkClick = () => {
setIsOpen(false)
}
return (
-