diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index 6d09333..61756ee 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -2,7 +2,11 @@ import { Show, createSignal } from "solid-js"; const [mobileNav, showMobileNav] = createSignal(false); -const setShowMobileNav = (val: boolean) => showMobileNav(val); +const setShowMobileNav = () => { + console.log("herre"); + + showMobileNav(!mobileNav()) +}; export const Navigation = () => { return ( @@ -11,7 +15,7 @@ export const Navigation = () => {
-
@@ -38,7 +42,7 @@ export const Navigation = () => {
diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro new file mode 100644 index 0000000..5480151 --- /dev/null +++ b/src/layouts/PageLayout.astro @@ -0,0 +1,17 @@ +--- +import {Navigation} from '../components/Navigation' +import Footer from '../views/Footer.astro'; +--- + + + + + + + +
+ +
+