Mobile NavBar Update
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"dependencies": {
|
||||
"@auth0/nextjs-auth0": "^4.4.2",
|
||||
"@tailwindcss/vite": "^4.1.3",
|
||||
"lucide-react": "^0.487.0",
|
||||
"next": "15.3.0",
|
||||
"react": "^19.1.0",
|
||||
"react-device-detect": "^2.2.3",
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function RootLayout({
|
||||
|
||||
const { isMobile, isSafari } = useDevice();
|
||||
return (
|
||||
<main>
|
||||
<main className="card grid grid-rows-[1fr_auto]">
|
||||
|
||||
<Image
|
||||
src="/drinkhappylogo.png"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
|
||||
|
||||
|
||||
export default function manifest(): MetadataRoute.Manifest {
|
||||
return {
|
||||
name: "Healthify",
|
||||
|
||||
35
src/lib/components/MobileNav.jsx
Normal file
35
src/lib/components/MobileNav.jsx
Normal file
@@ -0,0 +1,35 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { Navigation } from "@skeletonlabs/skeleton-react";
|
||||
import {
|
||||
Folder as IconFolder,
|
||||
Image as IconImage,
|
||||
Music as IconMusic,
|
||||
Video as IconVideo,
|
||||
} from "lucide-react";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<div className="p-4 flex flex-col items-center gap-4 bg-surface-900">
|
||||
<Navigation.Bar className="flex justify-around w-full">
|
||||
<Navigation.Tile label="Files" href="#/files" className="flex flex-col items-center">
|
||||
<IconFolder />
|
||||
</Navigation.Tile>
|
||||
<Navigation.Tile label="Images" href="#/images" className="flex flex-col items-center">
|
||||
<IconImage />
|
||||
</Navigation.Tile>
|
||||
<Navigation.Tile label="Music" href="#/music" className="flex flex-col items-center">
|
||||
<IconMusic />
|
||||
</Navigation.Tile>
|
||||
<Navigation.Tile label="Videos" href="#/videos" className="flex flex-col items-center">
|
||||
<IconVideo />
|
||||
</Navigation.Tile>
|
||||
</Navigation.Bar>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
@@ -1,33 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
const Footer = () => {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<div className="flex justify-around items-center py-10 bg-gray-100 border-t border-gray-300">
|
||||
<button
|
||||
onClick={() => router.push("/")}
|
||||
className="text-blue-500 text-lg hover:underline"
|
||||
>
|
||||
Home
|
||||
</button>
|
||||
<button
|
||||
onClick={() => router.push("/explore")}
|
||||
className="text-blue-500 text-lg hover:underline"
|
||||
>
|
||||
Explore
|
||||
</button>
|
||||
<button
|
||||
onClick={() => router.push("/profile")}
|
||||
className="text-blue-500 text-lg hover:underline"
|
||||
>
|
||||
Profile
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
@@ -22,6 +22,6 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/lib/components/MobileNav.jsx"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user