Skip to content

Commit

Permalink
feat: Implement mobile sidebar for responsiveness
Browse files Browse the repository at this point in the history
Add a mobile sidebar component for improved user experience on smaller screens.
Enhance layout to accommodate the mobile sidebar functionality.
Improve overall responsiveness and accessibility of the website.
  • Loading branch information
SilkNye committed Oct 25, 2024
1 parent 1714b10 commit 4b48457
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
7 changes: 7 additions & 0 deletions app/header-m.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const HeaderM = () => {
return <div>HeaderM</div>;
};

export default HeaderM;
7 changes: 5 additions & 2 deletions app/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ const Header = () => {
</Link>
</div>
<div>
<Link href="/" className="flex content-center items-center mx-10">
<Link
href="/mobile-sidebar"
className="flex h-full items-center justify-end pr-14"
>
<Image
className="invert"
src="/menu.svg"
width={40}
width={30}
height={0}
></Image>
</Link>
Expand Down
20 changes: 11 additions & 9 deletions app/layout.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import "./globals.css";
import Header from "./header";
import { GeistSans } from 'geist/font/sans';
import { GoogleAnalytics } from '@next/third-parties/google'
import { GeistSans } from "geist/font/sans";
import { GoogleAnalytics } from "@next/third-parties/google";
import HeaderM from "./header-m";

export const metadata = {
title: "NoxHD UI - UI Library for Next-Gen Websites",
description: "UI Library for Next-Gen Websites",
openGraph: {
title: 'NoxHD UI',
description: 'Advanced UI Library for Modern Web Applications',
url: 'https://ui.noxhd.com',
siteName: 'NoxHD UI',
title: "NoxHD UI",
description: "Advanced UI Library for Modern Web Applications",
url: "https://ui.noxhd.com",
siteName: "NoxHD UI",
images: [
{
url: 'https://ui.noxhd.com/logo.png',
url: "https://ui.noxhd.com/logo.png",
width: 800,
height: 800,
},
],
locale: 'en_US',
type: 'website',
locale: "en_US",
type: "website",
},
};

Expand All @@ -29,6 +30,7 @@ export default function RootLayout({ children }) {
<GoogleAnalytics gaId="G-53TDXRED5K" />
<body className={GeistSans.className}>
<Header />
<HeaderM />
{children}
</body>
</html>
Expand Down

0 comments on commit 4b48457

Please sign in to comment.